ath79: small wr1043nd-v4 fixes
[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         chosen {
10                 bootargs = "console=ttyS0,115200n8";
11         };
12
13         leds {
14                 compatible = "gpio-leds";
15
16                 wifi_ac {
17                         label = "ubnt:white:dome";
18                         gpios = <&gpio 7 GPIO_ACTIVE_LOW>;
19                         default-state = "off";
20                         linux,default-trigger = "phy0tpt";
21                 };
22
23                 wifi_n {
24                         label = "ubnt:blue:dome";
25                         gpios = <&gpio 8 GPIO_ACTIVE_LOW>;
26                         default-state = "off";
27                         linux,default-trigger = "phy1tpt";
28                 };
29
30         };
31
32         keys {
33                 compatible = "gpio-keys";
34                 #address-cells = <1>;
35                 #size-cells = <0>;
36
37                 reset {
38                         label = "Reset button";
39                         linux,code = <KEY_RESTART>;
40                         gpios = <&gpio 2 GPIO_ACTIVE_LOW>;
41                         debounce-interval = <60>;
42                 };
43         };
44 };
45
46 &uart {
47         status = "okay";
48 };
49
50 &gpio {
51         status = "okay";
52 };
53
54 &pcie {
55         status = "okay";
56 };
57
58 &spi {
59         status = "okay";
60         num-cs = <1>;
61
62         flash@0 {
63                 #address-cells = <1>;
64                 #size-cells = <1>;
65                 compatible = "jedec,spi-nor";
66                 reg = <0>;
67                 spi-max-frequency = <25000000>;
68
69                 partitions {
70                         compatible = "fixed-partitions";
71                         #address-cells = <1>;
72                         #size-cells = <1>;
73
74                         partition@0 {
75                                 label = "u-boot";
76                                 reg = <0x000000 0x060000>;
77                                 read-only;
78                         };
79
80                         partition@60000 {
81                                 label = "u-boot-env";
82                                 reg = <0x060000 0x010000>;
83                                 read-only;
84                         };
85
86                         partition@70000 {
87                                 label = "firmware";
88                                 reg = <0x070000 0x790000>;
89                         };
90
91                         partition@800000 {
92                                 label = "ubnt-airos";
93                                 reg = <0x800000 0x790000>;
94                                 read-only;
95                         };
96
97                         partition@f90000 {
98                                 label = "bs";
99                                 reg = <0xf90000 0x020000>;
100                                 read-only;
101                         };
102
103                         partition@fb0000 {
104                                 label = "cfg";
105                                 reg = <0xfb0000 0x040000>;
106                                 read-only;
107                         };
108
109                         eeprom: partition@ff0000 {
110                                 label = "EEPROM";
111                                 reg = <0xff0000 0x010000>;
112                                 read-only;
113                         };
114                 };
115         };
116 };
117
118 &wmac {
119         status = "okay";
120         mtd-cal-data = <&eeprom 0x1000>;
121         mtd-mac-address = <&eeprom 0x0>;
122 };