at91-ariag25.dts 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171
  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. };
  23. chosen {
  24. bootargs = "console=ttyS0,115200 root=/dev/mmcblk0p2 rw rootwait";
  25. };
  26. memory {
  27. /* 128 MB, change this for 256 MB revision */
  28. reg = <0x20000000 0x8000000>;
  29. };
  30. clocks {
  31. #address-cells = <1>;
  32. #size-cells = <1>;
  33. ranges;
  34. main_clock: clock@0 {
  35. compatible = "atmel,osc", "fixed-clock";
  36. clock-frequency = <12000000>;
  37. };
  38. };
  39. ahb {
  40. apb {
  41. mmc0: mmc@f0008000 {
  42. /* N.B. Aria has no SD card detect (CD), assumed present */
  43. pinctrl-0 = <
  44. &pinctrl_mmc0_slot0_clk_cmd_dat0
  45. &pinctrl_mmc0_slot0_dat1_3>;
  46. status = "okay";
  47. slot@0 {
  48. reg = <0>;
  49. bus-width = <4>;
  50. };
  51. };
  52. i2c0: i2c@f8010000 {
  53. status = "okay";
  54. };
  55. i2c1: i2c@f8014000 {
  56. status = "okay";
  57. };
  58. /* TWD2+TCLK2 hidden behind ethernet, so no i2c2 */
  59. usart0: serial@f801c000 {
  60. pinctrl-0 = <&pinctrl_usart0
  61. &pinctrl_usart0_rts
  62. &pinctrl_usart0_cts>;
  63. status = "okay";
  64. };
  65. usart1: serial@f8020000 {
  66. pinctrl-0 = <&pinctrl_usart1
  67. /* &pinctrl_usart1_rts */
  68. /* &pinctrl_usart1_cts */
  69. >;
  70. status = "okay";
  71. };
  72. usart2: serial@f8024000 {
  73. /* cannot activate RTS2+CTS2, clash with
  74. * ethernet on PB0 and PB1 */
  75. pinctrl-0 = <&pinctrl_usart2>;
  76. status = "okay";
  77. };
  78. usart3: serial@f8028000 {
  79. compatible = "atmel,at91sam9260-usart";
  80. reg = <0xf8028000 0x200>;
  81. interrupts = <8 4 5>;
  82. pinctrl-names = "default";
  83. pinctrl-0 = <&pinctrl_usart3
  84. /* &pinctrl_usart3_rts */
  85. /* &pinctrl_usart3_cts */
  86. >;
  87. status = "okay";
  88. };
  89. macb0: ethernet@f802c000 {
  90. phy-mode = "rmii";
  91. /*
  92. * following can be overwritten by bootloader:
  93. * for example u-boot 'ftd set' command
  94. */
  95. local-mac-address = [00 00 00 00 00 00];
  96. status = "okay";
  97. };
  98. uart0: serial@f8040000 {
  99. compatible = "atmel,at91sam9260-usart";
  100. reg = <0xf8040000 0x200>;
  101. interrupts = <15 4 5>;
  102. pinctrl-names = "default";
  103. pinctrl-0 = <&pinctrl_uart0>;
  104. status = "okay";
  105. };
  106. adc0: adc@f804c000 {
  107. status = "okay";
  108. atmel,adc-channels-used = <0xf>;
  109. atmel,adc-num-channels = <4>;
  110. };
  111. dbgu: serial@fffff200 {
  112. status = "okay";
  113. };
  114. pinctrl@fffff400 {
  115. w1_0 {
  116. pinctrl_w1_0: w1_0-0 {
  117. atmel,pins = <0 21 0x0 0x1>; /* PA21 PIO, pull-up */
  118. };
  119. };
  120. };
  121. };
  122. usb0: ohci@00600000 {
  123. status = "okay";
  124. num-ports = <3>;
  125. };
  126. usb1: ehci@00700000 {
  127. status = "okay";
  128. };
  129. };
  130. leds {
  131. compatible = "gpio-leds";
  132. /* little green LED in middle of Aria G25 module */
  133. aria_led {
  134. label = "aria_led";
  135. gpios = <&pioB 8 0>; /* PB8 */
  136. linux,default-trigger = "heartbeat";
  137. };
  138. };
  139. onewire@0 {
  140. compatible = "w1-gpio";
  141. gpios = <&pioA 21 1>;
  142. pinctrl-names = "default";
  143. pinctrl-0 = <&pinctrl_w1_0>;
  144. };
  145. };