Fresh pull from upstream
[librecmc/librecmc.git] / target / linux / ramips / dts / GL-MT750.dts
1 /dts-v1/;
2
3 #include "mt7620a.dtsi"
4
5 #include <dt-bindings/input/input.h>
6
7 / {
8         compatible = "GL-MT750", "ralink,mt7620a-soc";
9         model = "GL-MT750";
10
11         chosen {
12                 bootargs = "console=ttyS0,115200";
13         };
14
15         gpio-leds {
16                 compatible = "gpio-leds";
17
18                 wan {
19                         label = "gl-mt750:wan";
20                         gpios = <&gpio2 0 1>;
21                 };
22
23                 lan {
24                         label = "gl-mt750:lan";
25                         gpios = <&gpio2 1 1>;
26                 };
27
28                 wlan {
29                         label = "gl-mt750:wlan";
30                         gpios = <&gpio3 0 1>;
31                 };
32
33         };
34
35         gpio-keys-polled {
36                 compatible = "gpio-keys-polled";
37                 #address-cells = <1>;
38                 #size-cells = <0>;
39                 poll-interval = <20>;
40                 reset {
41                         label = "reset";
42                         gpios = <&gpio0 13 1>;
43                         linux,code = <KEY_RESTART>;
44                 };
45
46                 BTN_0 {
47                         label = "BTN_0";
48                         gpios = <&gpio2 2 1>;
49                         linux,code = <BTN_0>;
50                 };
51
52             BTN_1 {
53                         label = "BTN_1";
54                         gpios = <&gpio2 3 1>;
55                         linux,code = <BTN_1>;
56                 };
57         };
58 };
59
60 &gpio0 {
61         status = "okay";
62 };
63
64 &gpio1 {
65         status = "okay";
66 };
67
68 &gpio2 {
69         status = "okay";
70 };
71                 
72 &gpio3 {
73         status = "okay";
74 };
75
76 &spi0 {
77         status = "okay";
78
79         m25p80@0 {
80                 #address-cells = <1>;
81                 #size-cells = <1>;
82                 compatible = "w25q128";
83                 reg = <0>;
84                 linux,modalias = "m25p80", "w25q128";
85                 spi-max-frequency = <10000000>;
86
87                 partition@0 {
88                         label = "u-boot";
89                         reg = <0x0 0x30000>;
90                 };
91
92                 partition@30000 {
93                         label = "u-boot-env";
94                         reg = <0x30000 0x10000>;
95                         read-only;
96                 };
97
98                 factory: partition@40000 {
99                         label = "factory";
100                         reg = <0x40000 0x10000>;
101                         read-only;
102                 };
103
104                 partition@50000 {
105                         label = "firmware";
106                         reg = <0x50000 0xf80000>;
107                 };
108
109                 partition@ff0000 {
110                         label = "art";
111                         reg = <0xff0000 0x10000>;
112                 };
113         };
114 };
115
116 &sdhci {
117         status = "okay";
118 };
119
120 &ehci {
121         status = "okay";
122 };
123
124 &ohci {
125         status = "okay";
126 };
127
128 &ethernet {
129         pinctrl-names = "default";
130         pinctrl-0 = <&ephy_pins>;
131         mtd-mac-address = <&factory 0x4000>;
132         ralink,port-map = "llllw";
133 };
134
135 &wmac {
136         ralink,mtd-eeprom = <&factory 0>;
137 };
138
139 &pcie {
140         status = "okay";
141
142         pcie-bridge {
143                 mt76@0,0 {
144                         reg = <0x0000 0 0 0 0>;
145                         device_type = "pci";
146                         mediatek,mtd-eeprom = <&factory 0x8000>;
147                         mediatek,2ghz = <0>;
148                 };
149         };
150 };
151
152 &pinctrl {
153         state_default: pinctrl0 {
154                 gpio {
155                         ralink,group = "wled","ephy","uartf";
156                         ralink,function = "gpio";
157                 };
158         };
159 };