0d4d8f4cfd5560929f3d666917b2b5e070bbb765
[openwrt/staging/hauke.git] / target / linux / ramips / dts / rt3050_asus_rt-g32-b1.dts
1 #include "rt3050.dtsi"
2
3 #include <dt-bindings/gpio/gpio.h>
4 #include <dt-bindings/input/input.h>
5
6 / {
7 compatible = "asus,rt-g32-b1", "ralink,rt3050-soc";
8 model = "Asus RT-G32 B1";
9
10 keys {
11 compatible = "gpio-keys-polled";
12 poll-interval = <20>;
13
14 reset {
15 label = "reset";
16 gpios = <&gpio0 10 GPIO_ACTIVE_LOW>;
17 linux,code = <KEY_RESTART>;
18 };
19
20 wps {
21 label = "wps";
22 gpios = <&gpio0 0 GPIO_ACTIVE_LOW>;
23 linux,code = <KEY_WPS_BUTTON>;
24 };
25 };
26 };
27
28 &spi0 {
29 status = "okay";
30
31 flash@0 {
32 compatible = "jedec,spi-nor";
33 reg = <0>;
34 spi-max-frequency = <10000000>;
35
36 partitions {
37 compatible = "fixed-partitions";
38 #address-cells = <1>;
39 #size-cells = <1>;
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 compatible = "denx,uimage";
61 label = "firmware";
62 reg = <0x50000 0x3b0000>;
63 };
64 };
65 };
66 };
67
68 &state_default {
69 gpio {
70 groups = "i2c", "jtag", "rgmii", "mdio", "uartf";
71 function = "gpio";
72 };
73 };
74
75 &ethernet {
76 nvmem-cells = <&macaddr_devconf_4>;
77 nvmem-cell-names = "mac-address";
78 };
79
80 &esw {
81 mediatek,portmap = <0x2f>;
82 };
83
84 &wmac {
85 ralink,mtd-eeprom = <&devconf 0x0>;
86 };
87
88 &devconf {
89 compatible = "nvmem-cells";
90 #address-cells = <1>;
91 #size-cells = <1>;
92
93 macaddr_devconf_4: macaddr@4 {
94 reg = <0x4 0x6>;
95 };
96 };