bdc4739ebe334c17b62bc9091fe2630cfb7ca3ed
[openwrt/staging/wigyori.git] / target / linux / ramips / dts / JHR-N805R.dts
1 /dts-v1/;
2
3 #include "rt3050.dtsi"
4
5 / {
6 compatible = "JHR-N805R", "ralink,rt3050-soc";
7 model = "JCG JHR-N805R";
8
9 gpio-leds {
10 compatible = "gpio-leds";
11
12 system {
13 label = "jhr-n805r:blue:system";
14 gpios = <&gpio0 9 1>;
15 };
16 };
17
18 gpio-keys-polled {
19 compatible = "gpio-keys-polled";
20 #address-cells = <1>;
21 #size-cells = <0>;
22 poll-interval = <20>;
23
24 reset {
25 label = "reset";
26 gpios = <&gpio0 10 1>;
27 linux,code = <0x198>;
28 };
29 };
30 };
31
32 &pinctrl {
33 state_default: pinctrl0 {
34 gpio {
35 ralink,group = "i2c", "jtag", "rgmii", "mdio", "uartf";
36 ralink,function = "gpio";
37 };
38 };
39 };
40
41 &spi0 {
42 status = "okay";
43
44 m25p80@0 {
45 #address-cells = <1>;
46 #size-cells = <1>;
47 compatible = "jedec,spi-nor";
48 reg = <0 0>;
49 linux,modalias = "m25p80", "mx25l3205d";
50 spi-max-frequency = <10000000>;
51
52 partition@0 {
53 label = "u-boot";
54 reg = <0x0 0x30000>;
55 read-only;
56 };
57
58 partition@30000 {
59 label = "u-boot-env";
60 reg = <0x30000 0x10000>;
61 read-only;
62 };
63
64 factory: partition@40000 {
65 label = "factory";
66 reg = <0x40000 0x10000>;
67 read-only;
68 };
69
70 partition@50000 {
71 label = "firmware";
72 reg = <0x50000 0x3b0000>;
73 };
74 };
75 };
76
77 &ethernet {
78 mtd-mac-address = <&factory 0x2e>;
79 };
80
81 &esw {
82 mediatek,portmap = <0x3e>;
83 };
84
85 &wmac {
86 ralink,mtd-eeprom = <&factory 0>;
87 };