ramips: Archer C50v1: fix power led
[openwrt/openwrt.git] / target / linux / ramips / dts / PBR-M1.dts
1 /dts-v1/;
2
3 #include "mt7621.dtsi"
4
5 #include <dt-bindings/input/input.h>
6
7 / {
8 compatible = "pandorabox,pbr-m1", "mediatek,mt7621-soc";
9 model = "PBR-M1";
10
11 memory@0 {
12 device_type = "memory";
13 reg = <0x0 0x10000000>;
14 };
15
16 chosen {
17 bootargs = "console=ttyS0,115200";
18 };
19
20 palmbus: palmbus@1E000000 {
21 i2c: i2c@900 {
22 status = "okay";
23
24 pcf8563: rtc@51 {
25 status = "okay";
26 compatible = "nxp,pcf8563";
27 reg = <0x51>;
28 };
29 };
30 };
31
32 gpio-leds {
33 compatible = "gpio-leds";
34
35 power {
36 label = "pbr-m1:blue:power";
37 gpios = <&gpio0 31 1>;
38 };
39
40 sys {
41 label = "pbr-m1:blue:sys";
42 gpios = <&gpio1 0 1>;
43 };
44
45 internet {
46 label = "pbr-m1:blue:internet";
47 gpios = <&gpio0 29 1>;
48 };
49
50 wlan2g {
51 label = "pbr-m1:blue:wlan2g";
52 gpios = <&gpio1 1 1>;
53 };
54
55 wlan5g {
56 label = "pbr-m1:blue:wlan5g";
57 gpios = <&gpio0 28 1>;
58 };
59 };
60
61 gpio-keys-polled {
62 compatible = "gpio-keys-polled";
63 #address-cells = <1>;
64 #size-cells = <0>;
65 poll-interval = <20>;
66
67 reset {
68 label = "reset";
69 gpios = <&gpio0 18 1>;
70 linux,code = <KEY_RESTART>;
71 };
72 };
73
74 gpio_export {
75 compatible = "gpio-export";
76 #size-cells = <0>;
77
78 power_usb2 {
79 gpio-export,name = "power_usb2";
80 gpio-export,output = <1>;
81 gpios = <&gpio0 22 0>;
82 };
83
84 power_usb3 {
85 gpio-export,name = "power_usb3";
86 gpio-export,output = <1>;
87 gpios = <&gpio0 25 0>;
88 };
89
90 power_sata {
91 gpio-export,name = "power_sata";
92 gpio-export,output = <1>;
93 gpios = <&gpio0 27 0>;
94 };
95 };
96
97 beeper: beeper {
98 compatible = "gpio-beeper";
99 gpios = <&gpio0 26 1>;
100 };
101 };
102
103 &sdhci {
104 status = "okay";
105 pinctrl-names = "default";
106 pinctrl-0 = <&sdhci_pins>;
107 };
108
109 &spi0 {
110 status = "okay";
111
112 m25p80@0 {
113 #address-cells = <1>;
114 #size-cells = <1>;
115 compatible = "jedec,spi-nor";
116 reg = <0>;
117 spi-max-frequency = <10000000>;
118 m25p,chunked-io = <32>;
119
120 partition@0 {
121 label = "u-boot";
122 reg = <0x0 0x30000>;
123 read-only;
124 };
125
126 partition@30000 {
127 label = "u-boot-env";
128 reg = <0x30000 0x10000>;
129 read-only;
130 };
131
132 factory: partition@40000 {
133 label = "factory";
134 reg = <0x40000 0x10000>;
135 read-only;
136 };
137
138 partition@50000 {
139 label = "firmware";
140 reg = <0x50000 0xfb0000>;
141 };
142 };
143 };
144
145 &pcie {
146 status = "okay";
147
148 pcie0 {
149 mt76@0,0 {
150 reg = <0x0000 0 0 0 0>;
151 device_type = "pci";
152 mediatek,mtd-eeprom = <&factory 0x8000>;
153 ieee80211-freq-limit = <5000000 6000000>;
154 };
155 };
156
157 pcie1 {
158 mt76@1,0 {
159 reg = <0x0000 0 0 0 0>;
160 device_type = "pci";
161 mediatek,mtd-eeprom = <&factory 0x0000>;
162 };
163 };
164 };
165
166 &ethernet {
167 mtd-mac-address = <&factory 0xe000>;
168 };
169
170 &pinctrl {
171 state_default: pinctrl0 {
172 gpio {
173 ralink,group = "wdt", "rgmii2", "jtag", "mdio";
174 ralink,function = "gpio";
175 };
176 };
177 };