at91-sama5d4_ma5d4.dtsi 2.7 KB

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