add ofpart info to the devicetrees
[openwrt/staging/chunkeey.git] / target / linux / ramips / dts / NW718.dts
1 /dts-v1/;
2
3 /include/ "rt3050.dtsi"
4
5 / {
6 compatible = "NW718", "ralink,rt3050-soc";
7 model = "Netcore NW718";
8
9 memorydetect {
10 ralink,memory = <0x0 0x200000 0x4000000>;
11 };
12
13 chosen {
14 bootargs = "console=ttyS0,57600 mtdparts=spi0.0:192k(u-boot)ro,128k(config)ro,64k(factory)ro,3712k@0x60000(firmware)";
15 };
16
17 palmbus@10000000 {
18 sysc@0 {
19 ralink,pinmux = "spi", "uartlite", "jtag", "mdio", "sdram", "rgmii";
20 ralink,gpiomux = "i2c";
21 ralink,uartmux = "gpio";
22 ralink,wdtmux = <1>;
23 };
24
25 gpio0: gpio@600 {
26 status = "okay";
27 };
28
29 spi@b00 {
30 status = "okay";
31 m25p80@0 {
32 #address-cells = <1>;
33 #size-cells = <1>;
34 compatible = "mx25l3205d";
35 reg = <0 0>;
36 linux,modalias = "m25p80", "mx25l3205d";
37 spi-max-frequency = <25000000>;
38
39 partition@0 {
40 label = "u-boot";
41 reg = <0x0 0x30000>;
42 read-only;
43 };
44
45 partition@30000 {
46 label = "config";
47 reg = <0x30000 0x20000>;
48 read-only;
49 };
50
51 factory: partition@50000 {
52 label = "factory";
53 reg = <0x50000 0x10000>;
54 read-only;
55 };
56
57 partition@60000 {
58 label = "firmware";
59 reg = <0x60000 0x3a0000>;
60 };
61 };
62 };
63 };
64
65 ethernet@10100000 {
66 status = "okay";
67 };
68
69 esw@10110000 {
70 status = "okay";
71 ralink,portmap = <0x2f>;
72 };
73
74 gpio-leds {
75 compatible = "gpio-leds";
76 cpu {
77 label = "nw718:amber:cpu";
78 gpios = <&gpio0 13 1>;
79 };
80 usb {
81 label = "nw718:amber:usb";
82 gpios = <&gpio0 8 1>;
83 };
84 wps {
85 label = "nw718:amber:wps";
86 gpios = <&gpio0 14 1>;
87 };
88 };
89
90 gpio-keys-polled {
91 compatible = "gpio-keys-polled";
92 #address-cells = <1>;
93 #size-cells = <0>;
94 poll-interval = <20>;
95 reset {
96 label = "reset";
97 gpios = <&gpio0 10 1>;
98 linux,code = <0x198>;
99 };
100 wps {
101 label = "wps";
102 gpios = <&gpio0 0 1>;
103 linux,code = <0x211>;
104 };
105 };
106
107 wmac@10180000 {
108 status = "okay";
109 };
110
111 otg@101c0000 {
112 status = "okay";
113 };
114 };