1 // SPDX-License-Identifier: GPL-2.0-only
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/leds/leds-pca955x.h>
11 model = "Netgear PGZNG1";
12 compatible = "netgear,pgzng1", "qca,ar9344";
15 led-boot = &led_power_green;
16 led-failsafe = &led_power_red;
17 led-running = &led_power_green;
18 led-upgrade = &led_power_green;
19 label-mac-device = ð0;
23 bootargs = "console=ttyS0,115200";
27 compatible = "gpio-keys";
30 label = "Reset button";
31 linux,code = <KEY_RESTART>;
32 gpios = <&gpio 11 GPIO_ACTIVE_LOW>;
33 debounce-interval = <60>;
38 compatible = "i2c-gpio";
39 sda-gpios = <&gpio 14 (GPIO_ACTIVE_HIGH|GPIO_OPEN_DRAIN)>;
40 scl-gpios = <&gpio 13 (GPIO_ACTIVE_HIGH|GPIO_OPEN_DRAIN)>;
44 expander0: pca9551@60 {
45 compatible = "nxp,pca9551";
50 led_power_green: led@0 {
52 color = <LED_COLOR_ID_GREEN>;
53 function = LED_FUNCTION_BOOT;
54 type = <PCA955X_TYPE_LED>;
55 chan-name = "green:boot";
58 led_power_red: led@1 {
60 color = <LED_COLOR_ID_RED>;
61 function = LED_FUNCTION_BOOT;
62 type = <PCA955X_TYPE_LED>;
63 chan-name = "red:boot";
68 color = <LED_COLOR_ID_GREEN>;
69 function = LED_FUNCTION_WAN;
70 function-enumerator = <1>;
71 type = <PCA955X_TYPE_LED>;
76 color = <LED_COLOR_ID_RED>;
77 function = LED_FUNCTION_WAN;
78 type = <PCA955X_TYPE_LED>;
83 color = <LED_COLOR_ID_GREEN>;
84 function = LED_FUNCTION_WLAN;
85 type = <PCA955X_TYPE_LED>;
90 color = <LED_COLOR_ID_RED>;
91 function = LED_FUNCTION_WLAN;
92 type = <PCA955X_TYPE_LED>;
97 color = <LED_COLOR_ID_GREEN>;
98 function = LED_FUNCTION_INDICATOR;
99 type = <PCA955X_TYPE_LED>;
104 color = <LED_COLOR_ID_RED>;
105 function = LED_FUNCTION_INDICATOR;
106 type = <PCA955X_TYPE_LED>;
110 expander1: pca9551@61 {
111 compatible = "nxp,pca9551";
113 #address-cells = <1>;
119 /* zwave_rst - Resets ZWave */
122 type = <PCA955X_TYPE_GPIO>;
125 /* em_rst - Unknown */
128 type = <PCA955X_TYPE_GPIO>;
131 /* tp34 - Test point on PCB? */
134 type = <PCA955X_TYPE_GPIO>;
137 /* sw_rst - resets SoC */
140 type = <PCA955X_TYPE_GPIO>;
145 compatible = "isil,isl1208";
151 compatible = "gpio-leds";
154 color = <LED_COLOR_ID_GREEN>;
155 function = LED_FUNCTION_LAN;
156 gpios = <&gpio 0 GPIO_ACTIVE_HIGH>;
160 color = <LED_COLOR_ID_AMBER>;
161 function = LED_FUNCTION_LAN;
162 gpios = <&gpio 1 GPIO_ACTIVE_LOW>;
166 color = <LED_COLOR_ID_GREEN>;
167 function = LED_FUNCTION_WAN;
168 function-enumerator = <0>;
169 gpios = <&gpio 2 GPIO_ACTIVE_HIGH>;
173 color = <LED_COLOR_ID_AMBER>;
174 function = LED_FUNCTION_WAN;
175 gpios = <&gpio 3 GPIO_ACTIVE_LOW>;
182 phy-handle = <&swphy0>;
184 nvmem-cells = <&macaddr_caldata_6>;
185 nvmem-cell-names = "mac-address";
190 phy-handle = <&swphy4>;
192 nvmem-cells = <&macaddr_caldata_0>;
193 nvmem-cell-names = "mac-address";
197 switch-phy-swap = <1>;
198 switch-only-mode = <1>;
205 line-name = "ext:lna0";
206 gpios = <18 GPIO_ACTIVE_HIGH>;
212 line-name = "ext:lna1";
213 gpios = <19 GPIO_ACTIVE_HIGH>;
219 line-name = "power:rs422";
220 gpios = <20 GPIO_ACTIVE_HIGH>;
229 compatible = "fixed-partitions";
230 #address-cells = <1>;
240 label = "u-boot-env";
241 reg = <0x40000 0x40000>;
245 /* factory kernel used to be reg = <0x80000 0x200000> */
248 reg = <0x80000 0x500000>;
251 /* factory rootfs used to be reg = <0x280000 0x5000000> */
254 reg = <0x580000 0x4d00000>;
259 reg = <0x5280000 0x200000>;
264 label = "rootfs_bak";
265 reg = <0x5480000 0x5000000>;
271 reg = <0xa480000 0x1400000>;
277 reg = <0xb880000 0x4700000>;
283 reg = <0xff80000 0x60000>;
287 caldata: partition@ffe0000 {
289 reg = <0xffe0000 0x20000>;
293 compatible = "fixed-layout";
294 #address-cells = <1>;
297 macaddr_caldata_0: macaddr@0 {
301 macaddr_caldata_6: macaddr@6 {
305 cal_caldata_1000: cal@1000 {
306 reg = <0x1000 0x440>;
314 clock-frequency = <40000000>;
317 /* zWave is wired up via SPI and UART1 (no idea on pins sadly) */
325 nvmem-cells = <&cal_caldata_1000>;
326 nvmem-cell-names = "calibration";