0001 // SPDX-License-Identifier: GPL-2.0-only
0002 /*
0003 * at91sam9g20ek_2mmc.dts - Device Tree file for Atmel at91sam9g20ek 2 MMC board
0004 *
0005 * Copyright (C) 2012 Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
0006 */
0007 /dts-v1/;
0008 #include "at91sam9g20ek_common.dtsi"
0009
0010 / {
0011 model = "Atmel at91sam9g20ek 2 mmc";
0012 compatible = "atmel,at91sam9g20ek_2mmc", "atmel,at91sam9g20", "atmel,at91sam9";
0013
0014 ahb {
0015 apb{
0016 mmc0: mmc@fffa8000 {
0017 /* clk already mux wuth slot0 */
0018 pinctrl-0 = <
0019 &pinctrl_board_mmc0_slot0
0020 &pinctrl_mmc0_slot0_cmd_dat0
0021 &pinctrl_mmc0_slot0_dat1_3>;
0022 slot@0 {
0023 reg = <0>;
0024 bus-width = <4>;
0025 cd-gpios = <&pioC 2 GPIO_ACTIVE_HIGH>;
0026 };
0027 };
0028
0029 pinctrl@fffff400 {
0030 mmc0_slot0 {
0031 pinctrl_board_mmc0_slot0: mmc0_slot0-board {
0032 atmel,pins =
0033 <AT91_PIOC 2 AT91_PERIPH_GPIO AT91_PINCTRL_PULL_UP_DEGLITCH>; /* PC2 gpio CD pin pull up and deglitch */
0034 };
0035 };
0036 };
0037 };
0038 };
0039
0040 leds {
0041 compatible = "gpio-leds";
0042
0043 ds1 {
0044 label = "ds1";
0045 gpios = <&pioB 9 GPIO_ACTIVE_HIGH>;
0046 linux,default-trigger = "heartbeat";
0047 };
0048
0049 ds5 {
0050 label = "ds5";
0051 gpios = <&pioB 8 GPIO_ACTIVE_LOW>;
0052 };
0053 };
0054 };