[ramips] add ofpart info to the devicetrees
[openwrt.git] / target / linux / ramips / dts / F5D8235_V2.dts
1 /dts-v1/;
2
3 /include/ "rt3050.dtsi"
4
5 / {
6         compatible = "F5D8235_V2", "ralink,rt3052-soc";
7         model = "Belkin F5D8235 v2";
8
9         memorydetect {
10                 ralink,memory = <0x0 0x200000 0x4000000>;
11         };
12
13
14         chosen {
15                 bootargs = "console=ttyS0,57600 mtdparts=1f000000.cfi:320k(u-boot)ro,7744k(firmware),64k(nvram),64k(factory)";
16         };
17
18         palmbus@10000000 {
19                 sysc@0 {
20                         ralink,pinmux = "uartlite", "jtag", "sdram", "rgmii";
21                         ralink,gpiomux = "i2c", "spi", "mdio";
22                         ralink,uartmux = "gpio";
23                         ralink,wdtmux = <1>;
24                 };
25
26                 gpio0: gpio@600 {
27                         status = "okay";
28                 };
29
30         };
31
32         cfi@1f000000 {
33                 compatible = "cfi-flash";
34                 reg = <0x1f000000 0x800000>;
35
36                 bank-width = <2>;
37                 device-width = <2>;
38                 #address-cells = <1>;
39                 #size-cells = <1>;
40
41                 partition@0 {
42                         label = "u-boot";
43                         reg = <0x0 0x50000>;
44                         read-only;
45                 };
46
47                 partition@50000 {
48                         label = "firmware";
49                         reg = <0x50000 0x790000>;
50                 };
51
52                 partition@7e0000 {
53                         label = "nvram";
54                         reg = <0x7e0000 0x10000>;
55                 };
56
57                 factory: partition@7f0000 {
58                         label = "factory";
59                         reg = <0x7f0000 0x10000>;
60                 };
61         };
62
63         ethernet@10100000 {
64                 status = "okay";
65         };
66
67         esw@10110000 {
68                 status = "okay";
69                 ralink,portmap = <0x3f>;
70         };
71
72         wmac@10180000 {
73                 status = "okay";
74         };
75
76         otg@101c0000 {
77                 status = "okay";
78         };
79
80         rtl8366rb {
81                 compatible = "rtl8367rb";
82                 gpio-sda = <&gpio0 1 0>;
83                 gpio-sck = <&gpio0 2 0>;
84         };
85
86         gpio-leds {
87                 compatible = "gpio-leds";
88                 internet {
89                         label = "f5d8235v2:blue:internet";
90                         gpios = <&gpio0 5 1>;
91                 };
92                 internet2 {
93                         label = "f5d8235v2:amber:internet";
94                         gpios = <&gpio0 6 1>;
95                 };
96                 modem {
97                         label = "f5d8235v2:blue:modem";
98                         gpios = <&gpio0 11 1>;
99                 };
100                 modem2 {
101                         label = "f5d8235v2:amber:modem";
102                         gpios = <&gpio0 8 1>;
103                 };
104                 router {
105                         label = "f5d8235v2:blue:router";
106                         gpios = <&gpio0 9 1>;
107                 };
108                 storage {
109                         label = "f5d8235v2:blue:storage";
110                         gpios = <&gpio0 23 1>;
111                 };
112                 storage2 {
113                         label = "f5d8235v2:amber:storage";
114                         gpios = <&gpio0 22 1>;
115                 };
116                 security {
117                         label = "f5d8235v2:blue:security";
118                         gpios = <&gpio0 13 1>;
119                 };
120                 security2 {
121                         label = "f5d8235v2:amber:security";
122                         gpios = <&gpio0 12 1>;
123                 };
124         };
125 };