at91-foxg20.dts 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157
  1. /*
  2. * at91-foxg20.dts - Device Tree file for Acme Systems FoxG20 board
  3. *
  4. * Based on DT files for at91sam9g20ek evaluation board (AT91SAM9G20 SoC)
  5. *
  6. * Copyright (C) 2013 Douglas Gilbert <dgilbert@interlog.com>
  7. *
  8. * Licensed under GPLv2 or later.
  9. */
  10. /dts-v1/;
  11. #include "at91sam9g20.dtsi"
  12. / {
  13. model = "Acme Systems FoxG20";
  14. compatible = "acme,foxg20", "atmel,at91sam9g20", "atmel,at91sam9";
  15. chosen {
  16. bootargs = "console=ttyS0,115200 root=/dev/mmcblk0p2 rw rootwait";
  17. };
  18. memory {
  19. reg = <0x20000000 0x4000000>;
  20. };
  21. clocks {
  22. slow_xtal {
  23. clock-frequency = <32768>;
  24. };
  25. main_xtal {
  26. clock-frequency = <18432000>;
  27. };
  28. };
  29. ahb {
  30. apb {
  31. usb1: gadget@fffa4000 {
  32. atmel,vbus-gpio = <&pioC 6 GPIO_ACTIVE_HIGH>;
  33. status = "okay";
  34. };
  35. mmc0: mmc@fffa8000 {
  36. pinctrl-0 = <
  37. &pinctrl_mmc0_clk
  38. &pinctrl_mmc0_slot1_cmd_dat0
  39. &pinctrl_mmc0_slot1_dat1_3>;
  40. status = "okay";
  41. slot@1 {
  42. reg = <1>;
  43. bus-width = <4>;
  44. };
  45. };
  46. usart0: serial@fffb0000 {
  47. pinctrl-0 =
  48. <&pinctrl_usart0
  49. &pinctrl_usart0_rts
  50. &pinctrl_usart0_cts
  51. >;
  52. status = "okay";
  53. };
  54. usart1: serial@fffb4000 {
  55. status = "okay";
  56. };
  57. usart2: serial@fffb8000 {
  58. status = "okay";
  59. };
  60. macb0: ethernet@fffc4000 {
  61. phy-mode = "rmii";
  62. status = "okay";
  63. };
  64. usart3: serial@fffd0000 {
  65. status = "okay";
  66. };
  67. uart0: serial@fffd4000 {
  68. status = "okay";
  69. };
  70. uart1: serial@fffd8000 {
  71. status = "okay";
  72. };
  73. dbgu: serial@fffff200 {
  74. status = "okay";
  75. };
  76. pinctrl@fffff400 {
  77. board {
  78. pinctrl_pck0_as_mck: pck0_as_mck {
  79. atmel,pins =
  80. <AT91_PIOC 1 AT91_PERIPH_B AT91_PINCTRL_NONE>;
  81. };
  82. };
  83. mmc0_slot1 {
  84. pinctrl_board_mmc0_slot1: mmc0_slot1-board {
  85. atmel,pins =
  86. <AT91_PIOC 9 AT91_PERIPH_GPIO AT91_PINCTRL_PULL_UP_DEGLITCH>; /* CD pin */
  87. };
  88. };
  89. i2c0 {
  90. pinctrl_i2c0: i2c0-0 {
  91. atmel,pins =
  92. <AT91_PIOA 23 AT91_PERIPH_A AT91_PINCTRL_MULTI_DRIVE /* TWD (SDA), open drain */
  93. AT91_PIOA 24 AT91_PERIPH_A AT91_PINCTRL_MULTI_DRIVE>; /* TWCK (SCL), open drain */
  94. };
  95. };
  96. };
  97. watchdog@fffffd40 {
  98. status = "okay";
  99. };
  100. };
  101. usb0: ohci@500000 {
  102. num-ports = <2>;
  103. status = "okay";
  104. };
  105. };
  106. i2c-gpio-0 {
  107. pinctrl-names = "default";
  108. pinctrl-0 = <&pinctrl_i2c0>;
  109. i2c-gpio,delay-us = <5>; /* ~85 kHz */
  110. status = "okay";
  111. };
  112. leds {
  113. compatible = "gpio-leds";
  114. /* red LED marked "PC7" near mini USB (device) receptacle */
  115. user_led {
  116. label = "user_led";
  117. gpios = <&pioC 7 GPIO_ACTIVE_HIGH>; /* PC7 */
  118. linux,default-trigger = "heartbeat";
  119. };
  120. };
  121. gpio_keys {
  122. compatible = "gpio-keys";
  123. btn {
  124. label = "Button";
  125. gpios = <&pioC 4 GPIO_ACTIVE_LOW>;
  126. linux,code = <0x103>;
  127. wakeup-source;
  128. };
  129. };
  130. };