ath79: update WA/XC devices UBNT_VERSION to 8.7.4
[openwrt/staging/wigyori.git] / target / linux / ath79 / dts / ar9331_hiwifi_hc6361.dts
1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2
3 #include "ar9331.dtsi"
4
5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/input.h>
7 #include <dt-bindings/leds/common.h>
8
9 / {
10 model = "HiWiFi HC6361";
11 compatible = "hiwifi,hc6361", "qca,ar9331";
12
13 aliases {
14 serial0 = &uart;
15 led-boot = &led_system;
16 led-failsafe = &led_system;
17 led-running = &led_system;
18 led-upgrade = &led_system;
19 };
20
21 keys {
22 compatible = "gpio-keys";
23
24 reset {
25 label = "reset";
26 linux,code = <KEY_RESTART>;
27 gpios = <&gpio 11 GPIO_ACTIVE_LOW>;
28 debounce-interval = <60>;
29 };
30 };
31
32 leds {
33 compatible = "gpio-leds";
34
35 led_system: system {
36 label = "blue:system";
37 gpios = <&gpio 1 GPIO_ACTIVE_LOW>;
38 default-state = "on";
39 };
40 wlan {
41 function = LED_FUNCTION_WLAN;
42 color = <LED_COLOR_ID_BLUE>;
43 gpios = <&gpio 0 GPIO_ACTIVE_LOW>;
44 };
45 wan {
46 function = LED_FUNCTION_WAN;
47 color = <LED_COLOR_ID_BLUE>;
48 gpios = <&gpio 27 GPIO_ACTIVE_LOW>;
49 };
50 };
51
52 reg_usb_vbus: regulator {
53 compatible = "regulator-fixed";
54 regulator-name = "usb_vbus";
55 regulator-min-microvolt = <5000000>;
56 regulator-max-microvolt = <5000000>;
57 enable-active-high;
58 gpios = <&gpio 20 GPIO_ACTIVE_HIGH>;
59 };
60 };
61
62 &spi {
63 status = "okay";
64 num-cs = <1>;
65
66 flash@0 {
67 compatible = "jedec,spi-nor";
68 reg = <0>;
69 spi-max-frequency = <25000000>;
70
71 partitions {
72 compatible = "fixed-partitions";
73 #address-cells = <1>;
74 #size-cells = <1>;
75
76 uboot: partition@0 {
77 reg = <0x0 0x10000>;
78 label = "u-boot";
79 read-only;
80 };
81
82 bdinfo: partition@10000 {
83 reg = <0x10000 0x10000>;
84 label = "bdinfo";
85 read-only;
86
87 nvmem-layout {
88 compatible = "fixed-layout";
89 #address-cells = <1>;
90 #size-cells = <1>;
91
92 macaddr_bdinfo_18a: macaddr@18a {
93 compatible = "mac-base";
94 reg = <0x18a 0x11>;
95 #nvmem-cell-cells = <1>;
96 };
97 };
98 };
99
100 firmware: partition@20000 {
101 compatible = "denx,uimage";
102 reg = <0x20000 0xfc0000>;
103 label = "firmware";
104 };
105
106 backup: partition@fe0000 {
107 reg = <0xfe0000 0x10000>;
108 label = "backup";
109 read-only;
110 };
111
112 art: partition@ff0000 {
113 reg = <0xff0000 0x10000>;
114 label = "art";
115 read-only;
116 };
117 };
118 };
119 };
120
121 &gpio {
122 status = "okay";
123 };
124
125 &uart {
126 status = "okay";
127 };
128
129 &usb {
130 status = "okay";
131 dr_mode = "host";
132 vbus-supply = <&reg_usb_vbus>;
133 };
134
135 &usb_phy {
136 status = "okay";
137 };
138
139 &eth0 {
140 status = "okay";
141
142 nvmem-cells = <&macaddr_bdinfo_18a 1>;
143 nvmem-cell-names = "mac-address";
144 };
145
146 &eth1 {
147 status = "okay";
148
149 nvmem-cells = <&macaddr_bdinfo_18a 0>;
150 nvmem-cell-names = "mac-address";
151 };
152
153 &wmac {
154 status = "okay";
155 mtd-cal-data = <&art 0x1000>;
156
157 nvmem-cells = <&macaddr_bdinfo_18a 2>;
158 nvmem-cell-names = "mac-address";
159 };