1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
3 * sama5d3xmb_cmp.dts - Device Tree file for SAMA5D3x CMP mother board
5 * Copyright (C) 2016 Atmel,
7 #include "sama5d3xcm_cmp.dtsi"
10 compatible = "atmel,sama5d3xmb-cmp", "atmel,sama5d3xcm-cmp", "atmel,sama5d3", "atmel,sama5";
15 pinctrl-names = "default";
16 pinctrl-0 = <&pinctrl_mmc0_clk_cmd_dat0 &pinctrl_mmc0_dat1_3 &pinctrl_mmc0_cd>;
21 cd-gpios = <&pioD 17 GPIO_ACTIVE_HIGH>;
26 dmas = <0>, <0>; /* Do not use DMA for spi0 */
29 compatible = "atmel,at25df321a";
30 spi-max-frequency = <50000000>;
36 atmel,clk-from-rk-pin;
40 * i2c0 conflicts with ISI:
41 * disable it to allow the use of ISI
42 * can not enable audio when i2c0 disabled
46 compatible = "wlf,wm8904";
48 clocks = <&pmc PMC_TYPE_SYSTEM 8>;
55 compatible = "ovti,ov2640";
57 pinctrl-names = "default";
58 pinctrl-0 = <&pinctrl_pck1_as_isi_mck &pinctrl_sensor_power &pinctrl_sensor_reset>;
59 resetb-gpios = <&pioE 24 GPIO_ACTIVE_LOW>;
60 pwdn-gpios = <&pioE 29 GPIO_ACTIVE_HIGH>;
61 /* use pck1 for the master clock of ov2640 */
62 clocks = <&pmc PMC_TYPE_SYSTEM 9>;
63 clock-names = "xvclk";
64 assigned-clocks = <&pmc PMC_TYPE_SYSTEM 9>;
65 assigned-clock-rates = <25000000>;
69 remote-endpoint = <&isi_0>;
76 usart1: serial@f0020000 {
77 dmas = <0>, <0>; /* Do not use DMA for usart1 */
78 pinctrl-names = "default";
79 pinctrl-0 = <&pinctrl_usart1 &pinctrl_usart1_rts_cts>;
86 remote-endpoint = <&ov2640_0>;
95 pinctrl-names = "default";
96 pinctrl-0 = <&pinctrl_mmc1_clk_cmd_dat0 &pinctrl_mmc1_dat1_3 &pinctrl_mmc1_cd>;
101 cd-gpios = <&pioD 18 GPIO_ACTIVE_HIGH>;
106 pinctrl-names = "default", "sleep";
116 &pinctrl_adc0_adtrg_sleep
117 &pinctrl_adc0_ad0_sleep
118 &pinctrl_adc0_ad1_sleep
119 &pinctrl_adc0_ad2_sleep
120 &pinctrl_adc0_ad3_sleep
121 &pinctrl_adc0_ad4_sleep
126 macb1: ethernet@f802c000 {
129 #address-cells = <1>;
131 phy0: ethernet-phy@1 {
132 /*interrupt-parent = <&pioE>;*/
133 /*interrupts = <30 IRQ_TYPE_EDGE_FALLING>;*/
140 pinctrl_adc0_adtrg_sleep: adc0_adtrg_1 {
142 <AT91_PIOD 19 AT91_PERIPH_GPIO (AT91_PINCTRL_OUTPUT | AT91_PINCTRL_OUTPUT_VAL(0))>;
144 pinctrl_adc0_ad0_sleep: adc0_ad0_1 {
146 <AT91_PIOD 20 AT91_PERIPH_GPIO (AT91_PINCTRL_OUTPUT | AT91_PINCTRL_OUTPUT_VAL(0))>;
148 pinctrl_adc0_ad1_sleep: adc0_ad1_1 {
150 <AT91_PIOD 21 AT91_PERIPH_GPIO (AT91_PINCTRL_OUTPUT | AT91_PINCTRL_OUTPUT_VAL(0))>;
152 pinctrl_adc0_ad2_sleep: adc0_ad2_1 {
154 <AT91_PIOD 22 AT91_PERIPH_GPIO (AT91_PINCTRL_OUTPUT | AT91_PINCTRL_OUTPUT_VAL(0))>;
156 pinctrl_adc0_ad3_sleep: adc0_ad3_1 {
158 <AT91_PIOD 23 AT91_PERIPH_GPIO (AT91_PINCTRL_OUTPUT | AT91_PINCTRL_OUTPUT_VAL(0))>;
160 pinctrl_adc0_ad4_sleep: adc0_ad4_1 {
162 <AT91_PIOD 24 AT91_PERIPH_GPIO (AT91_PINCTRL_OUTPUT | AT91_PINCTRL_OUTPUT_VAL(0))>;
167 pinctrl_gpio_keys: gpio_keys {
169 <AT91_PIOE 27 AT91_PERIPH_GPIO AT91_PINCTRL_PULL_UP>;
172 pinctrl_mmc0_cd: mmc0_cd {
174 <AT91_PIOD 17 AT91_PERIPH_GPIO AT91_PINCTRL_PULL_UP_DEGLITCH>;
177 pinctrl_mmc1_cd: mmc1_cd {
179 <AT91_PIOD 18 AT91_PERIPH_GPIO AT91_PINCTRL_PULL_UP_DEGLITCH>;
182 pinctrl_pck0_as_audio_mck: pck0_as_audio_mck {
184 <AT91_PIOD 30 AT91_PERIPH_B AT91_PINCTRL_NONE>;
187 pinctrl_pck1_as_isi_mck: pck1_as_isi_mck-0 {
189 <AT91_PIOD 31 AT91_PERIPH_B AT91_PINCTRL_NONE>;
192 pinctrl_sensor_reset: sensor_reset-0 {
194 <AT91_PIOE 24 AT91_PERIPH_GPIO AT91_PINCTRL_NONE>;
197 pinctrl_sensor_power: sensor_power-0 {
199 <AT91_PIOE 29 AT91_PERIPH_GPIO AT91_PINCTRL_NONE>;
202 pinctrl_usba_vbus: usba_vbus {
204 <AT91_PIOD 29 AT91_PERIPH_GPIO AT91_PINCTRL_DEGLITCH>;
209 dbgu: serial@ffffee00 {
210 dmas = <0>, <0>; /* Do not use DMA for dbgu */
219 usb0: gadget@500000 {
220 atmel,vbus-gpio = <&pioD 29 GPIO_ACTIVE_HIGH>;
221 pinctrl-names = "default";
222 pinctrl-0 = <&pinctrl_usba_vbus>;
228 compatible = "atmel,asoc-wm8904";
229 pinctrl-names = "default";
230 pinctrl-0 = <&pinctrl_pck0_as_audio_mck>;
232 atmel,model = "wm8904 @ SAMA5D3EK";
233 atmel,audio-routing =
234 "Headphone Jack", "HPOUTL",
235 "Headphone Jack", "HPOUTR",
236 "IN2L", "Line In Jack",
237 "IN2R", "Line In Jack",
241 atmel,ssc-controller = <&ssc0>;
242 atmel,audio-codec = <&wm8904>;
247 /* Conflict with LCD pins */
249 compatible = "gpio-keys";
252 #address-cells = <1>;
254 pinctrl-names = "default";
255 pinctrl-0 = <&pinctrl_gpio_keys>;
259 gpios = <&pioE 27 GPIO_ACTIVE_HIGH>;
260 linux,code = <0x100>;