ea9f1702e6be6be24b39c7d07ae129b9200874fb
[openwrt.git] / target / linux / ramips / dts / IP2202.dts
1 /dts-v1/;
2
3 /include/ "rt3050.dtsi"
4
5 / {
6         compatible = "IP2202", "ralink,rt3052-soc";
7         model = "Poray IP2202";
8
9         palmbus@10000000 {
10                 sysc@0 {
11                         ralink,pinmux = "i2c", "spi", "uartlite", "jtag", "sdram", "rgmii";
12                         ralink,gpiomux = "mdio";
13                         ralink,uartmux = "gpio";
14                         ralink,wdtmux = <1>;
15                 };
16
17                 gpio0: gpio@600 {
18                         status = "okay";
19                 };
20
21         };
22
23         cfi@1f000000 {
24                 compatible = "cfi-flash";
25                 reg = <0x1f000000 0x800000>;
26
27                 bank-width = <2>;
28                 device-width = <2>;
29                 #address-cells = <1>;
30                 #size-cells = <1>;
31
32                 partition@0 {
33                         label = "u-boot";
34                         reg = <0x0 0x30000>;
35                         read-only;
36                 };
37
38                 partition@30000 {
39                         label = "u-boot-env";
40                         reg = <0x30000 0x10000>;
41                         read-only;
42                 };
43
44                 factory: partition@40000 {
45                         label = "factory";
46                         reg = <0x40000 0x10000>;
47                         read-only;
48                 };
49
50                 partition@50000 {
51                         label = "firmware";
52                         reg = <0x50000 0x7b0000>;
53                 };
54         };
55
56         ethernet@10100000 {
57                 status = "okay";
58         };
59
60         esw@10110000 {
61                 status = "okay";
62                 ralink,portmap = <0x2f>;
63         };
64
65         gpio-leds {
66                 compatible = "gpio-leds";
67                 run {
68                         label = "ip2202:green:run";
69                         gpios = <&gpio0 9 1>;
70                 };
71                 net {
72                         label = "ip2202:amber:net";
73                         gpios = <&gpio0 13 1>;
74                 };
75         };
76
77         gpio-keys-polled {
78                 compatible = "gpio-keys-polled";
79                 #address-cells = <1>;
80                 #size-cells = <0>;
81                 poll-interval = <20>;
82                 reset {
83                         label = "reset";
84                         gpios = <&gpio0 10 1>;
85                         linux,code = <0x198>;
86                 };
87         };
88
89         wmac@10180000 {
90                 status = "okay";
91                 ralink,led-polarity = <0>;
92         };
93
94         otg@101c0000 {
95                 status = "okay";
96         };
97 };