at91-q5xr5.dts 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193
  1. /*
  2. * q5xr5.dts - Device Tree file for Exegin Q5xR5 board
  3. *
  4. * Copyright (C) 2014 Owen Kirby <osk@exegin.com>
  5. *
  6. * Licensed under GPLv2.
  7. */
  8. /dts-v1/;
  9. #include "at91sam9g20.dtsi"
  10. / {
  11. model = "Exegin Q5x (rev5)";
  12. compatible = "exegin,q5xr5", "atmel,at91sam9g20", "atmel,at91sam9";
  13. chosen {
  14. bootargs = "console=ttyS0,115200 rootfstype=squashfs,jffs2";
  15. };
  16. memory {
  17. reg = <0x20000000 0x0>;
  18. };
  19. clocks {
  20. #address-cells = <1>;
  21. #size-cells = <1>;
  22. ranges;
  23. main_clock: clock@0 {
  24. compatible = "atmel,osc", "fixed-clock";
  25. clock-frequency = <18432000>;
  26. };
  27. slow_xtal {
  28. clock-frequency = <32768>;
  29. };
  30. main_xtal {
  31. clock-frequency = <18432000>;
  32. };
  33. };
  34. ahb {
  35. apb {
  36. pinctrl@fffff400 {
  37. board {
  38. pinctrl_pck0_as_mck: pck0_as_mck {
  39. atmel,pins = <2 1 0x2 0x0>; /* PC1 periph B */
  40. };
  41. pinctrl_spi0_npcs0: spi0_npcs0 {
  42. atmel,pins = <0 3 0x1 0x0>; /* PA3 periph A */
  43. };
  44. pinctrl_spi0_npcs1: spi0_npcs1 {
  45. atmel,pins = <2 11 0x2 0x0>; /* PC11 periph B */
  46. };
  47. pinctrl_spi1_npcs0: spi1_npcs0 {
  48. atmel,pins = <1 3 0x1 0x0>; /* PB3 periph A */
  49. };
  50. pinctrl_spi1_npcs1: spi1_npcs1 {
  51. atmel,pins = <2 5 0x2 0x0>; /* PC5 periph B */
  52. };
  53. };
  54. spi0 {
  55. pinctrl_spi0: spi0-0 {
  56. atmel,pins =
  57. <0 0 0x1 0x0 /* PA0 periph A SPI0_MISO pin */
  58. 0 1 0x1 0x0 /* PA1 periph A SPI0_MOSI pin */
  59. 0 2 0x1 0x0>; /* PA2 periph A SPI0_SPCK pin */
  60. };
  61. };
  62. spi1 {
  63. pinctrl_spi1: spi1-0 {
  64. atmel,pins =
  65. <1 0 0x1 0x0 /* PB0 periph A SPI1_MISO pin */
  66. 1 1 0x1 0x0 /* PB1 periph A SPI1_MOSI pin */
  67. 1 2 0x1 0x0>; /* PB2 periph A SPI1_SPCK pin */
  68. };
  69. };
  70. };
  71. dbgu: serial@fffff200 {
  72. status = "okay";
  73. };
  74. usart0: serial@fffb0000 {
  75. pinctrl-0 =
  76. <&pinctrl_usart0
  77. &pinctrl_usart0_rts
  78. &pinctrl_usart0_cts
  79. &pinctrl_usart0_dtr_dsr
  80. &pinctrl_usart0_dcd
  81. &pinctrl_usart0_ri>;
  82. status = "okay";
  83. };
  84. macb0: ethernet@fffc4000 {
  85. phy-mode = "mii";
  86. status = "okay";
  87. };
  88. usb1: gadget@fffa4000 {
  89. status = "okay";
  90. };
  91. watchdog@fffffd40 {
  92. status = "okay";
  93. };
  94. spi0: spi@fffc8000 {
  95. #address-cells = <1>;
  96. #size-cells = <0>;
  97. compatible = "atmel,at91rm9200-spi";
  98. reg = <0xfffc8000 0x200>;
  99. interrupts = <12 4 3>;
  100. pinctrl-names = "default";
  101. pinctrl-0 = <&pinctrl_spi0>;
  102. status = "okay";
  103. cs-gpios = <&pioA 3 0>, <&pioC 11 1>, <0>, <0>;
  104. m25p80@0 {
  105. compatible = "sst,sst25vf040b";
  106. spi-max-frequency = <20000000>;
  107. reg = <0>;
  108. #address-cells = <1>;
  109. #size-cells = <1>;
  110. at91boot@0 {
  111. label = "at91boot";
  112. reg = <0x0 0x4000>;
  113. };
  114. uenv@4000 {
  115. label = "uboot-env";
  116. reg = <0x4000 0x4000>;
  117. };
  118. uboot@8000 {
  119. label = "uboot";
  120. reg = <0x8000 0x3E000>;
  121. };
  122. };
  123. spidev@1 {
  124. compatible = "spidev";
  125. spi-max-frequency = <2000000>;
  126. reg = <1>;
  127. };
  128. };
  129. spi1: spi@fffcc000 {
  130. #address-cells = <1>;
  131. #size-cells = <0>;
  132. compatible = "atmel,at91rm9200-spi";
  133. reg = <0xfffcc000 0x200>;
  134. interrupts = <13 4 3>;
  135. pinctrl-names = "default";
  136. pinctrl-0 = <&pinctrl_spi1>;
  137. cs-gpios = <&pioB 3 0>, <&pioC 5 1>, <0>, <0>;
  138. status = "okay";
  139. spidev@0 {
  140. compatible = "spidev";
  141. spi-max-frequency = <2000000>;
  142. reg = <0>;
  143. };
  144. spidev@1 {
  145. compatible = "spidev";
  146. spi-max-frequency = <2000000>;
  147. reg = <1>;
  148. };
  149. };
  150. };
  151. usb0: ohci@00500000 {
  152. num-ports = <2>;
  153. status = "okay";
  154. };
  155. };
  156. flash@10000000 {
  157. compatible = "cfi-flash";
  158. bank-width = <2>;
  159. reg = <0x10000000 0x00800000>;
  160. #address-cells = <1>;
  161. #size-cells = <1>;
  162. kernel@0 {
  163. label = "kernel";
  164. reg = <0x0 0x200000>;
  165. };
  166. rootfs@200000 {
  167. label = "rootfs";
  168. reg = <0x200000 0x600000>;
  169. };
  170. };
  171. };