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