ath79: add Embedded Wireless Balin Platform
[openwrt/openwrt.git] / target / linux / ath79 / dts / qca9563_ubnt_unifiac.dtsi
1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2
3 #include "qca956x.dtsi"
4
5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/input.h>
7
8 / {
9 aliases {
10 led-boot = &led_white;
11 led-failsafe = &led_white;
12 led-running = &led_blue;
13 led-upgrade = &led_blue;
14 };
15
16 leds {
17 compatible = "gpio-leds";
18
19 led_white: led_white {
20 label = "white:dome";
21 gpios = <&gpio 7 GPIO_ACTIVE_HIGH>;
22 };
23
24 led_blue: led_blue {
25 label = "blue:dome";
26 gpios = <&gpio 8 GPIO_ACTIVE_HIGH>;
27 };
28 };
29
30 keys {
31 compatible = "gpio-keys";
32
33 reset {
34 label = "Reset button";
35 linux,code = <KEY_RESTART>;
36 gpios = <&gpio 2 GPIO_ACTIVE_LOW>;
37 debounce-interval = <60>;
38 };
39 };
40 };
41
42 &pcie {
43 status = "okay";
44 };
45
46 &spi {
47 status = "okay";
48
49 flash@0 {
50 compatible = "jedec,spi-nor";
51 reg = <0>;
52 spi-max-frequency = <25000000>;
53
54 partitions {
55 compatible = "fixed-partitions";
56 #address-cells = <1>;
57 #size-cells = <1>;
58
59 partition@0 {
60 label = "u-boot";
61 reg = <0x000000 0x060000>;
62 read-only;
63 };
64
65 partition@60000 {
66 label = "u-boot-env";
67 reg = <0x060000 0x010000>;
68 read-only;
69 };
70
71 partition@70000 {
72 label = "firmware";
73 reg = <0x070000 0x790000>;
74 compatible = "denx,uimage";
75 };
76
77 partition@800000 {
78 label = "kernel1";
79 reg = <0x800000 0x790000>;
80 read-only;
81 };
82
83 partition@f90000 {
84 label = "bs";
85 reg = <0xf90000 0x020000>;
86 };
87
88 partition@fb0000 {
89 label = "cfg";
90 reg = <0xfb0000 0x040000>;
91 read-only;
92 };
93
94 art: partition@ff0000 {
95 label = "art";
96 reg = <0xff0000 0x010000>;
97 read-only;
98 };
99 };
100 };
101 };
102
103 &wmac {
104 status = "okay";
105
106 mtd-cal-data = <&art 0x1000>;
107 };
108
109 &art {
110 compatible = "nvmem-cells";
111 #address-cells = <1>;
112 #size-cells = <1>;
113
114 macaddr_art_0: macaddr@0 {
115 reg = <0x0 0x6>;
116 };
117 };