at91-foxg20.dts 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165
  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. #address-cells = <1>;
  23. #size-cells = <1>;
  24. ranges;
  25. main_clock: clock@0 {
  26. compatible = "atmel,osc", "fixed-clock";
  27. clock-frequency = <18432000>;
  28. };
  29. slow_xtal {
  30. clock-frequency = <32768>;
  31. };
  32. main_xtal {
  33. clock-frequency = <18432000>;
  34. };
  35. };
  36. ahb {
  37. apb {
  38. usb1: gadget@fffa4000 {
  39. atmel,vbus-gpio = <&pioC 6 GPIO_ACTIVE_HIGH>;
  40. status = "okay";
  41. };
  42. mmc0: mmc@fffa8000 {
  43. pinctrl-0 = <
  44. &pinctrl_mmc0_clk
  45. &pinctrl_mmc0_slot1_cmd_dat0
  46. &pinctrl_mmc0_slot1_dat1_3>;
  47. status = "okay";
  48. slot@1 {
  49. reg = <1>;
  50. bus-width = <4>;
  51. };
  52. };
  53. usart0: serial@fffb0000 {
  54. pinctrl-0 =
  55. <&pinctrl_usart0
  56. &pinctrl_usart0_rts
  57. &pinctrl_usart0_cts
  58. >;
  59. status = "okay";
  60. };
  61. usart1: serial@fffb4000 {
  62. status = "okay";
  63. };
  64. usart2: serial@fffb8000 {
  65. status = "okay";
  66. };
  67. macb0: ethernet@fffc4000 {
  68. phy-mode = "rmii";
  69. status = "okay";
  70. };
  71. usart3: serial@fffd0000 {
  72. status = "okay";
  73. };
  74. uart0: serial@fffd4000 {
  75. status = "okay";
  76. };
  77. uart1: serial@fffd8000 {
  78. status = "okay";
  79. };
  80. dbgu: serial@fffff200 {
  81. status = "okay";
  82. };
  83. pinctrl@fffff400 {
  84. board {
  85. pinctrl_pck0_as_mck: pck0_as_mck {
  86. atmel,pins =
  87. <AT91_PIOC 1 AT91_PERIPH_B AT91_PINCTRL_NONE>;
  88. };
  89. };
  90. mmc0_slot1 {
  91. pinctrl_board_mmc0_slot1: mmc0_slot1-board {
  92. atmel,pins =
  93. <AT91_PIOC 9 AT91_PERIPH_GPIO AT91_PINCTRL_PULL_UP_DEGLITCH>; /* CD pin */
  94. };
  95. };
  96. i2c0 {
  97. pinctrl_i2c0: i2c0-0 {
  98. atmel,pins =
  99. <AT91_PIOA 23 AT91_PERIPH_A AT91_PINCTRL_MULTI_DRIVE /* TWD (SDA), open drain */
  100. AT91_PIOA 24 AT91_PERIPH_A AT91_PINCTRL_MULTI_DRIVE>; /* TWCK (SCL), open drain */
  101. };
  102. };
  103. };
  104. watchdog@fffffd40 {
  105. status = "okay";
  106. };
  107. };
  108. usb0: ohci@00500000 {
  109. num-ports = <2>;
  110. status = "okay";
  111. };
  112. };
  113. i2c@0 {
  114. pinctrl-names = "default";
  115. pinctrl-0 = <&pinctrl_i2c0>;
  116. i2c-gpio,delay-us = <5>; /* ~85 kHz */
  117. status = "okay";
  118. };
  119. leds {
  120. compatible = "gpio-leds";
  121. /* red LED marked "PC7" near mini USB (device) receptacle */
  122. user_led {
  123. label = "user_led";
  124. gpios = <&pioC 7 GPIO_ACTIVE_HIGH>; /* PC7 */
  125. linux,default-trigger = "heartbeat";
  126. };
  127. };
  128. gpio_keys {
  129. compatible = "gpio-keys";
  130. btn {
  131. label = "Button";
  132. gpios = <&pioC 4 GPIO_ACTIVE_LOW>;
  133. linux,code = <0x103>;
  134. gpio-key,wakeup;
  135. };
  136. };
  137. };