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/mtd/partitions/uimage.h>
11 led-boot = &led_power_orange;
12 led-failsafe = &led_power_orange;
13 led-running = &led_power_green;
14 led-upgrade = &led_power_orange;
18 compatible = "fixed-clock";
20 clock-output-names = "ref";
21 clock-frequency = <40000000>;
25 compatible = "reset-leds";
30 trigger-sources = <&usb_ohci_port>, <&usb_ehci_port>;
31 linux,default-trigger = "usbport";
36 compatible = "gpio-leds";
40 gpios = <&gpio 0 GPIO_ACTIVE_LOW>;
43 led_power_green: power_green {
44 label = "green:power";
45 gpios = <&gpio 2 GPIO_ACTIVE_LOW>;
48 led_power_orange: power_orange {
49 label = "orange:power";
50 gpios = <&gpio 1 GPIO_ACTIVE_LOW>;
56 gpios = <&gpio 4 GPIO_ACTIVE_LOW>;
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 {
126 #address-cells = <1>;
130 usb_ohci_port: port@1 {
132 #trigger-source-cells = <0>;
137 #address-cells = <1>;
141 usb_ehci_port: port@1 {
143 #trigger-source-cells = <0>;
151 compatible = "pci168c,0029";
152 reg = <0x8800 0 0 0 0>;
157 /* all WNDR3700 variants have four antennae dedicated
158 * to the 2.4GHz radio. Two antennae are available for
159 * each chain. The following configuration is the
160 * default setting which taken from the vendor's wifi
161 * code for that radio.
163 * All possible options [GPIO6,GPIO7,GPIO8,GPIO9]:
164 * [0,1,0,1], [0,1,1,0], [1,0,0,1], [1,0,1,0]
168 line-name = "fixed antenna group 1";
169 gpios = <6 GPIO_ACTIVE_LOW>,
170 <7 GPIO_ACTIVE_HIGH>,
172 <9 GPIO_ACTIVE_HIGH>;
178 compatible = "pci168c,0029";
179 reg = <0x9000 0 0 0 0>;
190 compatible = "jedec,spi-nor";
192 spi-max-frequency = <25000000>;
194 partitions: partitions {
195 compatible = "fixed-partitions";
196 #address-cells = <1>;
205 pll-data = <0x11110000 0x00001099 0x00991099>;
216 pll-data = <0x11110000 0x00001099 0x00991099>;
218 phy-handle = <&phy4>;