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