[ramips] add ofpart info to the devicetrees
[openwrt.git] / target / linux / ramips / dts / W306R_V20.dts
1 /dts-v1/;
2
3 /include/ "rt3050.dtsi"
4
5 / {
6         compatible = "W306R_V20", "ralink,rt3052-soc";
7         model = "Tenda W306R V2.0";
8
9         memorydetect {
10                 ralink,memory = <0x0 0x200000 0x4000000>;
11         };
12
13         chosen {
14                 bootargs = "console=ttyS0,57600 mtdparts=1f000000.cfi:192k(u-boot)ro,64k(u-boot-env)ro,64k(factory)ro,3776k@0x50000(firmware)";
15         };
16
17         cfi@1f000000 {
18                 compatible = "cfi-flash";
19                 reg = <0x1f000000 0x800000>;
20
21                 bank-width = <2>;
22                 device-width = <2>;
23                 #address-cells = <1>;
24                 #size-cells = <1>;
25
26                 partition@0 {
27                         label = "u-boot";
28                         reg = <0x0 0x30000>;
29                         read-only;
30                 };
31
32                 partition@30000 {
33                         label = "u-boot-env";
34                         reg = <0x30000 0x10000>;
35                         read-only;
36                 };
37
38                 factory: partition@40000 {
39                         label = "factory";
40                         reg = <0x40000 0x10000>;
41                         read-only;
42                 };
43
44                 partition@50000 {
45                         label = "firmware";
46                         reg = <0x50000 0x3b0000>;
47                 };
48         };
49
50         palmbus@10000000 {
51                 sysc@0 {
52                         ralink,pinmux = "i2c", "spi", "uartlite", "jtag", "mdio", "sdram", "rgmii";
53                         ralink,uartmux = "gpio";
54                         ralink,wdtmux = <1>;
55                 };
56
57                 gpio0: gpio@600 {
58                         status = "okay";
59                 };
60         };
61
62         ethernet@10100000 {
63                 status = "okay";
64         };
65
66         esw@10110000 {
67                 status = "okay";
68                 ralink,portmap = <0x3e>;
69         };
70
71         gpio-leds {
72                 compatible = "gpio-leds";
73                 sys {
74                         label = "w306r-v20:green:sys";
75                         gpios = <&gpio0 9 1>;
76                 };
77                 wps {
78                         label = "w306r-v20:green:wps";
79                         gpios = <&gpio0 13 1>;
80                 };
81         };
82
83         gpio-keys-polled {
84                 compatible = "gpio-keys-polled";
85                 #address-cells = <1>;
86                 #size-cells = <0>;
87                 poll-interval = <20>;
88                 reset {
89                         label = "RESET/WPS";
90                         gpios = <&gpio0 10 1>;
91                         linux,code = <0x198>;
92                 };
93         };
94
95         wmac@10180000 {
96                 status = "okay";
97         };
98 };