at91-ariag25.dts 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180
  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. };
  40. ahb {
  41. apb {
  42. mmc0: mmc@f0008000 {
  43. /* N.B. Aria has no SD card detect (CD), assumed present */
  44. pinctrl-0 = <
  45. &pinctrl_mmc0_slot0_clk_cmd_dat0
  46. &pinctrl_mmc0_slot0_dat1_3>;
  47. status = "okay";
  48. slot@0 {
  49. reg = <0>;
  50. bus-width = <4>;
  51. };
  52. };
  53. i2c0: i2c@f8010000 {
  54. status = "okay";
  55. };
  56. i2c1: i2c@f8014000 {
  57. status = "okay";
  58. };
  59. /* TWD2+TCLK2 hidden behind ethernet, so no i2c2 */
  60. usart0: serial@f801c000 {
  61. pinctrl-0 = <&pinctrl_usart0
  62. &pinctrl_usart0_rts
  63. &pinctrl_usart0_cts>;
  64. status = "okay";
  65. };
  66. usart1: serial@f8020000 {
  67. pinctrl-0 = <&pinctrl_usart1
  68. /* &pinctrl_usart1_rts */
  69. /* &pinctrl_usart1_cts */
  70. >;
  71. status = "okay";
  72. };
  73. usart2: serial@f8024000 {
  74. /* cannot activate RTS2+CTS2, clash with
  75. * ethernet on PB0 and PB1 */
  76. pinctrl-0 = <&pinctrl_usart2>;
  77. status = "okay";
  78. };
  79. usart3: serial@f8028000 {
  80. compatible = "atmel,at91sam9260-usart";
  81. reg = <0xf8028000 0x200>;
  82. interrupts = <8 4 5>;
  83. pinctrl-names = "default";
  84. pinctrl-0 = <&pinctrl_usart3
  85. /* &pinctrl_usart3_rts */
  86. /* &pinctrl_usart3_cts */
  87. >;
  88. status = "okay";
  89. };
  90. macb0: ethernet@f802c000 {
  91. phy-mode = "rmii";
  92. /*
  93. * following can be overwritten by bootloader:
  94. * for example u-boot 'ftd set' command
  95. */
  96. local-mac-address = [00 00 00 00 00 00];
  97. status = "okay";
  98. };
  99. /*
  100. * UART0/1 pins are marked as GPIO on
  101. * Aria documentation.
  102. * Change to "okay" if you need additional serial ports
  103. */
  104. uart0: serial@f8040000 {
  105. status = "disabled";
  106. };
  107. uart1: serial@f8044000 {
  108. status = "disabled";
  109. };
  110. adc0: adc@f804c000 {
  111. status = "okay";
  112. atmel,adc-channels-used = <0xf>;
  113. atmel,adc-num-channels = <4>;
  114. };
  115. dbgu: serial@fffff200 {
  116. status = "okay";
  117. };
  118. pinctrl@fffff400 {
  119. w1_0 {
  120. pinctrl_w1_0: w1_0-0 {
  121. atmel,pins = <0 21 0x0 0x1>; /* PA21 PIO, pull-up */
  122. };
  123. };
  124. };
  125. rtc@fffffeb0 {
  126. status = "okay";
  127. };
  128. };
  129. usb0: ohci@00600000 {
  130. status = "okay";
  131. num-ports = <3>;
  132. };
  133. usb1: ehci@00700000 {
  134. status = "okay";
  135. };
  136. };
  137. leds {
  138. compatible = "gpio-leds";
  139. /* little green LED in middle of Aria G25 module */
  140. aria_led {
  141. label = "aria_led";
  142. gpios = <&pioB 8 GPIO_ACTIVE_HIGH>; /* PB8 */
  143. linux,default-trigger = "heartbeat";
  144. };
  145. };
  146. onewire@0 {
  147. compatible = "w1-gpio";
  148. gpios = <&pioA 21 GPIO_ACTIVE_LOW>;
  149. pinctrl-names = "default";
  150. pinctrl-0 = <&pinctrl_w1_0>;
  151. };
  152. };