1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/input.h>
7 #include <dt-bindings/leds/common.h>
8 #include <dt-bindings/mtd/partitions/uimage.h>
12 led-boot = &led_power_orange;
13 led-failsafe = &led_power_orange;
14 led-running = &led_power_green;
15 led-upgrade = &led_power_orange;
19 compatible = "reset-leds";
22 function = LED_FUNCTION_USB;
23 color = <LED_COLOR_ID_GREEN>;
25 trigger-sources = <&usb_ohci_port>, <&usb_ehci_port>;
26 linux,default-trigger = "usbport";
31 compatible = "gpio-leds";
34 function = LED_FUNCTION_WPS;
35 color = <LED_COLOR_ID_ORANGE>;
36 gpios = <&gpio 0 GPIO_ACTIVE_LOW>;
39 led_power_green: power_green {
40 function = LED_FUNCTION_POWER;
41 color = <LED_COLOR_ID_GREEN>;
42 gpios = <&gpio 2 GPIO_ACTIVE_LOW>;
45 led_power_orange: power_orange {
46 function = LED_FUNCTION_POWER;
47 color = <LED_COLOR_ID_ORANGE>;
48 gpios = <&gpio 1 GPIO_ACTIVE_LOW>;
53 function = LED_FUNCTION_WPS;
54 color = <LED_COLOR_ID_GREEN>;
55 gpios = <&gpio 4 GPIO_ACTIVE_LOW>;
59 function = LED_FUNCTION_WAN;
60 color = <LED_COLOR_ID_GREEN>;
61 gpios = <&gpio 6 GPIO_ACTIVE_LOW>;
66 compatible = "gpio-leds";
69 label = "green:wlan2g";
70 gpios = <&ath9k0 5 GPIO_ACTIVE_LOW>;
71 linux,default-trigger = "phy0tpt";
74 label = "blue:wlan5g";
75 gpios = <&ath9k1 5 GPIO_ACTIVE_LOW>;
76 linux,default-trigger = "phy1tpt";
81 compatible = "gpio-keys";
85 linux,code = <KEY_WPS_BUTTON>;
86 gpios = <&gpio 3 GPIO_ACTIVE_LOW>;
91 linux,code = <KEY_RESTART>;
92 gpios = <&gpio 8 GPIO_ACTIVE_LOW>;
97 linux,code = <KEY_RFKILL>;
98 gpios = <&gpio 11 GPIO_ACTIVE_LOW>;
103 compatible = "realtek,rtl8366s";
105 gpio-sda = <&gpio 5 GPIO_ACTIVE_HIGH>;
106 gpio-sck = <&gpio 7 GPIO_ACTIVE_HIGH>;
109 #address-cells = <1>;
113 phy4: ethernet-phy@4 {
137 compatible = "pci168c,0029";
138 reg = <0x8800 0 0 0 0>;
143 /* all WNDR3700 variants have four antennae dedicated
144 * to the 2.4GHz radio. Two antennae are available for
145 * each chain. The following configuration is the
146 * default setting which taken from the vendor's wifi
147 * code for that radio.
149 * All possible options [GPIO6,GPIO7,GPIO8,GPIO9]:
150 * [0,1,0,1], [0,1,1,0], [1,0,0,1], [1,0,1,0]
154 line-name = "fixed antenna group 1";
155 gpios = <6 GPIO_ACTIVE_LOW>,
156 <7 GPIO_ACTIVE_HIGH>,
158 <9 GPIO_ACTIVE_HIGH>;
164 compatible = "pci168c,0029";
165 reg = <0x9000 0 0 0 0>;
176 compatible = "jedec,spi-nor";
178 spi-max-frequency = <25000000>;
180 partitions: partitions {
181 compatible = "fixed-partitions";
182 #address-cells = <1>;
191 pll-data = <0x11110000 0x00001099 0x00991099>;
202 pll-data = <0x11110000 0x00001099 0x00991099>;
204 phy-handle = <&phy4>;