[ramips] add the dts files that describe the boards in future
[openwrt.git] / target / linux / ramips / dts / ALL5002.dts
1 /dts-v1/;
2
3 /include/ "rt3352.dtsi"
4
5 / {
6         #address-cells = <1>;
7         #size-cells = <1>;
8         compatible = "ALL5002", "ralink,rt3352-soc";
9         model = "Allnet ALL5002/ALL5003";
10
11         memorydetect {
12                 ralink,memory = <0x0 0x200000 0x10000000>;
13         };
14
15         chosen {
16                 bootargs = "console=ttyS0,57600 mtdparts=spi0.0:192k(u-boot)ro,64k(u-boot-env)ro,64k(factory)ro,32448k@0x50000(firmware)";
17         };
18
19         palmbus@10000000 {
20                 sysc@0 {
21                         ralink,pinmmux = "spi", "uartlite", "jtag", "mdio", "sdram", "rgmii";
22                         ralink,gpiomux = "i2c";
23                         ralink,uartmux = "gpio";
24                         ralink,wdtmux = <1>;
25                 };
26
27                 gpio0: gpio@600 {
28                         status = "okay";
29                 };
30
31                 spi@b00 {
32                         status = "okay";
33                         m25p80@0 {
34                                 #address-cells = <1>;
35                                 #size-cells = <1>;
36                                 compatible = "mx25l25635e";
37                                 reg = <0 0>;
38                                 linux,modalias = "m25p80", "mx25l25635e";
39                                 spi-max-frequency = <10000000>;
40                         };
41                 };
42         };
43
44         ethernet@10100000 {
45                 status = "okay";
46         };
47
48         esw@10110000 {
49                 status = "okay";
50                 ralink,portmap = <0x3f>;
51         };
52
53         wmac@10180000 {
54                 status = "okay";
55         };
56
57         ehci@101c0000 {
58                 status = "okay";
59         };
60
61         ohci@101c1000 {
62                 status = "okay";
63         };
64
65         i2c-gpio {
66                 compatible = "i2c-gpio";
67
68                 gpios = <&gpio0 1 0 &gpio0 2 0>;
69                 i2c-gpio,delay-us = <10>;
70
71                 pcf0: iexp@38 {
72                         #gpio-cells = <2>;
73                         compatible = "inxp,pcf8574a";
74                         reg = <0x38>;
75                         gpio-controller;
76                 };
77
78                 hwmon@4b {
79                         compatible = "national,lm92";
80                         reg = <0x4b>;
81                 };
82         };
83
84         gpio-leds {
85                 compatible = "gpio-leds";
86                 ld1 {
87                         label = "allnet:green:ld1";
88                         gpios = <&pcf0 0 1>;
89                 };
90                 ld2 {
91                         label = "allnet:green:ld2";
92                         gpios = <&pcf0 1 1>;
93                 };
94         };
95 };