b1f28ce61ba80b5a5cfa256dab04fb0ba8c3427a
[openwrt/staging/wigyori.git] / target / linux / ramips / dts / ALL5003.dts
1 /dts-v1/;
2
3 /include/ "rt5350.dtsi"
4
5 / {
6 compatible = "ALL5003", "ralink,rt5350-soc";
7 model = "Allnet ALL5003";
8
9 palmbus@10000000 {
10 sysc@0 {
11 ralink,pinmux = "spi", "uartlite", "jtag", "mdio", "sdram", "rgmii";
12 ralink,gpiomux = "i2c";
13 ralink,uartmux = "gpio";
14 ralink,wdtmux = <1>;
15 };
16
17 gpio0: gpio@600 {
18 status = "okay";
19 };
20
21 spi@b00 {
22 status = "okay";
23 m25p80@0 {
24 #address-cells = <1>;
25 #size-cells = <1>;
26 compatible = "mx25l25635e";
27 reg = <0 0>;
28 linux,modalias = "m25p80", "mx25l25635e";
29 spi-max-frequency = <10000000>;
30
31 partition@0 {
32 label = "u-boot";
33 reg = <0x0 0x30000>;
34 read-only;
35 };
36
37 partition@30000 {
38 label = "u-boot-env";
39 reg = <0x30000 0x10000>;
40 read-only;
41 };
42
43 factory: partition@40000 {
44 label = "factory";
45 reg = <0x40000 0x10000>;
46 read-only;
47 };
48
49 partition@50000 {
50 label = "firmware";
51 reg = <0x50000 0x1fb0000>;
52 };
53 };
54 };
55 };
56
57 ethernet@10100000 {
58 status = "okay";
59 };
60
61 esw@10110000 {
62 status = "okay";
63 ralink,portmap = <0x3f>;
64 };
65
66 wmac@10180000 {
67 status = "okay";
68 };
69
70 ehci@101c0000 {
71 status = "okay";
72 };
73
74 ohci@101c1000 {
75 status = "okay";
76 };
77
78 i2c-gpio {
79 compatible = "i2c-gpio";
80
81 gpios = <&gpio0 1 0 &gpio0 2 0>;
82 i2c-gpio,delay-us = <10>;
83
84 pcf0: iexp@38 {
85 #gpio-cells = <2>;
86 compatible = "inxp,pcf8574a";
87 reg = <0x38>;
88 gpio-controller;
89 };
90
91 hwmon@4b {
92 compatible = "national,lm92";
93 reg = <0x4b>;
94 };
95 };
96
97 gpio-leds {
98 compatible = "gpio-leds";
99 ld1 {
100 label = "allnet:green:ld1";
101 gpios = <&pcf0 0 1>;
102 };
103 ld2 {
104 label = "allnet:green:ld2";
105 gpios = <&pcf0 1 1>;
106 };
107 };
108 };