ramips: Archer C50v1: fix power led
[openwrt/openwrt.git] / target / linux / ramips / dts / HC5XXX.dtsi
1 #include "mt7620a.dtsi"
2
3 #include <dt-bindings/input/input.h>
4
5 / {
6 chosen {
7 bootargs = "console=ttyS0,115200";
8 };
9
10 gpio-keys-polled {
11 compatible = "gpio-keys-polled";
12 #address-cells = <1>;
13 #size-cells = <0>;
14 poll-interval = <20>;
15
16 reset {
17 label = "reset";
18 gpios = <&gpio0 12 1>;
19 linux,code = <KEY_RESTART>;
20 };
21 };
22
23 gpio_export {
24 compatible = "gpio-export";
25 #size-cells = <0>;
26
27 usbpower {
28 gpio-export,name = "usbpower";
29 gpio-export,output = <1>;
30 gpios = <&gpio0 13 0>;
31 };
32 };
33 };
34
35 &sysc {
36 ralink,gpiomux = "i2c", "jtag";
37 ralink,uartmux = "gpio";
38 ralink,wdtmux = <1>;
39 };
40
41 &gpio0 {
42 status = "okay";
43 };
44
45 &gpio2 {
46 status = "okay";
47 };
48
49 &gpio3 {
50 status = "okay";
51 };
52
53 &spi0 {
54 status = "okay";
55
56 m25p80@0 {
57 #address-cells = <1>;
58 #size-cells = <1>;
59 compatible = "jedec,spi-nor";
60 reg = <0>;
61 spi-max-frequency = <10000000>;
62
63 partition@0 {
64 label = "u-boot";
65 reg = <0x0 0x30000>;
66 };
67
68 partition@30000 {
69 label = "u-boot-env";
70 reg = <0x30000 0x10000>;
71 read-only;
72 };
73
74 factory: partition@40000 {
75 label = "factory";
76 reg = <0x40000 0x10000>;
77 };
78
79 partition@50000 {
80 label = "firmware";
81 reg = <0x50000 0xf80000>;
82 };
83
84 partition@fd0000 {
85 label = "hwf_config";
86 reg = <0xfd0000 0x10000>;
87 };
88
89 bdinfo: partition@fe0000 {
90 label = "bdinfo";
91 reg = <0xfe0000 0x10000>;
92 };
93
94 partition@ff0000 {
95 label = "backup";
96 reg = <0xff0000 0x10000>;
97 };
98 };
99 };
100
101 &ehci {
102 status = "okay";
103 };
104
105 &ohci {
106 status = "okay";
107 };
108
109 &ethernet {
110 pinctrl-names = "default";
111 pinctrl-0 = <&ephy_pins>;
112 mtd-mac-address = <&factory 0x4>;
113 mediatek,portmap = "wllll";
114 };
115
116 &sdhci {
117 status = "okay";
118 };
119
120 &wmac {
121 ralink,mtd-eeprom = <&factory 0>;
122 };
123
124 &pcie {
125 status = "okay";
126 };
127
128 &pinctrl {
129 state_default: pinctrl0 {
130 gpio {
131 ralink,group = "uartf", "wled", "nd_sd";
132 ralink,function = "gpio";
133 };
134
135 pa {
136 ralink,group = "pa";
137 ralink,function = "pa";
138 };
139 };
140 };