4eab8932654d4d0033d5fe8e4702a7a918f770c9
[openwrt/openwrt.git] / target / linux / ramips / dts / JHR-N825R.dts
1 /dts-v1/;
2
3 #include "rt3050.dtsi"
4
5 #include <dt-bindings/input/input.h>
6
7 / {
8 compatible = "JHR-N825R", "ralink,rt3052-soc";
9 model = "JCG JHR-N825R";
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 system {
46 label = "jhr-n825r:red:power";
47 gpios = <&gpio0 9 1>;
48 };
49 };
50
51 gpio-keys-polled {
52 compatible = "gpio-keys-polled";
53 #address-cells = <1>;
54 #size-cells = <0>;
55 poll-interval = <20>;
56 reset_wps {
57 label = "reset_wps";
58 gpios = <&gpio0 10 1>;
59 linux,code = <KEY_RESTART>;
60 };
61 };
62 };
63
64 &pinctrl {
65 state_default: pinctrl0 {
66 gpio {
67 ralink,group = "spi", "i2c", "jtag", "rgmii", "mdio", "uartf";
68 ralink,function = "gpio";
69 };
70 };
71 };
72
73 &ethernet {
74 mtd-mac-address = <&factory 0x2e>;
75 };
76
77 &esw {
78 mediatek,portmap = <0x3e>;
79 };
80
81 &wmac {
82 ralink,mtd-eeprom = <&factory 0>;
83 };