ramips: fix dtc warnings
[openwrt/openwrt.git] / target / linux / ramips / dts / 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-status = &led_power;
14 };
15
16 chosen {
17 bootargs = "console=ttyS0,115200";
18 };
19
20 gpio-leds {
21 compatible = "gpio-leds";
22
23 led_power: power {
24 label = "zbt-we2026:red:power";
25 gpios = <&gpio1 14 GPIO_ACTIVE_LOW>;
26 };
27
28 wlan {
29 label = "zbt-we2026:green:wlan";
30 gpios = <&gpio3 0 GPIO_ACTIVE_LOW>;
31 };
32 };
33
34 gpio-keys-polled {
35 compatible = "gpio-keys-polled";
36 poll-interval = <20>;
37
38 reset {
39 label = "reset";
40 gpios = <&gpio0 1 GPIO_ACTIVE_LOW>;
41 linux,code = <KEY_RESTART>;
42 };
43 };
44 };
45
46 &gpio1 {
47 status = "okay";
48 };
49
50 &gpio3 {
51 status = "okay";
52 };
53
54 &spi0 {
55 status = "okay";
56
57 en25q64@0 {
58 #address-cells = <1>;
59 #size-cells = <1>;
60 compatible = "jedec,spi-nor";
61 reg = <0>;
62 spi-max-frequency = <10000000>;
63
64 partition@0 {
65 label = "u-boot";
66 reg = <0x0 0x30000>;
67 read-only;
68 };
69
70 partition@30000 {
71 label = "u-boot-env";
72 reg = <0x30000 0x10000>;
73 read-only;
74 };
75
76 factory: partition@40000 {
77 label = "factory";
78 reg = <0x40000 0x10000>;
79 read-only;
80 };
81
82 partition@50000 {
83 label = "firmware";
84 reg = <0x50000 0x760000>;
85 };
86 };
87 };
88
89 &ethernet {
90 mtd-mac-address = <&factory 0x4>;
91 mediatek,portmap = "wllll";
92 };
93
94 &wmac {
95 ralink,mtd-eeprom = <&factory 0>;
96 };
97
98 &pinctrl {
99 state_default: pinctrl0 {
100 default {
101 ralink,group = "i2c", "spi refclk", "wled";
102 ralink,function = "gpio";
103 };
104 };
105 };