kernel: remove non-existant symbols
[oweals/openwrt.git] / target / linux / ramips / dts / mt7620n_zbtlink_zbt-we2026.dts
1 /dts-v1/;
2
3 #include <dt-bindings/gpio/gpio.h>
4 #include <dt-bindings/input/input.h>
5
6 #include "mt7620n.dtsi"
7
8 / {
9         compatible = "zbtlink,zbt-we2026", "ralink,mt7620n-soc";
10         model = "Zbtlink ZBT-WE2026";
11
12         aliases {
13                 led-boot = &led_power;
14                 led-failsafe = &led_power;
15                 led-running = &led_power;
16                 led-upgrade = &led_power;
17         };
18
19         chosen {
20                 bootargs = "console=ttyS0,115200";
21         };
22
23         leds {
24                 compatible = "gpio-leds";
25
26                 led_power: power {
27                         label = "zbt-we2026:red:power";
28                         gpios = <&gpio1 14 GPIO_ACTIVE_LOW>;
29                 };
30
31                 wlan {
32                         label = "zbt-we2026:green:wlan";
33                         gpios = <&gpio3 0 GPIO_ACTIVE_LOW>;
34                 };
35         };
36
37         keys {
38                 compatible = "gpio-keys";
39
40                 reset {
41                         label = "reset";
42                         gpios = <&gpio0 1 GPIO_ACTIVE_LOW>;
43                         linux,code = <KEY_RESTART>;
44                 };
45         };
46 };
47
48 &gpio1 {
49         status = "okay";
50 };
51
52 &gpio3 {
53         status = "okay";
54 };
55
56 &spi0 {
57         status = "okay";
58
59         en25q64@0 {
60                 compatible = "jedec,spi-nor";
61                 reg = <0>;
62                 spi-max-frequency = <10000000>;
63
64                 partitions {
65                         compatible = "fixed-partitions";
66                         #address-cells = <1>;
67                         #size-cells = <1>;
68
69                         partition@0 {
70                                 label = "u-boot";
71                                 reg = <0x0 0x30000>;
72                                 read-only;
73                         };
74
75                         partition@30000 {
76                                 label = "u-boot-env";
77                                 reg = <0x30000 0x10000>;
78                                 read-only;
79                         };
80
81                         factory: partition@40000 {
82                                 label = "factory";
83                                 reg = <0x40000 0x10000>;
84                                 read-only;
85                         };
86
87                         partition@50000 {
88                                 compatible = "denx,uimage";
89                                 label = "firmware";
90                                 reg = <0x50000 0x760000>;
91                         };
92                 };
93         };
94 };
95
96 &ethernet {
97         mtd-mac-address = <&factory 0x4>;
98         mediatek,portmap = "wllll";
99 };
100
101 &wmac {
102         ralink,mtd-eeprom = <&factory 0>;
103 };
104
105 &state_default {
106         default {
107                 groups = "i2c", "spi refclk", "wled";
108                 function = "gpio";
109         };
110 };