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 */
16 led-failsafe = &led_wps;
19 led-internet = &led_internet;
24 device_type = "memory";
25 reg = <0x0 0x4000000>;
29 compatible = "gpio-keys-polled";
30 poll-interval = <100>;
33 gpios = <&gpio 0 GPIO_ACTIVE_LOW>;
34 linux,code = <KEY_RESTART>;
39 gpios = <&gpio 9 GPIO_ACTIVE_HIGH>;
40 linux,code = <KEY_RFKILL>;
41 linux,input-type = <EV_SW>;
46 gpios = <&gpio 39 GPIO_ACTIVE_LOW>;
47 linux,code = <KEY_WPS_BUTTON>;
52 compatible = "gpio-leds";
55 power is not controllable via gpio
60 gpios = <&gpio 4 GPIO_ACTIVE_HIGH>;
63 led_internet: internet {
64 label = "green:internet";
65 gpios = <&gpio 5 GPIO_ACTIVE_HIGH>;
70 gpios = <&gpio 19 GPIO_ACTIVE_HIGH>;
71 trigger-sources = <&ehci_port1>;
72 linux,default-trigger = "usbport";
77 gpios = <&gpio 20 GPIO_ACTIVE_HIGH>;
78 trigger-sources = <&ehci_port2>;
79 linux,default-trigger = "usbport";
84 gpios = <&gpio 37 GPIO_ACTIVE_HIGH>;
89 compatible = "gpio-leds";
93 gpios = <&ath9k 0 GPIO_ACTIVE_HIGH>;
94 linux,default-trigger = "phy0tpt";
99 usb_vbus: regulator-usb-vbus {
100 compatible = "regulator-fixed";
102 regulator-name = "USB_VBUS";
104 regulator-min-microvolt = <5000000>;
105 regulator-max-microvolt = <5000000>;
107 gpio = <&gpio 33 GPIO_ACTIVE_HIGH>;
113 nvmem-cells = <&macaddr_ath9k_cal_f100>;
114 nvmem-cell-names = "mac-address";
118 lantiq,gphy-mode = <GPHY_MODE_GE>;
122 lantiq,gphy-mode = <GPHY_MODE_GE>;
126 pinctrl-names = "default";
127 pinctrl-0 = <&state_default>;
129 state_default: pinmux {
131 lantiq,pins = "io42";
133 lantiq,open-drain = <0>;
137 lantiq,pins = "io38";
145 pinctrl-0 = <&mdio_pins>, <&gphy0_led1_pins>, <&gphy1_led1_pins>;
146 pinctrl-names = "default";
150 phy0: ethernet-phy@0 {
152 // reset-gpios = <&gpio 42 GPIO_ACTIVE_LOW>;
154 phy5: ethernet-phy@5 {
157 phy11: ethernet-phy@11 {
160 phy13: ethernet-phy@13 {
170 phy-handle = <&phy0>;
175 phy-mode = "internal";
176 phy-handle = <&phy11>;
181 phy-mode = "internal";
182 phy-handle = <&phy13>;
188 phy-handle = <&phy5>;
195 #interrupt-cells = <1>;
197 #address-cells = <3>;
200 ath9k: wifi@168c,002e {
201 compatible = "pci168c,002e";
206 ieee80211-freq-limit = <2402000 2482000>;
207 nvmem-cells = <&macaddr_ath9k_cal_f100>;
208 nvmem-cell-names = "mac-address";
209 mac-address-increment = <2>;
218 compatible = "jedec,spi-nor";
220 spi-max-frequency = <33250000>;
224 compatible = "fixed-partitions";
225 #address-cells = <1>;
235 reg = <0x20000 0x7a0000>;
240 reg = <0x7c0000 0x10000>;
245 ath9k_cal: partition@7d0000 {
246 reg = <0x7d0000 0x30000>;
247 label = "boardconfig";
264 vbus-supply = <&usb_vbus>;
269 vbus-supply = <&usb_vbus>;
273 compatible = "nvmem-cells";
274 #address-cells = <1>;
277 macaddr_ath9k_cal_f100: macaddr@f100 {