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