ramips: fix multi colour led handling
[openwrt/openwrt.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 compatible = "jedec,spi-nor";
47 reg = <0>;
48 spi-max-frequency = <10000000>;
49
50 partitions {
51 compatible = "fixed-partitions";
52 #address-cells = <1>;
53 #size-cells = <1>;
54
55 partition@0 {
56 label = "u-boot";
57 reg = <0x0 0x20000>;
58 read-only;
59 };
60
61 partition@20000 {
62 label = "u-boot-env";
63 reg = <0x20000 0x10000>;
64 read-only;
65 };
66
67 factory: partition@30000 {
68 label = "factory";
69 reg = <0x30000 0x10000>;
70 read-only;
71 };
72
73 partition@40000 {
74 label = "firmware";
75 reg = <0x40000 0xfc0000>;
76 };
77 };
78 };
79 };
80
81 &ehci {
82 status = "okay";
83 };
84
85 &ohci {
86 status = "okay";
87 };
88
89 &pcie {
90 status = "okay";
91 };
92
93 &ethernet {
94 pinctrl-names = "default";
95 pinctrl-0 = <&ephy_pins>;
96 mtd-mac-address = <&factory 0x4>;
97 mediatek,portmap = "llllw";
98 };
99
100 &wmac {
101 ralink,mtd-eeprom = <&factory 0>;
102 };
103
104 &pinctrl {
105 state_default: pinctrl0 {
106 default {
107 ralink,group = "wled", "i2c", "wdt", "uartf";
108 ralink,function = "gpio";
109 };
110 };
111 };