at91sam9m10g45ek.dts 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164
  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. status = "okay";
  36. };
  37. macb0: ethernet@fffbc000 {
  38. phy-mode = "rmii";
  39. status = "okay";
  40. };
  41. i2c0: i2c@fff84000 {
  42. status = "okay";
  43. };
  44. i2c1: i2c@fff88000 {
  45. status = "okay";
  46. };
  47. };
  48. nand0: nand@40000000 {
  49. nand-bus-width = <8>;
  50. nand-ecc-mode = "soft";
  51. nand-on-flash-bbt;
  52. status = "okay";
  53. boot@0 {
  54. label = "bootstrap/uboot/kernel";
  55. reg = <0x0 0x400000>;
  56. };
  57. rootfs@400000 {
  58. label = "rootfs";
  59. reg = <0x400000 0x3C00000>;
  60. };
  61. data@4000000 {
  62. label = "data";
  63. reg = <0x4000000 0xC000000>;
  64. };
  65. };
  66. usb0: ohci@00700000 {
  67. status = "okay";
  68. num-ports = <2>;
  69. atmel,vbus-gpio = <&pioD 1 1
  70. &pioD 3 1>;
  71. };
  72. usb1: ehci@00800000 {
  73. status = "okay";
  74. };
  75. };
  76. leds {
  77. compatible = "gpio-leds";
  78. d8 {
  79. label = "d8";
  80. gpios = <&pioD 30 0>;
  81. linux,default-trigger = "heartbeat";
  82. };
  83. d6 {
  84. label = "d6";
  85. gpios = <&pioD 0 1>;
  86. linux,default-trigger = "nand-disk";
  87. };
  88. d7 {
  89. label = "d7";
  90. gpios = <&pioD 31 1>;
  91. linux,default-trigger = "mmc0";
  92. };
  93. };
  94. gpio_keys {
  95. compatible = "gpio-keys";
  96. #address-cells = <1>;
  97. #size-cells = <0>;
  98. left_click {
  99. label = "left_click";
  100. gpios = <&pioB 6 1>;
  101. linux,code = <272>;
  102. gpio-key,wakeup;
  103. };
  104. right_click {
  105. label = "right_click";
  106. gpios = <&pioB 7 1>;
  107. linux,code = <273>;
  108. gpio-key,wakeup;
  109. };
  110. left {
  111. label = "Joystick Left";
  112. gpios = <&pioB 14 1>;
  113. linux,code = <105>;
  114. };
  115. right {
  116. label = "Joystick Right";
  117. gpios = <&pioB 15 1>;
  118. linux,code = <106>;
  119. };
  120. up {
  121. label = "Joystick Up";
  122. gpios = <&pioB 16 1>;
  123. linux,code = <103>;
  124. };
  125. down {
  126. label = "Joystick Down";
  127. gpios = <&pioB 17 1>;
  128. linux,code = <108>;
  129. };
  130. enter {
  131. label = "Joystick Press";
  132. gpios = <&pioB 18 1>;
  133. linux,code = <28>;
  134. };
  135. };
  136. };