at91sam9m10g45ek.dts 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135
  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@70000000 {
  18. reg = <0x70000000 0x4000000>;
  19. };
  20. ahb {
  21. apb {
  22. dbgu: serial@ffffee00 {
  23. status = "okay";
  24. };
  25. usart1: serial@fff90000 {
  26. status = "okay";
  27. };
  28. macb0: ethernet@fffbc000 {
  29. phy-mode = "rmii";
  30. status = "okay";
  31. };
  32. };
  33. nand0: nand@40000000 {
  34. nand-bus-width = <8>;
  35. nand-ecc-mode = "soft";
  36. nand-on-flash-bbt;
  37. status = "okay";
  38. boot@0 {
  39. label = "bootstrap/uboot/kernel";
  40. reg = <0x0 0x400000>;
  41. };
  42. rootfs@400000 {
  43. label = "rootfs";
  44. reg = <0x400000 0x3C00000>;
  45. };
  46. data@4000000 {
  47. label = "data";
  48. reg = <0x4000000 0xC000000>;
  49. };
  50. };
  51. };
  52. leds {
  53. compatible = "gpio-leds";
  54. d8 {
  55. label = "d8";
  56. gpios = <&pioD 30 0>;
  57. linux,default-trigger = "heartbeat";
  58. };
  59. d6 {
  60. label = "d6";
  61. gpios = <&pioD 0 1>;
  62. linux,default-trigger = "nand-disk";
  63. };
  64. d7 {
  65. label = "d7";
  66. gpios = <&pioD 31 1>;
  67. linux,default-trigger = "mmc0";
  68. };
  69. };
  70. gpio_keys {
  71. compatible = "gpio-keys";
  72. #address-cells = <1>;
  73. #size-cells = <0>;
  74. left_click {
  75. label = "left_click";
  76. gpios = <&pioB 6 1>;
  77. linux,code = <272>;
  78. gpio-key,wakeup;
  79. };
  80. right_click {
  81. label = "right_click";
  82. gpios = <&pioB 7 1>;
  83. linux,code = <273>;
  84. gpio-key,wakeup;
  85. };
  86. left {
  87. label = "Joystick Left";
  88. gpios = <&pioB 14 1>;
  89. linux,code = <105>;
  90. };
  91. right {
  92. label = "Joystick Right";
  93. gpios = <&pioB 15 1>;
  94. linux,code = <106>;
  95. };
  96. up {
  97. label = "Joystick Up";
  98. gpios = <&pioB 16 1>;
  99. linux,code = <103>;
  100. };
  101. down {
  102. label = "Joystick Down";
  103. gpios = <&pioB 17 1>;
  104. linux,code = <108>;
  105. };
  106. enter {
  107. label = "Joystick Press";
  108. gpios = <&pioB 18 1>;
  109. linux,code = <28>;
  110. };
  111. };
  112. };