3 #include <dt-bindings/input/input.h>
4 #include <dt-bindings/leds/common.h>
5 #include <dt-bindings/mips/lantiq_rcu_gphy.h>
8 compatible = "tplink,tdw89x0", "lantiq,xway", "lantiq,vr9";
11 bootargs = "console=ttyLTQ0,115200";
15 /* the power led can't be controlled, use the wps led instead */
17 led-failsafe = &led_wps;
20 led-internet = &led_internet;
25 device_type = "memory";
26 reg = <0x0 0x4000000>;
30 compatible = "gpio-keys-polled";
31 poll-interval = <100>;
34 gpios = <&gpio 0 GPIO_ACTIVE_LOW>;
35 linux,code = <KEY_RESTART>;
40 gpios = <&gpio 9 GPIO_ACTIVE_HIGH>;
41 linux,code = <KEY_RFKILL>;
42 linux,input-type = <EV_SW>;
47 gpios = <&gpio 39 GPIO_ACTIVE_LOW>;
48 linux,code = <KEY_WPS_BUTTON>;
53 compatible = "gpio-leds";
56 power is not controllable via gpio
61 gpios = <&gpio 4 GPIO_ACTIVE_HIGH>;
64 led_internet: internet {
65 label = "green:internet";
66 gpios = <&gpio 5 GPIO_ACTIVE_HIGH>;
70 function = LED_FUNCTION_USB;
71 color = <LED_COLOR_ID_GREEN>;
72 gpios = <&gpio 19 GPIO_ACTIVE_HIGH>;
73 trigger-sources = <&ehci_port1>;
74 linux,default-trigger = "usbport";
79 gpios = <&gpio 20 GPIO_ACTIVE_HIGH>;
80 trigger-sources = <&ehci_port2>;
81 linux,default-trigger = "usbport";
85 function = LED_FUNCTION_WPS;
86 color = <LED_COLOR_ID_GREEN>;
87 gpios = <&gpio 37 GPIO_ACTIVE_HIGH>;
92 compatible = "gpio-leds";
96 gpios = <&ath9k 0 GPIO_ACTIVE_HIGH>;
97 linux,default-trigger = "phy0tpt";
102 usb_vbus: regulator-usb-vbus {
103 compatible = "regulator-fixed";
105 regulator-name = "USB_VBUS";
107 regulator-min-microvolt = <5000000>;
108 regulator-max-microvolt = <5000000>;
110 gpio = <&gpio 33 GPIO_ACTIVE_HIGH>;
116 nvmem-cells = <&macaddr_ath9k_cal_f100 0>;
117 nvmem-cell-names = "mac-address";
121 lantiq,gphy-mode = <GPHY_MODE_GE>;
125 lantiq,gphy-mode = <GPHY_MODE_GE>;
129 pinctrl-names = "default";
130 pinctrl-0 = <&state_default>;
132 state_default: pinmux {
134 lantiq,pins = "io42";
136 lantiq,open-drain = <0>;
140 lantiq,pins = "io38";
148 pinctrl-0 = <&mdio_pins>, <&gphy0_led1_pins>, <&gphy1_led1_pins>;
149 pinctrl-names = "default";
153 phy0: ethernet-phy@0 {
155 // reset-gpios = <&gpio 42 GPIO_ACTIVE_LOW>;
157 phy5: ethernet-phy@5 {
160 phy11: ethernet-phy@11 {
163 phy13: ethernet-phy@13 {
173 phy-handle = <&phy0>;
178 phy-mode = "internal";
179 phy-handle = <&phy11>;
184 phy-mode = "internal";
185 phy-handle = <&phy13>;
191 phy-handle = <&phy5>;
198 #interrupt-cells = <1>;
200 #address-cells = <3>;
203 ath9k: wifi@168c,002e {
204 compatible = "pci168c,002e";
209 ieee80211-freq-limit = <2402000 2482000>;
210 nvmem-cells = <&macaddr_ath9k_cal_f100 2>;
211 nvmem-cell-names = "mac-address";
220 compatible = "jedec,spi-nor";
222 spi-max-frequency = <33250000>;
226 compatible = "fixed-partitions";
227 #address-cells = <1>;
237 reg = <0x20000 0x7a0000>;
242 reg = <0x7c0000 0x10000>;
247 ath9k_cal: partition@7d0000 {
248 reg = <0x7d0000 0x30000>;
249 label = "boardconfig";
253 compatible = "fixed-layout";
254 #address-cells = <1>;
257 macaddr_ath9k_cal_f100: macaddr@f100 {
258 compatible = "mac-base";
260 #nvmem-cell-cells = <1>;
278 vbus-supply = <&usb_vbus>;
283 vbus-supply = <&usb_vbus>;