1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
4 #include <dt-bindings/gpio/gpio.h>
5 #include <dt-bindings/input/input.h>
10 compatible = "dlink,dir-825-b1", "qca,ar7161";
11 model = "D-Link DIR825B1";
14 led-boot = &orange_power;
15 led-failsafe = &orange_power;
16 led-running = &blue_power;
17 led-upgrade = &orange_power;
21 bootargs = "console=ttyS0,115200";
25 compatible = "fixed-clock";
27 clock-output-names = "ref";
28 clock-frequency = <40000000>;
32 compatible = "gpio-leds";
34 label = "d-link:blue:usb";
35 gpios = <&gpio 0 GPIO_ACTIVE_LOW>;
36 default-state = "off";
37 trigger-sources = <&usb_ochi_port>, <&usb_echi_port>;
38 linux,default-trigger = "usbport";
41 orange_power: orange_power {
42 label = "d-link:orange:power";
43 gpios = <&gpio 1 GPIO_ACTIVE_LOW>;
47 blue_power: blue_power {
48 label = "d-link:blue:power";
49 gpios = <&gpio 2 GPIO_ACTIVE_LOW>;
50 default-state = "off";
54 label = "d-link:blue:wps";
55 gpios = <&gpio 4 GPIO_ACTIVE_LOW>;
56 default-state = "off";
60 label = "d-link:orange:planet";
61 gpios = <&gpio 6 GPIO_ACTIVE_LOW>;
62 default-state = "off";
66 label = "d-link:blue:planet";
67 gpios = <&gpio 11 GPIO_ACTIVE_LOW>;
68 default-state = "off";
73 compatible = "gpio-leds";
76 label = "d-link:blue:wlan2g";
77 gpios = <&ath9k0 5 GPIO_ACTIVE_LOW>;
78 default-state = "off";
79 linux,default-trigger = "phy0tpt";
83 label = "d-link:blue:wlan5g";
84 gpios = <&ath9k1 5 GPIO_ACTIVE_LOW>;
85 default-state = "off";
86 linux,default-trigger = "phy1tpt";
91 compatible = "gpio-keys-polled";
96 linux,code = <KEY_RESTART>;
97 gpios = <&gpio 3 GPIO_ACTIVE_LOW>;
98 debounce-interval = <60>;
103 linux,code = <KEY_WPS_BUTTON>;
104 gpios = <&gpio 8 GPIO_ACTIVE_LOW>;
105 debounce-interval = <60>;
110 compatible = "realtek,rtl8366s";
111 gpio-sda = <&gpio 5 GPIO_ACTIVE_HIGH>;
112 gpio-sck = <&gpio 7 GPIO_ACTIVE_HIGH>;
113 realtek,initvals = <0x06 0x0108>;
116 #address-cells = <1>;
122 phy4: ethernet-phy@4 {
132 #address-cells = <1>;
136 usb_ochi_port: port@1 {
138 #trigger-source-cells = <0>;
143 #address-cells = <1>;
147 usb_echi_port: port@1 {
149 #trigger-source-cells = <0>;
161 compatible = "pci168c,0029";
162 reg = <0x8800 0 0 0 0>;
169 compatible = "pci168c,0029";
170 reg = <0x9000 0 0 0 0>;
190 compatible = "jedec,spi-nor";
192 spi-max-frequency = <25000000>;
195 compatible = "fixed-partitions";
196 #address-cells = <1>;
201 reg = <0x000000 0x040000>;
207 reg = <0x040000 0x010000>;
213 reg = <0x050000 0x610000>;
216 caldata: partition@60000 {
218 reg = <0x660000 0x010000>;
224 reg = <0x670000 0x190000>;
234 pll-data = <0x11110000 0x00001099 0x00991099>;
244 pll-data = <0x11110000 0x00001099 0x00991099>;
246 phy-handle = <&phy4>;