ramips: remove top-level {address,size}-cells properties from .dts files
[openwrt.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                 };
40         };
41
42         ethernet@10100000 {
43                 status = "okay";
44         };
45
46         esw@10110000 {
47                 status = "okay";
48                 ralink,portmap = <0x3f>;
49         };
50
51         wmac@10180000 {
52                 status = "okay";
53         };
54
55         ehci@101c0000 {
56                 status = "okay";
57         };
58
59         ohci@101c1000 {
60                 status = "okay";
61         };
62
63         i2c-gpio {
64                 compatible = "i2c-gpio";
65
66                 gpios = <&gpio0 1 0 &gpio0 2 0>;
67                 i2c-gpio,delay-us = <10>;
68
69                 pcf0: iexp@38 {
70                         #gpio-cells = <2>;
71                         compatible = "inxp,pcf8574a";
72                         reg = <0x38>;
73                         gpio-controller;
74                 };
75
76                 hwmon@4b {
77                         compatible = "national,lm92";
78                         reg = <0x4b>;
79                 };
80         };
81
82         gpio-leds {
83                 compatible = "gpio-leds";
84                 ld1 {
85                         label = "allnet:green:ld1";
86                         gpios = <&pcf0 0 1>;
87                 };
88                 ld2 {
89                         label = "allnet:green:ld2";
90                         gpios = <&pcf0 1 1>;
91                 };
92         };
93 };