Back to home page

OSCL-LXR

 
 

    


0001 // SPDX-License-Identifier: GPL-2.0-only
0002 /*
0003  * sama5d3_mci2.dtsi - Device Tree Include file for SAMA5D3 SoC with
0004  * 3 MMC ports
0005  *
0006  * Copyright (C) 2013 Boris BREZILLON <b.brezillon@overkiz.com>
0007  */
0008 
0009 #include <dt-bindings/pinctrl/at91.h>
0010 #include <dt-bindings/interrupt-controller/irq.h>
0011 #include <dt-bindings/clock/at91.h>
0012 
0013 / {
0014         ahb {
0015                 apb {
0016                         pinctrl@fffff200 {
0017                                 mmc2 {
0018                                         pinctrl_mmc2_clk_cmd_dat0: mmc2_clk_cmd_dat0 {
0019                                                 atmel,pins =
0020                                                         <AT91_PIOC 15 AT91_PERIPH_A AT91_PINCTRL_NONE   /* PC15 periph A MCI2_CK, conflicts with PCK2 */
0021                                                          AT91_PIOC 10 AT91_PERIPH_A AT91_PINCTRL_PULL_UP        /* PC10 periph A MCI2_CDA with pullup */
0022                                                          AT91_PIOC 11 AT91_PERIPH_A AT91_PINCTRL_PULL_UP>;      /* PC11 periph A MCI2_DA0 with pullup */
0023                                         };
0024                                         pinctrl_mmc2_dat1_3: mmc2_dat1_3 {
0025                                                 atmel,pins =
0026                                                         <AT91_PIOC 12 AT91_PERIPH_A AT91_PINCTRL_PULL_UP        /* PC12 periph A MCI2_DA1 with pullup, conflicts with TIOA1 */
0027                                                          AT91_PIOC 13 AT91_PERIPH_A AT91_PINCTRL_PULL_UP        /* PC13 periph A MCI2_DA2 with pullup, conflicts with TIOB1 */
0028                                                          AT91_PIOC 14 AT91_PERIPH_A AT91_PINCTRL_PULL_UP>;      /* PC14 periph A MCI2_DA3 with pullup, conflicts with TCLK1 */
0029                                         };
0030                                 };
0031                         };
0032 
0033                         mmc2: mmc@f8004000 {
0034                                 compatible = "atmel,hsmci";
0035                                 reg = <0xf8004000 0x600>;
0036                                 interrupts = <23 IRQ_TYPE_LEVEL_HIGH 0>;
0037                                 dmas = <&dma1 2 AT91_DMA_CFG_PER_ID(1)>;
0038                                 dma-names = "rxtx";
0039                                 pinctrl-names = "default";
0040                                 pinctrl-0 = <&pinctrl_mmc2_clk_cmd_dat0 &pinctrl_mmc2_dat1_3>;
0041                                 clocks = <&pmc PMC_TYPE_PERIPHERAL 23>;
0042                                 clock-names = "mci_clk";
0043                                 status = "disabled";
0044                                 #address-cells = <1>;
0045                                 #size-cells = <0>;
0046                         };
0047                 };
0048         };
0049 };