at91sam9m10g45ek.dts 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229
  1. /*
  2. * at91sam9m10g45ek.dts - Device Tree file for AT91SAM9M10G45-EK board
  3. *
  4. * Copyright (C) 2011 Atmel,
  5. * 2011 Nicolas Ferre <nicolas.ferre@atmel.com>
  6. *
  7. * Licensed under GPLv2 or later.
  8. */
  9. /dts-v1/;
  10. #include "at91sam9g45.dtsi"
  11. / {
  12. model = "Atmel AT91SAM9M10G45-EK";
  13. compatible = "atmel,at91sam9m10g45ek", "atmel,at91sam9g45", "atmel,at91sam9";
  14. chosen {
  15. bootargs = "mem=64M console=ttyS0,115200 root=/dev/mtdblock1 rw rootfstype=jffs2";
  16. };
  17. memory {
  18. reg = <0x70000000 0x4000000>;
  19. };
  20. clocks {
  21. #address-cells = <1>;
  22. #size-cells = <1>;
  23. ranges;
  24. main_clock: clock@0 {
  25. compatible = "atmel,osc", "fixed-clock";
  26. clock-frequency = <12000000>;
  27. };
  28. };
  29. ahb {
  30. apb {
  31. dbgu: serial@ffffee00 {
  32. status = "okay";
  33. };
  34. usart1: serial@fff90000 {
  35. pinctrl-0 =
  36. <&pinctrl_usart1
  37. &pinctrl_usart1_rts
  38. &pinctrl_usart1_cts>;
  39. status = "okay";
  40. };
  41. macb0: ethernet@fffbc000 {
  42. phy-mode = "rmii";
  43. status = "okay";
  44. };
  45. i2c0: i2c@fff84000 {
  46. status = "okay";
  47. };
  48. i2c1: i2c@fff88000 {
  49. status = "okay";
  50. };
  51. watchdog@fffffd40 {
  52. status = "okay";
  53. };
  54. mmc0: mmc@fff80000 {
  55. pinctrl-0 = <
  56. &pinctrl_board_mmc0
  57. &pinctrl_mmc0_slot0_clk_cmd_dat0
  58. &pinctrl_mmc0_slot0_dat1_3>;
  59. status = "okay";
  60. slot@0 {
  61. reg = <0>;
  62. bus-width = <4>;
  63. cd-gpios = <&pioD 10 GPIO_ACTIVE_HIGH>;
  64. };
  65. };
  66. mmc1: mmc@fffd0000 {
  67. pinctrl-0 = <
  68. &pinctrl_board_mmc1
  69. &pinctrl_mmc1_slot0_clk_cmd_dat0
  70. &pinctrl_mmc1_slot0_dat1_3>;
  71. status = "okay";
  72. slot@0 {
  73. reg = <0>;
  74. bus-width = <4>;
  75. cd-gpios = <&pioD 11 GPIO_ACTIVE_HIGH>;
  76. wp-gpios = <&pioD 29 GPIO_ACTIVE_HIGH>;
  77. };
  78. };
  79. pinctrl@fffff200 {
  80. mmc0 {
  81. pinctrl_board_mmc0: mmc0-board {
  82. atmel,pins =
  83. <AT91_PIOD 10 AT91_PERIPH_GPIO AT91_PINCTRL_PULL_UP_DEGLITCH>; /* PD10 gpio CD pin pull up and deglitch */
  84. };
  85. };
  86. mmc1 {
  87. pinctrl_board_mmc1: mmc1-board {
  88. atmel,pins =
  89. <AT91_PIOD 11 AT91_PERIPH_GPIO AT91_PINCTRL_PULL_UP_DEGLITCH /* PD11 gpio CD pin pull up and deglitch */
  90. AT91_PIOD 29 AT91_PERIPH_GPIO AT91_PINCTRL_PULL_UP>; /* PD29 gpio WP pin pull up */
  91. };
  92. };
  93. };
  94. spi0: spi@fffa4000{
  95. status = "okay";
  96. cs-gpios = <&pioB 3 0>, <0>, <0>, <0>;
  97. mtd_dataflash@0 {
  98. compatible = "atmel,at45", "atmel,dataflash";
  99. spi-max-frequency = <13000000>;
  100. reg = <0>;
  101. };
  102. };
  103. usb2: gadget@fff78000 {
  104. atmel,vbus-gpio = <&pioB 19 GPIO_ACTIVE_HIGH>;
  105. status = "okay";
  106. };
  107. };
  108. nand0: nand@40000000 {
  109. nand-bus-width = <8>;
  110. nand-ecc-mode = "soft";
  111. nand-on-flash-bbt;
  112. status = "okay";
  113. boot@0 {
  114. label = "bootstrap/uboot/kernel";
  115. reg = <0x0 0x400000>;
  116. };
  117. rootfs@400000 {
  118. label = "rootfs";
  119. reg = <0x400000 0x3C00000>;
  120. };
  121. data@4000000 {
  122. label = "data";
  123. reg = <0x4000000 0xC000000>;
  124. };
  125. };
  126. usb0: ohci@00700000 {
  127. status = "okay";
  128. num-ports = <2>;
  129. atmel,vbus-gpio = <&pioD 1 GPIO_ACTIVE_LOW
  130. &pioD 3 GPIO_ACTIVE_LOW>;
  131. };
  132. usb1: ehci@00800000 {
  133. status = "okay";
  134. };
  135. };
  136. leds {
  137. compatible = "gpio-leds";
  138. d8 {
  139. label = "d8";
  140. gpios = <&pioD 30 GPIO_ACTIVE_HIGH>;
  141. linux,default-trigger = "heartbeat";
  142. };
  143. d6 {
  144. label = "d6";
  145. gpios = <&pioD 0 GPIO_ACTIVE_LOW>;
  146. linux,default-trigger = "nand-disk";
  147. };
  148. d7 {
  149. label = "d7";
  150. gpios = <&pioD 31 GPIO_ACTIVE_LOW>;
  151. linux,default-trigger = "mmc0";
  152. };
  153. };
  154. gpio_keys {
  155. compatible = "gpio-keys";
  156. left_click {
  157. label = "left_click";
  158. gpios = <&pioB 6 GPIO_ACTIVE_LOW>;
  159. linux,code = <272>;
  160. gpio-key,wakeup;
  161. };
  162. right_click {
  163. label = "right_click";
  164. gpios = <&pioB 7 GPIO_ACTIVE_LOW>;
  165. linux,code = <273>;
  166. gpio-key,wakeup;
  167. };
  168. left {
  169. label = "Joystick Left";
  170. gpios = <&pioB 14 GPIO_ACTIVE_LOW>;
  171. linux,code = <105>;
  172. };
  173. right {
  174. label = "Joystick Right";
  175. gpios = <&pioB 15 GPIO_ACTIVE_LOW>;
  176. linux,code = <106>;
  177. };
  178. up {
  179. label = "Joystick Up";
  180. gpios = <&pioB 16 GPIO_ACTIVE_LOW>;
  181. linux,code = <103>;
  182. };
  183. down {
  184. label = "Joystick Down";
  185. gpios = <&pioB 17 GPIO_ACTIVE_LOW>;
  186. linux,code = <108>;
  187. };
  188. enter {
  189. label = "Joystick Press";
  190. gpios = <&pioB 18 GPIO_ACTIVE_LOW>;
  191. linux,code = <28>;
  192. };
  193. };
  194. };