1f126890aSEmmanuel Vadot// SPDX-License-Identifier: GPL-2.0-only 2f126890aSEmmanuel Vadot/* 3f126890aSEmmanuel Vadot * at91sam9g20ek_2mmc.dts - Device Tree file for Atmel at91sam9g20ek 2 MMC board 4f126890aSEmmanuel Vadot * 5f126890aSEmmanuel Vadot * Copyright (C) 2012 Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> 6f126890aSEmmanuel Vadot */ 7f126890aSEmmanuel Vadot/dts-v1/; 8f126890aSEmmanuel Vadot#include "at91sam9g20ek_common.dtsi" 9f126890aSEmmanuel Vadot 10f126890aSEmmanuel Vadot/ { 11f126890aSEmmanuel Vadot model = "Atmel at91sam9g20ek 2 mmc"; 12f126890aSEmmanuel Vadot compatible = "atmel,at91sam9g20ek_2mmc", "atmel,at91sam9g20", "atmel,at91sam9"; 13f126890aSEmmanuel Vadot 14f126890aSEmmanuel Vadot ahb { 15f126890aSEmmanuel Vadot apb { 16f126890aSEmmanuel Vadot mmc0: mmc@fffa8000 { 17f126890aSEmmanuel Vadot /* clk already mux wuth slot0 */ 18f126890aSEmmanuel Vadot pinctrl-0 = < 19f126890aSEmmanuel Vadot &pinctrl_board_mmc0_slot0 20f126890aSEmmanuel Vadot &pinctrl_mmc0_slot0_cmd_dat0 21f126890aSEmmanuel Vadot &pinctrl_mmc0_slot0_dat1_3>; 22f126890aSEmmanuel Vadot slot@0 { 23f126890aSEmmanuel Vadot reg = <0>; 24f126890aSEmmanuel Vadot bus-width = <4>; 25f126890aSEmmanuel Vadot cd-gpios = <&pioC 2 GPIO_ACTIVE_HIGH>; 26f126890aSEmmanuel Vadot }; 27f126890aSEmmanuel Vadot }; 28f126890aSEmmanuel Vadot 29f126890aSEmmanuel Vadot pinctrl@fffff400 { 30f126890aSEmmanuel Vadot mmc0_slot0 { 31f126890aSEmmanuel Vadot pinctrl_board_mmc0_slot0: mmc0_slot0-board { 32f126890aSEmmanuel Vadot atmel,pins = 33f126890aSEmmanuel Vadot <AT91_PIOC 2 AT91_PERIPH_GPIO AT91_PINCTRL_PULL_UP_DEGLITCH>; /* PC2 gpio CD pin pull up and deglitch */ 34f126890aSEmmanuel Vadot }; 35f126890aSEmmanuel Vadot }; 36f126890aSEmmanuel Vadot }; 37f126890aSEmmanuel Vadot }; 38f126890aSEmmanuel Vadot }; 39f126890aSEmmanuel Vadot 40f126890aSEmmanuel Vadot leds { 41f126890aSEmmanuel Vadot compatible = "gpio-leds"; 42f126890aSEmmanuel Vadot 43*b2d2a78aSEmmanuel Vadot led-ds1 { 44f126890aSEmmanuel Vadot label = "ds1"; 45f126890aSEmmanuel Vadot gpios = <&pioB 9 GPIO_ACTIVE_HIGH>; 46f126890aSEmmanuel Vadot linux,default-trigger = "heartbeat"; 47f126890aSEmmanuel Vadot }; 48f126890aSEmmanuel Vadot 49*b2d2a78aSEmmanuel Vadot led-ds5 { 50f126890aSEmmanuel Vadot label = "ds5"; 51f126890aSEmmanuel Vadot gpios = <&pioB 8 GPIO_ACTIVE_LOW>; 52f126890aSEmmanuel Vadot }; 53f126890aSEmmanuel Vadot }; 54f126890aSEmmanuel Vadot}; 55