0d21508fba1b0db88d1b9032f7149b8d55b5c85b
[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 gpio0: gpio@600 {
11 status = "okay";
12 };
13
14 spi@b00 {
15 status = "okay";
16 m25p80@0 {
17 #address-cells = <1>;
18 #size-cells = <1>;
19 compatible = "mx25l25635e";
20 reg = <0 0>;
21 linux,modalias = "m25p80", "mx25l25635e";
22 spi-max-frequency = <10000000>;
23
24 partition@0 {
25 label = "u-boot";
26 reg = <0x0 0x30000>;
27 read-only;
28 };
29
30 partition@30000 {
31 label = "u-boot-env";
32 reg = <0x30000 0x10000>;
33 read-only;
34 };
35
36 factory: partition@40000 {
37 label = "factory";
38 reg = <0x40000 0x10000>;
39 read-only;
40 };
41
42 partition@50000 {
43 label = "firmware";
44 reg = <0x50000 0x1fb0000>;
45 };
46 };
47 };
48 };
49
50 pinctrl {
51 state_default: pinctrl0 {
52 gpio {
53 ralink,group = "i2c", "jtag", "rgmii", "mdio", "uartf";
54 ralink,function = "gpio";
55 };
56 };
57 };
58
59 esw@10110000 {
60 ralink,portmap = <0x3f>;
61 };
62
63 wmac@10180000 {
64 ralink,mtd-eeprom = <&factory 0>;
65 };
66
67 ehci@101c0000 {
68 status = "okay";
69 };
70
71 ohci@101c1000 {
72 status = "okay";
73 };
74
75 i2c-gpio {
76 compatible = "i2c-gpio";
77
78 gpios = <&gpio0 1 0 &gpio0 2 0>;
79 i2c-gpio,delay-us = <10>;
80
81 pcf0: iexp@38 {
82 #gpio-cells = <2>;
83 compatible = "inxp,pcf8574a";
84 reg = <0x38>;
85 gpio-controller;
86 };
87
88 hwmon@4b {
89 compatible = "national,lm92";
90 reg = <0x4b>;
91 };
92 };
93
94 gpio-leds {
95 compatible = "gpio-leds";
96 ld1 {
97 label = "allnet:green:ld1";
98 gpios = <&pcf0 0 1>;
99 };
100 ld2 {
101 label = "allnet:green:ld2";
102 gpios = <&pcf0 1 1>;
103 };
104 };
105 };