Fresh pull from upstream lede-17.01 branch to fix several outstanding
[librecmc/librecmc.git] / target / linux / ramips / dts / RT5350F-OLINUXINO.dts
1 /dts-v1/;
2
3 #include "rt5350.dtsi"
4
5 / {
6         compatible = "RT5350F-OLINUXINO", "ralink,rt5350-soc";
7         model = "Olimex RT5350F-OLinuXino";
8 };
9
10 &spi0 {
11         status = "okay";
12
13         m25p80@0 {
14                 #address-cells = <1>;
15                 #size-cells = <1>;
16                 compatible = "jedec,spi-nor";
17                 reg = <0>;
18                 spi-max-frequency = <10000000>;
19
20                 partition@0 {
21                         label = "u-boot";
22                         reg = <0x0 0x30000>;
23                         read-only;
24                 };
25
26                 partition@30000 {
27                         label = "u-boot-env";
28                         reg = <0x30000 0x10000>;
29                         read-only;
30                 };
31
32                 factory: partition@40000 {
33                         label = "factory";
34                         reg = <0x40000 0x10000>;
35                         read-only;
36                 };
37
38                 partition@50000 {
39                         label = "firmware";
40                         reg = <0x50000 0x7b0000>;
41                 };
42         };
43 };
44
45 &gpio1 {
46         status = "okay";
47 };
48
49 &pinctrl {
50         state_default: pinctrl0 {
51                 gpio {
52                         ralink,group = "jtag", "rgmii", "mdio", "uartf";
53                         ralink,function = "gpio";
54                 };
55         };
56 };
57
58 &ethernet {
59         mtd-mac-address = <&factory 0x4>;
60 };
61
62 &esw {
63         mediatek,portmap = <0x2f>;
64         mediatek,led_polarity = <0x17>;
65 };
66
67 &wmac {
68         ralink,mtd-eeprom = <&factory 0>;
69 };
70
71 &ehci {
72         status = "okay";
73 };
74
75 &ohci {
76         status = "okay";
77 };