Merge branch 'elan-i2c' into next
[linux-2.6-microblaze.git] / arch / arm / boot / dts / at91-sama5d2_xplained.dts
1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
2 /*
3  * at91-sama5d2_xplained.dts - Device Tree file for SAMA5D2 Xplained board
4  *
5  *  Copyright (C) 2015 Atmel,
6  *                2015 Nicolas Ferre <nicolas.ferre@atmel.com>
7  */
8 /dts-v1/;
9 #include "sama5d2.dtsi"
10 #include "sama5d2-pinfunc.h"
11 #include <dt-bindings/mfd/atmel-flexcom.h>
12 #include <dt-bindings/gpio/gpio.h>
13 #include <dt-bindings/regulator/active-semi,8945a-regulator.h>
14
15 / {
16         model = "Atmel SAMA5D2 Xplained";
17         compatible = "atmel,sama5d2-xplained", "atmel,sama5d2", "atmel,sama5";
18
19         chosen {
20                 stdout-path = "serial0:115200n8";
21         };
22
23         clocks {
24                 slow_xtal {
25                         clock-frequency = <32768>;
26                 };
27
28                 main_xtal {
29                         clock-frequency = <12000000>;
30                 };
31         };
32
33         ahb {
34                 usb0: gadget@300000 {
35                         atmel,vbus-gpio = <&pioA PIN_PA31 GPIO_ACTIVE_HIGH>;
36                         pinctrl-names = "default";
37                         pinctrl-0 = <&pinctrl_usba_vbus>;
38                         status = "okay";
39                 };
40
41                 usb1: ohci@400000 {
42                         num-ports = <3>;
43                         atmel,vbus-gpio = <0 /* &pioA PIN_PB9 GPIO_ACTIVE_HIGH */
44                                            &pioA PIN_PB10 GPIO_ACTIVE_HIGH
45                                            0
46                                           >;
47                         pinctrl-names = "default";
48                         pinctrl-0 = <&pinctrl_usb_default>;
49                         status = "okay";
50                 };
51
52                 usb2: ehci@500000 {
53                         status = "okay";
54                 };
55
56                 sdmmc0: sdio-host@a0000000 {
57                         bus-width = <8>;
58                         pinctrl-names = "default";
59                         pinctrl-0 = <&pinctrl_sdmmc0_default>;
60                         non-removable;
61                         mmc-ddr-1_8v;
62                         status = "okay";
63                 };
64
65                 sdmmc1: sdio-host@b0000000 {
66                         bus-width = <4>;
67                         pinctrl-names = "default";
68                         pinctrl-0 = <&pinctrl_sdmmc1_default>;
69                         status = "okay"; /* conflict with qspi0 */
70                         vqmmc-supply = <&vdd_3v3_reg>;
71                         vmmc-supply = <&vdd_3v3_reg>;
72                 };
73
74                 apb {
75                         spi0: spi@f8000000 {
76                                 pinctrl-names = "default";
77                                 pinctrl-0 = <&pinctrl_spi0_default>;
78                                 status = "okay";
79
80                                 m25p80@0 {
81                                         compatible = "atmel,at25df321a";
82                                         reg = <0>;
83                                         spi-max-frequency = <50000000>;
84                                 };
85                         };
86
87                         macb0: ethernet@f8008000 {
88                                 pinctrl-names = "default";
89                                 pinctrl-0 = <&pinctrl_macb0_default &pinctrl_macb0_phy_irq>;
90                                 phy-mode = "rmii";
91                                 status = "okay";
92
93                                 ethernet-phy@1 {
94                                         reg = <0x1>;
95                                         interrupt-parent = <&pioA>;
96                                         interrupts = <PIN_PC9 IRQ_TYPE_LEVEL_LOW>;
97                                 };
98                         };
99
100                         tcb0: timer@f800c000 {
101                                 timer0: timer@0 {
102                                         compatible = "atmel,tcb-timer";
103                                         reg = <0>;
104                                 };
105
106                                 timer1: timer@1 {
107                                         compatible = "atmel,tcb-timer";
108                                         reg = <1>;
109                                 };
110                         };
111
112                         pdmic@f8018000 {
113                                 pinctrl-names = "default";
114                                 pinctrl-0 = <&pinctrl_pdmic_default>;
115                                 atmel,model = "PDMIC @ sama5d2_xplained";
116                                 atmel,mic-min-freq = <1000000>;
117                                 atmel,mic-max-freq = <3246000>;
118                                 atmel,mic-offset = <0x0>;
119                                 status = "okay";
120                         };
121
122                         uart1: serial@f8020000 {
123                                 pinctrl-names = "default";
124                                 pinctrl-0 = <&pinctrl_uart1_default>;
125                                 atmel,use-dma-rx;
126                                 atmel,use-dma-tx;
127                                 status = "okay";
128                         };
129
130                         i2c0: i2c@f8028000 {
131                                 dmas = <0>, <0>;
132                                 pinctrl-names = "default", "gpio";
133                                 pinctrl-0 = <&pinctrl_i2c0_default>;
134                                 pinctrl-1 = <&pinctrl_i2c0_gpio>;
135                                 sda-gpios = <&pioA PIN_PD21 GPIO_ACTIVE_HIGH>;
136                                 scl-gpios = <&pioA PIN_PD22 GPIO_ACTIVE_HIGH>;
137                                 i2c-sda-hold-time-ns = <350>;
138                                 status = "okay";
139
140                                 pmic@5b {
141                                         compatible = "active-semi,act8945a";
142                                         reg = <0x5b>;
143                                         active-semi,vsel-high;
144                                         status = "okay";
145
146                                         regulators {
147                                                 vdd_1v35_reg: REG_DCDC1 {
148                                                         regulator-name = "VDD_1V35";
149                                                         regulator-min-microvolt = <1350000>;
150                                                         regulator-max-microvolt = <1350000>;
151                                                         regulator-allowed-modes = <ACT8945A_REGULATOR_MODE_FIXED>,
152                                                                                   <ACT8945A_REGULATOR_MODE_LOWPOWER>;
153                                                         regulator-initial-mode = <ACT8945A_REGULATOR_MODE_FIXED>;
154                                                         regulator-always-on;
155
156                                                         regulator-state-mem {
157                                                                 regulator-on-in-suspend;
158                                                                 regulator-suspend-min-microvolt=<1400000>;
159                                                                 regulator-suspend-max-microvolt=<1400000>;
160                                                                 regulator-changeable-in-suspend;
161                                                                 regulator-mode=<ACT8945A_REGULATOR_MODE_LOWPOWER>;
162                                                         };
163                                                 };
164
165                                                 vdd_1v2_reg: REG_DCDC2 {
166                                                         regulator-name = "VDD_1V2";
167                                                         regulator-min-microvolt = <1100000>;
168                                                         regulator-max-microvolt = <1300000>;
169                                                         regulator-allowed-modes = <ACT8945A_REGULATOR_MODE_FIXED>,
170                                                                                   <ACT8945A_REGULATOR_MODE_LOWPOWER>;
171                                                         regulator-initial-mode = <ACT8945A_REGULATOR_MODE_FIXED>;
172                                                         regulator-always-on;
173
174                                                         regulator-state-mem {
175                                                                 regulator-off-in-suspend;
176                                                         };
177                                                 };
178
179                                                 vdd_3v3_reg: REG_DCDC3 {
180                                                         regulator-name = "VDD_3V3";
181                                                         regulator-min-microvolt = <3300000>;
182                                                         regulator-max-microvolt = <3300000>;
183                                                         regulator-allowed-modes = <ACT8945A_REGULATOR_MODE_FIXED>,
184                                                                                   <ACT8945A_REGULATOR_MODE_LOWPOWER>;
185                                                         regulator-initial-mode = <ACT8945A_REGULATOR_MODE_FIXED>;
186                                                         regulator-always-on;
187
188                                                         regulator-state-mem {
189                                                                 regulator-off-in-suspend;
190                                                         };
191                                                 };
192
193                                                 vdd_fuse_reg: REG_LDO1 {
194                                                         regulator-name = "VDD_FUSE";
195                                                         regulator-min-microvolt = <2500000>;
196                                                         regulator-max-microvolt = <2500000>;
197                                                         regulator-allowed-modes = <ACT8945A_REGULATOR_MODE_NORMAL>,
198                                                                                   <ACT8945A_REGULATOR_MODE_LOWPOWER>;
199                                                         regulator-initial-mode = <ACT8945A_REGULATOR_MODE_NORMAL>;
200                                                         regulator-always-on;
201
202                                                         regulator-state-mem {
203                                                                 regulator-off-in-suspend;
204                                                         };
205                                                 };
206
207                                                 vdd_3v3_lp_reg: REG_LDO2 {
208                                                         regulator-name = "VDD_3V3_LP";
209                                                         regulator-min-microvolt = <3300000>;
210                                                         regulator-max-microvolt = <3300000>;
211                                                         regulator-allowed-modes = <ACT8945A_REGULATOR_MODE_NORMAL>,
212                                                                                   <ACT8945A_REGULATOR_MODE_LOWPOWER>;
213                                                         regulator-initial-mode = <ACT8945A_REGULATOR_MODE_NORMAL>;
214                                                         regulator-always-on;
215
216                                                         regulator-state-mem {
217                                                                 regulator-off-in-suspend;
218                                                         };
219                                                 };
220
221                                                 vdd_led_reg: REG_LDO3 {
222                                                         regulator-name = "VDD_LED";
223                                                         regulator-min-microvolt = <3300000>;
224                                                         regulator-max-microvolt = <3300000>;
225                                                         regulator-allowed-modes = <ACT8945A_REGULATOR_MODE_NORMAL>,
226                                                                                   <ACT8945A_REGULATOR_MODE_LOWPOWER>;
227                                                         regulator-initial-mode = <ACT8945A_REGULATOR_MODE_NORMAL>;
228                                                         regulator-always-on;
229
230                                                         regulator-state-mem {
231                                                                 regulator-off-in-suspend;
232                                                         };
233                                                 };
234
235                                                 vdd_sdhc_1v8_reg: REG_LDO4 {
236                                                         regulator-name = "VDD_SDHC_1V8";
237                                                         regulator-min-microvolt = <1800000>;
238                                                         regulator-max-microvolt = <1800000>;
239                                                         regulator-allowed-modes = <ACT8945A_REGULATOR_MODE_NORMAL>,
240                                                                                   <ACT8945A_REGULATOR_MODE_LOWPOWER>;
241                                                         regulator-initial-mode = <ACT8945A_REGULATOR_MODE_NORMAL>;
242                                                         regulator-always-on;
243
244                                                         regulator-state-mem {
245                                                                 regulator-off-in-suspend;
246                                                         };
247                                                 };
248                                         };
249
250                                         charger {
251                                                 compatible = "active-semi,act8945a-charger";
252                                                 pinctrl-names = "default";
253                                                 pinctrl-0 = <&pinctrl_charger_chglev &pinctrl_charger_lbo &pinctrl_charger_irq>;
254                                                 interrupt-parent = <&pioA>;
255                                                 interrupts = <PIN_PB13 IRQ_TYPE_EDGE_RISING>;
256
257                                                 active-semi,chglev-gpios = <&pioA PIN_PA12 GPIO_ACTIVE_HIGH>;
258                                                 active-semi,lbo-gpios = <&pioA PIN_PC8 GPIO_ACTIVE_LOW>;
259                                                 active-semi,input-voltage-threshold-microvolt = <6600>;
260                                                 active-semi,precondition-timeout = <40>;
261                                                 active-semi,total-timeout = <3>;
262                                                 status = "okay";
263                                         };
264                                 };
265                         };
266
267                         pwm0: pwm@f802c000 {
268                                 pinctrl-names = "default";
269                                 pinctrl-0 = <&pinctrl_pwm0_pwm2_default>;
270                                 status = "disabled"; /* conflict with leds */
271                         };
272
273                         flx0: flexcom@f8034000 {
274                                 atmel,flexcom-mode = <ATMEL_FLEXCOM_MODE_USART>;
275                                 status = "disabled"; /* conflict with ISC_D2 & ISC_D3 data pins */
276
277                                 uart5: serial@200 {
278                                         compatible = "atmel,at91sam9260-usart";
279                                         reg = <0x200 0x200>;
280                                         interrupts = <19 IRQ_TYPE_LEVEL_HIGH 7>;
281                                         clocks = <&pmc PMC_TYPE_PERIPHERAL 19>;
282                                         clock-names = "usart";
283                                         pinctrl-names = "default";
284                                         pinctrl-0 = <&pinctrl_flx0_default>;
285                                         atmel,fifo-size = <32>;
286                                         status = "okay";
287                                 };
288                         };
289
290                         shdwc@f8048010 {
291                                 atmel,shdwc-debouncer = <976>;
292                                 atmel,wakeup-rtc-timer;
293
294                                 input@0 {
295                                         reg = <0>;
296                                         atmel,wakeup-type = "low";
297                                 };
298                         };
299
300                         watchdog@f8048040 {
301                                 status = "okay";
302                         };
303
304                         i2s0: i2s@f8050000 {
305                                 pinctrl-names = "default";
306                                 pinctrl-0 = <&pinctrl_i2s0_default>;
307                                 status = "disabled"; /* conflict with can0 */
308                         };
309
310                         can0: can@f8054000 {
311                                 pinctrl-names = "default";
312                                 pinctrl-0 = <&pinctrl_can0_default>;
313                                 status = "okay";
314                         };
315
316                         uart3: serial@fc008000 {
317                                 atmel,use-dma-rx;
318                                 atmel,use-dma-tx;
319                                 pinctrl-names = "default";
320                                 pinctrl-0 = <&pinctrl_uart3_default>;
321                                 status = "okay";
322                         };
323
324                         flx4: flexcom@fc018000 {
325                                 atmel,flexcom-mode = <ATMEL_FLEXCOM_MODE_TWI>;
326                                 status = "okay";
327
328                                 i2c2: i2c@600 {
329                                         compatible = "atmel,sama5d2-i2c";
330                                         reg = <0x600 0x200>;
331                                         interrupts = <23 IRQ_TYPE_LEVEL_HIGH 7>;
332                                         dmas = <0>, <0>;
333                                         dma-names = "tx", "rx";
334                                         #address-cells = <1>;
335                                         #size-cells = <0>;
336                                         clocks = <&pmc PMC_TYPE_PERIPHERAL 23>;
337                                         pinctrl-names = "default", "gpio";
338                                         pinctrl-0 = <&pinctrl_flx4_default>;
339                                         pinctrl-1 = <&pinctrl_flx4_gpio>;
340                                         sda-gpios = <&pioA PIN_PD12 GPIO_ACTIVE_HIGH>;
341                                         scl-gpios = <&pioA PIN_PD13 GPIO_ACTIVE_HIGH>;
342                                         atmel,fifo-size = <16>;
343                                         i2c-analog-filter;
344                                         i2c-digital-filter;
345                                         i2c-digital-filter-width-ns = <35>;
346                                         status = "okay";
347                                 };
348                         };
349
350                         i2c1: i2c@fc028000 {
351                                 dmas = <0>, <0>;
352                                 pinctrl-names = "default", "gpio";
353                                 pinctrl-0 = <&pinctrl_i2c1_default>;
354                                 i2c-analog-filter;
355                                 i2c-digital-filter;
356                                 i2c-digital-filter-width-ns = <35>;
357                                 pinctrl-1 = <&pinctrl_i2c1_gpio>;
358                                 sda-gpios = <&pioA PIN_PD4 GPIO_ACTIVE_HIGH>;
359                                 scl-gpios = <&pioA PIN_PD5 GPIO_ACTIVE_HIGH>;
360                                 status = "okay";
361
362                                 at24@54 {
363                                         compatible = "atmel,24c02";
364                                         reg = <0x54>;
365                                         pagesize = <16>;
366                                 };
367                         };
368
369                         adc: adc@fc030000 {
370                                 vddana-supply = <&vdd_3v3_lp_reg>;
371                                 vref-supply = <&vdd_3v3_lp_reg>;
372                                 pinctrl-names = "default";
373                                 pinctrl-0 = <&pinctrl_adc_default &pinctrl_adtrg_default>;
374                                 status = "okay";
375                         };
376
377                         pinctrl@fc038000 {
378                                 /*
379                                  * There is no real pinmux for ADC, if the pin
380                                  * is not requested by another peripheral then
381                                  * the muxing is done when channel is enabled.
382                                  * Requesting pins for ADC is GPIO is
383                                  * encouraged to prevent conflicts and to
384                                  * disable bias in order to be in the same
385                                  * state when the pin is not muxed to the adc.
386                                  */
387                                 pinctrl_adc_default: adc_default {
388                                         pinmux = <PIN_PD23__GPIO>;
389                                         bias-disable;
390                                 };
391
392                                 pinctrl_can0_default: can0_default {
393                                         pinmux = <PIN_PC10__CANTX0>,
394                                                  <PIN_PC11__CANRX0>;
395                                         bias-disable;
396                                 };
397
398                                 pinctrl_can1_default: can1_default {
399                                         pinmux = <PIN_PC26__CANTX1>,
400                                                  <PIN_PC27__CANRX1>;
401                                         bias-disable;
402                                 };
403
404                                 /*
405                                  * The ADTRG pin can work on any edge type.
406                                  * In here it's being pulled up, so need to
407                                  * connect it to ground to get an edge e.g.
408                                  * Trigger can be configured on falling, rise
409                                  * or any edge, and the pull-up can be changed
410                                  * to pull-down or left floating according to
411                                  * needs.
412                                  */
413                                 pinctrl_adtrg_default: adtrg_default {
414                                         pinmux = <PIN_PD31__ADTRG>;
415                                         bias-pull-up;
416                                 };
417
418                                 pinctrl_charger_chglev: charger_chglev {
419                                         pinmux = <PIN_PA12__GPIO>;
420                                         bias-disable;
421                                 };
422
423                                 pinctrl_charger_irq: charger_irq {
424                                         pinmux = <PIN_PB13__GPIO>;
425                                         bias-disable;
426                                 };
427
428                                 pinctrl_charger_lbo: charger_lbo {
429                                         pinmux = <PIN_PC8__GPIO>;
430                                         bias-pull-up;
431                                 };
432
433                                 pinctrl_classd_default: classd_default {
434                                         pinmux = <PIN_PB1__CLASSD_R0>,
435                                                  <PIN_PB2__CLASSD_R1>,
436                                                  <PIN_PB3__CLASSD_R2>,
437                                                  <PIN_PB4__CLASSD_R3>;
438                                         bias-pull-up;
439                                 };
440
441                                 pinctrl_flx0_default: flx0_default {
442                                         pinmux = <PIN_PB28__FLEXCOM0_IO0>,
443                                                  <PIN_PB29__FLEXCOM0_IO1>;
444                                         bias-disable;
445                                 };
446
447                                 pinctrl_flx4_default: flx4_default {
448                                         pinmux = <PIN_PD12__FLEXCOM4_IO0>,
449                                                  <PIN_PD13__FLEXCOM4_IO1>;
450                                         bias-disable;
451                                 };
452
453                                 pinctrl_flx4_gpio: flx4_gpio {
454                                         pinmux = <PIN_PD12__GPIO>,
455                                                  <PIN_PD13__GPIO>;
456                                         bias-disable;
457                                 };
458
459                                 pinctrl_i2c0_default: i2c0_default {
460                                         pinmux = <PIN_PD21__TWD0>,
461                                                  <PIN_PD22__TWCK0>;
462                                         bias-disable;
463                                 };
464
465                                 pinctrl_i2c0_gpio: i2c0_gpio {
466                                         pinmux = <PIN_PD21__GPIO>,
467                                                  <PIN_PD22__GPIO>;
468                                         bias-disable;
469                                 };
470
471                                 pinctrl_i2c1_default: i2c1_default {
472                                         pinmux = <PIN_PD4__TWD1>,
473                                                  <PIN_PD5__TWCK1>;
474                                         bias-disable;
475                                 };
476
477                                 pinctrl_i2c1_gpio: i2c1_gpio {
478                                         pinmux = <PIN_PD4__GPIO>,
479                                                  <PIN_PD5__GPIO>;
480                                         bias-disable;
481                                 };
482
483                                 pinctrl_i2s0_default: i2s0_default {
484                                         pinmux = <PIN_PC1__I2SC0_CK>,
485                                                  <PIN_PC2__I2SC0_MCK>,
486                                                  <PIN_PC3__I2SC0_WS>,
487                                                  <PIN_PC4__I2SC0_DI0>,
488                                                  <PIN_PC5__I2SC0_DO0>;
489                                         bias-disable;
490                                 };
491
492                                 pinctrl_i2s1_default: i2s1_default {
493                                         pinmux = <PIN_PA15__I2SC1_CK>,
494                                                  <PIN_PA14__I2SC1_MCK>,
495                                                  <PIN_PA16__I2SC1_WS>,
496                                                  <PIN_PA17__I2SC1_DI0>,
497                                                  <PIN_PA18__I2SC1_DO0>;
498                                         bias-disable;
499                                 };
500
501                                 pinctrl_key_gpio_default: key_gpio_default {
502                                         pinmux = <PIN_PB9__GPIO>;
503                                         bias-pull-up;
504                                 };
505
506                                 pinctrl_led_gpio_default: led_gpio_default {
507                                         pinmux = <PIN_PB0__GPIO>,
508                                                  <PIN_PB5__GPIO>,
509                                                  <PIN_PB6__GPIO>;
510                                         bias-pull-up;
511                                 };
512
513                                 pinctrl_macb0_default: macb0_default {
514                                         pinmux = <PIN_PB14__GTXCK>,
515                                                  <PIN_PB15__GTXEN>,
516                                                  <PIN_PB16__GRXDV>,
517                                                  <PIN_PB17__GRXER>,
518                                                  <PIN_PB18__GRX0>,
519                                                  <PIN_PB19__GRX1>,
520                                                  <PIN_PB20__GTX0>,
521                                                  <PIN_PB21__GTX1>,
522                                                  <PIN_PB22__GMDC>,
523                                                  <PIN_PB23__GMDIO>;
524                                         bias-disable;
525                                 };
526
527                                 pinctrl_macb0_phy_irq: macb0_phy_irq {
528                                         pinmux = <PIN_PC9__GPIO>;
529                                         bias-disable;
530                                 };
531
532                                 pinctrl_pdmic_default: pdmic_default {
533                                         pinmux = <PIN_PB26__PDMIC_DAT>,
534                                                 <PIN_PB27__PDMIC_CLK>;
535                                         bias-disable;
536                                 };
537
538                                 pinctrl_sdmmc0_default: sdmmc0_default {
539                                         cmd_data {
540                                                 pinmux = <PIN_PA1__SDMMC0_CMD>,
541                                                          <PIN_PA2__SDMMC0_DAT0>,
542                                                          <PIN_PA3__SDMMC0_DAT1>,
543                                                          <PIN_PA4__SDMMC0_DAT2>,
544                                                          <PIN_PA5__SDMMC0_DAT3>,
545                                                          <PIN_PA6__SDMMC0_DAT4>,
546                                                          <PIN_PA7__SDMMC0_DAT5>,
547                                                          <PIN_PA8__SDMMC0_DAT6>,
548                                                          <PIN_PA9__SDMMC0_DAT7>;
549                                                 bias-disable;
550                                         };
551
552                                         ck_cd_rstn_vddsel {
553                                                 pinmux = <PIN_PA0__SDMMC0_CK>,
554                                                          <PIN_PA10__SDMMC0_RSTN>,
555                                                          <PIN_PA11__SDMMC0_VDDSEL>,
556                                                          <PIN_PA13__SDMMC0_CD>;
557                                                 bias-disable;
558                                         };
559                                 };
560
561                                 pinctrl_sdmmc1_default: sdmmc1_default {
562                                         cmd_data {
563                                                 pinmux = <PIN_PA28__SDMMC1_CMD>,
564                                                          <PIN_PA18__SDMMC1_DAT0>,
565                                                          <PIN_PA19__SDMMC1_DAT1>,
566                                                          <PIN_PA20__SDMMC1_DAT2>,
567                                                          <PIN_PA21__SDMMC1_DAT3>;
568                                                 bias-disable;
569                                         };
570
571                                         conf-ck_cd {
572                                                 pinmux = <PIN_PA22__SDMMC1_CK>,
573                                                          <PIN_PA30__SDMMC1_CD>;
574                                                 bias-disable;
575                                         };
576                                 };
577
578                                 pinctrl_spi0_default: spi0_default {
579                                         pinmux = <PIN_PA14__SPI0_SPCK>,
580                                                  <PIN_PA15__SPI0_MOSI>,
581                                                  <PIN_PA16__SPI0_MISO>,
582                                                  <PIN_PA17__SPI0_NPCS0>;
583                                         bias-disable;
584                                 };
585
586                                 pinctrl_uart1_default: uart1_default {
587                                         pinmux = <PIN_PD2__URXD1>,
588                                                  <PIN_PD3__UTXD1>;
589                                         bias-disable;
590                                 };
591
592                                 pinctrl_uart3_default: uart3_default {
593                                         pinmux = <PIN_PB11__URXD3>,
594                                                  <PIN_PB12__UTXD3>;
595                                         bias-disable;
596                                 };
597
598                                 pinctrl_usb_default: usb_default {
599                                         pinmux = <PIN_PB10__GPIO>;
600                                         bias-disable;
601                                 };
602
603                                 pinctrl_usba_vbus: usba_vbus {
604                                         pinmux = <PIN_PA31__GPIO>;
605                                         bias-disable;
606                                 };
607
608                                 pinctrl_pwm0_pwm2_default: pwm0_pwm2_default {
609                                         pinmux = <PIN_PB5__PWMH2>,
610                                                  <PIN_PB6__PWML2>;
611                                         bias-pull-up;
612                                 };
613                         };
614
615                         classd: classd@fc048000 {
616                                 pinctrl-names = "default";
617                                 pinctrl-0 = <&pinctrl_classd_default>;
618                                 atmel,pwm-type = "diff";
619                                 atmel,non-overlap-time = <10>;
620                                 status = "okay";
621                         };
622
623                         i2s1: i2s@fc04c000 {
624                                 pinctrl-names = "default";
625                                 pinctrl-0 = <&pinctrl_i2s1_default>;
626                                 status = "disabled"; /* conflict with spi0, sdmmc1 */
627                         };
628
629                         can1: can@fc050000 {
630                                 pinctrl-names = "default";
631                                 pinctrl-0 = <&pinctrl_can1_default>;
632                                 status = "okay";
633                         };
634                 };
635         };
636
637         gpio_keys {
638                 compatible = "gpio-keys";
639
640                 pinctrl-names = "default";
641                 pinctrl-0 = <&pinctrl_key_gpio_default>;
642
643                 bp1 {
644                         label = "PB_USER";
645                         gpios = <&pioA PIN_PB9 GPIO_ACTIVE_LOW>;
646                         linux,code = <0x104>;
647                         wakeup-source;
648                 };
649         };
650
651         leds {
652                 compatible = "gpio-leds";
653                 pinctrl-names = "default";
654                 pinctrl-0 = <&pinctrl_led_gpio_default>;
655                 status = "okay"; /* conflict with pwm0 */
656
657                 red {
658                         label = "red";
659                         gpios = <&pioA PIN_PB6 GPIO_ACTIVE_LOW>;
660                 };
661
662
663                 green {
664                         label = "green";
665                         gpios = <&pioA PIN_PB5 GPIO_ACTIVE_LOW>;
666                 };
667
668                 blue {
669                         label = "blue";
670                         gpios = <&pioA PIN_PB0 GPIO_ACTIVE_LOW>;
671                         linux,default-trigger = "heartbeat";
672                 };
673         };
674 };