ath79: add support for Compex WPJ531 (16M)
[openwrt/staging/dedeckeh.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 &eth0 {
59 status = "okay";
60
61 phy-handle = <&swphy4>;
62 mtd-mac-address = <&art 0x0>;
63 };
64
65 &eth1 {
66 mtd-mac-address = <&art 0x6>;
67 };
68
69 &pcie0 {
70 status = "okay";
71 };
72
73 &spi {
74 status = "okay";
75
76 num-cs = <1>;
77
78 flash@0 {
79 compatible = "jedec,spi-nor";
80 reg = <0>;
81 spi-max-frequency = <25000000>;
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 = <0x000000 0x040000>;
91 read-only;
92 };
93
94 partition@40000 {
95 label = "u-boot-env";
96 reg = <0x040000 0x010000>;
97 };
98
99 partition@50000 {
100 compatible = "denx,uimage";
101 label = "firmware";
102 reg = <0x050000 0xfa0000>;
103 };
104
105 art: partition@ff0000 {
106 label = "art";
107 reg = <0xff0000 0x010000>;
108 read-only;
109 };
110 };
111 };
112 };
113
114 &uart {
115 status = "okay";
116 };
117
118 &wmac {
119 status = "okay";
120
121 mtd-cal-data = <&art 0x1000>;
122 };