ramips: fix dtc warnings
[openwrt/staging/wigyori.git] / target / linux / ramips / dts / MicroWRT.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 = "microduino,microwrt", "ralink,mt7620a-soc";
10 model = "Microduino MicroWRT";
11
12 chosen {
13 bootargs = "console=ttyS0,115200";
14 };
15
16 gpio-keys-polled {
17 compatible = "gpio-keys-polled";
18 poll-interval = <20>;
19
20 reset {
21 label = "reset";
22 gpios = <&gpio0 1 GPIO_ACTIVE_LOW>;
23 linux,code = <KEY_RESTART>;
24 };
25
26 wps {
27 label = "wps";
28 gpios = <&gpio0 2 GPIO_ACTIVE_LOW>;
29 linux,code = <KEY_WPS_BUTTON>;
30 };
31 };
32 };
33
34 &gpio2 {
35 status = "okay";
36 };
37
38 &gpio3 {
39 status = "okay";
40 };
41
42 &spi0 {
43 status = "okay";
44
45 m25p80@0 {
46 #address-cells = <1>;
47 #size-cells = <1>;
48 compatible = "jedec,spi-nor";
49 reg = <0>;
50 spi-max-frequency = <10000000>;
51
52 partition@0 {
53 label = "u-boot";
54 reg = <0x0 0x20000>;
55 read-only;
56 };
57
58 partition@20000 {
59 label = "u-boot-env";
60 reg = <0x20000 0x10000>;
61 read-only;
62 };
63
64 factory: partition@30000 {
65 label = "factory";
66 reg = <0x30000 0x10000>;
67 read-only;
68 };
69
70 partition@40000 {
71 label = "firmware";
72 reg = <0x40000 0xfc0000>;
73 };
74 };
75 };
76
77 &ehci {
78 status = "okay";
79 };
80
81 &ohci {
82 status = "okay";
83 };
84
85 &pcie {
86 status = "okay";
87 };
88
89 &ethernet {
90 pinctrl-names = "default";
91 pinctrl-0 = <&ephy_pins>;
92 mtd-mac-address = <&factory 0x4>;
93 mediatek,portmap = "llllw";
94 };
95
96 &wmac {
97 ralink,mtd-eeprom = <&factory 0>;
98 };
99
100 &pinctrl {
101 state_default: pinctrl0 {
102 default {
103 ralink,group = "wled", "i2c", "wdt", "uartf";
104 ralink,function = "gpio";
105 };
106 };
107 };