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>;
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";
147 phy0: ethernet-phy@0 {
149 compatible = "lantiq,phy11g", "ethernet-phy-ieee802.3-c22";
151 phy5: ethernet-phy@5 {
153 compatible = "lantiq,phy11g", "ethernet-phy-ieee802.3-c22";
155 phy11: ethernet-phy@11 {
157 compatible = "lantiq,phy11g", "ethernet-phy-ieee802.3-c22";
159 phy13: ethernet-phy@13 {
161 compatible = "lantiq,phy11g", "ethernet-phy-ieee802.3-c22";
167 lantiq,gphy-mode = <GPHY_MODE_GE>;
171 lantiq,gphy-mode = <GPHY_MODE_GE>;
175 pinctrl-names = "default";
176 pinctrl-0 = <&state_default>;
178 state_default: pinmux {
180 lantiq,groups = "mdio";
181 lantiq,function = "mdio";
184 lantiq,groups = "gphy0 led1", "gphy1 led1";
185 lantiq,function = "gphy";
187 lantiq,open-drain = <0>;
191 lantiq,pins = "io42";
193 lantiq,open-drain = <0>;
197 lantiq,pins = "io38";
202 pins_spi_default: pins_spi_default {
204 lantiq,groups = "spi_di";
205 lantiq,function = "spi";
208 lantiq,groups = "spi_do", "spi_clk",
210 lantiq,function = "spi";
219 #interrupt-cells = <1>;
221 #address-cells = <3>;
224 ath9k: wifi@168c,002e {
225 compatible = "pci168c,002e";
231 mtd-mac-address = <&ath9k_cal 0xf100>;
232 mtd-mac-address-increment = <2>;
240 pinctrl-names = "default";
241 pinctrl-0 = <&pins_spi_default>;
244 #address-cells = <1>;
246 compatible = "jedec,spi-nor";
248 spi-max-frequency = <33250000>;
252 compatible = "fixed-partitions";
253 #address-cells = <1>;
263 reg = <0x20000 0x7a0000>;
268 reg = <0x7c0000 0x10000>;
273 ath9k_cal: partition@7d0000 {
274 reg = <0x7d0000 0x30000>;
275 label = "boardconfig";
284 phy-supply = <&usb_vbus>;
289 phy-supply = <&usb_vbus>;