at91sam9n12ek.dts 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192
  1. /*
  2. * at91sam9n12ek.dts - Device Tree file for AT91SAM9N12-EK board
  3. *
  4. * Copyright (C) 2012 Atmel,
  5. * 2012 Hong Xu <hong.xu@atmel.com>
  6. *
  7. * Licensed under GPLv2 or later.
  8. */
  9. /dts-v1/;
  10. /include/ "at91sam9n12.dtsi"
  11. / {
  12. model = "Atmel AT91SAM9N12-EK";
  13. compatible = "atmel,at91sam9n12ek", "atmel,at91sam9n12", "atmel,at91sam9";
  14. chosen {
  15. bootargs = "mem=128M console=ttyS0,115200 root=/dev/mtdblock1 rw rootfstype=jffs2";
  16. };
  17. memory {
  18. reg = <0x20000000 0x10000000>;
  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 = <16000000>;
  27. };
  28. };
  29. ahb {
  30. apb {
  31. dbgu: serial@fffff200 {
  32. status = "okay";
  33. };
  34. i2c0: i2c@f8010000 {
  35. status = "okay";
  36. };
  37. i2c1: i2c@f8014000 {
  38. status = "okay";
  39. };
  40. };
  41. nand0: nand@40000000 {
  42. nand-bus-width = <8>;
  43. nand-ecc-mode = "soft";
  44. nand-on-flash-bbt;
  45. status = "okay";
  46. };
  47. };
  48. leds {
  49. compatible = "gpio-leds";
  50. d8 {
  51. label = "d8";
  52. gpios = <&pioB 4 1>;
  53. linux,default-trigger = "mmc0";
  54. };
  55. d9 {
  56. label = "d6";
  57. gpios = <&pioB 5 1>;
  58. linux,default-trigger = "nand-disk";
  59. };
  60. d10 {
  61. label = "d7";
  62. gpios = <&pioB 6 0>;
  63. linux,default-trigger = "heartbeat";
  64. };
  65. };
  66. gpio_keys {
  67. compatible = "gpio-keys";
  68. #address-cells = <1>;
  69. #size-cells = <0>;
  70. enter {
  71. label = "Enter";
  72. gpios = <&pioB 4 1>;
  73. linux,code = <28>;
  74. gpio-key,wakeup;
  75. };
  76. };
  77. };