ramips: fix dtc warnings
[openwrt/staging/wigyori.git] / target / linux / ramips / dts / GL-MT750.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-mt750", "ralink,mt7620a-soc";
10 model = "GL-MT750";
11
12 chosen {
13 bootargs = "console=ttyS0,115200";
14 };
15
16 gpio-leds {
17 compatible = "gpio-leds";
18
19 wan {
20 label = "gl-mt750:wan";
21 gpios = <&gpio2 0 GPIO_ACTIVE_LOW>;
22 };
23
24 lan {
25 label = "gl-mt750:lan";
26 gpios = <&gpio2 1 GPIO_ACTIVE_LOW>;
27 };
28
29 wlan {
30 label = "gl-mt750: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 13 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 &sdhci {
115 status = "okay";
116 };
117
118 &ehci {
119 status = "okay";
120 };
121
122 &ohci {
123 status = "okay";
124 };
125
126 &ethernet {
127 mtd-mac-address = <&factory 0x4000>;
128 mediatek,portmap = "llllw";
129 };
130
131 &wmac {
132 ralink,mtd-eeprom = <&factory 0>;
133 };
134
135 &pcie {
136 status = "okay";
137 };
138
139 &pcie0 {
140 mt76@0,0 {
141 reg = <0x0000 0 0 0 0>;
142 mediatek,mtd-eeprom = <&factory 0x8000>;
143 };
144 };
145
146 &pinctrl {
147 state_default: pinctrl0 {
148 gpio {
149 ralink,group = "wled","ephy","uartf";
150 ralink,function = "gpio";
151 };
152 };
153 };