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;
15 label-mac-device = ð0;
19 compatible = "fixed-clock";
21 clock-output-names = "ref";
22 clock-frequency = <40000000>;
26 compatible = "reset-leds";
31 trigger-sources = <&usb_ohci_port>, <&usb_ehci_port>;
32 linux,default-trigger = "usbport";
37 compatible = "gpio-leds";
41 gpios = <&gpio 0 GPIO_ACTIVE_LOW>;
44 led_power_green: power_green {
45 label = "green:power";
46 gpios = <&gpio 2 GPIO_ACTIVE_LOW>;
49 led_power_orange: power_orange {
50 label = "orange:power";
51 gpios = <&gpio 1 GPIO_ACTIVE_LOW>;
57 gpios = <&gpio 4 GPIO_ACTIVE_LOW>;
62 gpios = <&gpio 6 GPIO_ACTIVE_LOW>;
67 compatible = "gpio-leds";
70 label = "green:wlan2g";
71 gpios = <&ath9k0 5 GPIO_ACTIVE_LOW>;
72 linux,default-trigger = "phy0tpt";
75 label = "blue:wlan5g";
76 gpios = <&ath9k1 5 GPIO_ACTIVE_LOW>;
77 linux,default-trigger = "phy1tpt";
82 compatible = "gpio-keys";
86 linux,code = <KEY_WPS_BUTTON>;
87 gpios = <&gpio 3 GPIO_ACTIVE_LOW>;
92 linux,code = <KEY_RESTART>;
93 gpios = <&gpio 8 GPIO_ACTIVE_LOW>;
98 linux,code = <KEY_RFKILL>;
99 gpios = <&gpio 11 GPIO_ACTIVE_LOW>;
104 compatible = "realtek,rtl8366s";
106 gpio-sda = <&gpio 5 GPIO_ACTIVE_HIGH>;
107 gpio-sck = <&gpio 7 GPIO_ACTIVE_HIGH>;
110 #address-cells = <1>;
116 phy4: ethernet-phy@4 {
129 #address-cells = <1>;
133 usb_ohci_port: port@1 {
135 #trigger-source-cells = <0>;
140 #address-cells = <1>;
144 usb_ehci_port: port@1 {
146 #trigger-source-cells = <0>;
154 compatible = "pci168c,0029";
155 reg = <0x8800 0 0 0 0>;
156 mtd-mac-address = <&art 0x0>;
161 /* all WNDR3700 variants have four antennae dedicated
162 * to the 2.4GHz radio. Two antennae are available for
163 * each chain. The following configuration is the
164 * default setting which taken from the vendor's wifi
165 * code for that radio.
167 * All possible options [GPIO6,GPIO7,GPIO8,GPIO9]:
168 * [0,1,0,1], [0,1,1,0], [1,0,0,1], [1,0,1,0]
172 line-name = "fixed antenna group 1";
173 gpios = <6 GPIO_ACTIVE_LOW>,
174 <7 GPIO_ACTIVE_HIGH>,
176 <9 GPIO_ACTIVE_HIGH>;
182 compatible = "pci168c,0029";
183 reg = <0x9000 0 0 0 0>;
184 mtd-mac-address = <&art 0xc>;
199 compatible = "jedec,spi-nor";
201 spi-max-frequency = <25000000>;
203 partitions: partitions {
204 compatible = "fixed-partitions";
205 #address-cells = <1>;
214 pll-data = <0x11110000 0x00001099 0x00991099>;
216 mtd-mac-address = <&art 0x00>;
227 pll-data = <0x11110000 0x00001099 0x00991099>;
229 mtd-mac-address = <&art 0x06>;
231 phy-handle = <&phy4>;