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>;
106 mtd-mac-address = <&ath9k_cal 0xf100>;
110 lantiq,gphy-mode = <GPHY_MODE_GE>;
114 lantiq,gphy-mode = <GPHY_MODE_GE>;
118 pinctrl-names = "default";
119 pinctrl-0 = <&state_default>;
121 state_default: pinmux {
123 lantiq,pins = "io42";
125 lantiq,open-drain = <0>;
129 lantiq,pins = "io38";
137 pinctrl-0 = <&mdio_pins>, <&gphy0_led1_pins>, <&gphy1_led1_pins>;
138 pinctrl-names = "default";
142 phy0: ethernet-phy@0 {
144 // reset-gpios = <&gpio 42 GPIO_ACTIVE_LOW>;
146 phy5: ethernet-phy@5 {
149 phy11: ethernet-phy@11 {
152 phy13: ethernet-phy@13 {
162 phy-handle = <&phy0>;
167 phy-mode = "internal";
168 phy-handle = <&phy11>;
173 phy-mode = "internal";
174 phy-handle = <&phy13>;
180 phy-handle = <&phy5>;
187 #interrupt-cells = <1>;
189 #address-cells = <3>;
192 ath9k: wifi@168c,002e {
193 compatible = "pci168c,002e";
199 mtd-mac-address = <&ath9k_cal 0xf100>;
200 mtd-mac-address-increment = <2>;
209 compatible = "jedec,spi-nor";
211 spi-max-frequency = <33250000>;
215 compatible = "fixed-partitions";
216 #address-cells = <1>;
226 reg = <0x20000 0x7a0000>;
231 reg = <0x7c0000 0x10000>;
236 ath9k_cal: partition@7d0000 {
237 reg = <0x7d0000 0x30000>;
238 label = "boardconfig";
255 vbus-supply = <&usb_vbus>;
260 vbus-supply = <&usb_vbus>;