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