ramips: fix dtc warnings
[oweals/openwrt.git] / target / linux / ramips / dts / EW1200.dts
1 /dts-v1/;
2
3 #include "mt7621.dtsi"
4
5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/input.h>
7
8 / {
9         compatible = "afoundry,ew1200", "mediatek,mt7621-soc";
10         model = "EW1200";
11
12         aliases {
13                 led-status = &led_run;
14         };
15
16         memory@0 {
17                 device_type = "memory";
18                 reg = <0x0 0x8000000>;
19         };
20
21         chosen {
22                 bootargs = "console=ttyS0,57600";
23         };
24
25         palmbus: palmbus@1E000000 {
26                 i2c@900 {
27                         status = "okay";
28                 };
29         };
30
31         gpio-keys-polled {
32                 compatible = "gpio-keys-polled";
33                 poll-interval = <20>;
34
35                 reset {
36                         label = "reset";
37                         gpios = <&gpio0 18 GPIO_ACTIVE_LOW>;
38                         linux,code = <KEY_RESTART>;
39                 };
40         };
41
42         gpio-leds {
43                 compatible = "gpio-leds";
44
45                 led_run: run {
46                         label = "ew1200:green:run";
47                         gpios = <&gpio0 5 GPIO_ACTIVE_HIGH>;
48                 };
49
50                 usb {
51                         label = "ew1200:green:usb";
52                         gpios = <&gpio0 4 GPIO_ACTIVE_LOW>;
53                 };
54         };
55 };
56
57 &sdhci {
58         status = "okay";
59 };
60
61 &spi0 {
62         status = "okay";
63
64         m25p80@0 {
65                 #address-cells = <1>;
66                 #size-cells = <1>;
67                 compatible = "jedec,spi-nor";
68                 reg = <0>;
69                 spi-max-frequency = <10000000>;
70                 m25p,chunked-io = <32>;
71
72                 partition@0 {
73                         label = "u-boot";
74                         reg = <0x0 0x30000>;
75                         read-only;
76                 };
77
78                 partition@30000 {
79                         label = "u-boot-env";
80                         reg = <0x30000 0x10000>;
81                         read-only;
82                 };
83
84                 factory: partition@40000 {
85                         label = "factory";
86                         reg = <0x40000 0x10000>;
87                         read-only;
88                 };
89
90                 partition@50000 {
91                         label = "firmware";
92                         reg = <0x50000 0xfb0000>;
93                 };
94         };
95 };
96
97 &pcie {
98         status = "okay";
99 };
100
101 &pcie0 {
102         mt76@0,0 {
103                 reg = <0x0000 0 0 0 0>;
104                 mediatek,mtd-eeprom = <&factory 0x8000>;
105                 ieee80211-freq-limit = <5000000 6000000>;
106         };
107 };
108
109 &pcie1 {
110         mt76@0,0 {
111                 reg = <0x0000 0 0 0 0>;
112                 mediatek,mtd-eeprom = <&factory 0x0000>;
113                 ieee80211-freq-limit = <2400000 2500000>;
114         };
115 };
116
117 &ethernet {
118         mtd-mac-address = <&factory 0xe000>;
119 };
120
121 &pinctrl {
122         state_default: pinctrl0 {
123                 gpio {
124                         ralink,group = "wdt", "rgmii2", "jtag", "mdio";
125                         ralink,function = "gpio";
126                 };
127         };
128 };