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