at91sam9m10g45ek.dts 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212
  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. mmc0: mmc@fff80000 {
  52. pinctrl-0 = <
  53. &pinctrl_board_mmc0
  54. &pinctrl_mmc0_slot0_clk_cmd_dat0
  55. &pinctrl_mmc0_slot0_dat1_3>;
  56. status = "okay";
  57. slot@0 {
  58. reg = <0>;
  59. bus-width = <4>;
  60. cd-gpios = <&pioD 10 0>;
  61. };
  62. };
  63. mmc1: mmc@fffd0000 {
  64. pinctrl-0 = <
  65. &pinctrl_board_mmc1
  66. &pinctrl_mmc1_slot0_clk_cmd_dat0
  67. &pinctrl_mmc1_slot0_dat1_3>;
  68. status = "okay";
  69. slot@0 {
  70. reg = <0>;
  71. bus-width = <4>;
  72. cd-gpios = <&pioD 11 0>;
  73. wp-gpios = <&pioD 29 0>;
  74. };
  75. };
  76. pinctrl@fffff200 {
  77. mmc0 {
  78. pinctrl_board_mmc0: mmc0-board {
  79. atmel,pins =
  80. <3 10 0x0 0x5>; /* PD10 gpio CD pin pull up and deglitch */
  81. };
  82. };
  83. mmc1 {
  84. pinctrl_board_mmc1: mmc1-board {
  85. atmel,pins =
  86. <3 11 0x0 0x5 /* PD11 gpio CD pin pull up and deglitch */
  87. 3 29 0x0 0x1>; /* PD29 gpio WP pin pull up */
  88. };
  89. };
  90. };
  91. };
  92. nand0: nand@40000000 {
  93. nand-bus-width = <8>;
  94. nand-ecc-mode = "soft";
  95. nand-on-flash-bbt;
  96. status = "okay";
  97. boot@0 {
  98. label = "bootstrap/uboot/kernel";
  99. reg = <0x0 0x400000>;
  100. };
  101. rootfs@400000 {
  102. label = "rootfs";
  103. reg = <0x400000 0x3C00000>;
  104. };
  105. data@4000000 {
  106. label = "data";
  107. reg = <0x4000000 0xC000000>;
  108. };
  109. };
  110. usb0: ohci@00700000 {
  111. status = "okay";
  112. num-ports = <2>;
  113. atmel,vbus-gpio = <&pioD 1 1
  114. &pioD 3 1>;
  115. };
  116. usb1: ehci@00800000 {
  117. status = "okay";
  118. };
  119. };
  120. leds {
  121. compatible = "gpio-leds";
  122. d8 {
  123. label = "d8";
  124. gpios = <&pioD 30 0>;
  125. linux,default-trigger = "heartbeat";
  126. };
  127. d6 {
  128. label = "d6";
  129. gpios = <&pioD 0 1>;
  130. linux,default-trigger = "nand-disk";
  131. };
  132. d7 {
  133. label = "d7";
  134. gpios = <&pioD 31 1>;
  135. linux,default-trigger = "mmc0";
  136. };
  137. };
  138. gpio_keys {
  139. compatible = "gpio-keys";
  140. #address-cells = <1>;
  141. #size-cells = <0>;
  142. left_click {
  143. label = "left_click";
  144. gpios = <&pioB 6 1>;
  145. linux,code = <272>;
  146. gpio-key,wakeup;
  147. };
  148. right_click {
  149. label = "right_click";
  150. gpios = <&pioB 7 1>;
  151. linux,code = <273>;
  152. gpio-key,wakeup;
  153. };
  154. left {
  155. label = "Joystick Left";
  156. gpios = <&pioB 14 1>;
  157. linux,code = <105>;
  158. };
  159. right {
  160. label = "Joystick Right";
  161. gpios = <&pioB 15 1>;
  162. linux,code = <106>;
  163. };
  164. up {
  165. label = "Joystick Up";
  166. gpios = <&pioB 16 1>;
  167. linux,code = <103>;
  168. };
  169. down {
  170. label = "Joystick Down";
  171. gpios = <&pioB 17 1>;
  172. linux,code = <108>;
  173. };
  174. enter {
  175. label = "Joystick Press";
  176. gpios = <&pioB 18 1>;
  177. linux,code = <28>;
  178. };
  179. };
  180. };