Merge branch 'apw' (xfrm_user fixes)
[sfrench/cifs-2.6.git] / arch / arm / boot / dts / sama5d3xcm_cmp.dtsi
1 /*
2  * sama5d3xcm_cmp.dtsi - Device Tree Include file for SAMA5D36 CMP CPU Module
3  *
4  *  Copyright (C) 2016 Atmel,
5  *
6  * This file is dual-licensed: you can use it either under the terms
7  * of the GPL or the X11 license, at your option. Note that this dual
8  * licensing only applies to this file, and not this project as a
9  * whole.
10  *
11  *  a) This file is free software; you can redistribute it and/or
12  *     modify it under the terms of the GNU General Public License as
13  *     published by the Free Software Foundation; either version 2 of the
14  *     License, or (at your option) any later version.
15  *
16  *     This file is distributed in the hope that it will be useful,
17  *     but WITHOUT ANY WARRANTY; without even the implied warranty of
18  *     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
19  *     GNU General Public License for more details.
20  *
21  * Or, alternatively,
22  *
23  *  b) Permission is hereby granted, free of charge, to any person
24  *     obtaining a copy of this software and associated documentation
25  *     files (the "Software"), to deal in the Software without
26  *     restriction, including without limitation the rights to use,
27  *     copy, modify, merge, publish, distribute, sublicense, and/or
28  *     sell copies of the Software, and to permit persons to whom the
29  *     Software is furnished to do so, subject to the following
30  *     conditions:
31  *
32  *     The above copyright notice and this permission notice shall be
33  *     included in all copies or substantial portions of the Software.
34  *
35  *     THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
36  *     EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
37  *     OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
38  *     NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
39  *     HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
40  *     WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
41  *     FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
42  *     OTHER DEALINGS IN THE SOFTWARE.
43  */
44
45 / {
46         compatible = "atmel,sama5d3xcm-cmp", "atmel,sama5d3", "atmel,sama5";
47
48         chosen {
49                 stdout-path = "serial0:115200n8";
50         };
51
52         memory {
53                 reg = <0x20000000 0x20000000>;
54         };
55
56         clocks {
57                 slow_xtal {
58                         clock-frequency = <32768>;
59                 };
60
61                 main_xtal {
62                         clock-frequency = <12000000>;
63                 };
64         };
65
66         ahb {
67                 apb {
68                         spi0: spi@f0004000 {
69                                 cs-gpios = <&pioD 13 0>, <0>, <0>, <0>;
70                         };
71
72                         macb0: ethernet@f0028000 {
73                                 phy-mode = "rgmii";
74                                 #address-cells = <1>;
75                                 #size-cells = <0>;
76
77                                 ethernet-phy@1 {
78                                         reg = <0x1>;
79                                         interrupt-parent = <&pioB>;
80                                         interrupts = <25 IRQ_TYPE_EDGE_FALLING>;
81                                         txen-skew-ps = <800>;
82                                         txc-skew-ps = <3000>;
83                                         rxdv-skew-ps = <400>;
84                                         rxc-skew-ps = <3000>;
85                                         rxd0-skew-ps = <400>;
86                                         rxd1-skew-ps = <400>;
87                                         rxd2-skew-ps = <400>;
88                                         rxd3-skew-ps = <400>;
89                                 };
90
91                                 ethernet-phy@7 {
92                                         reg = <0x7>;
93                                         interrupt-parent = <&pioB>;
94                                         interrupts = <25 IRQ_TYPE_EDGE_FALLING>;
95                                         txen-skew-ps = <800>;
96                                         txc-skew-ps = <3000>;
97                                         rxdv-skew-ps = <400>;
98                                         rxc-skew-ps = <3000>;
99                                         rxd0-skew-ps = <400>;
100                                         rxd1-skew-ps = <400>;
101                                         rxd2-skew-ps = <400>;
102                                         rxd3-skew-ps = <400>;
103                                 };
104                         };
105
106                         i2c1: i2c@f0018000 {
107                                 pmic: act8865@5b {
108                                         compatible = "active-semi,act8865";
109                                         reg = <0x5b>;
110                                         status = "disabled";
111
112                                         regulators {
113                                                 vcc_1v8_reg: DCDC_REG1 {
114                                                         regulator-name = "VCC_1V8";
115                                                         regulator-min-microvolt = <1800000>;
116                                                         regulator-max-microvolt = <1800000>;
117                                                         regulator-always-on;
118                                                 };
119
120                                                 vcc_1v2_reg: DCDC_REG2 {
121                                                         regulator-name = "VCC_1V2";
122                                                         regulator-min-microvolt = <1100000>;
123                                                         regulator-max-microvolt = <1300000>;
124                                                         regulator-always-on;
125                                                 };
126
127                                                 vcc_3v3_reg: DCDC_REG3 {
128                                                         regulator-name = "VCC_3V3";
129                                                         regulator-min-microvolt = <3300000>;
130                                                         regulator-max-microvolt = <3300000>;
131                                                         regulator-always-on;
132                                                 };
133
134                                                 vddana_reg: LDO_REG1 {
135                                                         regulator-name = "VDDANA";
136                                                         regulator-min-microvolt = <3300000>;
137                                                         regulator-max-microvolt = <3300000>;
138                                                         regulator-always-on;
139                                                 };
140
141                                                 vddfuse_reg: LDO_REG2 {
142                                                         regulator-name = "FUSE_2V5";
143                                                         regulator-min-microvolt = <2500000>;
144                                                         regulator-max-microvolt = <2500000>;
145                                                 };
146                                         };
147                                 };
148                         };
149                 };
150
151                 nand0: nand@60000000 {
152                         nand-bus-width = <8>;
153                         nand-ecc-mode = "hw";
154                         atmel,has-pmecc;
155                         atmel,pmecc-cap = <4>;
156                         atmel,pmecc-sector-size = <512>;
157                         nand-on-flash-bbt;
158                         status = "okay";
159
160                         at91bootstrap@0 {
161                                 label = "at91bootstrap";
162                                 reg = <0x0 0x40000>;
163                         };
164
165                         bootloader@40000 {
166                                 label = "bootloader";
167                                 reg = <0x40000 0x80000>;
168                         };
169
170                         bootloaderenv@c0000 {
171                                 label = "bootloader env";
172                                 reg = <0xc0000 0xc0000>;
173                         };
174
175                         dtb@180000 {
176                                 label = "device tree";
177                                 reg = <0x180000 0x80000>;
178                         };
179
180                         kernel@200000 {
181                                 label = "kernel";
182                                 reg = <0x200000 0x600000>;
183                         };
184
185                         rootfs@800000 {
186                                 label = "rootfs";
187                                 reg = <0x800000 0x0f800000>;
188                         };
189                 };
190         };
191
192         leds {
193                 compatible = "gpio-leds";
194
195                 d2 {
196                         label = "d2";
197                         gpios = <&pioE 25 GPIO_ACTIVE_LOW>;
198                         linux,default-trigger = "heartbeat";
199                 };
200         };
201 };