ramips: add missing partitions
[openwrt/staging/chunkeey.git] / target / linux / ramips / dts / WHR-G300N.dts
1 /dts-v1/;
2
3 #include "rt3050.dtsi"
4
5 #include <dt-bindings/input/input.h>
6
7 / {
8 compatible = "WHR-G300N", "ralink,rt3052-soc";
9 model = "Buffalo WHR-G300N";
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 0x3a0000>;
40 };
41
42 partition@3f0000 {
43 label = "user";
44 reg = <0x3f0000 0x10000>;
45 read-only;
46 };
47 };
48
49 gpio-leds {
50 compatible = "gpio-leds";
51
52 diag {
53 label = "whr-g300n:red:diag";
54 gpios = <&gpio0 7 1>;
55 };
56
57 router {
58 label = "whr-g300n:green:router";
59 gpios = <&gpio0 9 1>;
60 };
61
62 security {
63 label = "whr-g300n:amber:security";
64 gpios = <&gpio0 14 1>;
65 };
66 };
67
68 gpio-keys-polled {
69 compatible = "gpio-keys-polled";
70 #address-cells = <1>;
71 #size-cells = <0>;
72 poll-interval = <20>;
73
74 reset {
75 label = "reset";
76 gpios = <&gpio0 10 1>;
77 linux,code = <KEY_RESTART>;
78 };
79
80 aoss {
81 label = "aoss";
82 gpios = <&gpio0 0 1>;
83 linux,code = <KEY_WPS_BUTTON>;
84 };
85
86 router-off {
87 label = "router-off";
88 gpios = <&gpio0 11 1>;
89 linux,code = <BTN_2>;
90 };
91
92 router-on {
93 label = "router-on";
94 gpios = <&gpio0 8 1>;
95 linux,code = <BTN_3>;
96 };
97 };
98 };
99
100 &pinctrl {
101 state_default: pinctrl0 {
102 gpio {
103 ralink,group = "spi", "i2c", "jtag", "rgmii", "mdio", "uartf";
104 ralink,function = "gpio";
105 };
106 };
107 };
108
109 &esw {
110 mediatek,portmap = <0x2f>;
111 };
112
113 &wmac {
114 ralink,mtd-eeprom = <&factory 0>;
115 };