kernel: remove non-existant symbols
[oweals/openwrt.git] / target / linux / ramips / dts / mt7621_ubnt_unifi-nanohd.dts
1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2 /dts-v1/;
3
4 #include "mt7621.dtsi"
5
6 #include <dt-bindings/gpio/gpio.h>
7 #include <dt-bindings/input/input.h>
8
9 / {
10         compatible = "ubnt,unifi-nanohd", "mediatek,mt7621-soc";
11         model = "Ubiquiti UniFi nanoHD";
12
13         aliases {
14                 led-boot = &led_white;
15                 led-failsafe = &led_white;
16                 led-running = &led_blue;
17                 led-upgrade = &led_blue;
18                 label-mac-device = &gmac0;
19         };
20
21         chosen {
22                 bootargs = "console=ttyS0,115200";
23         };
24
25         leds {
26                 compatible = "gpio-leds";
27
28                 led_blue: dome_blue {
29                         label = "nanohd:blue:dome";
30                         gpios = <&gpio 3 GPIO_ACTIVE_HIGH>;
31                 };
32
33                 led_white: dome_white {
34                         label = "nanohd:white:dome";
35                         gpios = <&gpio 4 GPIO_ACTIVE_HIGH>;
36                 };
37         };
38
39         keys {
40                 compatible = "gpio-keys";
41
42                 reset {
43                         label = "reset";
44                         gpios = <&gpio 12 GPIO_ACTIVE_LOW>;
45                         linux,code = <KEY_RESTART>;
46                 };
47         };
48 };
49
50 &spi0 {
51         status = "okay";
52
53         flash@0 {
54                 compatible = "mx25l25635f", "jedec,spi-nor";
55                 reg = <0>;
56                 spi-max-frequency = <50000000>;
57
58                 partitions {
59                         compatible = "fixed-partitions";
60                         #address-cells = <1>;
61                         #size-cells = <1>;
62
63                         partition@0 {
64                                 label = "u-boot";
65                                 reg = <0x0 0x60000>;
66                                 read-only;
67                         };
68
69                         partition@60000 {
70                                 label = "u-boot-env";
71                                 reg = <0x60000 0x10000>;
72                                 read-only;
73                         };
74
75                         factory: partition@70000 {
76                                 label = "factory";
77                                 reg = <0x70000 0x10000>;
78                                 read-only;
79                         };
80
81                         eeprom: partition@80000 {
82                                 label = "eeprom";
83                                 reg = <0x80000 0x10000>;
84                                 read-only;
85                         };
86
87                         partition@90000 {
88                                 label = "bs";
89                                 reg = <0x90000 0x10000>;
90                         };
91
92                         partition@a0000 {
93                                 label = "cfg";
94                                 reg = <0xa0000 0x100000>;
95                                 read-only;
96                         };
97
98                         partition@1a0000 {
99                                 compatible = "denx,uimage";
100                                 label = "firmware";
101                                 reg = <0x1a0000 0xf30000>;
102                         };
103
104                         partition@10d0000 {
105                                 label = "kernel1";
106                                 reg = <0x10d0000 0xf30000>;
107                                 read-only;
108                         };
109                 };
110         };
111 };
112
113 &pcie {
114         status = "okay";
115 };
116
117 &pcie0 {
118         wifi@0,0 {
119                 reg = <0x0 0 0 0 0>;
120                 mediatek,mtd-eeprom = <&factory 0x0000>;
121         };
122 };
123
124 &pcie1 {
125         wifi@0,0 {
126                 reg = <0x0 0 0 0 0>;
127                 mediatek,mtd-eeprom = <&factory 0x8000>;
128         };
129 };
130
131 &gmac0 {
132         mtd-mac-address = <&eeprom 0x0>;
133 };
134
135 &switch0 {
136         ports {
137                 port@0 {
138                         status = "okay";
139                         label = "lan";
140                 };
141         };
142 };
143
144 &state_default {
145         gpio {
146                 groups = "i2c", "uart2";
147                 function = "gpio";
148         };
149 };