18345f19771900e86d41f4c800d026755a810aac
[openwrt/staging/wigyori.git] / target / linux / ramips / dts / PWH2004.dts
1 /dts-v1/;
2
3 /include/ "rt3050.dtsi"
4
5 / {
6 #address-cells = <1>;
7 #size-cells = <1>;
8 compatible = "PWH2004", "ralink,rt3052-soc";
9 model = "Prolink PWH2004";
10
11 memorydetect {
12 ralink,memory = <0x0 0x200000 0x4000000>;
13 };
14
15 chosen {
16 bootargs = "console=ttyS0,57600 mtdparts=1f000000.cfi:192k(u-boot)ro,64k(u-boot-env)ro,64k(factory)ro,7872k@0x50000(firmware)";
17 };
18
19 palmbus@10000000 {
20 sysc@0 {
21 ralink,pinmux = "i2c", "spi", "uartlite", "jtag", "mdio", "sdram", "rgmii";
22 ralink,uartmux = "gpio";
23 ralink,wdtmux = <1>;
24 };
25
26 gpio0: gpio@600 {
27 status = "okay";
28 };
29
30 };
31
32 cfi@1f000000 {
33 compatible = "cfi-flash";
34 reg = <0x1f000000 0x800000>;
35
36 bank-width = <2>;
37 device-width = <2>;
38 #address-cells = <1>;
39 #size-cells = <1>;
40 };
41
42 gpio-leds {
43 compatible = "gpio-leds";
44 wifi {
45 label = "pwh2004:red:wifi";
46 gpios = <&gpio0 14 1>;
47 };
48 power {
49 label = "pwh2004:green:power";
50 gpios = <&gpio0 9 1>;
51 };
52 };
53
54 gpio-keys-polled {
55 compatible = "gpio-keys-polled";
56 #address-cells = <1>;
57 #size-cells = <0>;
58 poll-interval = <20>;
59 wps {
60 label = "wps";
61 gpios = <&gpio0 12 1>;
62 linux,code = <0x198>;
63 };
64 };
65
66 ethernet@10100000 {
67 status = "okay";
68 };
69
70 esw@10110000 {
71 status = "okay";
72 ralink,portmap = <0x2f>;
73 };
74
75 wmac@10180000 {
76 status = "okay";
77 };
78 };