mtd: nand: omap: Fix comment in platform data using wrong Kconfig symbol
[linux/fpc-iii.git] / arch / arm / boot / dts / armada-370-dlink-dns327l.dts
blobbaa459dd51e442866fad3b58e8a6f3ef336651f5
1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
2 /*
3  * Device Tree file for D-Link DNS-327L
4  *
5  * Copyright (C) 2015, Andrew Andrianov <andrew@ncrmnt.org>
6  */
8 /* Remaining unsolved:
9  * There's still some unknown device on i2c address 0x13
10  */
12 /dts-v1/;
14 #include <dt-bindings/input/input.h>
15 #include <dt-bindings/gpio/gpio.h>
16 #include "armada-370.dtsi"
18 / {
19         model = "D-Link DNS-327L";
20         compatible = "dlink,dns327l",
21                 "marvell,armada370",
22                 "marvell,armada-370-xp";
24         chosen {
25                 stdout-path = &uart0;
26         };
28         memory@0 {
29                 device_type = "memory";
30                 reg = <0x00000000 0x20000000>; /* 512 MiB */
31         };
33         soc {
34                 ranges = <MBUS_ID(0xf0, 0x01) 0 0xd0000000 0x100000
35                         MBUS_ID(0x01, 0xe0) 0 0xfff00000 0x100000
36                         MBUS_ID(0x09, 0x01) 0 0xf1100000 0x10000>;
38                 internal-regs {
39                         sata@a0000 {
40                                 nr-ports = <2>;
41                                 status = "okay";
42                         };
44                         usb@50000 {
45                                 status = "okay";
46                         };
47                 };
48         };
50         gpio-keys {
51                 compatible = "gpio-keys";
52                 pinctrl-0 = <
53                         &backup_button_pin
54                         &power_button_pin
55                         &reset_button_pin>;
56                 pinctrl-names = "default";
58                 power-button {
59                         label = "Power Button";
60                         linux,code = <KEY_POWER>;
61                         gpios = <&gpio2 1 GPIO_ACTIVE_LOW>;
62                 };
64                 backup-button {
65                         label = "Backup Button";
66                         linux,code = <KEY_COPY>;
67                         gpios = <&gpio1 31 GPIO_ACTIVE_LOW>;
68                 };
70                 reset-button {
71                         label = "Reset Button";
72                         linux,code = <KEY_RESTART>;
73                         gpios = <&gpio2 0 GPIO_ACTIVE_LOW>;
74                 };
75         };
77         gpio-leds {
78                 compatible = "gpio-leds";
79                 pinctrl-0 = <
80                         &sata_l_amber_pin
81                         &sata_r_amber_pin
82                         &backup_led_pin
83                         /* Ensure these are managed by hardware */
84                         &sata_l_white_pin
85                         &sata_r_white_pin>;
87                 pinctrl-names = "default";
89                 sata-r-amber-pin {
90                         label = "dns327l:amber:sata-r";
91                         gpios = <&gpio1 20 GPIO_ACTIVE_HIGH>;
92                         default-state = "keep";
93                 };
95                 sata-l-amber-pin {
96                         label = "dns327l:amber:sata-l";
97                         gpios = <&gpio1 21 GPIO_ACTIVE_HIGH>;
98                         default-state = "keep";
99                 };
101                 backup-led-pin {
102                         label = "dns327l:white:usb";
103                         gpios = <&gpio1 29 GPIO_ACTIVE_HIGH>;
104                         default-state = "keep";
105                 };
106         };
108         regulators {
109                 compatible = "simple-bus";
110                 #address-cells = <1>;
111                 #size-cells = <0>;
113                 usb_power: regulator@1 {
114                         compatible = "regulator-fixed";
115                         reg = <1>;
116                         pinctrl-0 = <&xhci_pwr_pin>;
117                         pinctrl-names = "default";
118                         regulator-name = "USB3.0 Port Power";
119                         regulator-min-microvolt = <5000000>;
120                         regulator-max-microvolt = <5000000>;
121                         enable-active-high;
122                         regulator-boot-on;
123                         regulator-always-on;
124                         gpio = <&gpio0 13 GPIO_ACTIVE_HIGH>;
125                 };
127                 sata_r_power: regulator@2 {
128                         compatible = "regulator-fixed";
129                         reg = <2>;
130                         pinctrl-0 = <&sata_r_pwr_pin>;
131                         pinctrl-names = "default";
132                         regulator-name = "SATA-R Power";
133                         regulator-min-microvolt = <5000000>;
134                         regulator-max-microvolt = <5000000>;
135                         startup-delay-us = <2000000>;
136                         enable-active-high;
137                         regulator-always-on;
138                         regulator-boot-on;
139                         gpio = <&gpio1 22 GPIO_ACTIVE_HIGH>;
140                 };
142                 sata_l_power: regulator@3 {
143                         compatible = "regulator-fixed";
144                         reg = <3>;
145                         pinctrl-0 = <&sata_l_pwr_pin>;
146                         pinctrl-names = "default";
147                         regulator-name = "SATA-L Power";
148                         regulator-min-microvolt = <5000000>;
149                         regulator-max-microvolt = <5000000>;
150                         startup-delay-us = <4000000>;
151                         enable-active-high;
152                         regulator-always-on;
153                         regulator-boot-on;
154                         gpio = <&gpio1 24 GPIO_ACTIVE_HIGH>;
155                 };
156         };
159 &pciec {
160         status = "okay";
162         pcie@1,0 {
163                 /* Port 0, Lane 0 */
164                 status = "okay";
165         };
167         pcie@2,0 {
168                 /* Port 1, Lane 0 */
169                 status = "okay";
170         };
173 &pinctrl {
174         sata_l_white_pin: sata-l-white-pin {
175                 marvell,pins = "mpp57";
176                 marvell,function = "sata0";
177         };
179         sata_r_white_pin: sata-r-white-pin {
180                 marvell,pins = "mpp55";
181                 marvell,function = "sata1";
182         };
184         sata_r_amber_pin: sata-r-amber-pin {
185                 marvell,pins = "mpp52";
186                 marvell,function = "gpio";
187         };
189         sata_l_amber_pin: sata-l-amber-pin {
190                 marvell,pins = "mpp53";
191                 marvell,function = "gpio";
192         };
194         backup_led_pin: backup-led-pin {
195                 marvell,pins = "mpp61";
196                 marvell,function = "gpo";
197         };
199         xhci_pwr_pin: xhci-pwr-pin {
200                 marvell,pins = "mpp13";
201                 marvell,function = "gpio";
202         };
204         sata_r_pwr_pin: sata-r-pwr-pin {
205                 marvell,pins = "mpp54";
206                 marvell,function = "gpio";
207         };
209         sata_l_pwr_pin: sata-l-pwr-pin {
210                 marvell,pins = "mpp56";
211                 marvell,function = "gpio";
212         };
214         uart1_pins: uart1-pins {
215                 marvell,pins = "mpp60", "mpp61";
216                 marvell,function = "uart1";
217         };
219         power_button_pin: power-button-pin {
220                 marvell,pins = "mpp65";
221                 marvell,function = "gpio";
222         };
224         backup_button_pin: backup-button-pin {
225                 marvell,pins = "mpp63";
226                 marvell,function = "gpio";
227         };
229         reset_button_pin: reset-button-pin {
230                 marvell,pins = "mpp64";
231                 marvell,function = "gpio";
232         };
235 /* Serial console */
236 &uart0 {
237         status = "okay";
240 /* Connected to Weltrend MCU */
241 &uart1 {
242         pinctrl-0 = <&uart1_pins>;
243         pinctrl-names = "default";
244         status = "okay";
247 &mdio {
248         phy0: ethernet-phy@0 { /* Marvell 88E1318 */
249                 reg = <0>;
250                 marvell,reg-init = <0x0 0x16 0x0 0x0002>,
251                                 <0x0 0x19 0x0 0x0077>,
252                                 <0x0 0x18 0x0 0x5747>;
253         };
256 &eth1 {
257         phy = <&phy0>;
258         phy-mode = "rgmii-id";
259         status = "okay";
262 &i2c0 {
263         compatible = "marvell,mv64xxx-i2c";
264         clock-frequency = <100000>;
265         status = "okay";
268 &nand_controller {
269         status = "okay";
271         nand@0 {
272                 reg = <0>;
273                 label = "pxa3xx_nand-0";
274                 nand-rb = <0>;
275                 marvell,nand-keep-config;
276                 nand-on-flash-bbt;
277                 nand-ecc-strength = <4>;
278                 nand-ecc-step-size = <512>;
280                 partitions {
281                         compatible = "fixed-partitions";
282                         #address-cells = <1>;
283                         #size-cells = <1>;
285                         partition@0 {
286                                 label = "u-boot";
287                                 /* 1.0 MiB */
288                                 reg = <0x0000000 0x100000>;
289                                 read-only;
290                         };
292                         partition@100000 {
293                                 label = "u-boot-env";
294                                 /* 128 KiB */
295                                 reg = <0x100000 0x20000>;
296                                 read-only;
297                         };
299                         partition@120000 {
300                                 label = "uImage";
301                                 /* 7 MiB */
302                                 reg = <0x120000 0x700000>;
303                         };
305                         partition@820000 {
306                                 label = "ubifs";
307                                 /* ~ 84 MiB */
308                                 reg = <0x820000 0x54e0000>;
309                         };
311                         /* Hardcoded into stock bootloader */
312                         partition@5d00000 {
313                                 label = "failsafe-uImage";
314                                 /* 5 MiB */
315                                 reg = <0x5d00000 0x500000>;
316                         };
318                         partition@6200000 {
319                                 label = "failsafe-fs";
320                                 /* 29 MiB */
321                                 reg = <0x6200000 0x1d00000>;
322                         };
324                         partition@7f00000 {
325                                 label = "bbt";
326                                 /* 1 MiB for BBT */
327                                 reg = <0x7f00000 0x100000>;
328                         };
329                 };
330         };