at91-sama5d4_ma5d4.dtsi 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131
  1. /*
  2. * Copyright (C) 2015 Marek Vasut <marex@denx.de>
  3. *
  4. * The code contained herein is licensed under the GNU General Public
  5. * License. You may obtain a copy of the GNU General Public License
  6. * Version 2 or later at the following locations:
  7. *
  8. * http://www.opensource.org/licenses/gpl-license.html
  9. * http://www.gnu.org/copyleft/gpl.html
  10. */
  11. #include "sama5d4.dtsi"
  12. / {
  13. model = "DENX MA5D4";
  14. compatible = "denx,ma5d4", "atmel,sama5d4", "atmel,sama5";
  15. memory {
  16. reg = <0x20000000 0x10000000>;
  17. };
  18. clocks {
  19. slow_xtal {
  20. clock-frequency = <32768>;
  21. };
  22. main_xtal {
  23. clock-frequency = <12000000>;
  24. };
  25. clk20m: clk20m {
  26. compatible = "fixed-clock";
  27. #clock-cells = <0>;
  28. clock-frequency = <20000000>;
  29. clock-output-names = "clk20m";
  30. };
  31. };
  32. ahb {
  33. apb {
  34. mmc0: mmc@f8000000 {
  35. pinctrl-names = "default";
  36. pinctrl-0 = <&pinctrl_mmc0_clk_cmd_dat0 &pinctrl_mmc0_dat1_3 &pinctrl_mmc0_dat4_7>;
  37. vmmc-supply = <&vcc_mmc0_reg>;
  38. vqmmc-supply = <&vcc_3v3_reg>;
  39. status = "okay";
  40. slot@0 {
  41. reg = <0>;
  42. bus-width = <8>;
  43. broken-cd;
  44. };
  45. };
  46. spi0: spi@f8010000 {
  47. cs-gpios = <&pioC 3 0>, <0>, <0>, <0>;
  48. status = "okay";
  49. m25p80@0 {
  50. compatible = "atmel,at25df321a";
  51. spi-max-frequency = <50000000>;
  52. reg = <0>;
  53. };
  54. };
  55. i2c0: i2c@f8014000 {
  56. status = "okay";
  57. };
  58. spi1: spi@fc018000 {
  59. cs-gpios = <&pioB 22 0>, <&pioB 23 0>, <0>, <0>;
  60. status = "okay";
  61. can0: can@0 {
  62. compatible = "microchip,mcp2515";
  63. reg = <0>;
  64. clocks = <&clk20m>;
  65. interrupt-parent = <&pioE>;
  66. interrupts = <6 GPIO_ACTIVE_LOW>;
  67. spi-max-frequency = <10000000>;
  68. };
  69. can1: can@1 {
  70. compatible = "microchip,mcp2515";
  71. reg = <1>;
  72. clocks = <&clk20m>;
  73. interrupt-parent = <&pioE>;
  74. interrupts = <7 GPIO_ACTIVE_LOW>;
  75. spi-max-frequency = <10000000>;
  76. };
  77. };
  78. adc0: adc@fc034000 {
  79. pinctrl-names = "default";
  80. pinctrl-0 = <
  81. /* external trigger conflicts with USBA_VBUS */
  82. &pinctrl_adc0_ad0
  83. &pinctrl_adc0_ad1
  84. &pinctrl_adc0_ad2
  85. &pinctrl_adc0_ad3
  86. &pinctrl_adc0_ad4
  87. >;
  88. atmel,adc-vref = <3300>;
  89. status = "okay";
  90. };
  91. watchdog@fc068640 {
  92. status = "okay";
  93. };
  94. };
  95. };
  96. vcc_3v3_reg: fixedregulator_3v3 {
  97. compatible = "regulator-fixed";
  98. regulator-name = "VCC 3V3";
  99. regulator-min-microvolt = <3300000>;
  100. regulator-max-microvolt = <3300000>;
  101. regulator-boot-on;
  102. regulator-always-on;
  103. };
  104. vcc_mmc0_reg: fixedregulator_mmc0 {
  105. compatible = "regulator-fixed";
  106. gpio = <&pioE 15 GPIO_ACTIVE_HIGH>;
  107. regulator-name = "RST_n MCI0";
  108. regulator-min-microvolt = <3300000>;
  109. regulator-max-microvolt = <3300000>;
  110. vin-supply = <&vcc_3v3_reg>;
  111. regulator-boot-on;
  112. };
  113. };