ramips: Archer C50v1: fix power led
[openwrt/openwrt.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>;
40 spi-max-frequency = <10000000>;
41
42 partition@0 {
43 label = "u-boot";
44 reg = <0x0 0x30000>;
45 read-only;
46 };
47
48 partition@30000 {
49 label = "u-boot-env";
50 reg = <0x30000 0x10000>;
51 read-only;
52 };
53
54 factory: partition@40000 {
55 label = "factory";
56 reg = <0x40000 0x10000>;
57 read-only;
58 };
59
60 partition@50000 {
61 label = "firmware";
62 reg = <0x50000 0x7b0000>;
63 };
64 };
65 };
66
67 &gpio1 {
68 status = "okay";
69 };
70
71 &pinctrl {
72 state_default: pinctrl0 {
73 gpio {
74 ralink,group = "jtag", "rgmii", "mdio", "uartf";
75 ralink,function = "gpio";
76 };
77 };
78 };
79
80 &ethernet {
81 mtd-mac-address = <&factory 0x4>;
82 };
83
84 &esw {
85 mediatek,portmap = <0x2f>;
86 mediatek,led_polarity = <0x17>;
87 };
88
89 &wmac {
90 ralink,mtd-eeprom = <&factory 0>;
91 };
92
93 &ehci {
94 status = "okay";
95 };
96
97 &ohci {
98 status = "okay";
99 };