ARM: at91/dt: at91-sama5d3_xplained: add the regulator device node
[firefly-linux-kernel-4.4.55.git] / arch / arm / boot / dts / at91-sama5d3_xplained.dts
1 /*
2  * at91-sama5d3_xplained.dts - Device Tree file for the SAMA5D3 Xplained board
3  *
4  *  Copyright (C) 2014 Atmel,
5  *                2014 Nicolas Ferre <nicolas.ferre@atmel.com>
6  *
7  * Licensed under GPLv2 or later.
8  */
9 /dts-v1/;
10 #include "sama5d36.dtsi"
11
12 / {
13         model = "SAMA5D3 Xplained";
14         compatible = "atmel,sama5d3-xplained", "atmel,sama5d3", "atmel,sama5";
15
16         chosen {
17                 bootargs = "console=ttyS0,115200";
18         };
19
20         memory {
21                 reg = <0x20000000 0x10000000>;
22         };
23
24         ahb {
25                 apb {
26                         mmc0: mmc@f0000000 {
27                                 pinctrl-0 = <&pinctrl_mmc0_clk_cmd_dat0 &pinctrl_mmc0_dat1_3 &pinctrl_mmc0_dat4_7 &pinctrl_mmc0_cd>;
28                                 status = "okay";
29                                 slot@0 {
30                                         reg = <0>;
31                                         bus-width = <8>;
32                                         cd-gpios = <&pioE 0 GPIO_ACTIVE_LOW>;
33                                 };
34                         };
35
36                         spi0: spi@f0004000 {
37                                 cs-gpios = <&pioD 13 0>;
38                                 status = "okay";
39                         };
40
41                         can0: can@f000c000 {
42                                 status = "okay";
43                         };
44
45                         i2c0: i2c@f0014000 {
46                                 pinctrl-0 = <&pinctrl_i2c0_pu>;
47                                 status = "okay";
48                         };
49
50                         i2c1: i2c@f0018000 {
51                                 status = "okay";
52
53                                 pmic: act8865@5b {
54                                         compatible = "active-semi,act8865";
55                                         reg = <0x5b>;
56                                         status = "okay";
57
58                                         regulators {
59                                                 vcc_1v8_reg: DCDC_REG1 {
60                                                         regulator-name = "VCC_1V8";
61                                                         regulator-min-microvolt = <1800000>;
62                                                         regulator-max-microvolt = <1800000>;
63                                                         regulator-always-on;
64                                                 };
65
66                                                 vcc_1v2_reg: DCDC_REG2 {
67                                                         regulator-name = "VCC_1V2";
68                                                         regulator-min-microvolt = <1200000>;
69                                                         regulator-max-microvolt = <1200000>;
70                                                         regulator-always-on;
71                                                 };
72
73                                                 vcc_3v3_reg: DCDC_REG3 {
74                                                         regulator-name = "VCC_3V3";
75                                                         regulator-min-microvolt = <3300000>;
76                                                         regulator-max-microvolt = <3300000>;
77                                                         regulator-always-on;
78                                                 };
79
80                                                 vddfuse_reg: LDO_REG1 {
81                                                         regulator-name = "FUSE_2V5";
82                                                         regulator-min-microvolt = <2500000>;
83                                                         regulator-max-microvolt = <2500000>;
84                                                 };
85
86                                                 vddana_reg: LDO_REG2 {
87                                                         regulator-name = "VDDANA";
88                                                         regulator-min-microvolt = <3300000>;
89                                                         regulator-max-microvolt = <3300000>;
90                                                         regulator-always-on;
91                                                 };
92                                         };
93                                 };
94                         };
95
96                         macb0: ethernet@f0028000 {
97                                 phy-mode = "rgmii";
98                                 status = "okay";
99                         };
100
101                         pwm0: pwm@f002c000 {
102                                 pinctrl-names = "default";
103                                 pinctrl-0 = <&pinctrl_pwm0_pwmh0_0 &pinctrl_pwm0_pwmh1_0>;
104                                 status = "okay";
105                         };
106
107                         usart0: serial@f001c000 {
108                                 status = "okay";
109                         };
110
111                         usart1: serial@f0020000 {
112                                 pinctrl-0 = <&pinctrl_usart1 &pinctrl_usart1_rts_cts>;
113                                 status = "okay";
114                         };
115
116                         uart0: serial@f0024000 {
117                                 status = "okay";
118                         };
119
120                         mmc1: mmc@f8000000 {
121                                 pinctrl-0 = <&pinctrl_mmc1_clk_cmd_dat0 &pinctrl_mmc1_dat1_3 &pinctrl_mmc1_cd>;
122                                 status = "okay";
123                                 slot@0 {
124                                         reg = <0>;
125                                         bus-width = <4>;
126                                         cd-gpios = <&pioE 1 GPIO_ACTIVE_HIGH>;
127                                 };
128                         };
129
130                         spi1: spi@f8008000 {
131                                 cs-gpios = <&pioC 25 0>, <0>, <0>, <&pioD 16 0>;
132                                 status = "okay";
133                         };
134
135                         adc0: adc@f8018000 {
136                                 pinctrl-0 = <
137                                         &pinctrl_adc0_adtrg
138                                         &pinctrl_adc0_ad0
139                                         &pinctrl_adc0_ad1
140                                         &pinctrl_adc0_ad2
141                                         &pinctrl_adc0_ad3
142                                         &pinctrl_adc0_ad4
143                                         &pinctrl_adc0_ad5
144                                         &pinctrl_adc0_ad6
145                                         &pinctrl_adc0_ad7
146                                         &pinctrl_adc0_ad8
147                                         &pinctrl_adc0_ad9
148                                         >;
149                                 status = "okay";
150                         };
151
152                         i2c2: i2c@f801c000 {
153                                 dmas = <0>, <0>;        /* Do not use DMA for i2c2 */
154                                 pinctrl-0 = <&pinctrl_i2c2_pu>;
155                                 status = "okay";
156                         };
157
158                         macb1: ethernet@f802c000 {
159                                 phy-mode = "rmii";
160                                 status = "okay";
161                         };
162
163                         dbgu: serial@ffffee00 {
164                                 status = "okay";
165                         };
166
167                         pinctrl@fffff200 {
168                                 board {
169                                         pinctrl_i2c0_pu: i2c0_pu {
170                                                 atmel,pins =
171                                                         <AT91_PIOA 30 AT91_PERIPH_A AT91_PINCTRL_PULL_UP>,
172                                                         <AT91_PIOA 31 AT91_PERIPH_A AT91_PINCTRL_PULL_UP>;
173                                         };
174
175                                         pinctrl_i2c2_pu: i2c2_pu {
176                                                 atmel,pins =
177                                                         <AT91_PIOA 18 AT91_PERIPH_B AT91_PINCTRL_PULL_UP>,
178                                                         <AT91_PIOA 19 AT91_PERIPH_B AT91_PINCTRL_PULL_UP>;
179                                         };
180
181                                         pinctrl_mmc0_cd: mmc0_cd {
182                                                 atmel,pins =
183                                                         <AT91_PIOE 0 AT91_PERIPH_GPIO AT91_PINCTRL_PULL_UP_DEGLITCH>;
184                                         };
185
186                                         pinctrl_mmc1_cd: mmc1_cd {
187                                                 atmel,pins =
188                                                         <AT91_PIOE 1 AT91_PERIPH_GPIO AT91_PINCTRL_PULL_UP_DEGLITCH>;
189                                         };
190
191                                         pinctrl_usba_vbus: usba_vbus {
192                                                 atmel,pins =
193                                                         <AT91_PIOE 9 AT91_PERIPH_GPIO AT91_PINCTRL_DEGLITCH>;   /* PE9, conflicts with A9 */
194                                         };
195                                 };
196                         };
197
198                         pmc: pmc@fffffc00 {
199                                 main: mainck {
200                                         clock-frequency = <12000000>;
201                                 };
202                         };
203                 };
204
205                 nand0: nand@60000000 {
206                         nand-bus-width = <8>;
207                         nand-ecc-mode = "hw";
208                         atmel,has-pmecc;
209                         atmel,pmecc-cap = <4>;
210                         atmel,pmecc-sector-size = <512>;
211                         nand-on-flash-bbt;
212                         status = "okay";
213
214                         at91bootstrap@0 {
215                                 label = "at91bootstrap";
216                                 reg = <0x0 0x40000>;
217                         };
218
219                         bootloader@40000 {
220                                 label = "bootloader";
221                                 reg = <0x40000 0x80000>;
222                         };
223
224                         bootloaderenv@c0000 {
225                                 label = "bootloader env";
226                                 reg = <0xc0000 0xc0000>;
227                         };
228
229                         dtb@180000 {
230                                 label = "device tree";
231                                 reg = <0x180000 0x80000>;
232                         };
233
234                         kernel@200000 {
235                                 label = "kernel";
236                                 reg = <0x200000 0x600000>;
237                         };
238
239                         rootfs@800000 {
240                                 label = "rootfs";
241                                 reg = <0x800000 0x0f800000>;
242                         };
243                 };
244
245                 usb0: gadget@00500000 {
246                         atmel,vbus-gpio = <&pioE 9 GPIO_ACTIVE_HIGH>;   /* PE9, conflicts with A9 */
247                         pinctrl-names = "default";
248                         pinctrl-0 = <&pinctrl_usba_vbus>;
249                         status = "okay";
250                 };
251
252                 usb1: ohci@00600000 {
253                         num-ports = <3>;
254                         atmel,vbus-gpio = <0
255                                            &pioE 3 GPIO_ACTIVE_LOW
256                                            &pioE 4 GPIO_ACTIVE_LOW
257                                           >;
258                         status = "okay";
259                 };
260
261                 usb2: ehci@00700000 {
262                         status = "okay";
263                 };
264         };
265
266         gpio_keys {
267                 compatible = "gpio-keys";
268
269                 bp3 {
270                         label = "PB_USER";
271                         gpios = <&pioE 29 GPIO_ACTIVE_LOW>;
272                         linux,code = <0x104>;
273                         gpio-key,wakeup;
274                 };
275         };
276
277         leds {
278                 compatible = "gpio-leds";
279
280                 d2 {
281                         label = "d2";
282                         gpios = <&pioE 23 GPIO_ACTIVE_LOW>;     /* PE23, conflicts with A23, CTS2 */
283                         linux,default-trigger = "heartbeat";
284                 };
285
286                 d3 {
287                         label = "d3";
288                         gpios = <&pioE 24 GPIO_ACTIVE_HIGH>;
289                 };
290         };
291 };