2 * sama5d3xmb_cmp.dts - Device Tree file for SAMA5D3x CMP mother board
4 * Copyright (C) 2016 Atmel,
6 * This file is dual-licensed: you can use it either under the terms
7 * of the GPL or the X11 license, at your option. Note that this dual
8 * licensing only applies to this file, and not this project as a
11 * a) This file is free software; you can redistribute it and/or
12 * modify it under the terms of the GNU General Public License as
13 * published by the Free Software Foundation; either version 2 of the
14 * License, or (at your option) any later version.
16 * This file is distributed in the hope that it will be useful,
17 * but WITHOUT ANY WARRANTY; without even the implied warranty of
18 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19 * GNU General Public License for more details.
23 * b) Permission is hereby granted, free of charge, to any person
24 * obtaining a copy of this software and associated documentation
25 * files (the "Software"), to deal in the Software without
26 * restriction, including without limitation the rights to use,
27 * copy, modify, merge, publish, distribute, sublicense, and/or
28 * sell copies of the Software, and to permit persons to whom the
29 * Software is furnished to do so, subject to the following
32 * The above copyright notice and this permission notice shall be
33 * included in all copies or substantial portions of the Software.
35 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
36 * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
37 * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
38 * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
39 * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
40 * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
41 * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
42 * OTHER DEALINGS IN THE SOFTWARE.
44 #include "sama5d3xcm_cmp.dtsi"
47 compatible = "atmel,sama5d3xmb-cmp", "atmel,sama5d3xcm-cmp", "atmel,sama5d3", "atmel,sama5";
52 pinctrl-names = "default";
53 pinctrl-0 = <&pinctrl_mmc0_clk_cmd_dat0 &pinctrl_mmc0_dat1_3 &pinctrl_mmc0_cd>;
58 cd-gpios = <&pioD 17 GPIO_ACTIVE_HIGH>;
63 dmas = <0>, <0>; /* Do not use DMA for spi0 */
66 compatible = "atmel,at25df321a";
67 spi-max-frequency = <50000000>;
73 atmel,clk-from-rk-pin;
77 * i2c0 conflicts with ISI:
78 * disable it to allow the use of ISI
79 * can not enable audio when i2c0 disabled
83 compatible = "wlf,wm8904";
92 compatible = "ovti,ov2640";
94 pinctrl-names = "default";
95 pinctrl-0 = <&pinctrl_pck1_as_isi_mck &pinctrl_sensor_power &pinctrl_sensor_reset>;
96 resetb-gpios = <&pioE 24 GPIO_ACTIVE_LOW>;
97 pwdn-gpios = <&pioE 29 GPIO_ACTIVE_HIGH>;
98 /* use pck1 for the master clock of ov2640 */
100 clock-names = "xvclk";
101 assigned-clocks = <&pck1>;
102 assigned-clock-rates = <25000000>;
106 remote-endpoint = <&isi_0>;
113 usart1: serial@f0020000 {
114 dmas = <0>, <0>; /* Do not use DMA for usart1 */
115 pinctrl-names = "default";
116 pinctrl-0 = <&pinctrl_usart1 &pinctrl_usart1_rts_cts>;
123 remote-endpoint = <&ov2640_0>;
132 pinctrl-names = "default";
133 pinctrl-0 = <&pinctrl_mmc1_clk_cmd_dat0 &pinctrl_mmc1_dat1_3 &pinctrl_mmc1_cd>;
138 cd-gpios = <&pioD 18 GPIO_ACTIVE_HIGH>;
143 pinctrl-names = "default", "sleep";
153 &pinctrl_adc0_adtrg_sleep
154 &pinctrl_adc0_ad0_sleep
155 &pinctrl_adc0_ad1_sleep
156 &pinctrl_adc0_ad2_sleep
157 &pinctrl_adc0_ad3_sleep
158 &pinctrl_adc0_ad4_sleep
163 macb1: ethernet@f802c000 {
166 #address-cells = <1>;
168 phy0: ethernet-phy@1 {
169 /*interrupt-parent = <&pioE>;*/
170 /*interrupts = <30 IRQ_TYPE_EDGE_FALLING>;*/
177 pinctrl_adc0_adtrg_sleep: adc0_adtrg_1 {
179 <AT91_PIOD 19 AT91_PERIPH_GPIO (AT91_PINCTRL_OUTPUT | AT91_PINCTRL_OUTPUT_VAL(0))>;
181 pinctrl_adc0_ad0_sleep: adc0_ad0_1 {
183 <AT91_PIOD 20 AT91_PERIPH_GPIO (AT91_PINCTRL_OUTPUT | AT91_PINCTRL_OUTPUT_VAL(0))>;
185 pinctrl_adc0_ad1_sleep: adc0_ad1_1 {
187 <AT91_PIOD 21 AT91_PERIPH_GPIO (AT91_PINCTRL_OUTPUT | AT91_PINCTRL_OUTPUT_VAL(0))>;
189 pinctrl_adc0_ad2_sleep: adc0_ad2_1 {
191 <AT91_PIOD 22 AT91_PERIPH_GPIO (AT91_PINCTRL_OUTPUT | AT91_PINCTRL_OUTPUT_VAL(0))>;
193 pinctrl_adc0_ad3_sleep: adc0_ad3_1 {
195 <AT91_PIOD 23 AT91_PERIPH_GPIO (AT91_PINCTRL_OUTPUT | AT91_PINCTRL_OUTPUT_VAL(0))>;
197 pinctrl_adc0_ad4_sleep: adc0_ad4_1 {
199 <AT91_PIOD 24 AT91_PERIPH_GPIO (AT91_PINCTRL_OUTPUT | AT91_PINCTRL_OUTPUT_VAL(0))>;
204 pinctrl_gpio_keys: gpio_keys {
206 <AT91_PIOE 27 AT91_PERIPH_GPIO AT91_PINCTRL_PULL_UP>;
209 pinctrl_mmc0_cd: mmc0_cd {
211 <AT91_PIOD 17 AT91_PERIPH_GPIO AT91_PINCTRL_PULL_UP_DEGLITCH>;
214 pinctrl_mmc1_cd: mmc1_cd {
216 <AT91_PIOD 18 AT91_PERIPH_GPIO AT91_PINCTRL_PULL_UP_DEGLITCH>;
219 pinctrl_pck0_as_audio_mck: pck0_as_audio_mck {
221 <AT91_PIOD 30 AT91_PERIPH_B AT91_PINCTRL_NONE>;
224 pinctrl_pck1_as_isi_mck: pck1_as_isi_mck-0 {
226 <AT91_PIOD 31 AT91_PERIPH_B AT91_PINCTRL_NONE>;
229 pinctrl_sensor_reset: sensor_reset-0 {
231 <AT91_PIOE 24 AT91_PERIPH_GPIO AT91_PINCTRL_NONE>;
234 pinctrl_sensor_power: sensor_power-0 {
236 <AT91_PIOE 29 AT91_PERIPH_GPIO AT91_PINCTRL_NONE>;
239 pinctrl_usba_vbus: usba_vbus {
241 <AT91_PIOD 29 AT91_PERIPH_GPIO AT91_PINCTRL_DEGLITCH>;
246 dbgu: serial@ffffee00 {
247 dmas = <0>, <0>; /* Do not use DMA for dbgu */
256 usb0: gadget@00500000 {
257 atmel,vbus-gpio = <&pioD 29 GPIO_ACTIVE_HIGH>;
258 pinctrl-names = "default";
259 pinctrl-0 = <&pinctrl_usba_vbus>;
265 compatible = "atmel,asoc-wm8904";
266 pinctrl-names = "default";
267 pinctrl-0 = <&pinctrl_pck0_as_audio_mck>;
269 atmel,model = "wm8904 @ SAMA5D3EK";
270 atmel,audio-routing =
271 "Headphone Jack", "HPOUTL",
272 "Headphone Jack", "HPOUTR",
273 "IN2L", "Line In Jack",
274 "IN2R", "Line In Jack",
278 atmel,ssc-controller = <&ssc0>;
279 atmel,audio-codec = <&wm8904>;
284 /* Conflict with LCD pins */
286 compatible = "gpio-keys";
289 #address-cells = <1>;
291 pinctrl-names = "default";
292 pinctrl-0 = <&pinctrl_gpio_keys>;
296 gpios = <&pioE 27 GPIO_ACTIVE_HIGH>;
297 linux,code = <0x100>;