ramips: fix LAN LED trigger assignment for Xiaomi Router 3 Pro
[openwrt/openwrt.git] / target / linux / ramips / dts / mt7621_ubnt_edgerouter-x-sfp.dts
1 #include "mt7621_ubnt_edgerouter-x.dtsi"
2
3 / {
4 model = "Ubiquiti EdgeRouter X SFP";
5 compatible = "ubnt,edgerouter-x-sfp", "mediatek,mt7621-soc";
6
7 sfp_eth5: sfp_eth5 {
8 compatible = "sff,sfp";
9 i2c-bus = <&i2c>;
10 mod-def0-gpio = <&expander0 5 GPIO_ACTIVE_LOW>;
11 maximum-power-milliwatt = <1000>;
12 };
13 };
14
15 &i2c {
16 status = "okay";
17
18 /*
19 * PCA9655 GPIO expander
20 * 0-POE power port eth0
21 * 1-POE power port eth1
22 * 2-POE power port eth2
23 * 3-POE power port eth3
24 * 4-POE power port eth4
25 * 5-SFP_MOD_DEF0#
26 * 6-
27 * 7-
28 * 8-Pull up to VCC
29 * 9-Pull down to GND
30 * 10-Pull down to GND
31 * 11-Pull down to GND
32 * 12-Pull down to GND
33 * 13-Pull down to GND
34 * 14-Pull down to GND
35 * 15-Pull down to GND
36 */
37 expander0: pca9555@25 {
38 compatible = "nxp,pca9555";
39 interrupt-parent = <&gpio>;
40 interrupts = <8 IRQ_TYPE_EDGE_FALLING>;
41 gpio-controller;
42 #gpio-cells = <2>;
43 reg = <0x25>;
44 };
45 };
46
47 &gpio {
48 sfp_i2c_clk_gate {
49 gpio-hog;
50 gpios = <7 GPIO_ACTIVE_LOW>;
51 output-high;
52 };
53 };
54
55 &mdio {
56 ephy7: ethernet-phy@7 {
57 reg = <7>;
58 sfp = <&sfp_eth5>;
59 };
60 };
61
62 &switch0 {
63 ports {
64 port@5 {
65 reg = <5>;
66 label = "eth5";
67 phy-handle = <&ephy7>;
68 phy-mode = "rgmii-rxid";
69 mtd-mac-address = <&factory 0x22>;
70 mtd-mac-address-increment = <5>;
71 };
72 };
73 };