Initial commit
Some checks failed
Build Kernel / Build all affected Kernels (push) Has been cancelled
Build all core packages / Build all core packages for selected target (push) Has been cancelled
Build and Push prebuilt tools container / Build and Push all prebuilt containers (push) Has been cancelled
Build Toolchains / Build Toolchains for each target (push) Has been cancelled
Build host tools / Build host tools for linux and macos based systems (push) Has been cancelled
Coverity scan build / Coverity x86/64 build (push) Has been cancelled
Some checks failed
Build Kernel / Build all affected Kernels (push) Has been cancelled
Build all core packages / Build all core packages for selected target (push) Has been cancelled
Build and Push prebuilt tools container / Build and Push all prebuilt containers (push) Has been cancelled
Build Toolchains / Build Toolchains for each target (push) Has been cancelled
Build host tools / Build host tools for linux and macos based systems (push) Has been cancelled
Coverity scan build / Coverity x86/64 build (push) Has been cancelled
This commit is contained in:
80
target/linux/ramips/dts/mt7621_ubnt_edgerouter-x-sfp.dts
Normal file
80
target/linux/ramips/dts/mt7621_ubnt_edgerouter-x-sfp.dts
Normal file
@@ -0,0 +1,80 @@
|
||||
#include "mt7621_ubnt_edgerouter-x.dtsi"
|
||||
|
||||
/ {
|
||||
model = "Ubiquiti EdgeRouter X SFP";
|
||||
compatible = "ubnt,edgerouter-x-sfp", "mediatek,mt7621-soc";
|
||||
|
||||
sfp_eth5: sfp_eth5 {
|
||||
compatible = "sff,sfp";
|
||||
i2c-bus = <&i2c>;
|
||||
mod-def0-gpio = <&expander0 5 GPIO_ACTIVE_LOW>;
|
||||
maximum-power-milliwatt = <1000>;
|
||||
};
|
||||
};
|
||||
|
||||
&i2c {
|
||||
status = "okay";
|
||||
|
||||
/*
|
||||
* PCA9655 GPIO expander
|
||||
* 0-POE power port eth0
|
||||
* 1-POE power port eth1
|
||||
* 2-POE power port eth2
|
||||
* 3-POE power port eth3
|
||||
* 4-POE power port eth4
|
||||
* 5-SFP_MOD_DEF0#
|
||||
* 6-
|
||||
* 7-
|
||||
* 8-Pull up to VCC
|
||||
* 9-Pull down to GND
|
||||
* 10-Pull down to GND
|
||||
* 11-Pull down to GND
|
||||
* 12-Pull down to GND
|
||||
* 13-Pull down to GND
|
||||
* 14-Pull down to GND
|
||||
* 15-Pull down to GND
|
||||
*/
|
||||
expander0: pca9555@25 {
|
||||
compatible = "nxp,pca9555";
|
||||
interrupt-parent = <&gpio>;
|
||||
interrupts = <8 IRQ_TYPE_EDGE_FALLING>;
|
||||
gpio-controller;
|
||||
#gpio-cells = <2>;
|
||||
reg = <0x25>;
|
||||
};
|
||||
};
|
||||
|
||||
&gpio {
|
||||
sfp_i2c_clk_gate {
|
||||
gpio-hog;
|
||||
gpios = <7 GPIO_ACTIVE_LOW>;
|
||||
output-high;
|
||||
};
|
||||
};
|
||||
|
||||
&mdio {
|
||||
ephy7: ethernet-phy@7 {
|
||||
reg = <7>;
|
||||
sfp = <&sfp_eth5>;
|
||||
};
|
||||
};
|
||||
|
||||
&rgmii2_pins {
|
||||
rgmii2 {
|
||||
function = "gpio";
|
||||
};
|
||||
};
|
||||
|
||||
&switch0 {
|
||||
ports {
|
||||
port@5 {
|
||||
reg = <5>;
|
||||
openwrt,netdev-name = "eth5";
|
||||
phy-handle = <&ephy7>;
|
||||
phy-mode = "rgmii-rxid";
|
||||
nvmem-cells = <&macaddr_factory_22 5>;
|
||||
nvmem-cell-names = "mac-address";
|
||||
/delete-property/ label;
|
||||
};
|
||||
};
|
||||
};
|
||||
Reference in New Issue
Block a user