blob: 8e3365dd1ab48a77bd743a7fa1ed946aa167154c [file] [log] [blame]
Nicolas Ferre22b5a0f2015-06-18 14:55:03 +02001/*
2 * at91-sama5d2_xplained.dts - Device Tree file for SAMA5D2 Xplained board
3 *
4 * Copyright (C) 2015 Atmel,
5 * 2015 Nicolas Ferre <nicolas.ferre@atmel.com>
6 *
7 * This file is dual-licensed: you can use it either under the terms
8 * of the GPL or the X11 license, at your option. Note that this dual
9 * licensing only applies to this file, and not this project as a
10 * whole.
11 *
12 * a) This file is free software; you can redistribute it and/or
13 * modify it under the terms of the GNU General Public License as
14 * published by the Free Software Foundation; either version 2 of the
15 * License, or (at your option) any later version.
16 *
17 * This file is distributed in the hope that it will be useful,
18 * but WITHOUT ANY WARRANTY; without even the implied warranty of
19 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20 * GNU General Public License for more details.
21 *
22 * Or, alternatively,
23 *
24 * b) Permission is hereby granted, free of charge, to any person
25 * obtaining a copy of this software and associated documentation
26 * files (the "Software"), to deal in the Software without
27 * restriction, including without limitation the rights to use,
28 * copy, modify, merge, publish, distribute, sublicense, and/or
29 * sell copies of the Software, and to permit persons to whom the
30 * Software is furnished to do so, subject to the following
31 * conditions:
32 *
33 * The above copyright notice and this permission notice shall be
34 * included in all copies or substantial portions of the Software.
35 *
36 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
37 * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
38 * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
39 * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
40 * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
41 * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
42 * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
43 * OTHER DEALINGS IN THE SOFTWARE.
44 */
45/dts-v1/;
46#include "sama5d2.dtsi"
Ludovic Desrochesa9b672a2015-09-16 17:37:03 +020047#include "sama5d2-pinfunc.h"
Ludovic Desroches13e2a6f2015-10-16 15:04:45 +020048#include <dt-bindings/mfd/atmel-flexcom.h>
Cyrille Pitchenff964962015-06-23 17:51:45 +020049#include <dt-bindings/gpio/gpio.h>
Nicolas Ferre22b5a0f2015-06-18 14:55:03 +020050
51/ {
52 model = "Atmel SAMA5D2 Xplained";
53 compatible = "atmel,sama5d2-xplained", "atmel,sama5d2", "atmel,sama5";
54
55 chosen {
56 stdout-path = "serial0:115200n8";
57 };
58
Nicolas Ferre22b5a0f2015-06-18 14:55:03 +020059 clocks {
Nicolas Ferre22b5a0f2015-06-18 14:55:03 +020060 slow_xtal {
61 clock-frequency = <32768>;
62 };
63
64 main_xtal {
65 clock-frequency = <12000000>;
66 };
67 };
68
69 ahb {
70 usb0: gadget@00300000 {
Ludovic Desroches8f3a8a62017-07-10 08:12:05 +020071 atmel,vbus-gpio = <&pioA PIN_PA31 GPIO_ACTIVE_HIGH>;
Cyrille Pitchenff964962015-06-23 17:51:45 +020072 pinctrl-names = "default";
73 pinctrl-0 = <&pinctrl_usba_vbus>;
Nicolas Ferre22b5a0f2015-06-18 14:55:03 +020074 status = "okay";
75 };
76
77 usb1: ohci@00400000 {
78 num-ports = <3>;
Ludovic Desroches8f3a8a62017-07-10 08:12:05 +020079 atmel,vbus-gpio = <0 /* &pioA PIN_PB9 GPIO_ACTIVE_HIGH */
80 &pioA PIN_PB10 GPIO_ACTIVE_HIGH
Cyrille Pitchenff964962015-06-23 17:51:45 +020081 0
82 >;
83 pinctrl-names = "default";
84 pinctrl-0 = <&pinctrl_usb_default>;
Nicolas Ferre22b5a0f2015-06-18 14:55:03 +020085 status = "okay";
86 };
87
88 usb2: ehci@00500000 {
89 status = "okay";
90 };
91
Ludovic Desroches13e2a6f2015-10-16 15:04:45 +020092 sdmmc0: sdio-host@a0000000 {
93 bus-width = <8>;
94 pinctrl-names = "default";
95 pinctrl-0 = <&pinctrl_sdmmc0_default>;
96 non-removable;
97 mmc-ddr-1_8v;
98 status = "okay";
99 };
100
101 sdmmc1: sdio-host@b0000000 {
102 bus-width = <4>;
103 pinctrl-names = "default";
104 pinctrl-0 = <&pinctrl_sdmmc1_default>;
105 status = "okay"; /* conflict with qspi0 */
Romain Izard9b50e1a2017-09-05 12:18:05 +0200106 vqmmc-supply = <&vdd_3v3_reg>;
107 vmmc-supply = <&vdd_3v3_reg>;
Ludovic Desroches13e2a6f2015-10-16 15:04:45 +0200108 };
109
Nicolas Ferre22b5a0f2015-06-18 14:55:03 +0200110 apb {
111 spi0: spi@f8000000 {
Ludovic Desrochesa9b672a2015-09-16 17:37:03 +0200112 pinctrl-names = "default";
113 pinctrl-0 = <&pinctrl_spi0_default>;
Nicolas Ferre22b5a0f2015-06-18 14:55:03 +0200114 status = "okay";
115
116 m25p80@0 {
117 compatible = "atmel,at25df321a";
118 reg = <0>;
119 spi-max-frequency = <50000000>;
120 };
121 };
122
123 macb0: ethernet@f8008000 {
Ludovic Desrochesa9b672a2015-09-16 17:37:03 +0200124 pinctrl-names = "default";
Nicolas Ferre6c482fd2016-01-12 15:55:12 +0100125 pinctrl-0 = <&pinctrl_macb0_default &pinctrl_macb0_phy_irq>;
Nicolas Ferre22b5a0f2015-06-18 14:55:03 +0200126 phy-mode = "rmii";
127 status = "okay";
Nicolas Ferre6c482fd2016-01-12 15:55:12 +0100128
129 ethernet-phy@1 {
130 reg = <0x1>;
131 interrupt-parent = <&pioA>;
Ludovic Desroches8f3a8a62017-07-10 08:12:05 +0200132 interrupts = <PIN_PC9 IRQ_TYPE_LEVEL_LOW>;
Nicolas Ferre6c482fd2016-01-12 15:55:12 +0100133 };
Nicolas Ferre22b5a0f2015-06-18 14:55:03 +0200134 };
135
Songjun Wuca6349a2015-12-22 17:26:05 +0800136 pdmic@f8018000 {
137 pinctrl-names = "default";
138 pinctrl-0 = <&pinctrl_pdmic_default>;
139 atmel,model = "PDMIC @ sama5d2_xplained";
140 atmel,mic-min-freq = <1000000>;
141 atmel,mic-max-freq = <3246000>;
142 atmel,mic-offset = <0x0>;
143 status = "okay";
144 };
145
Nicolas Ferre22b5a0f2015-06-18 14:55:03 +0200146 uart1: serial@f8020000 {
Ludovic Desrochesa9b672a2015-09-16 17:37:03 +0200147 pinctrl-names = "default";
148 pinctrl-0 = <&pinctrl_uart1_default>;
Alexandre Belloni78162d42017-01-19 23:05:39 +0100149 atmel,use-dma-rx;
150 atmel,use-dma-tx;
Nicolas Ferre22b5a0f2015-06-18 14:55:03 +0200151 status = "okay";
152 };
153
154 i2c0: i2c@f8028000 {
155 dmas = <0>, <0>;
Ludovic Desrochesa9b672a2015-09-16 17:37:03 +0200156 pinctrl-names = "default";
157 pinctrl-0 = <&pinctrl_i2c0_default>;
Ludovic Desroches0a804b52015-12-03 10:53:54 +0100158 i2c-sda-hold-time-ns = <350>;
Nicolas Ferre22b5a0f2015-06-18 14:55:03 +0200159 status = "okay";
Wenyou Yang143877e2015-10-14 10:59:56 +0800160
Wenyou Yangb8bca7e2016-06-24 15:32:05 +0800161 pmic@5b {
162 compatible = "active-semi,act8945a";
Wenyou Yang143877e2015-10-14 10:59:56 +0800163 reg = <0x5b>;
164 active-semi,vsel-high;
165 status = "okay";
166
167 regulators {
Wenyou Yangb8bca7e2016-06-24 15:32:05 +0800168 vdd_1v35_reg: REG_DCDC1 {
Wenyou Yang143877e2015-10-14 10:59:56 +0800169 regulator-name = "VDD_1V35";
170 regulator-min-microvolt = <1350000>;
171 regulator-max-microvolt = <1350000>;
172 regulator-always-on;
173 };
174
Wenyou Yangb8bca7e2016-06-24 15:32:05 +0800175 vdd_1v2_reg: REG_DCDC2 {
Wenyou Yang143877e2015-10-14 10:59:56 +0800176 regulator-name = "VDD_1V2";
177 regulator-min-microvolt = <1100000>;
178 regulator-max-microvolt = <1300000>;
179 regulator-always-on;
180 };
181
Wenyou Yangb8bca7e2016-06-24 15:32:05 +0800182 vdd_3v3_reg: REG_DCDC3 {
Wenyou Yang143877e2015-10-14 10:59:56 +0800183 regulator-name = "VDD_3V3";
184 regulator-min-microvolt = <3300000>;
185 regulator-max-microvolt = <3300000>;
186 regulator-always-on;
187 };
188
Wenyou Yangb8bca7e2016-06-24 15:32:05 +0800189 vdd_fuse_reg: REG_LDO1 {
Wenyou Yang143877e2015-10-14 10:59:56 +0800190 regulator-name = "VDD_FUSE";
191 regulator-min-microvolt = <2500000>;
192 regulator-max-microvolt = <2500000>;
193 regulator-always-on;
194 };
195
Wenyou Yangb8bca7e2016-06-24 15:32:05 +0800196 vdd_3v3_lp_reg: REG_LDO2 {
Wenyou Yang143877e2015-10-14 10:59:56 +0800197 regulator-name = "VDD_3V3_LP";
198 regulator-min-microvolt = <3300000>;
199 regulator-max-microvolt = <3300000>;
200 regulator-always-on;
201 };
202
Wenyou Yangb8bca7e2016-06-24 15:32:05 +0800203 vdd_led_reg: REG_LDO3 {
Wenyou Yang143877e2015-10-14 10:59:56 +0800204 regulator-name = "VDD_LED";
205 regulator-min-microvolt = <3300000>;
206 regulator-max-microvolt = <3300000>;
207 regulator-always-on;
208 };
209
Wenyou Yangb8bca7e2016-06-24 15:32:05 +0800210 vdd_sdhc_1v8_reg: REG_LDO4 {
Wenyou Yang143877e2015-10-14 10:59:56 +0800211 regulator-name = "VDD_SDHC_1V8";
212 regulator-min-microvolt = <1800000>;
213 regulator-max-microvolt = <1800000>;
Nicolas Ferre863c1ca2015-11-17 16:25:45 +0100214 regulator-always-on;
Wenyou Yang143877e2015-10-14 10:59:56 +0800215 };
216 };
Wenyou Yangff7b5822017-08-15 14:24:20 +0800217
218 charger {
219 compatible = "active-semi,act8945a-charger";
220 pinctrl-names = "default";
221 pinctrl-0 = <&pinctrl_charger_chglev &pinctrl_charger_lbo &pinctrl_charger_irq>;
222 interrupt-parent = <&pioA>;
223 interrupts = <PIN_PB13 GPIO_ACTIVE_LOW>;
224
225 active-semi,chglev-gpios = <&pioA PIN_PA12 GPIO_ACTIVE_HIGH>;
226 active-semi,lbo-gpios = <&pioA PIN_PC8 GPIO_ACTIVE_LOW>;
227 active-semi,input-voltage-threshold-microvolt = <6600>;
228 active-semi,precondition-timeout = <40>;
229 active-semi,total-timeout = <3>;
230 status = "okay";
231 };
Wenyou Yang143877e2015-10-14 10:59:56 +0800232 };
Nicolas Ferre22b5a0f2015-06-18 14:55:03 +0200233 };
234
Claudiu Bezneaeb0b59d2017-05-31 12:23:12 +0300235 pwm0: pwm@f802c000 {
236 status = "okay";
237 };
238
Ludovic Desroches13e2a6f2015-10-16 15:04:45 +0200239 flx0: flexcom@f8034000 {
240 atmel,flexcom-mode = <ATMEL_FLEXCOM_MODE_USART>;
241 status = "disabled"; /* conflict with ISC_D2 & ISC_D3 data pins */
242
243 uart5: serial@200 {
244 compatible = "atmel,at91sam9260-usart";
245 reg = <0x200 0x200>;
246 interrupts = <19 IRQ_TYPE_LEVEL_HIGH 7>;
247 clocks = <&flx0_clk>;
248 clock-names = "usart";
249 pinctrl-names = "default";
250 pinctrl-0 = <&pinctrl_flx0_default>;
251 atmel,fifo-size = <32>;
252 status = "okay";
253 };
254 };
255
Nicolas Ferree4b9a212016-04-26 14:19:25 +0200256 shdwc@f8048010 {
257 atmel,shdwc-debouncer = <976>;
Alexandre Belloni367daf82017-02-02 19:53:17 +0100258 atmel,wakeup-rtc-timer;
Nicolas Ferree4b9a212016-04-26 14:19:25 +0200259
260 input@0 {
261 reg = <0>;
262 atmel,wakeup-type = "low";
263 };
264 };
265
Wenyou Yang92bd7aa2015-11-05 15:39:30 +0800266 watchdog@f8048040 {
267 status = "okay";
268 };
269
Wenyou Yangbc6d5d72017-04-24 09:12:17 +0800270 can0: can@f8054000 {
271 pinctrl-names = "default";
272 pinctrl-0 = <&pinctrl_can0_default>;
273 status = "okay";
274 };
275
Nicolas Ferre22b5a0f2015-06-18 14:55:03 +0200276 uart3: serial@fc008000 {
Nicolas Ferre89a236d2016-12-01 11:49:49 +0100277 atmel,use-dma-rx;
278 atmel,use-dma-tx;
Ludovic Desrochesa9b672a2015-09-16 17:37:03 +0200279 pinctrl-names = "default";
280 pinctrl-0 = <&pinctrl_uart3_default>;
Nicolas Ferre22b5a0f2015-06-18 14:55:03 +0200281 status = "okay";
282 };
283
Ludovic Desroches13e2a6f2015-10-16 15:04:45 +0200284 flx4: flexcom@fc018000 {
285 atmel,flexcom-mode = <ATMEL_FLEXCOM_MODE_TWI>;
286 status = "okay";
287
288 i2c2: i2c@600 {
289 compatible = "atmel,sama5d2-i2c";
290 reg = <0x600 0x200>;
291 interrupts = <23 IRQ_TYPE_LEVEL_HIGH 7>;
292 dmas = <0>, <0>;
293 dma-names = "tx", "rx";
294 #address-cells = <1>;
295 #size-cells = <0>;
296 clocks = <&flx4_clk>;
297 pinctrl-names = "default";
298 pinctrl-0 = <&pinctrl_flx4_default>;
299 atmel,fifo-size = <16>;
300 status = "okay";
301 };
302 };
303
Nicolas Ferre22b5a0f2015-06-18 14:55:03 +0200304 i2c1: i2c@fc028000 {
305 dmas = <0>, <0>;
Ludovic Desrochesa9b672a2015-09-16 17:37:03 +0200306 pinctrl-names = "default";
307 pinctrl-0 = <&pinctrl_i2c1_default>;
Nicolas Ferre22b5a0f2015-06-18 14:55:03 +0200308 status = "okay";
309
310 at24@54 {
311 compatible = "atmel,24c02";
312 reg = <0x54>;
313 pagesize = <16>;
314 };
315 };
Ludovic Desrochesa9b672a2015-09-16 17:37:03 +0200316
Ludovic Desroches5e72c252016-01-14 16:38:16 +0100317 adc: adc@fc030000 {
318 vddana-supply = <&vdd_3v3_lp_reg>;
319 vref-supply = <&vdd_3v3_lp_reg>;
320 pinctrl-names = "default";
321 pinctrl-0 = <&pinctrl_adc_default>;
322 status = "okay";
323 };
324
Ludovic Desrochesa9b672a2015-09-16 17:37:03 +0200325 pinctrl@fc038000 {
Ludovic Desroches5e72c252016-01-14 16:38:16 +0100326 /*
327 * There is no real pinmux for ADC, if the pin
328 * is not requested by another peripheral then
329 * the muxing is done when channel is enabled.
330 * Requesting pins for ADC is GPIO is
331 * encouraged to prevent conflicts and to
332 * disable bias in order to be in the same
333 * state when the pin is not muxed to the adc.
334 */
335 pinctrl_adc_default: adc_default {
336 pinmux = <PIN_PD23__GPIO>;
337 bias-disable;
338 };
339
Wenyou Yangbc6d5d72017-04-24 09:12:17 +0800340 pinctrl_can0_default: can0_default {
341 pinmux = <PIN_PC10__CANTX0>,
342 <PIN_PC11__CANRX0>;
343 bias-disable;
344 };
345
346 pinctrl_can1_default: can1_default {
347 pinmux = <PIN_PC26__CANTX1>,
348 <PIN_PC27__CANRX1>;
349 bias-disable;
350 };
351
Wenyou Yangb8bca7e2016-06-24 15:32:05 +0800352 pinctrl_charger_chglev: charger_chglev {
353 pinmux = <PIN_PA12__GPIO>;
354 bias-disable;
355 };
356
357 pinctrl_charger_irq: charger_irq {
358 pinmux = <PIN_PB13__GPIO>;
359 bias-disable;
360 };
361
362 pinctrl_charger_lbo: charger_lbo {
363 pinmux = <PIN_PC8__GPIO>;
364 bias-pull-up;
365 };
366
Cyrille Pitchenb133ca72017-07-25 09:37:10 +0200367 pinctrl_classd_default: classd_default {
368 pinmux = <PIN_PB1__CLASSD_R0>,
369 <PIN_PB2__CLASSD_R1>,
370 <PIN_PB3__CLASSD_R2>,
371 <PIN_PB4__CLASSD_R3>;
372 bias-pull-up;
373 };
374
Ludovic Desroches13e2a6f2015-10-16 15:04:45 +0200375 pinctrl_flx0_default: flx0_default {
376 pinmux = <PIN_PB28__FLEXCOM0_IO0>,
377 <PIN_PB29__FLEXCOM0_IO1>;
378 bias-disable;
379 };
380
381 pinctrl_flx4_default: flx4_default {
382 pinmux = <PIN_PD12__FLEXCOM4_IO0>,
383 <PIN_PD13__FLEXCOM4_IO1>;
384 bias-disable;
385 };
386
Ludovic Desrochesa9b672a2015-09-16 17:37:03 +0200387 pinctrl_i2c0_default: i2c0_default {
388 pinmux = <PIN_PD21__TWD0>,
389 <PIN_PD22__TWCK0>;
390 bias-disable;
391 };
392
393 pinctrl_i2c1_default: i2c1_default {
394 pinmux = <PIN_PD4__TWD1>,
395 <PIN_PD5__TWCK1>;
396 bias-disable;
397 };
398
Ludovic Desrochesc7e48d42015-06-22 10:01:20 +0200399 pinctrl_key_gpio_default: key_gpio_default {
400 pinmux = <PIN_PB9__GPIO>;
401 bias-pull-up;
402 };
403
Wenyou Yanged0f4b32015-06-25 18:13:49 +0800404 pinctrl_led_gpio_default: led_gpio_default {
405 pinmux = <PIN_PB0__GPIO>,
406 <PIN_PB5__GPIO>,
407 <PIN_PB6__GPIO>;
408 bias-pull-up;
409 };
410
Ludovic Desrochesa9b672a2015-09-16 17:37:03 +0200411 pinctrl_macb0_default: macb0_default {
412 pinmux = <PIN_PB14__GTXCK>,
413 <PIN_PB15__GTXEN>,
414 <PIN_PB16__GRXDV>,
415 <PIN_PB17__GRXER>,
416 <PIN_PB18__GRX0>,
417 <PIN_PB19__GRX1>,
418 <PIN_PB20__GTX0>,
419 <PIN_PB21__GTX1>,
420 <PIN_PB22__GMDC>,
421 <PIN_PB23__GMDIO>;
422 bias-disable;
423 };
424
Nicolas Ferre6c482fd2016-01-12 15:55:12 +0100425 pinctrl_macb0_phy_irq: macb0_phy_irq {
426 pinmux = <PIN_PC9__GPIO>;
Romain Izard34ff2dc2016-02-18 11:21:06 +0100427 bias-disable;
Nicolas Ferre6c482fd2016-01-12 15:55:12 +0100428 };
429
Songjun Wuca6349a2015-12-22 17:26:05 +0800430 pinctrl_pdmic_default: pdmic_default {
431 pinmux = <PIN_PB26__PDMIC_DAT>,
432 <PIN_PB27__PDMIC_CLK>;
433 bias-disable;
434 };
435
Ludovic Desroches13e2a6f2015-10-16 15:04:45 +0200436 pinctrl_sdmmc0_default: sdmmc0_default {
437 cmd_data {
438 pinmux = <PIN_PA1__SDMMC0_CMD>,
439 <PIN_PA2__SDMMC0_DAT0>,
440 <PIN_PA3__SDMMC0_DAT1>,
441 <PIN_PA4__SDMMC0_DAT2>,
442 <PIN_PA5__SDMMC0_DAT3>,
443 <PIN_PA6__SDMMC0_DAT4>,
444 <PIN_PA7__SDMMC0_DAT5>,
445 <PIN_PA8__SDMMC0_DAT6>,
446 <PIN_PA9__SDMMC0_DAT7>;
447 bias-pull-up;
448 };
449
450 ck_cd_rstn_vddsel {
451 pinmux = <PIN_PA0__SDMMC0_CK>,
452 <PIN_PA10__SDMMC0_RSTN>,
453 <PIN_PA11__SDMMC0_VDDSEL>,
454 <PIN_PA13__SDMMC0_CD>;
455 bias-disable;
456 };
457 };
458
459 pinctrl_sdmmc1_default: sdmmc1_default {
460 cmd_data {
461 pinmux = <PIN_PA28__SDMMC1_CMD>,
462 <PIN_PA18__SDMMC1_DAT0>,
463 <PIN_PA19__SDMMC1_DAT1>,
464 <PIN_PA20__SDMMC1_DAT2>,
465 <PIN_PA21__SDMMC1_DAT3>;
466 bias-pull-up;
467 };
468
469 conf-ck_cd {
470 pinmux = <PIN_PA22__SDMMC1_CK>,
471 <PIN_PA30__SDMMC1_CD>;
472 bias-disable;
473 };
474 };
475
Ludovic Desrochesa9b672a2015-09-16 17:37:03 +0200476 pinctrl_spi0_default: spi0_default {
477 pinmux = <PIN_PA14__SPI0_SPCK>,
478 <PIN_PA15__SPI0_MOSI>,
479 <PIN_PA16__SPI0_MISO>,
480 <PIN_PA17__SPI0_NPCS0>;
481 bias-disable;
482 };
483
484 pinctrl_uart1_default: uart1_default {
485 pinmux = <PIN_PD2__URXD1>,
486 <PIN_PD3__UTXD1>;
487 bias-disable;
488 };
489
490 pinctrl_uart3_default: uart3_default {
491 pinmux = <PIN_PB11__URXD3>,
492 <PIN_PB12__UTXD3>;
493 bias-disable;
494 };
Cyrille Pitchenff964962015-06-23 17:51:45 +0200495
496 pinctrl_usb_default: usb_default {
497 pinmux = <PIN_PB10__GPIO>;
498 bias-disable;
499 };
500
501 pinctrl_usba_vbus: usba_vbus {
502 pinmux = <PIN_PA31__GPIO>;
503 bias-disable;
504 };
505
Ludovic Desrochesa9b672a2015-09-16 17:37:03 +0200506 };
Wenyou Yangbc6d5d72017-04-24 09:12:17 +0800507
Cyrille Pitchenb133ca72017-07-25 09:37:10 +0200508 classd: classd@fc048000 {
509 pinctrl-names = "default";
510 pinctrl-0 = <&pinctrl_classd_default>;
511 atmel,pwm-type = "diff";
512 atmel,non-overlap-time = <10>;
513 status = "okay";
514 };
515
Wenyou Yangbc6d5d72017-04-24 09:12:17 +0800516 can1: can@fc050000 {
517 pinctrl-names = "default";
518 pinctrl-0 = <&pinctrl_can1_default>;
519 status = "okay";
520 };
Nicolas Ferre22b5a0f2015-06-18 14:55:03 +0200521 };
522 };
Ludovic Desrochesc7e48d42015-06-22 10:01:20 +0200523
524 gpio_keys {
525 compatible = "gpio-keys";
526
527 pinctrl-names = "default";
528 pinctrl-0 = <&pinctrl_key_gpio_default>;
529
530 bp1 {
531 label = "PB_USER";
Ludovic Desroches8f3a8a62017-07-10 08:12:05 +0200532 gpios = <&pioA PIN_PB9 GPIO_ACTIVE_LOW>;
Ludovic Desrochesc7e48d42015-06-22 10:01:20 +0200533 linux,code = <0x104>;
534 };
535 };
Wenyou Yanged0f4b32015-06-25 18:13:49 +0800536
537 leds {
538 compatible = "gpio-leds";
539 pinctrl-names = "default";
540 pinctrl-0 = <&pinctrl_led_gpio_default>;
541 status = "okay";
542
543 red {
544 label = "red";
Ludovic Desroches8f3a8a62017-07-10 08:12:05 +0200545 gpios = <&pioA PIN_PB6 GPIO_ACTIVE_LOW>;
Wenyou Yanged0f4b32015-06-25 18:13:49 +0800546 };
547
Ludovic Desroches8f3a8a62017-07-10 08:12:05 +0200548
Wenyou Yanged0f4b32015-06-25 18:13:49 +0800549 green {
550 label = "green";
Ludovic Desroches8f3a8a62017-07-10 08:12:05 +0200551 gpios = <&pioA PIN_PB5 GPIO_ACTIVE_LOW>;
Wenyou Yanged0f4b32015-06-25 18:13:49 +0800552 };
553
554 blue {
555 label = "blue";
Ludovic Desroches8f3a8a62017-07-10 08:12:05 +0200556 gpios = <&pioA PIN_PB0 GPIO_ACTIVE_LOW>;
Wenyou Yanged0f4b32015-06-25 18:13:49 +0800557 linux,default-trigger = "heartbeat";
558 };
559 };
Nicolas Ferre22b5a0f2015-06-18 14:55:03 +0200560};