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 bootargs = "console=ttyS0,115200n8";
16 led-boot = &led_power_amber;
17 led-failsafe = &led_power_amber;
18 led-running = &led_power_green;
19 led-upgrade = &led_power_amber;
20 label-mac-device = ð0;
24 compatible = "gpio-keys";
28 linux,code = <KEY_WPS_BUTTON>;
29 gpios = <&gpio 12 GPIO_ACTIVE_LOW>;
34 linux,code = <KEY_RESTART>;
35 gpios = <&gpio 21 GPIO_ACTIVE_LOW>;
40 linux,code = <KEY_RFKILL>;
41 gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
46 compatible = "gpio-leds";
48 pinctrl-names = "default";
49 pinctrl-0 = <&enable_gpio_11>;
51 led_power_green: power_green {
52 function = LED_FUNCTION_POWER;
53 color = <LED_COLOR_ID_GREEN>;
54 gpios = <&gpio 0 GPIO_ACTIVE_LOW>;
57 led_power_amber: power_amber {
58 function = LED_FUNCTION_POWER;
59 color = <LED_COLOR_ID_AMBER>;
60 gpios = <&gpio 2 GPIO_ACTIVE_LOW>;
61 default-state = "keep";
65 label = "green:wlan2g";
66 gpios = <&gpio 11 GPIO_ACTIVE_LOW>;
67 linux,default-trigger = "phy0tpt";
71 label = "blue:wlan5g";
72 gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
73 linux,default-trigger = "phy1tpt";
77 function = LED_FUNCTION_WPS;
78 color = <LED_COLOR_ID_GREEN>;
79 gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
83 function = LED_FUNCTION_WPS;
84 color = <LED_COLOR_ID_AMBER>;
85 gpios = <&gpio 17 GPIO_ACTIVE_LOW>;
90 compatible = "mtd-concat";
91 devices = <&ubiconcat0 &ubiconcat1>;
94 compatible = "fixed-partitions";
100 reg = <0x0 0x7500000>;
107 enable_gpio_11: pinmux_enable_gpio_11 {
108 pinctrl-single,bits = <0x8 0x0 0xff000000>;
116 compatible = "fixed-partitions";
117 #address-cells = <1>;
127 label = "u-boot-env";
128 reg = <0x40000 0x40000>;
131 caldata: partition@80000 {
133 reg = <0x80000 0x40000>;
137 compatible = "fixed-layout";
138 #address-cells = <1>;
141 macaddr_caldata_0: macaddr@0 {
145 macaddr_caldata_c: macaddr@c {
149 cal_art_1000: cal@1000 {
150 reg = <0x1000 0x440>;
153 cal_art_5000: cal@5000 {
154 reg = <0x5000 0x440>;
161 reg = <0xc0000 0x80000>;
166 reg = <0x140000 0x200000>;
171 reg = <0x340000 0x80000>;
175 label = "traffic_meter";
176 reg = <0x3c0000 0x300000>;
181 reg = <0x6c0000 0x1900000>;
183 compatible = "fixed-partitions";
184 #address-cells = <1>;
189 reg = <0x0 0x400000>;
192 ubiconcat0: partition@400000 {
193 label = "ubiconcat0";
194 reg = <0x400000 0x1500000>;
199 label = "caldata_backup";
200 reg = <0x1fc0000 0x40000>;
204 ubiconcat1: partition@2000000 {
205 label = "ubiconcat1";
206 reg = <0x2000000 0x6000000>;
212 clock-frequency = <40000000>;
216 resets = <&rst 8>, <&rst 12>;
217 reset-names = "switch", "switch-analog";
223 phy0: ethernet-phy@0 {
226 qca,mib-poll-interval = <500>;
228 qca,ar8327-initvals = <
245 /* default for ar934x, except for 1000M */
246 pll-data = <0x06000000 0x00000101 0x00001616>;
248 nvmem-cells = <&macaddr_caldata_0>;
249 nvmem-cell-names = "mac-address";
252 phy-handle = <&phy0>;
258 line-name = "netgear:ext:lna0";
259 gpios = <18 GPIO_ACTIVE_HIGH>;
265 line-name = "netgear:ext:lna1";
266 gpios = <19 GPIO_ACTIVE_HIGH>;
274 nvmem-cells = <&macaddr_caldata_0>, <&cal_art_1000>;
275 nvmem-cell-names = "mac-address", "calibration";
282 compatible = "pci168c,0033";
283 reg = <0x0000 0 0 0 0>;
284 nvmem-cells = <&macaddr_caldata_c>, <&cal_art_5000>;
285 nvmem-cell-names = "mac-address", "calibration";