Merge tag 'v4.17-rc2' into next-general
[sfrench/cifs-2.6.git] / arch / arm / boot / dts / armada-398-db.dts
1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
2 /*
3  * Device Tree Include file for Marvell Armada 398 Development Board
4  *
5  * Copyright (C) 2015 Marvell
6  *
7  * Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
8  */
9
10 /dts-v1/;
11 #include "armada-398.dtsi"
12
13 / {
14         model = "Marvell Armada 398 Development Board";
15         compatible = "marvell,a398-db", "marvell,armada398", "marvell,armada390";
16
17         chosen {
18                 stdout-path = "serial0:115200n8";
19         };
20
21         memory {
22                 device_type = "memory";
23                 reg = <0x00000000 0x80000000>; /* 2 GB */
24         };
25
26         soc {
27                 ranges = <MBUS_ID(0xf0, 0x01) 0 0xf1000000 0x100000
28                           MBUS_ID(0x01, 0x1d) 0 0xfff00000 0x100000>;
29
30                 internal-regs {
31                         i2c@11000 {
32                                 pinctrl-0 = <&i2c0_pins>;
33                                 pinctrl-names = "default";
34                                 status = "okay";
35                                 clock-frequency = <100000>;
36                         };
37
38                         serial@12000 {
39                                 pinctrl-0 = <&uart0_pins>;
40                                 pinctrl-names = "default";
41                                 status = "okay";
42                         };
43
44                         serial@12100 {
45                                 pinctrl-0 = <&uart1_pins>;
46                                 pinctrl-names = "default";
47                                 status = "okay";
48                         };
49
50                         usb@58000 {
51                                 status = "okay";
52                         };
53
54                         flash@d0000 {
55                                 status = "okay";
56                                 pinctrl-0 = <&nand_pins>;
57                                 pinctrl-names = "default";
58                                 num-cs = <1>;
59                                 marvell,nand-keep-config;
60                                 marvell,nand-enable-arbiter;
61                                 nand-on-flash-bbt;
62                                 nand-ecc-strength = <8>;
63                                 nand-ecc-step-size = <512>;
64
65                                 partition@0 {
66                                         label = "U-Boot";
67                                         reg = <0 0x800000>;
68                                 };
69                                 partition@800000 {
70                                         label = "Linux";
71                                         reg = <0x800000 0x800000>;
72                                 };
73                                 partition@1000000 {
74                                         label = "Filesystem";
75                                         reg = <0x1000000 0x3f000000>;
76                                 };
77                         };
78
79                         usb3@f8000 {
80                                 status = "okay";
81                         };
82                 };
83
84                 pcie {
85                         status = "okay";
86
87                         pcie@1,0 {
88                                 status = "okay";
89                         };
90
91                         pcie@2,0 {
92                                 status = "okay";
93                         };
94
95                         pcie@3,0 {
96                                 status = "okay";
97                         };
98                 };
99         };
100 };
101
102 &spi1 {
103         status = "okay";
104         pinctrl-0 = <&spi1_pins>;
105         pinctrl-names = "default";
106
107         spi-flash@0 {
108                 #address-cells = <1>;
109                 #size-cells = <0>;
110                 compatible = "n25q128a13", "jedec,spi-nor";
111                 reg = <0>;
112                 spi-max-frequency = <108000000>;
113
114                 partition@0 {
115                         label = "U-Boot";
116                         reg = <0 0x400000>;
117                 };
118
119                 partition@400000 {
120                         label = "Filesystem";
121                         reg = <0x400000 0x1000000>;
122                 };
123         };
124 };