ramips: fix dtc warnings
[openwrt/openwrt.git] / target / linux / ramips / dts / ZBT-WE826.dtsi
1 #include "mt7620a.dtsi"
2
3 #include <dt-bindings/gpio/gpio.h>
4 #include <dt-bindings/input/input.h>
5
6 / {
7 compatible = "zbtlink,zbt-we826", "ralink,mt7620a-soc";
8
9 aliases {
10 led-status = &led_power;
11 };
12
13 chosen {
14 bootargs = "console=ttyS0,115200";
15 };
16
17 gpio-leds {
18 compatible = "gpio-leds";
19 led_power: power {
20 label = "zbt-we826:green:power";
21 gpios = <&gpio1 14 GPIO_ACTIVE_HIGH>;
22 };
23 usb {
24 label = "zbt-we826:green:usb";
25 gpios = <&gpio1 15 GPIO_ACTIVE_HIGH>;
26 };
27 air {
28 label = "zbt-we826:green:wifi";
29 gpios = <&gpio3 0 GPIO_ACTIVE_LOW>;
30 };
31 };
32
33 gpio-keys-polled {
34 compatible = "gpio-keys-polled";
35 poll-interval = <20>;
36 reset {
37 label = "reset";
38 gpios = <&gpio0 1 GPIO_ACTIVE_LOW>;
39 linux,code = <KEY_RESTART>;
40 };
41 };
42 };
43
44 &gpio0 {
45 status = "okay";
46 };
47
48 &gpio1 {
49 status = "okay";
50 };
51
52 &gpio3 {
53 status = "okay";
54 };
55
56 &sdhci {
57 status = "okay";
58 };
59
60 &ehci {
61 status = "okay";
62 };
63
64 &ohci {
65 status = "okay";
66 };
67
68 &ethernet {
69 mtd-mac-address = <&factory 0x4>;
70 mediatek,portmap = "wllll";
71 };
72
73 &wmac {
74 ralink,mtd-eeprom = <&factory 0>;
75 };
76
77 &pinctrl {
78 state_default: pinctrl0 {
79 default {
80 ralink,group = "i2c", "uartf", "wled", "spi refclk", "pa";
81 ralink,function = "gpio";
82 };
83 };
84 };
85
86 &pcie {
87 status = "okay";
88 };