xref: /freebsd/sys/contrib/device-tree/src/arm/microchip/sama5d3_mci2.dtsi (revision f126890ac5386406dadf7c4cfa9566cbb56537c5)
1*f126890aSEmmanuel Vadot// SPDX-License-Identifier: GPL-2.0-only
2*f126890aSEmmanuel Vadot/*
3*f126890aSEmmanuel Vadot * sama5d3_mci2.dtsi - Device Tree Include file for SAMA5D3 SoC with
4*f126890aSEmmanuel Vadot * 3 MMC ports
5*f126890aSEmmanuel Vadot *
6*f126890aSEmmanuel Vadot * Copyright (C) 2013 Boris BREZILLON <b.brezillon@overkiz.com>
7*f126890aSEmmanuel Vadot */
8*f126890aSEmmanuel Vadot
9*f126890aSEmmanuel Vadot#include <dt-bindings/pinctrl/at91.h>
10*f126890aSEmmanuel Vadot#include <dt-bindings/interrupt-controller/irq.h>
11*f126890aSEmmanuel Vadot#include <dt-bindings/clock/at91.h>
12*f126890aSEmmanuel Vadot
13*f126890aSEmmanuel Vadot/ {
14*f126890aSEmmanuel Vadot	ahb {
15*f126890aSEmmanuel Vadot		apb {
16*f126890aSEmmanuel Vadot			pinctrl@fffff200 {
17*f126890aSEmmanuel Vadot				mmc2 {
18*f126890aSEmmanuel Vadot					pinctrl_mmc2_clk_cmd_dat0: mmc2_clk_cmd_dat0 {
19*f126890aSEmmanuel Vadot						atmel,pins =
20*f126890aSEmmanuel Vadot							<AT91_PIOC 15 AT91_PERIPH_A AT91_PINCTRL_NONE	/* PC15 periph A MCI2_CK, conflicts with PCK2 */
21*f126890aSEmmanuel Vadot							 AT91_PIOC 10 AT91_PERIPH_A AT91_PINCTRL_PULL_UP	/* PC10 periph A MCI2_CDA with pullup */
22*f126890aSEmmanuel Vadot							 AT91_PIOC 11 AT91_PERIPH_A AT91_PINCTRL_PULL_UP>;	/* PC11 periph A MCI2_DA0 with pullup */
23*f126890aSEmmanuel Vadot					};
24*f126890aSEmmanuel Vadot					pinctrl_mmc2_dat1_3: mmc2_dat1_3 {
25*f126890aSEmmanuel Vadot						atmel,pins =
26*f126890aSEmmanuel Vadot							<AT91_PIOC 12 AT91_PERIPH_A AT91_PINCTRL_PULL_UP	/* PC12 periph A MCI2_DA1 with pullup, conflicts with TIOA1 */
27*f126890aSEmmanuel Vadot							 AT91_PIOC 13 AT91_PERIPH_A AT91_PINCTRL_PULL_UP	/* PC13 periph A MCI2_DA2 with pullup, conflicts with TIOB1 */
28*f126890aSEmmanuel Vadot							 AT91_PIOC 14 AT91_PERIPH_A AT91_PINCTRL_PULL_UP>;	/* PC14 periph A MCI2_DA3 with pullup, conflicts with TCLK1 */
29*f126890aSEmmanuel Vadot					};
30*f126890aSEmmanuel Vadot				};
31*f126890aSEmmanuel Vadot			};
32*f126890aSEmmanuel Vadot
33*f126890aSEmmanuel Vadot			mmc2: mmc@f8004000 {
34*f126890aSEmmanuel Vadot				compatible = "atmel,hsmci";
35*f126890aSEmmanuel Vadot				reg = <0xf8004000 0x600>;
36*f126890aSEmmanuel Vadot				interrupts = <23 IRQ_TYPE_LEVEL_HIGH 0>;
37*f126890aSEmmanuel Vadot				dmas = <&dma1 2 AT91_DMA_CFG_PER_ID(1)>;
38*f126890aSEmmanuel Vadot				dma-names = "rxtx";
39*f126890aSEmmanuel Vadot				pinctrl-names = "default";
40*f126890aSEmmanuel Vadot				pinctrl-0 = <&pinctrl_mmc2_clk_cmd_dat0 &pinctrl_mmc2_dat1_3>;
41*f126890aSEmmanuel Vadot				clocks = <&pmc PMC_TYPE_PERIPHERAL 23>;
42*f126890aSEmmanuel Vadot				clock-names = "mci_clk";
43*f126890aSEmmanuel Vadot				status = "disabled";
44*f126890aSEmmanuel Vadot				#address-cells = <1>;
45*f126890aSEmmanuel Vadot				#size-cells = <0>;
46*f126890aSEmmanuel Vadot			};
47*f126890aSEmmanuel Vadot		};
48*f126890aSEmmanuel Vadot	};
49*f126890aSEmmanuel Vadot};
50