ramips: fix dtc warnings
[openwrt/openwrt.git] / target / linux / ramips / dts / GL-MT300N.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 = "glinet,gl-mt300n", "ralink,mt7620a-soc";
10 model = "GL-MT300N";
11
12 chosen {
13 bootargs = "console=ttyS0,115200";
14 };
15
16 gpio-leds {
17 compatible = "gpio-leds";
18
19 wan {
20 label = "gl-mt300n:wan";
21 gpios = <&gpio2 0 GPIO_ACTIVE_LOW>;
22 };
23
24 lan {
25 label = "gl-mt300n:lan";
26 gpios = <&gpio2 1 GPIO_ACTIVE_LOW>;
27 };
28
29 wlan {
30 label = "gl-mt300n:wlan";
31 gpios = <&gpio3 0 GPIO_ACTIVE_LOW>;
32 };
33
34 };
35
36 gpio-keys-polled {
37 compatible = "gpio-keys-polled";
38 poll-interval = <20>;
39 reset {
40 label = "reset";
41 gpios = <&gpio0 1 GPIO_ACTIVE_LOW>;
42 linux,code = <KEY_RESTART>;
43 };
44
45 BTN_0 {
46 label = "BTN_0";
47 gpios = <&gpio2 2 GPIO_ACTIVE_LOW>;
48 linux,code = <BTN_0>;
49 };
50
51 BTN_1 {
52 label = "BTN_1";
53 gpios = <&gpio2 3 GPIO_ACTIVE_LOW>;
54 linux,code = <BTN_1>;
55 };
56 };
57 };
58
59 &gpio0 {
60 status = "okay";
61 };
62
63 &gpio1 {
64 status = "okay";
65 };
66
67 &gpio2 {
68 status = "okay";
69 };
70
71 &gpio3 {
72 status = "okay";
73 };
74
75 &spi0 {
76 status = "okay";
77
78 m25p80@0 {
79 #address-cells = <1>;
80 #size-cells = <1>;
81 compatible = "jedec,spi-nor";
82 reg = <0>;
83 spi-max-frequency = <10000000>;
84
85 partition@0 {
86 label = "u-boot";
87 reg = <0x0 0x30000>;
88 };
89
90 partition@30000 {
91 label = "u-boot-env";
92 reg = <0x30000 0x10000>;
93 read-only;
94 };
95
96 factory: partition@40000 {
97 label = "factory";
98 reg = <0x40000 0x10000>;
99 read-only;
100 };
101
102 partition@50000 {
103 label = "firmware";
104 reg = <0x50000 0xf80000>;
105 };
106
107 partition@ff0000 {
108 label = "art";
109 reg = <0xff0000 0x10000>;
110 };
111 };
112 };
113
114 &ehci {
115 status = "okay";
116 };
117
118 &ohci {
119 status = "okay";
120 };
121
122 &ethernet {
123 mtd-mac-address = <&factory 0x4000>;
124 mediatek,portmap = "wllll";
125 };
126
127 &wmac {
128 ralink,mtd-eeprom = <&factory 0>;
129 };
130
131 &pinctrl {
132 state_default: pinctrl0 {
133 gpio {
134 ralink,group = "wled","ephy","i2c";
135 ralink,function = "gpio";
136 };
137 };
138 };