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 = "gphy0 led1", "gphy1 led1";
180 lantiq,function = "gphy";
182 lantiq,open-drain = <0>;
186 lantiq,pins = "io42";
188 lantiq,open-drain = <0>;
192 lantiq,pins = "io38";
197 pins_spi_default: pins_spi_default {
199 lantiq,groups = "spi_di";
200 lantiq,function = "spi";
203 lantiq,groups = "spi_do", "spi_clk",
205 lantiq,function = "spi";
214 #interrupt-cells = <1>;
216 #address-cells = <3>;
219 ath9k: wifi@168c,002e {
220 compatible = "pci168c,002e";
226 mtd-mac-address = <&ath9k_cal 0xf100>;
227 mtd-mac-address-increment = <2>;
235 pinctrl-names = "default";
236 pinctrl-0 = <&pins_spi_default>;
239 compatible = "jedec,spi-nor";
241 spi-max-frequency = <33250000>;
245 compatible = "fixed-partitions";
246 #address-cells = <1>;
256 reg = <0x20000 0x7a0000>;
261 reg = <0x7c0000 0x10000>;
266 ath9k_cal: partition@7d0000 {
267 reg = <0x7d0000 0x30000>;
268 label = "boardconfig";
285 vbus-supply = <&usb_vbus>;
290 vbus-supply = <&usb_vbus>;