at91sam9m10g45ek.dts 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112
  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 mtdparts=atmel_nand:4M(bootstrap/uboot/kernel)ro,60M(rootfs),-(data) 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. };
  34. leds {
  35. compatible = "gpio-leds";
  36. d8 {
  37. label = "d8";
  38. gpios = <&pioD 30 0>;
  39. linux,default-trigger = "heartbeat";
  40. };
  41. d6 {
  42. label = "d6";
  43. gpios = <&pioD 0 1>;
  44. linux,default-trigger = "nand-disk";
  45. };
  46. d7 {
  47. label = "d7";
  48. gpios = <&pioD 31 1>;
  49. linux,default-trigger = "mmc0";
  50. };
  51. };
  52. gpio_keys {
  53. compatible = "gpio-keys";
  54. #address-cells = <1>;
  55. #size-cells = <0>;
  56. left_click {
  57. label = "left_click";
  58. gpios = <&pioB 6 1>;
  59. linux,code = <272>;
  60. gpio-key,wakeup;
  61. };
  62. right_click {
  63. label = "right_click";
  64. gpios = <&pioB 7 1>;
  65. linux,code = <273>;
  66. gpio-key,wakeup;
  67. };
  68. left {
  69. label = "Joystick Left";
  70. gpios = <&pioB 14 1>;
  71. linux,code = <105>;
  72. };
  73. right {
  74. label = "Joystick Right";
  75. gpios = <&pioB 15 1>;
  76. linux,code = <106>;
  77. };
  78. up {
  79. label = "Joystick Up";
  80. gpios = <&pioB 16 1>;
  81. linux,code = <103>;
  82. };
  83. down {
  84. label = "Joystick Down";
  85. gpios = <&pioB 17 1>;
  86. linux,code = <108>;
  87. };
  88. enter {
  89. label = "Joystick Press";
  90. gpios = <&pioB 18 1>;
  91. linux,code = <28>;
  92. };
  93. };
  94. };