ath79: add support for Netgear WNR1000 v2
[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 <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 chosen {
17 bootargs = "console=ttyS0,115200n8";
18 };
19
20 leds {
21 compatible = "gpio-leds";
22
23 led_white: led_white {
24 label = "ubnt:white:dome";
25 gpios = <&gpio 7 GPIO_ACTIVE_HIGH>;
26 };
27
28 led_blue: led_blue {
29 label = "ubnt:blue:dome";
30 gpios = <&gpio 8 GPIO_ACTIVE_HIGH>;
31 };
32 };
33
34 keys {
35 compatible = "gpio-keys";
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 compatible = "jedec,spi-nor";
64 reg = <0>;
65 spi-max-frequency = <25000000>;
66
67 partitions {
68 compatible = "fixed-partitions";
69 #address-cells = <1>;
70 #size-cells = <1>;
71
72 partition@0 {
73 label = "u-boot";
74 reg = <0x000000 0x060000>;
75 read-only;
76 };
77
78 partition@60000 {
79 label = "u-boot-env";
80 reg = <0x060000 0x010000>;
81 read-only;
82 };
83
84 partition@70000 {
85 label = "firmware";
86 reg = <0x070000 0x790000>;
87 compatible = "denx,uimage";
88 };
89
90 partition@800000 {
91 label = "ubnt-airos";
92 reg = <0x800000 0x790000>;
93 read-only;
94 };
95
96 partition@f90000 {
97 label = "bs";
98 reg = <0xf90000 0x020000>;
99 };
100
101 partition@fb0000 {
102 label = "cfg";
103 reg = <0xfb0000 0x040000>;
104 read-only;
105 };
106
107 eeprom: partition@ff0000 {
108 label = "EEPROM";
109 reg = <0xff0000 0x010000>;
110 read-only;
111 };
112 };
113 };
114 };
115
116 &wmac {
117 status = "okay";
118 mtd-cal-data = <&eeprom 0x1000>;
119 mtd-mac-address = <&eeprom 0x0>;
120 };