ath79: update WA/XC devices UBNT_VERSION to 8.7.4
[openwrt/staging/wigyori.git] / target / linux / ath79 / dts / qca9531_letv_lba-047-ch.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 #include <dt-bindings/mtd/partitions/uimage.h>
9
10 / {
11 model = "Letv LBA-047-CH";
12 compatible = "letv,lba-047-ch", "qca,qca9531";
13
14 aliases {
15 label-mac-device = &eth0;
16 led-boot = &led_status_red;
17 led-failsafe = &led_status_blue;
18 led-running = &led_status_green;
19 led-upgrade = &led_status_blue;
20 };
21
22 keys {
23 compatible = "gpio-keys";
24
25 reset {
26 label = "reset";
27 linux,code = <KEY_RESTART>;
28 gpios = <&gpio 17 GPIO_ACTIVE_LOW>;
29 };
30 };
31
32 leds {
33 compatible = "gpio-leds";
34
35 led_status_blue: led-0 {
36 color = <LED_COLOR_ID_BLUE>;
37 function = LED_FUNCTION_STATUS;
38 gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
39 };
40
41 led_status_green: led-1 {
42 color = <LED_COLOR_ID_GREEN>;
43 function = LED_FUNCTION_STATUS;
44 gpios = <&gpio 4 GPIO_ACTIVE_LOW>;
45 };
46
47 led_status_red: led-2 {
48 color = <LED_COLOR_ID_RED>;
49 function = LED_FUNCTION_STATUS;
50 gpios = <&gpio 11 GPIO_ACTIVE_LOW>;
51 };
52 };
53
54 virtual_flash {
55 compatible = "mtd-concat";
56 devices = <&fwconcat0 &fwconcat1>;
57
58 partitions {
59 compatible = "fixed-partitions";
60 #address-cells = <1>;
61 #size-cells = <1>;
62
63 partition@0 {
64 reg = <0x0 0x0>;
65 label = "firmware";
66 compatible = "openwrt,uimage", "denx,uimage";
67 openwrt,ih-magic = <IH_MAGIC_OKLI>;
68 };
69 };
70 };
71 };
72
73 &spi {
74 status = "okay";
75
76 flash@0 {
77 compatible = "jedec,spi-nor";
78 reg = <0>;
79 spi-max-frequency = <30000000>;
80 m25p,fast-read;
81
82 partitions {
83 compatible = "fixed-partitions";
84 #address-cells = <1>;
85 #size-cells = <1>;
86
87 partition@0 {
88 label = "u-boot";
89 reg = <0x0 0x40000>;
90 read-only;
91 };
92
93 partition@40000 {
94 label = "u-boot-env";
95 reg = <0x40000 0x10000>;
96 read-only;
97 };
98
99 fwconcat0: partition@50000 {
100 label = "fwconcat0";
101 reg = <0x50000 0xe30000>;
102 };
103
104 partition@e80000 {
105 label = "loader";
106 reg = <0xe80000 0x10000>;
107 };
108
109 fwconcat1: partition@e90000 {
110 label = "fwconcat1";
111 reg = <0xe90000 0x160000>;
112 };
113
114 partition@ff0000 {
115 label = "art";
116 reg = <0xff0000 0x10000>;
117 read-only;
118
119 nvmem-layout {
120 compatible = "fixed-layout";
121 #address-cells = <1>;
122 #size-cells = <1>;
123
124 macaddr_art_0: macaddr@0 {
125 reg = <0x0 0x6>;
126 };
127
128 macaddr_art_6: macaddr@6 {
129 reg = <0x6 0x6>;
130 };
131
132 cal_art_1000: calibration@1000 {
133 reg = <0x1000 0x440>;
134 };
135 };
136 };
137 };
138 };
139 };
140
141 &eth0 {
142 status = "okay";
143
144 phy-handle = <&swphy4>;
145
146 nvmem-cells = <&macaddr_art_0>;
147 nvmem-cell-names = "mac-address";
148 };
149
150 &eth1 {
151 compatible = "qca,qca9530-eth", "syscon", "simple-mfd";
152
153 nvmem-cells = <&macaddr_art_6>;
154 nvmem-cell-names = "mac-address";
155 };
156
157 &wmac {
158 status = "okay";
159
160 nvmem-cells = <&cal_art_1000>;
161 nvmem-cell-names = "calibration";
162 };