1 // SPDX-License-Identifier: GPL-2.0-or-later
3 * sama5d3xmb.dts - Device Tree file for SAMA5D3x mother board
5 * Copyright (C) 2013 Atmel,
6 * 2013 Ludovic Desroches <ludovic.desroches@atmel.com>
8 #include "sama5d3xcm.dtsi"
11 compatible = "atmel,sama5d3xmb", "atmel,sama5d3xcm", "atmel,sama5d3", "atmel,sama5";
16 pinctrl-names = "default";
17 pinctrl-0 = <&pinctrl_mmc0_clk_cmd_dat0 &pinctrl_mmc0_dat1_3 &pinctrl_mmc0_cd>;
22 cd-gpios = <&pioD 17 GPIO_ACTIVE_HIGH>;
27 dmas = <0>, <0>; /* Do not use DMA for spi0 */
30 compatible = "atmel,at25df321a";
31 spi-max-frequency = <50000000>;
37 atmel,clk-from-rk-pin;
41 * i2c0 conflicts with ISI:
42 * disable it to allow the use of ISI
43 * can not enable audio when i2c0 disabled
47 compatible = "wlf,wm8904";
56 compatible = "ovti,ov2640";
58 pinctrl-names = "default";
59 pinctrl-0 = <&pinctrl_pck1_as_isi_mck &pinctrl_sensor_power &pinctrl_sensor_reset>;
60 resetb-gpios = <&pioE 24 GPIO_ACTIVE_LOW>;
61 pwdn-gpios = <&pioE 29 GPIO_ACTIVE_HIGH>;
62 /* use pck1 for the master clock of ov2640 */
64 clock-names = "xvclk";
65 assigned-clocks = <&pck1>;
66 assigned-clock-rates = <25000000>;
70 remote-endpoint = <&isi_0>;
77 usart1: serial@f0020000 {
78 dmas = <0>, <0>; /* Do not use DMA for usart1 */
79 pinctrl-names = "default";
80 pinctrl-0 = <&pinctrl_usart1 &pinctrl_usart1_rts_cts>;
87 remote-endpoint = <&ov2640_0>;
96 pinctrl-names = "default";
97 pinctrl-0 = <&pinctrl_mmc1_clk_cmd_dat0 &pinctrl_mmc1_dat1_3 &pinctrl_mmc1_cd>;
102 cd-gpios = <&pioD 18 GPIO_ACTIVE_HIGH>;
107 pinctrl-names = "default";
121 pinctrl_mmc0_cd: mmc0_cd {
123 <AT91_PIOD 17 AT91_PERIPH_GPIO AT91_PINCTRL_PULL_UP_DEGLITCH>; /* PD17 GPIO with pullup deglitch */
126 pinctrl_mmc1_cd: mmc1_cd {
128 <AT91_PIOD 18 AT91_PERIPH_GPIO AT91_PINCTRL_PULL_UP_DEGLITCH>; /* PD18 GPIO with pullup deglitch */
131 pinctrl_pck0_as_audio_mck: pck0_as_audio_mck {
133 <AT91_PIOD 30 AT91_PERIPH_B AT91_PINCTRL_NONE>; /* PD30 periph B */
136 pinctrl_pck1_as_isi_mck: pck1_as_isi_mck-0 {
138 <AT91_PIOD 31 AT91_PERIPH_B AT91_PINCTRL_NONE>; /* PD31 periph B ISI_MCK */
141 pinctrl_sensor_reset: sensor_reset-0 {
143 <AT91_PIOE 24 AT91_PERIPH_GPIO AT91_PINCTRL_NONE>; /* PE24 gpio */
146 pinctrl_sensor_power: sensor_power-0 {
148 <AT91_PIOE 29 AT91_PERIPH_GPIO AT91_PINCTRL_NONE>; /* PE29 gpio */
151 pinctrl_usba_vbus: usba_vbus {
153 <AT91_PIOD 29 AT91_PERIPH_GPIO AT91_PINCTRL_DEGLITCH>; /* PD29 GPIO with deglitch */
158 dbgu: serial@ffffee00 {
159 dmas = <0>, <0>; /* Do not use DMA for dbgu */
168 usb0: gadget@500000 {
169 atmel,vbus-gpio = <&pioD 29 GPIO_ACTIVE_HIGH>;
170 pinctrl-names = "default";
171 pinctrl-0 = <&pinctrl_usba_vbus>;
177 atmel,vbus-gpio = <&pioD 25 GPIO_ACTIVE_HIGH
178 &pioD 26 GPIO_ACTIVE_LOW
179 &pioD 27 GPIO_ACTIVE_LOW
190 compatible = "atmel,asoc-wm8904";
191 pinctrl-names = "default";
192 pinctrl-0 = <&pinctrl_pck0_as_audio_mck>;
194 atmel,model = "wm8904 @ SAMA5D3EK";
195 atmel,audio-routing =
196 "Headphone Jack", "HPOUTL",
197 "Headphone Jack", "HPOUTR",
198 "IN2L", "Line In Jack",
199 "IN2R", "Line In Jack",
203 atmel,ssc-controller = <&ssc0>;
204 atmel,audio-codec = <&wm8904>;