ramips: fix dtc warnings
[openwrt/openwrt.git] / target / linux / ramips / dts / RT-AC51U.dts
1 /dts-v1/;
2
3 #include "mt7620a.dtsi"
4
5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/input.h>
7
8 / {
9 compatible = "asus,rt-ac51u", "ralink,mt7620a-soc";
10 model = "Asus RT-AC51U";
11
12 aliases {
13 led-status = &led_power;
14 };
15
16 gpio-leds {
17 compatible = "gpio-leds";
18
19 led_power: power {
20 label = "rt-ac51u:blue:power";
21 gpios = <&gpio0 9 GPIO_ACTIVE_LOW>;
22 };
23
24 usb {
25 label = "rt-ac51u:blue:usb";
26 gpios = <&gpio0 14 GPIO_ACTIVE_LOW>;
27 };
28
29 wifi {
30 label = "rt-ac51u:blue:wifi";
31 gpios = <&gpio3 0 GPIO_ACTIVE_LOW>;
32 };
33 };
34
35 gpio-keys-polled {
36 compatible = "gpio-keys-polled";
37 poll-interval = <20>;
38
39 reset {
40 label = "reset";
41 gpios = <&gpio0 1 GPIO_ACTIVE_LOW>;
42 linux,code = <KEY_RESTART>;
43 };
44
45 wps {
46 label = "wps";
47 gpios = <&gpio0 2 GPIO_ACTIVE_LOW>;
48 linux,code = <KEY_WPS_BUTTON>;
49 };
50 };
51
52 gpio_export {
53 compatible = "gpio-export";
54 #size-cells = <0>;
55
56 enable-leds {
57 gpio-export,name = "enable-leds";
58 gpio-export,output = <1>;
59 gpios = <&gpio0 10 GPIO_ACTIVE_HIGH>;
60 };
61 };
62 };
63
64 &spi0 {
65 status = "okay";
66
67 m25p80@0 {
68 #address-cells = <1>;
69 #size-cells = <1>;
70 compatible = "jedec,spi-nor";
71 reg = <0>;
72 spi-max-frequency = <10000000>;
73
74 partition@0 {
75 label = "u-boot";
76 reg = <0x0 0x30000>;
77 read-only;
78 };
79
80 partition@30000 {
81 label = "u-boot-env";
82 reg = <0x30000 0x10000>;
83 read-only;
84 };
85
86 factory: partition@40000 {
87 label = "factory";
88 reg = <0x40000 0x10000>;
89 read-only;
90 };
91
92 partition@50000 {
93 label = "firmware";
94 reg = <0x50000 0xfb0000>;
95 };
96 };
97 };
98
99 &ehci {
100 status = "okay";
101 };
102
103 &ohci {
104 status = "okay";
105 };
106
107 &gpio3 {
108 status = "okay";
109 };
110
111 &ethernet {
112 status = "okay";
113 mtd-mac-address = <&factory 0x4>;
114 mediatek,portmap = "wllll";
115 };
116
117 &wmac {
118 ralink,mtd-eeprom = <&factory 0>;
119 };
120
121 &pinctrl {
122 state_default: pinctrl0 {
123 gpio {
124 ralink,group = "i2c", "wled", "uartf";
125 ralink,function = "gpio";
126 };
127 };
128 };