3 #include <dt-bindings/input/input.h>
4 #include <dt-bindings/mips/lantiq_rcu_gphy.h>
7 compatible = "tplink,tdw89x0", "lantiq,xway", "lantiq,vr9";
10 bootargs = "console=ttyLTQ0,115200";
14 /* the power led can't be controlled, use the wps led instead */
19 led-internet = &internet;
26 reg = <0x0 0x4000000>;
30 compatible = "gpio-keys-polled";
33 poll-interval = <100>;
36 gpios = <&gpio 0 GPIO_ACTIVE_LOW>;
37 linux,code = <KEY_RESTART>;
42 gpios = <&gpio 9 GPIO_ACTIVE_HIGH>;
43 linux,code = <KEY_RFKILL>;
44 linux,input-type = <EV_SW>;
49 gpios = <&gpio 39 GPIO_ACTIVE_LOW>;
50 linux,code = <KEY_WPS_BUTTON>;
55 compatible = "gpio-leds";
57 power is not controllable via gpio
60 label = "tdw89x0:green:dsl";
61 gpios = <&gpio 4 GPIO_ACTIVE_HIGH>;
64 label = "tdw89x0:green:internet";
65 gpios = <&gpio 5 GPIO_ACTIVE_HIGH>;
69 label = "tdw89x0:green:usb";
70 gpios = <&gpio 19 GPIO_ACTIVE_HIGH>;
73 label = "tdw89x0:green:usb2";
74 gpios = <&gpio 20 GPIO_ACTIVE_HIGH>;
77 label = "tdw89x0:green:wps";
78 gpios = <&gpio 37 GPIO_ACTIVE_HIGH>;
83 compatible = "gpio-leds";
86 label = "tdw89x0:green:wifi";
87 gpios = <&ath9k 0 GPIO_ACTIVE_HIGH>;
88 linux,default-trigger = "phy0tpt";
93 usb_vbus: regulator-usb-vbus {
94 compatible = "regulator-fixed";
96 regulator-name = "USB_VBUS";
98 regulator-min-microvolt = <5000000>;
99 regulator-max-microvolt = <5000000>;
101 gpio = <&gpio 33 GPIO_ACTIVE_HIGH>;
108 compatible = "lantiq,xrx200-pdi";
109 #address-cells = <1>;
112 mtd-mac-address = <&ath9k_cal 0xf100>;
116 compatible = "lantiq,xrx200-pdi-port";
119 phy-handle = <&phy0>;
120 // gpios = <&gpio 42 GPIO_ACTIVE_LOW>;
123 compatible = "lantiq,xrx200-pdi-port";
126 phy-handle = <&phy5>;
129 compatible = "lantiq,xrx200-pdi-port";
132 phy-handle = <&phy11>;
135 compatible = "lantiq,xrx200-pdi-port";
138 phy-handle = <&phy13>;
143 #address-cells = <1>;
145 compatible = "lantiq,xrx200-mdio";
148 phy0: ethernet-phy@0 {
150 compatible = "lantiq,phy11g", "ethernet-phy-ieee802.3-c22";
152 phy5: ethernet-phy@5 {
154 compatible = "lantiq,phy11g", "ethernet-phy-ieee802.3-c22";
156 phy11: ethernet-phy@11 {
158 compatible = "lantiq,phy11g", "ethernet-phy-ieee802.3-c22";
160 phy13: ethernet-phy@13 {
162 compatible = "lantiq,phy11g", "ethernet-phy-ieee802.3-c22";
168 lantiq,gphy-mode = <GPHY_MODE_GE>;
172 lantiq,gphy-mode = <GPHY_MODE_GE>;
176 pinctrl-names = "default";
177 pinctrl-0 = <&state_default>;
179 state_default: pinmux {
181 lantiq,groups = "mdio";
182 lantiq,function = "mdio";
185 lantiq,groups = "gphy0 led1", "gphy1 led1";
186 lantiq,function = "gphy";
188 lantiq,open-drain = <0>;
192 lantiq,pins = "io42";
194 lantiq,open-drain = <0>;
198 lantiq,pins = "io38";
203 pins_spi_default: pins_spi_default {
205 lantiq,groups = "spi_di";
206 lantiq,function = "spi";
209 lantiq,groups = "spi_do", "spi_clk",
211 lantiq,function = "spi";
220 #interrupt-cells = <1>;
222 #address-cells = <3>;
225 ath9k: wifi@168c,002e {
226 compatible = "pci168c,002e";
232 mtd-mac-address = <&ath9k_cal 0xf100>;
233 mtd-mac-address-increment = <2>;
241 pinctrl-names = "default";
242 pinctrl-0 = <&pins_spi_default>;
245 #address-cells = <1>;
247 compatible = "jedec,spi-nor";
249 spi-max-frequency = <33250000>;
253 compatible = "fixed-partitions";
254 #address-cells = <1>;
264 reg = <0x20000 0x7a0000>;
269 reg = <0x7c0000 0x10000>;
274 ath9k_cal: partition@7d0000 {
275 reg = <0x7d0000 0x30000>;
276 label = "boardconfig";
293 vbus-supply = <&usb_vbus>;
298 vbus-supply = <&usb_vbus>;