at91sam9g20ek_2mmc.dts 1.1 KB

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