8665c7dd735b15711db8cbc02ccf6a2cdfaf15d5
[oweals/openwrt.git] / target / linux / ramips / dts / rt5350_olimex_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 &spi0 {
13         status = "okay";
14
15         m25p80@0 {
16                 compatible = "jedec,spi-nor";
17                 reg = <0>;
18                 spi-max-frequency = <10000000>;
19
20                 partitions {
21                         compatible = "fixed-partitions";
22                         #address-cells = <1>;
23                         #size-cells = <1>;
24
25                         partition@0 {
26                                 label = "u-boot";
27                                 reg = <0x0 0x30000>;
28                                 read-only;
29                         };
30
31                         partition@30000 {
32                                 label = "u-boot-env";
33                                 reg = <0x30000 0x10000>;
34                                 read-only;
35                         };
36
37                         factory: partition@40000 {
38                                 label = "factory";
39                                 reg = <0x40000 0x10000>;
40                                 read-only;
41                         };
42
43                         partition@50000 {
44                                 compatible = "denx,uimage";
45                                 label = "firmware";
46                                 reg = <0x50000 0x7b0000>;
47                         };
48                 };
49         };
50 };
51
52 &gpio1 {
53         status = "okay";
54 };
55
56 &state_default {
57         gpio {
58                 ralink,group = "jtag";
59                 ralink,function = "gpio";
60         };
61         uartf_gpio {
62                 ralink,group = "uartf";
63                 ralink,function = "gpio uartf";
64         };
65 };
66
67 &ethernet {
68         mtd-mac-address = <&factory 0x4>;
69 };
70
71 &esw {
72         mediatek,portmap = <0x2f>;
73         mediatek,led_polarity = <0x17>;
74 };
75
76 &wmac {
77         ralink,mtd-eeprom = <&factory 0>;
78         ralink,led-polarity = <1>;
79 };
80
81 &ehci {
82         status = "okay";
83 };
84
85 &ohci {
86         status = "okay";
87 };
88
89 &i2c {
90         status = "okay";
91 };
92
93 &uart {
94         status = "okay";
95 };