Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/dtor/input
[sfrench/cifs-2.6.git] / arch / arm / boot / dts / armada-xp-db-xc3-24g4xg.dts
1 /*
2  * Device Tree file for DB-XC3-24G4XG board
3  *
4  * Copyright (C) 2016 Allied Telesis Labs
5  *
6  * Based on armada-xp-db.dts
7  *
8  * This file is dual-licensed: you can use it either under the terms
9  * of the GPL or the X11 license, at your option. Note that this dual
10  * licensing only applies to this file, and not this project as a
11  * whole.
12  *
13  *  a) This file is free software; you can redistribute it and/or
14  *     modify it under the terms of the GNU General Public License as
15  *     published by the Free Software Foundation; either version 2 of the
16  *     License, or (at your option) any later version.
17  *
18  *     This file is distributed in the hope that it will be useful,
19  *     but WITHOUT ANY WARRANTY; without even the implied warranty of
20  *     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
21  *     GNU General Public License for more details.
22  *
23  * Or, alternatively,
24  *
25  *  b) Permission is hereby granted, free of charge, to any person
26  *     obtaining a copy of this software and associated documentation
27  *     files (the "Software"), to deal in the Software without
28  *     restriction, including without limitation the rights to use,
29  *     copy, modify, merge, publish, distribute, sublicense, and/or
30  *     sell copies of the Software, and to permit persons to whom the
31  *     Software is furnished to do so, subject to the following
32  *     conditions:
33  *
34  *     The above copyright notice and this permission notice shall be
35  *     included in all copies or substantial portions of the Software.
36  *
37  *     THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
38  *     EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
39  *     OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
40  *     NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
41  *     HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
42  *     WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
43  *     FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
44  *     OTHER DEALINGS IN THE SOFTWARE.
45  *
46  * Note: this Device Tree assumes that the bootloader has remapped the
47  * internal registers to 0xf1000000 (instead of the default
48  * 0xd0000000). The 0xf1000000 is the default used by the recent,
49  * DT-capable, U-Boot bootloaders provided by Marvell. Some earlier
50  * boards were delivered with an older version of the bootloader that
51  * left internal registers mapped at 0xd0000000. If you are in this
52  * situation, you should either update your bootloader (preferred
53  * solution) or the below Device Tree should be adjusted.
54  */
55
56 /dts-v1/;
57 #include "armada-xp-98dx3336.dtsi"
58
59 / {
60         model = "DB-XC3-24G4XG";
61         compatible = "marvell,db-xc3-24g4xg", "marvell,armadaxp-98dx3336", "marvell,armada-370-xp";
62
63         chosen {
64                 bootargs = "console=ttyS0,115200 earlyprintk";
65         };
66
67         memory {
68                 device_type = "memory";
69                 reg = <0 0x00000000 0 0x40000000>; /* 1 GB */
70         };
71 };
72
73 &devbus_bootcs {
74         status = "okay";
75
76         /* Device Bus parameters are required */
77
78         /* Read parameters */
79         devbus,bus-width    = <16>;
80         devbus,turn-off-ps  = <60000>;
81         devbus,badr-skew-ps = <0>;
82         devbus,acc-first-ps = <124000>;
83         devbus,acc-next-ps  = <248000>;
84         devbus,rd-setup-ps  = <0>;
85         devbus,rd-hold-ps   = <0>;
86
87         /* Write parameters */
88         devbus,sync-enable = <0>;
89         devbus,wr-high-ps  = <60000>;
90         devbus,wr-low-ps   = <60000>;
91         devbus,ale-wr-ps   = <60000>;
92 };
93
94 &uart0 {
95         status = "okay";
96 };
97
98 &uart1 {
99         status = "okay";
100 };
101
102 &i2c0 {
103         clock-frequency = <100000>;
104         status = "okay";
105 };
106
107 &nand {
108         status = "okay";
109         num-cs = <1>;
110         marvell,nand-keep-config;
111         marvell,nand-enable-arbiter;
112         nand-on-flash-bbt;
113         nand-ecc-strength = <4>;
114         nand-ecc-step-size = <512>;
115 };
116
117 &spi0 {
118         status = "okay";
119
120         spi-flash@0 {
121                 #address-cells = <1>;
122                 #size-cells = <1>;
123                 compatible = "m25p64";
124                 reg = <0>; /* Chip select 0 */
125                 spi-max-frequency = <20000000>;
126                 m25p,fast-read;
127
128                 partition@u-boot {
129                         reg = <0x00000000 0x00100000>;
130                         label = "u-boot";
131                 };
132                 partition@u-boot-env {
133                         reg = <0x00100000 0x00040000>;
134                         label = "u-boot-env";
135                 };
136                 partition@unused {
137                         reg = <0x00140000 0x00ec0000>;
138                         label = "unused";
139                 };
140
141         };
142 };