ipq40xx: only include ath10k-board-qca4019 for the generic subtarget
[openwrt/staging/chunkeey.git] / target / linux / ath79 / dts / qca9533_yuncore_a930.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 compatible = "yuncore,a930", "qca,qca9533";
10 model = "YunCore A930";
11
12 aliases {
13 label-mac-device = &eth1;
14 led-boot = &led_system;
15 led-failsafe = &led_system;
16 led-running = &led_system;
17 led-upgrade = &led_system;
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 led_system: system {
35 label = "green:system";
36 gpios = <&gpio 12 GPIO_ACTIVE_LOW>;
37 default-state = "keep";
38 };
39
40 wlan2g {
41 label = "blue:wlan2g";
42 gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
43 linux,default-trigger = "phy0tpt";
44 };
45 };
46 };
47
48 &spi {
49 status = "okay";
50
51 flash@0 {
52 compatible = "jedec,spi-nor";
53 reg = <0>;
54 spi-max-frequency = <25000000>;
55
56 partitions {
57 compatible = "fixed-partitions";
58 #address-cells = <1>;
59 #size-cells = <1>;
60
61 partition@0 {
62 label = "u-boot";
63 reg = <0x000000 0x040000>;
64 read-only;
65 };
66
67 partition@40000 {
68 label = "u-boot-env";
69 reg = <0x040000 0x010000>;
70 };
71
72 partition@50000 {
73 compatible = "denx,uimage";
74 label = "firmware";
75 reg = <0x050000 0xfa0000>;
76 };
77
78 art: partition@ff0000 {
79 label = "art";
80 reg = <0xff0000 0x010000>;
81 read-only;
82 };
83 };
84 };
85 };
86
87 &eth0 {
88 status = "okay";
89
90 phy-handle = <&swphy4>;
91
92 nvmem-cells = <&macaddr_art_0>;
93 nvmem-cell-names = "mac-address";
94 };
95
96 &eth1 {
97 nvmem-cells = <&macaddr_art_6>;
98 nvmem-cell-names = "mac-address";
99 };
100
101 &wmac {
102 status = "okay";
103 mtd-cal-data = <&art 0x1000>;
104 };
105
106 &art {
107 compatible = "nvmem-cells";
108 #address-cells = <1>;
109 #size-cells = <1>;
110
111 macaddr_art_0: macaddr@0 {
112 reg = <0x0 0x6>;
113 };
114
115 macaddr_art_6: macaddr@6 {
116 reg = <0x6 0x6>;
117 };
118 };