ramips: cleanup SPI flash device tree properties usage
[openwrt/staging/chunkeey.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 spi-max-frequency = <10000000>;
40
41 partition@0 {
42 label = "u-boot";
43 reg = <0x0 0x30000>;
44 read-only;
45 };
46
47 partition@30000 {
48 label = "devdata";
49 reg = <0x30000 0x10000>;
50 read-only;
51 };
52
53 devconf: partition@40000 {
54 label = "devconf";
55 reg = <0x40000 0x10000>;
56 read-only;
57 };
58
59 partition@50000 {
60 label = "firmware";
61 reg = <0x50000 0x3b0000>;
62 };
63 };
64 };
65
66 &pinctrl {
67 state_default: pinctrl0 {
68 gpio {
69 ralink,group = "i2c", "jtag", "rgmii", "mdio", "uartf";
70 ralink,function = "gpio";
71 };
72 };
73 };
74
75 &ethernet {
76 mtd-mac-address = <&devconf 0x4>;
77 };
78
79 &esw {
80 mediatek,portmap = <0x2f>;
81 };
82
83 &wmac {
84 ralink,mtd-eeprom = <&devconf 0>;
85 };