a6738c7d9aa86d9f48d63ced261cd367bd13efa3
[openwrt/openwrt.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 flash@0 {
61 compatible = "jedec,spi-nor";
62 reg = <0>;
63 spi-max-frequency = <25000000>;
64
65 partitions {
66 compatible = "fixed-partitions";
67 #address-cells = <1>;
68 #size-cells = <1>;
69
70 partition@0 {
71 label = "u-boot";
72 reg = <0x000000 0x040000>;
73 read-only;
74 };
75
76 partition@40000 {
77 label = "u-boot-env";
78 reg = <0x040000 0x010000>;
79 };
80
81 partition@50000 {
82 compatible = "denx,uimage";
83 label = "firmware";
84 reg = <0x050000 0xfa0000>;
85 };
86
87 art: partition@ff0000 {
88 label = "art";
89 reg = <0xff0000 0x010000>;
90 read-only;
91 };
92 };
93 };
94 };
95
96 &uart {
97 status = "okay";
98 };
99
100 &eth0 {
101 status = "okay";
102
103 phy-handle = <&swphy4>;
104
105 mtd-mac-address = <&art 0x0>;
106 };
107
108 &eth1 {
109 mtd-mac-address = <&art 0x6>;
110 };
111
112 &pcie0 {
113 status = "okay";
114 };
115
116 &wmac {
117 status = "okay";
118
119 mtd-cal-data = <&art 0x1000>;
120 };