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