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>
9 model = "HiWiFi HC6361";
10 compatible = "hiwifi,hc6361", "qca,ar9331";
14 led-boot = &led_system;
15 led-failsafe = &led_system;
16 led-running = &led_system;
17 led-upgrade = &led_system;
21 compatible = "gpio-keys";
25 linux,code = <KEY_RESTART>;
26 gpios = <&gpio 11 GPIO_ACTIVE_LOW>;
27 debounce-interval = <60>;
32 compatible = "gpio-leds";
35 label = "blue:system";
36 gpios = <&gpio 1 GPIO_ACTIVE_LOW>;
41 gpios = <&gpio 0 GPIO_ACTIVE_LOW>;
45 gpios = <&gpio 27 GPIO_ACTIVE_LOW>;
49 reg_usb_vbus: regulator {
50 compatible = "regulator-fixed";
51 regulator-name = "usb_vbus";
52 regulator-min-microvolt = <5000000>;
53 regulator-max-microvolt = <5000000>;
55 gpio = <&gpio 20 GPIO_ACTIVE_HIGH>;
64 compatible = "jedec,spi-nor";
66 spi-max-frequency = <25000000>;
69 compatible = "fixed-partitions";
79 bdinfo: partition@10000 {
80 reg = <0x10000 0x10000>;
85 compatible = "fixed-layout";
89 macaddr_bdinfo_18a: macaddr@18a {
90 compatible = "mac-base";
92 #nvmem-cell-cells = <1>;
97 firmware: partition@20000 {
98 compatible = "denx,uimage";
99 reg = <0x20000 0xfc0000>;
103 backup: partition@fe0000 {
104 reg = <0xfe0000 0x10000>;
109 art: partition@ff0000 {
110 reg = <0xff0000 0x10000>;
129 vbus-supply = <®_usb_vbus>;
139 nvmem-cells = <&macaddr_bdinfo_18a 1>;
140 nvmem-cell-names = "mac-address";
146 nvmem-cells = <&macaddr_bdinfo_18a 0>;
147 nvmem-cell-names = "mac-address";
152 mtd-cal-data = <&art 0x1000>;
154 nvmem-cells = <&macaddr_bdinfo_18a 2>;
155 nvmem-cell-names = "mac-address";