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