at91-ariag25.dts 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187
  1. /*
  2. * at91-ariag25.dts - Device Tree file for Acme Systems Aria G25 (AT91SAM9G25 based)
  3. *
  4. * Copyright (C) 2013 Douglas Gilbert <dgilbert@interlog.com>,
  5. * Robert Nelson <robertcnelson@gmail.com>
  6. *
  7. * Licensed under GPLv2 or later.
  8. */
  9. /dts-v1/;
  10. #include "at91sam9g25.dtsi"
  11. / {
  12. model = "Acme Systems Aria G25";
  13. compatible = "acme,ariag25", "atmel,at91sam9x5ek",
  14. "atmel,at91sam9x5", "atmel,at91sam9";
  15. aliases {
  16. serial0 = &dbgu;
  17. serial1 = &usart0;
  18. serial2 = &usart1;
  19. serial3 = &usart2;
  20. serial4 = &usart3;
  21. serial5 = &uart0;
  22. serial6 = &uart1;
  23. };
  24. chosen {
  25. bootargs = "console=ttyS0,115200 root=/dev/mmcblk0p2 rw rootwait";
  26. };
  27. memory {
  28. /* 128 MB, change this for 256 MB revision */
  29. reg = <0x20000000 0x8000000>;
  30. };
  31. clocks {
  32. #address-cells = <1>;
  33. #size-cells = <1>;
  34. ranges;
  35. main_clock: clock@0 {
  36. compatible = "atmel,osc", "fixed-clock";
  37. clock-frequency = <12000000>;
  38. };
  39. slow_xtal {
  40. clock-frequency = <32768>;
  41. };
  42. main_xtal {
  43. clock-frequency = <12000000>;
  44. };
  45. };
  46. ahb {
  47. apb {
  48. mmc0: mmc@f0008000 {
  49. /* N.B. Aria has no SD card detect (CD), assumed present */
  50. pinctrl-0 = <
  51. &pinctrl_mmc0_slot0_clk_cmd_dat0
  52. &pinctrl_mmc0_slot0_dat1_3>;
  53. status = "okay";
  54. slot@0 {
  55. reg = <0>;
  56. bus-width = <4>;
  57. };
  58. };
  59. i2c0: i2c@f8010000 {
  60. status = "okay";
  61. };
  62. i2c1: i2c@f8014000 {
  63. status = "okay";
  64. };
  65. /* TWD2+TCLK2 hidden behind ethernet, so no i2c2 */
  66. usart0: serial@f801c000 {
  67. pinctrl-0 = <&pinctrl_usart0
  68. &pinctrl_usart0_rts
  69. &pinctrl_usart0_cts>;
  70. status = "okay";
  71. };
  72. usart1: serial@f8020000 {
  73. pinctrl-0 = <&pinctrl_usart1
  74. /* &pinctrl_usart1_rts */
  75. /* &pinctrl_usart1_cts */
  76. >;
  77. status = "okay";
  78. };
  79. usart2: serial@f8024000 {
  80. /* cannot activate RTS2+CTS2, clash with
  81. * ethernet on PB0 and PB1 */
  82. pinctrl-0 = <&pinctrl_usart2>;
  83. status = "okay";
  84. };
  85. usart3: serial@f8028000 {
  86. compatible = "atmel,at91sam9260-usart";
  87. reg = <0xf8028000 0x200>;
  88. interrupts = <8 4 5>;
  89. pinctrl-names = "default";
  90. pinctrl-0 = <&pinctrl_usart3
  91. /* &pinctrl_usart3_rts */
  92. /* &pinctrl_usart3_cts */
  93. >;
  94. status = "okay";
  95. };
  96. macb0: ethernet@f802c000 {
  97. phy-mode = "rmii";
  98. /*
  99. * following can be overwritten by bootloader:
  100. * for example u-boot 'ftd set' command
  101. */
  102. local-mac-address = [00 00 00 00 00 00];
  103. status = "okay";
  104. };
  105. /*
  106. * UART0/1 pins are marked as GPIO on
  107. * Aria documentation.
  108. * Change to "okay" if you need additional serial ports
  109. */
  110. uart0: serial@f8040000 {
  111. status = "disabled";
  112. };
  113. uart1: serial@f8044000 {
  114. status = "disabled";
  115. };
  116. adc0: adc@f804c000 {
  117. status = "okay";
  118. atmel,adc-channels-used = <0xf>;
  119. };
  120. dbgu: serial@fffff200 {
  121. status = "okay";
  122. };
  123. pinctrl@fffff400 {
  124. w1_0 {
  125. pinctrl_w1_0: w1_0-0 {
  126. atmel,pins = <0 21 0x0 0x1>; /* PA21 PIO, pull-up */
  127. };
  128. };
  129. };
  130. rtc@fffffeb0 {
  131. status = "okay";
  132. };
  133. };
  134. usb0: ohci@00600000 {
  135. status = "okay";
  136. num-ports = <3>;
  137. };
  138. usb1: ehci@00700000 {
  139. status = "okay";
  140. };
  141. };
  142. leds {
  143. compatible = "gpio-leds";
  144. /* little green LED in middle of Aria G25 module */
  145. aria_led {
  146. label = "aria_led";
  147. gpios = <&pioB 8 GPIO_ACTIVE_HIGH>; /* PB8 */
  148. linux,default-trigger = "heartbeat";
  149. };
  150. };
  151. onewire@0 {
  152. compatible = "w1-gpio";
  153. gpios = <&pioA 21 GPIO_ACTIVE_LOW>;
  154. pinctrl-names = "default";
  155. pinctrl-0 = <&pinctrl_w1_0>;
  156. };
  157. };