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 device_type = "memory";
27 reg = <0x0 0x4000000>;
31 compatible = "gpio-keys-polled";
32 poll-interval = <100>;
35 gpios = <&gpio 0 GPIO_ACTIVE_LOW>;
36 linux,code = <KEY_RESTART>;
41 gpios = <&gpio 9 GPIO_ACTIVE_HIGH>;
42 linux,code = <KEY_RFKILL>;
43 linux,input-type = <EV_SW>;
48 gpios = <&gpio 39 GPIO_ACTIVE_LOW>;
49 linux,code = <KEY_WPS_BUTTON>;
54 compatible = "gpio-leds";
56 power is not controllable via gpio
59 label = "tdw89x0:green:dsl";
60 gpios = <&gpio 4 GPIO_ACTIVE_HIGH>;
63 label = "tdw89x0:green:internet";
64 gpios = <&gpio 5 GPIO_ACTIVE_HIGH>;
68 label = "tdw89x0:green:usb";
69 gpios = <&gpio 19 GPIO_ACTIVE_HIGH>;
72 label = "tdw89x0:green:usb2";
73 gpios = <&gpio 20 GPIO_ACTIVE_HIGH>;
76 label = "tdw89x0:green:wps";
77 gpios = <&gpio 37 GPIO_ACTIVE_HIGH>;
82 compatible = "gpio-leds";
85 label = "tdw89x0:green:wifi";
86 gpios = <&ath9k 0 GPIO_ACTIVE_HIGH>;
87 linux,default-trigger = "phy0tpt";
92 usb_vbus: regulator-usb-vbus {
93 compatible = "regulator-fixed";
95 regulator-name = "USB_VBUS";
97 regulator-min-microvolt = <5000000>;
98 regulator-max-microvolt = <5000000>;
100 gpio = <&gpio 33 GPIO_ACTIVE_HIGH>;
107 compatible = "lantiq,xrx200-pdi";
108 #address-cells = <1>;
111 mtd-mac-address = <&ath9k_cal 0xf100>;
115 compatible = "lantiq,xrx200-pdi-port";
118 phy-handle = <&phy0>;
119 // gpios = <&gpio 42 GPIO_ACTIVE_LOW>;
122 compatible = "lantiq,xrx200-pdi-port";
125 phy-handle = <&phy5>;
128 compatible = "lantiq,xrx200-pdi-port";
131 phy-handle = <&phy11>;
134 compatible = "lantiq,xrx200-pdi-port";
137 phy-handle = <&phy13>;
142 #address-cells = <1>;
144 compatible = "lantiq,xrx200-mdio";
146 phy0: ethernet-phy@0 {
148 compatible = "lantiq,phy11g", "ethernet-phy-ieee802.3-c22";
150 phy5: ethernet-phy@5 {
152 compatible = "lantiq,phy11g", "ethernet-phy-ieee802.3-c22";
154 phy11: ethernet-phy@11 {
156 compatible = "lantiq,phy11g", "ethernet-phy-ieee802.3-c22";
158 phy13: ethernet-phy@13 {
160 compatible = "lantiq,phy11g", "ethernet-phy-ieee802.3-c22";
166 lantiq,gphy-mode = <GPHY_MODE_GE>;
170 lantiq,gphy-mode = <GPHY_MODE_GE>;
174 pinctrl-names = "default";
175 pinctrl-0 = <&state_default>;
177 state_default: pinmux {
179 lantiq,groups = "mdio";
180 lantiq,function = "mdio";
183 lantiq,groups = "gphy0 led1", "gphy1 led1";
184 lantiq,function = "gphy";
186 lantiq,open-drain = <0>;
190 lantiq,pins = "io42";
192 lantiq,open-drain = <0>;
196 lantiq,pins = "io38";
201 pins_spi_default: pins_spi_default {
203 lantiq,groups = "spi_di";
204 lantiq,function = "spi";
207 lantiq,groups = "spi_do", "spi_clk",
209 lantiq,function = "spi";
218 #interrupt-cells = <1>;
220 #address-cells = <3>;
223 ath9k: wifi@168c,002e {
224 compatible = "pci168c,002e";
230 mtd-mac-address = <&ath9k_cal 0xf100>;
231 mtd-mac-address-increment = <2>;
239 pinctrl-names = "default";
240 pinctrl-0 = <&pins_spi_default>;
243 compatible = "jedec,spi-nor";
245 spi-max-frequency = <33250000>;
249 compatible = "fixed-partitions";
250 #address-cells = <1>;
260 reg = <0x20000 0x7a0000>;
265 reg = <0x7c0000 0x10000>;
270 ath9k_cal: partition@7d0000 {
271 reg = <0x7d0000 0x30000>;
272 label = "boardconfig";
289 vbus-supply = <&usb_vbus>;
294 vbus-supply = <&usb_vbus>;