ramips: fix WHR-600D eeprom dt property
[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 linux,modalias = "m25p80", "w25q128";
62 spi-max-frequency = <10000000>;
63
64 partition@0 {
65 label = "u-boot";
66 reg = <0x0 0x30000>;
67 };
68
69 partition@30000 {
70 label = "u-boot-env";
71 reg = <0x30000 0x10000>;
72 read-only;
73 };
74
75 factory: partition@40000 {
76 label = "factory";
77 reg = <0x40000 0x10000>;
78 };
79
80 partition@50000 {
81 label = "firmware";
82 reg = <0x50000 0xf80000>;
83 };
84
85 partition@fd0000 {
86 label = "hwf_config";
87 reg = <0xfd0000 0x10000>;
88 };
89
90 bdinfo: partition@fe0000 {
91 label = "bdinfo";
92 reg = <0xfe0000 0x10000>;
93 };
94
95 partition@ff0000 {
96 label = "backup";
97 reg = <0xff0000 0x10000>;
98 };
99 };
100 };
101
102 &ehci {
103 status = "okay";
104 };
105
106 &ohci {
107 status = "okay";
108 };
109
110 &ethernet {
111 pinctrl-names = "default";
112 pinctrl-0 = <&ephy_pins>;
113 mtd-mac-address = <&factory 0x4>;
114 mediatek,portmap = "wllll";
115 };
116
117 &sdhci {
118 status = "okay";
119 };
120
121 &wmac {
122 ralink,mtd-eeprom = <&factory 0>;
123 };
124
125 &pcie {
126 status = "okay";
127 };
128
129 &pinctrl {
130 state_default: pinctrl0 {
131 gpio {
132 ralink,group = "uartf", "wled", "nd_sd";
133 ralink,function = "gpio";
134 };
135
136 pa {
137 ralink,group = "pa";
138 ralink,function = "pa";
139 };
140 };
141 };