ramips: Archer C50v1: fix power led
[openwrt/openwrt.git] / target / linux / ramips / dts / JHR-N926R.dts
1 /dts-v1/;
2
3 #include "rt3050.dtsi"
4
5 #include <dt-bindings/input/input.h>
6
7 / {
8 compatible = "JHR-N926R", "ralink,rt3052-soc";
9 model = "JCG JHR-N926R";
10
11 cfi@1f000000 {
12 compatible = "cfi-flash";
13 reg = <0x1f000000 0x800000>;
14 bank-width = <2>;
15 device-width = <2>;
16 #address-cells = <1>;
17 #size-cells = <1>;
18
19 partition@0 {
20 label = "u-boot";
21 reg = <0x0 0x30000>;
22 read-only;
23 };
24
25 partition@30000 {
26 label = "u-boot-env";
27 reg = <0x30000 0x10000>;
28 read-only;
29 };
30
31 factory: partition@40000 {
32 label = "factory";
33 reg = <0x40000 0x10000>;
34 read-only;
35 };
36
37 partition@50000 {
38 label = "firmware";
39 reg = <0x50000 0x3b0000>;
40 };
41 };
42
43 gpio-leds {
44 compatible = "gpio-leds";
45
46 wlan1 {
47 label = "jhr-n926r:red:wlan";
48 gpios = <&gpio0 20 1>;
49 };
50
51 wlan2 {
52 label = "jhr-n926r:yellow:wlan";
53 gpios = <&gpio0 19 1>;
54 };
55
56 wlan3 {
57 label = "jhr-n926r:green:wlan";
58 gpios = <&gpio0 17 1>;
59 };
60
61 system {
62 label = "jhr-n926r:blue:system";
63 gpios = <&gpio0 13 1>;
64 };
65 };
66
67 gpio_export {
68 compatible = "gpio-export";
69 #size-cells = <0>;
70
71 display_data {
72 gpio-export,name = "display_data";
73 gpio-export,output = <1>;
74 gpios = <&gpio0 7 1>;
75 };
76
77 display_clock {
78 gpio-export,name = "display_clock";
79 gpio-export,output = <1>;
80 gpios = <&gpio0 8 0>;
81 };
82
83 display_blank {
84 gpio-export,name = "display_blank";
85 gpio-export,output = <1>;
86 gpios = <&gpio0 11 0>;
87 };
88 };
89
90 gpio-keys-polled {
91 compatible = "gpio-keys-polled";
92 #address-cells = <1>;
93 #size-cells = <0>;
94 poll-interval = <20>;
95
96 reset_wps {
97 label = "reset_wps";
98 gpios = <&gpio0 10 1>;
99 linux,code = <KEY_RESTART>;
100 };
101
102 wlan {
103 label = "wlan";
104 gpios = <&gpio0 1 1>;
105 linux,code = <BTN_0>;
106 };
107 };
108 };
109
110 &pinctrl {
111 state_default: pinctrl0 {
112 gpio {
113 ralink,group = "spi", "i2c", "jtag", "rgmii", "mdio", "uartf";
114 ralink,function = "gpio";
115 };
116 };
117 };
118
119 &ethernet {
120 mtd-mac-address = <&factory 0x2e>;
121 };
122
123 &esw {
124 mediatek,portmap = <0x3e>;
125 };
126
127 &wmac {
128 ralink,mtd-eeprom = <&factory 0>;
129 };