ath79: remove model name from LED labels
[openwrt/staging/hauke.git] / target / linux / ath79 / dts / qca9531_yuncore_a770.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
8 / {
9 model = "YunCore A770";
10 compatible = "yuncore,a770", "qca,qca9531";
11
12 aliases {
13 led-boot = &led_status;
14 led-failsafe = &led_status;
15 led-running = &led_status;
16 led-upgrade = &led_status;
17 };
18
19 keys {
20 compatible = "gpio-keys";
21
22 reset {
23 label = "reset";
24 linux,code = <KEY_RESTART>;
25 gpios = <&gpio 17 GPIO_ACTIVE_LOW>;
26 debounce-interval = <60>;
27 };
28 };
29
30 leds {
31 compatible = "gpio-leds";
32
33 lan {
34 label = "green:lan";
35 gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
36 };
37
38 led_status: status {
39 label = "green:status";
40 gpios = <&gpio 12 GPIO_ACTIVE_LOW>;
41 default-state = "keep";
42 };
43
44 wan {
45 label = "green:wan";
46 gpios = <&gpio 4 GPIO_ACTIVE_LOW>;
47 };
48
49 wlan2g {
50 label = "red:wlan2g";
51 gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
52 linux,default-trigger = "phy1tpt";
53 };
54 };
55 };
56
57 &spi {
58 status = "okay";
59
60 num-cs = <1>;
61
62 flash@0 {
63 compatible = "jedec,spi-nor";
64 reg = <0>;
65 spi-max-frequency = <25000000>;
66
67 partitions {
68 compatible = "fixed-partitions";
69 #address-cells = <1>;
70 #size-cells = <1>;
71
72 partition@0 {
73 label = "u-boot";
74 reg = <0x000000 0x040000>;
75 read-only;
76 };
77
78 partition@40000 {
79 label = "u-boot-env";
80 reg = <0x040000 0x010000>;
81 };
82
83 partition@50000 {
84 compatible = "denx,uimage";
85 label = "firmware";
86 reg = <0x050000 0xfa0000>;
87 };
88
89 art: partition@ff0000 {
90 label = "art";
91 reg = <0xff0000 0x010000>;
92 read-only;
93 };
94 };
95 };
96 };
97
98 &uart {
99 status = "okay";
100 };
101
102 &eth0 {
103 status = "okay";
104
105 phy-handle = <&swphy4>;
106
107 mtd-mac-address = <&art 0x0>;
108 };
109
110 &eth1 {
111 mtd-mac-address = <&art 0x6>;
112 };
113
114 &pcie0 {
115 status = "okay";
116 };
117
118 &wmac {
119 status = "okay";
120
121 mtd-cal-data = <&art 0x1000>;
122 };