at91-sam9_l9260.dts 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133
  1. // SPDX-License-Identifier: GPL-2.0-or-later
  2. /*
  3. * at91-sam9_l9260.dts - Device Tree file for Olimex SAM9-L9260 board
  4. *
  5. * Copyright (C) 2016 Raashid Muhammed <[email protected]>
  6. */
  7. /dts-v1/;
  8. #include "at91sam9260.dtsi"
  9. / {
  10. model = "Olimex sam9-l9260";
  11. compatible = "olimex,sam9-l9260", "atmel,at91sam9260", "atmel,at91sam9";
  12. chosen {
  13. stdout-path = "serial0:115200n8";
  14. };
  15. memory@20000000 {
  16. reg = <0x20000000 0x4000000>;
  17. };
  18. clocks {
  19. slow_xtal {
  20. clock-frequency = <32768>;
  21. };
  22. main_xtal {
  23. clock-frequency = <18432000>;
  24. };
  25. };
  26. ahb {
  27. apb {
  28. tcb0: timer@fffa0000 {
  29. timer@0 {
  30. compatible = "atmel,tcb-timer";
  31. reg = <0>, <1>;
  32. };
  33. timer@2 {
  34. compatible = "atmel,tcb-timer";
  35. reg = <2>;
  36. };
  37. };
  38. mmc0: mmc@fffa8000 {
  39. pinctrl-0 = <
  40. &pinctrl_board_mmc0
  41. &pinctrl_mmc0_clk
  42. &pinctrl_mmc0_slot1_cmd_dat0
  43. &pinctrl_mmc0_slot1_dat1_3>;
  44. pinctrl-names = "default";
  45. status = "okay";
  46. slot@1 {
  47. reg = <1>;
  48. bus-width = <4>;
  49. cd-gpios = <&pioC 8 GPIO_ACTIVE_HIGH>;
  50. wp-gpios = <&pioC 4 GPIO_ACTIVE_HIGH>;
  51. };
  52. };
  53. macb0: ethernet@fffc4000 {
  54. pinctrl-0 = <&pinctrl_macb_rmii &pinctrl_macb_rmii_mii_alt>;
  55. phy-mode = "mii";
  56. #address-cells = <1>;
  57. #size-cells = <0>;
  58. status = "okay";
  59. ethernet-phy@1 {
  60. reg = <0x1>;
  61. };
  62. };
  63. spi0: spi@fffc8000 {
  64. cs-gpios = <&pioC 11 0>, <0>, <0>, <0>;
  65. status = "okay";
  66. flash@0 {
  67. compatible = "atmel,at45", "atmel,dataflash";
  68. spi-max-frequency = <15000000>;
  69. reg = <0>;
  70. };
  71. };
  72. dbgu: serial@fffff200 {
  73. status = "okay";
  74. };
  75. pinctrl@fffff400 {
  76. mmc0 {
  77. pinctrl_board_mmc0: mmc0-board {
  78. atmel,pins =
  79. <AT91_PIOC 8 AT91_PERIPH_GPIO AT91_PINCTRL_PULL_UP_DEGLITCH /* CD pin */
  80. AT91_PIOC 4 AT91_PERIPH_GPIO AT91_PINCTRL_PULL_UP>; /* WP pin */
  81. };
  82. };
  83. };
  84. };
  85. nand0: nand@40000000 {
  86. nand-bus-width = <8>;
  87. nand-ecc-mode = "soft";
  88. nand-on-flash-bbt;
  89. status = "okay";
  90. };
  91. usb0: ohci@500000 {
  92. status = "okay";
  93. };
  94. };
  95. i2c-gpio-0 {
  96. status = "okay";
  97. };
  98. leds {
  99. compatible = "gpio-leds";
  100. pwr_led {
  101. label = "sam9-l9260:yellow:pwr";
  102. gpios = <&pioA 9 GPIO_ACTIVE_HIGH>;
  103. linux,default-trigger = "cpu0";
  104. };
  105. status_led {
  106. label = "sam9-l9260:green:status";
  107. gpios = <&pioA 6 GPIO_ACTIVE_LOW>;
  108. linux,default-trigger = "timer";
  109. };
  110. };
  111. };