ath79: drop and consolidate redundant chosen/bootargs
[oweals/openwrt.git] / target / linux / ath79 / dts / qca9563_ubnt_unifiac.dtsi
1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2
3 #include <dt-bindings/gpio/gpio.h>
4 #include <dt-bindings/input/input.h>
5
6 #include "qca956x.dtsi"
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 = "ubnt:white:dome";
21                         gpios = <&gpio 7 GPIO_ACTIVE_HIGH>;
22                 };
23
24                 led_blue: led_blue {
25                         label = "ubnt: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 &uart {
43         status = "okay";
44 };
45
46 &gpio {
47         status = "okay";
48 };
49
50 &pcie {
51         status = "okay";
52 };
53
54 &spi {
55         status = "okay";
56         num-cs = <1>;
57
58         flash@0 {
59                 compatible = "jedec,spi-nor";
60                 reg = <0>;
61                 spi-max-frequency = <25000000>;
62
63                 partitions {
64                         compatible = "fixed-partitions";
65                         #address-cells = <1>;
66                         #size-cells = <1>;
67
68                         partition@0 {
69                                 label = "u-boot";
70                                 reg = <0x000000 0x060000>;
71                                 read-only;
72                         };
73
74                         partition@60000 {
75                                 label = "u-boot-env";
76                                 reg = <0x060000 0x010000>;
77                                 read-only;
78                         };
79
80                         partition@70000 {
81                                 label = "firmware";
82                                 reg = <0x070000 0x790000>;
83                                 compatible = "denx,uimage";
84                         };
85
86                         partition@800000 {
87                                 label = "ubnt-airos";
88                                 reg = <0x800000 0x790000>;
89                                 read-only;
90                         };
91
92                         partition@f90000 {
93                                 label = "bs";
94                                 reg = <0xf90000 0x020000>;
95                         };
96
97                         partition@fb0000 {
98                                 label = "cfg";
99                                 reg = <0xfb0000 0x040000>;
100                                 read-only;
101                         };
102
103                         art: partition@ff0000 {
104                                 label = "art";
105                                 reg = <0xff0000 0x010000>;
106                                 read-only;
107                         };
108                 };
109         };
110 };
111
112 &wmac {
113         status = "okay";
114
115         mtd-cal-data = <&art 0x1000>;
116 };