Thomas Gleixner | f50a7f3 | 2019-05-28 09:57:18 -0700 | [diff] [blame] | 1 | // SPDX-License-Identifier: GPL-2.0-only |
Boris BREZILLON | d7d1d45 | 2013-08-07 10:49:01 +0200 | [diff] [blame] | 2 | /* |
Nicolas Ferre | 8dafaa1 | 2015-03-04 17:56:03 +0100 | [diff] [blame] | 3 | * sama5d3_mci2.dtsi - Device Tree Include file for SAMA5D3 SoC with |
Boris BREZILLON | d7d1d45 | 2013-08-07 10:49:01 +0200 | [diff] [blame] | 4 | * 3 MMC ports |
| 5 | * |
| 6 | * Copyright (C) 2013 Boris BREZILLON <b.brezillon@overkiz.com> |
Boris BREZILLON | d7d1d45 | 2013-08-07 10:49:01 +0200 | [diff] [blame] | 7 | */ |
| 8 | |
| 9 | #include <dt-bindings/pinctrl/at91.h> |
| 10 | #include <dt-bindings/interrupt-controller/irq.h> |
Tushar Behera | 35d35aa | 2014-03-06 11:34:43 +0530 | [diff] [blame] | 11 | #include <dt-bindings/clock/at91.h> |
Boris BREZILLON | d7d1d45 | 2013-08-07 10:49:01 +0200 | [diff] [blame] | 12 | |
| 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 = |
Sylvain Rochet | 7c512d5 | 2015-09-07 17:47:58 +0200 | [diff] [blame] | 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 */ |
Boris BREZILLON | d7d1d45 | 2013-08-07 10:49:01 +0200 | [diff] [blame] | 29 | }; |
| 30 | }; |
| 31 | }; |
| 32 | |
| 33 | mmc2: mmc@f8004000 { |
| 34 | compatible = "atmel,hsmci"; |
| 35 | reg = <0xf8004000 0x600>; |
| 36 | interrupts = <23 IRQ_TYPE_LEVEL_HIGH 0>; |
| 37 | dmas = <&dma1 2 AT91_DMA_CFG_PER_ID(1)>; |
| 38 | dma-names = "rxtx"; |
| 39 | pinctrl-names = "default"; |
| 40 | pinctrl-0 = <&pinctrl_mmc2_clk_cmd_dat0 &pinctrl_mmc2_dat1_3>; |
Alexandre Belloni | 7ed609b | 2020-01-10 23:27:44 +0100 | [diff] [blame] | 41 | clocks = <&pmc PMC_TYPE_PERIPHERAL 23>; |
Boris BREZILLON | d2e8190 | 2013-10-18 23:48:27 +0200 | [diff] [blame] | 42 | clock-names = "mci_clk"; |
Boris BREZILLON | d7d1d45 | 2013-08-07 10:49:01 +0200 | [diff] [blame] | 43 | status = "disabled"; |
| 44 | #address-cells = <1>; |
| 45 | #size-cells = <0>; |
| 46 | }; |
| 47 | }; |
| 48 | }; |
| 49 | }; |