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