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