at91sam9g20ek_2mmc.dts 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  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/;
  9. #include "at91sam9g20ek_common.dtsi"
  10. / {
  11. model = "Atmel at91sam9g20ek 2 mmc";
  12. compatible = "atmel,at91sam9g20ek_2mmc", "atmel,at91sam9g20", "atmel,at91sam9";
  13. ahb {
  14. apb{
  15. mmc0: mmc@fffa8000 {
  16. /* clk already mux wuth slot0 */
  17. pinctrl-0 = <
  18. &pinctrl_board_mmc0_slot0
  19. &pinctrl_mmc0_slot0_cmd_dat0
  20. &pinctrl_mmc0_slot0_dat1_3>;
  21. slot@0 {
  22. reg = <0>;
  23. bus-width = <4>;
  24. cd-gpios = <&pioC 2 GPIO_ACTIVE_HIGH>;
  25. };
  26. };
  27. pinctrl@fffff400 {
  28. mmc0_slot0 {
  29. pinctrl_board_mmc0_slot0: mmc0_slot0-board {
  30. atmel,pins =
  31. <AT91_PIOC 2 AT91_PERIPH_GPIO AT91_PINCTRL_PULL_UP_DEGLITCH>; /* PC2 gpio CD pin pull up and deglitch */
  32. };
  33. };
  34. };
  35. };
  36. };
  37. leds {
  38. compatible = "gpio-leds";
  39. ds1 {
  40. label = "ds1";
  41. gpios = <&pioB 9 GPIO_ACTIVE_HIGH>;
  42. linux,default-trigger = "heartbeat";
  43. };
  44. ds5 {
  45. label = "ds5";
  46. gpios = <&pioB 8 GPIO_ACTIVE_LOW>;
  47. };
  48. };
  49. };