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