Jean-Christophe PLAGNIOL-VILLARD | 5cb4e73 | 2012-02-13 00:54:47 +0800 | [diff] [blame] | 1 | /* |
| 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/; |
Jean-Christophe PLAGNIOL-VILLARD | 6db64d2 | 2013-05-15 01:21:50 +0800 | [diff] [blame] | 9 | #include "at91sam9g20ek_common.dtsi" |
Jean-Christophe PLAGNIOL-VILLARD | 5cb4e73 | 2012-02-13 00:54:47 +0800 | [diff] [blame] | 10 | |
| 11 | / { |
| 12 | model = "Atmel at91sam9g20ek 2 mmc"; |
| 13 | compatible = "atmel,at91sam9g20ek_2mmc", "atmel,at91sam9g20", "atmel,at91sam9"; |
| 14 | |
Ludovic Desroches | 4134a45 | 2012-11-19 12:24:02 +0100 | [diff] [blame] | 15 | ahb { |
| 16 | apb{ |
| 17 | mmc0: mmc@fffa8000 { |
Jean-Christophe PLAGNIOL-VILLARD | 199e2ed | 2012-11-20 00:38:18 +0800 | [diff] [blame] | 18 | /* clk already mux wuth slot0 */ |
| 19 | pinctrl-0 = < |
| 20 | &pinctrl_board_mmc0_slot0 |
| 21 | &pinctrl_mmc0_slot0_cmd_dat0 |
| 22 | &pinctrl_mmc0_slot0_dat1_3>; |
Ludovic Desroches | 4134a45 | 2012-11-19 12:24:02 +0100 | [diff] [blame] | 23 | slot@0 { |
| 24 | reg = <0>; |
| 25 | bus-width = <4>; |
Jean-Christophe PLAGNIOL-VILLARD | 92f8629 | 2013-04-24 08:34:25 +0800 | [diff] [blame] | 26 | cd-gpios = <&pioC 2 GPIO_ACTIVE_HIGH>; |
Ludovic Desroches | 4134a45 | 2012-11-19 12:24:02 +0100 | [diff] [blame] | 27 | }; |
| 28 | }; |
Jean-Christophe PLAGNIOL-VILLARD | 199e2ed | 2012-11-20 00:38:18 +0800 | [diff] [blame] | 29 | |
| 30 | pinctrl@fffff400 { |
| 31 | mmc0_slot0 { |
| 32 | pinctrl_board_mmc0_slot0: mmc0_slot0-board { |
| 33 | atmel,pins = |
Jean-Christophe PLAGNIOL-VILLARD | c9d0f31 | 2013-04-24 08:34:25 +0800 | [diff] [blame] | 34 | <AT91_PIOC 2 AT91_PERIPH_GPIO AT91_PINCTRL_PULL_UP_DEGLITCH>; /* PC2 gpio CD pin pull up and deglitch */ |
Jean-Christophe PLAGNIOL-VILLARD | 199e2ed | 2012-11-20 00:38:18 +0800 | [diff] [blame] | 35 | }; |
| 36 | }; |
| 37 | }; |
Ludovic Desroches | 4134a45 | 2012-11-19 12:24:02 +0100 | [diff] [blame] | 38 | }; |
| 39 | }; |
| 40 | |
Jean-Christophe PLAGNIOL-VILLARD | 5cb4e73 | 2012-02-13 00:54:47 +0800 | [diff] [blame] | 41 | leds { |
| 42 | compatible = "gpio-leds"; |
| 43 | |
| 44 | ds1 { |
| 45 | label = "ds1"; |
Jean-Christophe PLAGNIOL-VILLARD | 92f8629 | 2013-04-24 08:34:25 +0800 | [diff] [blame] | 46 | gpios = <&pioB 9 GPIO_ACTIVE_HIGH>; |
Jean-Christophe PLAGNIOL-VILLARD | 5cb4e73 | 2012-02-13 00:54:47 +0800 | [diff] [blame] | 47 | linux,default-trigger = "heartbeat"; |
| 48 | }; |
| 49 | |
| 50 | ds5 { |
| 51 | label = "ds5"; |
Jean-Christophe PLAGNIOL-VILLARD | 92f8629 | 2013-04-24 08:34:25 +0800 | [diff] [blame] | 52 | gpios = <&pioB 8 GPIO_ACTIVE_LOW>; |
Jean-Christophe PLAGNIOL-VILLARD | 5cb4e73 | 2012-02-13 00:54:47 +0800 | [diff] [blame] | 53 | }; |
| 54 | }; |
| 55 | }; |