d27bf017a9f836842ffbf149b8088f9abb26de41
[openwrt/staging/wigyori.git] / target / linux / ramips / dts / RT5350F-OLINUXINO.dtsi
1 #include "rt5350.dtsi"
2
3 / {
4 compatible = "olimex,rt5350f-olinuxino", "ralink,rt5350-soc";
5
6 aliases {
7 serial0 = &uartlite;
8 serial1 = &uart;
9 };
10 };
11
12
13 &spi0 {
14 status = "okay";
15
16 m25p80@0 {
17 compatible = "jedec,spi-nor";
18 reg = <0>;
19 spi-max-frequency = <10000000>;
20
21 partitions {
22 compatible = "fixed-partitions";
23 #address-cells = <1>;
24 #size-cells = <1>;
25
26 partition@0 {
27 label = "u-boot";
28 reg = <0x0 0x30000>;
29 read-only;
30 };
31
32 partition@30000 {
33 label = "u-boot-env";
34 reg = <0x30000 0x10000>;
35 read-only;
36 };
37
38 factory: partition@40000 {
39 label = "factory";
40 reg = <0x40000 0x10000>;
41 read-only;
42 };
43
44 partition@50000 {
45 label = "firmware";
46 reg = <0x50000 0x7b0000>;
47 };
48 };
49 };
50 };
51
52 &gpio1 {
53 status = "okay";
54 };
55
56 &pinctrl {
57 state_default: pinctrl0 {
58 gpio {
59 ralink,group = "jtag", "rgmii", "mdio";
60 ralink,function = "gpio";
61 };
62 uartf_gpio {
63 ralink,group = "uartf";
64 ralink,function = "gpio uartf";
65 };
66 };
67 };
68
69 &ethernet {
70 mtd-mac-address = <&factory 0x4>;
71 };
72
73 &esw {
74 mediatek,portmap = <0x2f>;
75 mediatek,led_polarity = <0x17>;
76 };
77
78 &wmac {
79 ralink,mtd-eeprom = <&factory 0>;
80 ralink,led-polarity = <1>;
81 };
82
83 &ehci {
84 status = "okay";
85 };
86
87 &ohci {
88 status = "okay";
89 };
90
91 &i2c {
92 status = "okay";
93 };
94
95 &uart {
96 status = "okay";
97 };
98