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