add ofpart info to the devicetrees
[openwrt/staging/wigyori.git] / target / linux / ramips / dts / ALL5002.dts
1 /dts-v1/;
2
3 /include/ "rt3352.dtsi"
4
5 / {
6 compatible = "ALL5002", "ralink,rt3352-soc";
7 model = "Allnet ALL5002/ALL5003";
8
9 memorydetect {
10 ralink,memory = <0x0 0x200000 0x10000000>;
11 };
12
13 chosen {
14 bootargs = "console=ttyS0,57600 mtdparts=spi0.0:192k(u-boot)ro,64k(u-boot-env)ro,64k(factory)ro,32448k@0x50000(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 = "mx25l25635e";
35 reg = <0 0>;
36 linux,modalias = "m25p80", "mx25l25635e";
37 spi-max-frequency = <10000000>;
38
39 partition@0 {
40 label = "u-boot";
41 reg = <0x0 0x30000>;
42 read-only;
43 };
44
45 partition@30000 {
46 label = "u-boot-env";
47 reg = <0x30000 0x10000>;
48 read-only;
49 };
50
51 factory: partition@40000 {
52 label = "factory";
53 reg = <0x40000 0x10000>;
54 read-only;
55 };
56
57 partition@50000 {
58 label = "firmware";
59 reg = <0x50000 0x1fb0000>;
60 };
61 };
62 };
63 };
64
65 ethernet@10100000 {
66 status = "okay";
67 };
68
69 esw@10110000 {
70 status = "okay";
71 ralink,portmap = <0x3f>;
72 };
73
74 wmac@10180000 {
75 status = "okay";
76 };
77
78 ehci@101c0000 {
79 status = "okay";
80 };
81
82 ohci@101c1000 {
83 status = "okay";
84 };
85
86 i2c-gpio {
87 compatible = "i2c-gpio";
88
89 gpios = <&gpio0 1 0 &gpio0 2 0>;
90 i2c-gpio,delay-us = <10>;
91
92 pcf0: iexp@38 {
93 #gpio-cells = <2>;
94 compatible = "inxp,pcf8574a";
95 reg = <0x38>;
96 gpio-controller;
97 };
98
99 hwmon@4b {
100 compatible = "national,lm92";
101 reg = <0x4b>;
102 };
103 };
104
105 gpio-leds {
106 compatible = "gpio-leds";
107 ld1 {
108 label = "allnet:green:ld1";
109 gpios = <&pcf0 0 1>;
110 };
111 ld2 {
112 label = "allnet:green:ld2";
113 gpios = <&pcf0 1 1>;
114 };
115 };
116 };