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