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";
34 poll-interval = <100>;
37 gpios = <&gpio 0 GPIO_ACTIVE_LOW>;
38 linux,code = <KEY_RESTART>;
43 gpios = <&gpio 9 GPIO_ACTIVE_HIGH>;
44 linux,code = <KEY_RFKILL>;
45 linux,input-type = <EV_SW>;
50 gpios = <&gpio 39 GPIO_ACTIVE_LOW>;
51 linux,code = <KEY_WPS_BUTTON>;
56 compatible = "gpio-leds";
58 power is not controllable via gpio
61 label = "tdw89x0:green:dsl";
62 gpios = <&gpio 4 GPIO_ACTIVE_HIGH>;
65 label = "tdw89x0:green:internet";
66 gpios = <&gpio 5 GPIO_ACTIVE_HIGH>;
70 label = "tdw89x0:green:usb";
71 gpios = <&gpio 19 GPIO_ACTIVE_HIGH>;
74 label = "tdw89x0:green:usb2";
75 gpios = <&gpio 20 GPIO_ACTIVE_HIGH>;
78 label = "tdw89x0:green:wps";
79 gpios = <&gpio 37 GPIO_ACTIVE_HIGH>;
84 compatible = "gpio-leds";
87 label = "tdw89x0:green:wifi";
88 gpios = <&ath9k 0 GPIO_ACTIVE_HIGH>;
89 linux,default-trigger = "phy0tpt";
94 usb_vbus: regulator-usb-vbus {
95 compatible = "regulator-fixed";
97 regulator-name = "USB_VBUS";
99 regulator-min-microvolt = <5000000>;
100 regulator-max-microvolt = <5000000>;
102 gpio = <&gpio 33 GPIO_ACTIVE_HIGH>;
109 compatible = "lantiq,xrx200-pdi";
110 #address-cells = <1>;
113 mtd-mac-address = <&ath9k_cal 0xf100>;
117 compatible = "lantiq,xrx200-pdi-port";
120 phy-handle = <&phy0>;
121 // gpios = <&gpio 42 GPIO_ACTIVE_LOW>;
124 compatible = "lantiq,xrx200-pdi-port";
127 phy-handle = <&phy5>;
130 compatible = "lantiq,xrx200-pdi-port";
133 phy-handle = <&phy11>;
136 compatible = "lantiq,xrx200-pdi-port";
139 phy-handle = <&phy13>;
144 #address-cells = <1>;
146 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>;