ath79: update WA/XC devices UBNT_VERSION to 8.7.4
[openwrt/staging/wigyori.git] / target / linux / ath79 / dts / qca9531_alcatel_hh40v.dts
1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2
3 #include "qca953x.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 compatible = "alcatel,hh40v", "qca,qca9531";
11 model = "Alcatel HH40V";
12
13 aliases {
14 label-mac-device = &wmac;
15 led-boot = &led_lan_link;
16 led-failsafe = &led_lan_link;
17 led-upgrade = &led_lan_link;
18 };
19
20 keys {
21 compatible = "gpio-keys";
22
23 reset {
24 label = "reset";
25 linux,code = <KEY_RESTART>;
26 gpios = <&gpio 17 GPIO_ACTIVE_LOW>;
27 };
28
29 wps {
30 label = "wps";
31 linux,code = <KEY_WPS_BUTTON>;
32 gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
33 };
34
35 };
36
37 leds {
38 compatible = "gpio-leds";
39
40 pinctrl-names = "default";
41 pinctrl-0 = <&jtag_disable_pins>;
42
43 lan_active {
44 function = LED_FUNCTION_LAN;
45 color = <LED_COLOR_ID_GREEN>;
46 gpios = <&gpio 11 GPIO_ACTIVE_LOW>;
47 };
48
49 led_lan_link: lan_link {
50 function = LED_FUNCTION_LAN;
51 color = <LED_COLOR_ID_ORANGE>;
52 gpios = <&gpio 12 GPIO_ACTIVE_LOW>;
53 };
54
55 wan_active {
56 function = LED_FUNCTION_WAN;
57 color = <LED_COLOR_ID_GREEN>;
58 gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
59 };
60
61 wan_link {
62 function = LED_FUNCTION_WAN;
63 color = <LED_COLOR_ID_ORANGE>;
64 gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
65 };
66
67 wifi {
68 label = "blue:wifi";
69 gpios = <&gpio 0 GPIO_ACTIVE_HIGH>;
70 linux,default-trigger = "phy0tpt";
71 };
72 };
73 };
74
75 &usb0 {
76 status = "okay";
77
78 dr_mode = "host";
79 };
80
81 &usb_phy {
82 status = "okay";
83 };
84
85 &spi {
86 status = "okay";
87
88 /* Winbond W25Q256 SPI flash */
89 flash@0 {
90 compatible = "jedec,spi-nor";
91 reg = <0>;
92 spi-max-frequency = <25000000>;
93
94 partitions {
95 compatible = "fixed-partitions";
96 #address-cells = <1>;
97 #size-cells = <1>;
98
99 partition@0 {
100 label = "u-boot";
101 reg = <0x000000 0x040000>;
102 read-only;
103 };
104
105 partition@40000 {
106 label = "u-boot-env";
107 reg = <0x040000 0x010000>;
108 };
109
110 partition@50000 {
111 label = "oem";
112 reg = <0x050000 0x100000>;
113 read-only;
114 };
115
116 partition@150000 {
117 compatible = "denx,uimage";
118 label = "firmware";
119 reg = <0x150000 0xea0000>;
120 };
121
122 art: partition@ff0000 {
123 label = "art";
124 reg = <0xff0000 0x010000>;
125 read-only;
126
127 nvmem-layout {
128 compatible = "fixed-layout";
129 #address-cells = <1>;
130 #size-cells = <1>;
131
132 cal_art_1000: cal@1000 {
133 reg = <0x1000 0x440>;
134 };
135
136 macaddr_art_0: macaddr@0 {
137 reg = <0x0 0x6>;
138 };
139
140 macaddr_art_6: macaddr@6 {
141 reg = <0x6 0x6>;
142 };
143
144 macaddr_art_1002: macaddr@1002 {
145 reg = <0x1002 0x6>;
146 };
147 };
148 };
149 };
150 };
151 };
152
153 &mdio0 {
154 status = "okay";
155 };
156
157
158 &eth0 {
159 status = "okay";
160
161 nvmem-cells = <&macaddr_art_0>;
162 nvmem-cell-names = "mac-address";
163
164 phy-handle = <&swphy4>;
165 };
166
167 &eth1 {
168 compatible = "qca,qca9530-eth", "syscon", "simple-mfd";
169
170 nvmem-cells = <&macaddr_art_6>;
171 nvmem-cell-names = "mac-address";
172 };
173
174 &wmac {
175 status = "okay";
176
177 nvmem-cells = <&cal_art_1000>, <&macaddr_art_1002>;
178 nvmem-cell-names = "calibration", "mac-address";
179 };