ramips: move dts-v1 statement to top-level DTSI files
[openwrt/staging/jow.git] / target / linux / ramips / dts / mt7620a_microduino_microwrt.dts
1 #include "mt7620a.dtsi"
2
3 #include <dt-bindings/gpio/gpio.h>
4 #include <dt-bindings/input/input.h>
5
6 / {
7 compatible = "microduino,microwrt", "ralink,mt7620a-soc";
8 model = "Microduino MicroWRT";
9
10 chosen {
11 bootargs = "console=ttyS0,115200";
12 };
13
14 keys {
15 compatible = "gpio-keys";
16
17 reset {
18 label = "reset";
19 gpios = <&gpio0 1 GPIO_ACTIVE_LOW>;
20 linux,code = <KEY_RESTART>;
21 };
22
23 wps {
24 label = "wps";
25 gpios = <&gpio0 2 GPIO_ACTIVE_LOW>;
26 linux,code = <KEY_WPS_BUTTON>;
27 };
28 };
29 };
30
31 &gpio2 {
32 status = "okay";
33 };
34
35 &gpio3 {
36 status = "okay";
37 };
38
39 &spi0 {
40 status = "okay";
41
42 flash@0 {
43 compatible = "jedec,spi-nor";
44 reg = <0>;
45 spi-max-frequency = <10000000>;
46
47 partitions {
48 compatible = "fixed-partitions";
49 #address-cells = <1>;
50 #size-cells = <1>;
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 compatible = "denx,uimage";
72 label = "firmware";
73 reg = <0x40000 0xfc0000>;
74 };
75 };
76 };
77 };
78
79 &ehci {
80 status = "okay";
81 };
82
83 &ohci {
84 status = "okay";
85 };
86
87 &ethernet {
88 pinctrl-names = "default";
89 pinctrl-0 = <&ephy_pins>;
90
91 mtd-mac-address = <&factory 0x4>;
92
93 mediatek,portmap = "llllw";
94 };
95
96 &wmac {
97 ralink,mtd-eeprom = <&factory 0x0>;
98 };
99
100 &state_default {
101 default {
102 groups = "wled", "i2c", "wdt", "uartf";
103 function = "gpio";
104 };
105 };