ath79: ar: convert to mac-base
[openwrt/staging/hauke.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 nvmem-layout {
84 compatible = "fixed-layout";
85 #address-cells = <1>;
86 #size-cells = <1>;
87
88 macaddr_art_0: macaddr@0 {
89 reg = <0x0 0x6>;
90 };
91
92 macaddr_art_6: macaddr@6 {
93 reg = <0x6 0x6>;
94 };
95 };
96 };
97 };
98 };
99 };
100
101 &eth0 {
102 status = "okay";
103
104 phy-handle = <&swphy4>;
105
106 nvmem-cells = <&macaddr_art_0>;
107 nvmem-cell-names = "mac-address";
108 };
109
110 &eth1 {
111 nvmem-cells = <&macaddr_art_6>;
112 nvmem-cell-names = "mac-address";
113 };
114
115 &wmac {
116 status = "okay";
117 mtd-cal-data = <&art 0x1000>;
118 };