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>
10 model = "HiWiFi HC6361";
11 compatible = "hiwifi,hc6361", "qca,ar9331";
15 led-boot = &led_system;
16 led-failsafe = &led_system;
17 led-running = &led_system;
18 led-upgrade = &led_system;
22 compatible = "gpio-keys";
26 linux,code = <KEY_RESTART>;
27 gpios = <&gpio 11 GPIO_ACTIVE_LOW>;
28 debounce-interval = <60>;
33 compatible = "gpio-leds";
36 label = "blue:system";
37 gpios = <&gpio 1 GPIO_ACTIVE_LOW>;
41 function = LED_FUNCTION_WLAN;
42 color = <LED_COLOR_ID_BLUE>;
43 gpios = <&gpio 0 GPIO_ACTIVE_LOW>;
46 function = LED_FUNCTION_WAN;
47 color = <LED_COLOR_ID_BLUE>;
48 gpios = <&gpio 27 GPIO_ACTIVE_LOW>;
52 reg_usb_vbus: regulator {
53 compatible = "regulator-fixed";
54 regulator-name = "usb_vbus";
55 regulator-min-microvolt = <5000000>;
56 regulator-max-microvolt = <5000000>;
58 gpios = <&gpio 20 GPIO_ACTIVE_HIGH>;
67 compatible = "jedec,spi-nor";
69 spi-max-frequency = <25000000>;
72 compatible = "fixed-partitions";
82 bdinfo: partition@10000 {
83 reg = <0x10000 0x10000>;
88 compatible = "fixed-layout";
92 macaddr_bdinfo_18a: macaddr@18a {
93 compatible = "mac-base";
95 #nvmem-cell-cells = <1>;
100 firmware: partition@20000 {
101 compatible = "denx,uimage";
102 reg = <0x20000 0xfc0000>;
106 backup: partition@fe0000 {
107 reg = <0xfe0000 0x10000>;
112 art: partition@ff0000 {
113 reg = <0xff0000 0x10000>;
132 vbus-supply = <®_usb_vbus>;
142 nvmem-cells = <&macaddr_bdinfo_18a 1>;
143 nvmem-cell-names = "mac-address";
149 nvmem-cells = <&macaddr_bdinfo_18a 0>;
150 nvmem-cell-names = "mac-address";
155 mtd-cal-data = <&art 0x1000>;
157 nvmem-cells = <&macaddr_bdinfo_18a 2>;
158 nvmem-cell-names = "mac-address";