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