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