ramips: remove DT pcie nodes for GL-MT300A/N
[openwrt/staging/dedeckeh.git] / target / linux / ramips / dts / GL-MT300N.dts
1 /dts-v1/;
2
3 #include "mt7620a.dtsi"
4
5 #include <dt-bindings/input/input.h>
6
7 / {
8 compatible = "GL-MT300N", "ralink,mt7620a-soc";
9 model = "GL-MT300N";
10
11 chosen {
12 bootargs = "console=ttyS0,115200";
13 };
14
15 gpio-leds {
16 compatible = "gpio-leds";
17
18 wan {
19 label = "gl-mt300n:wan";
20 gpios = <&gpio2 0 1>;
21 };
22
23 lan {
24 label = "gl-mt300n:lan";
25 gpios = <&gpio2 1 1>;
26 };
27
28 wlan {
29 label = "gl-mt300n: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 1 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 &ehci {
117 status = "okay";
118 };
119
120 &ohci {
121 status = "okay";
122 };
123
124 &ethernet {
125 mtd-mac-address = <&factory 0x4000>;
126 ralink,port-map = "wllll";
127 };
128
129 &wmac {
130 ralink,mtd-eeprom = <&factory 0>;
131 };
132
133 &pinctrl {
134 state_default: pinctrl0 {
135 gpio {
136 ralink,group = "wled","ephy","i2c";
137 ralink,function = "gpio";
138 };
139 };
140 };