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