berlin2q-marvell-dmp.dts 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144
  1. // SPDX-License-Identifier: (GPL-2.0 OR MIT)
  2. /*
  3. * Copyright (C) 2014 Antoine Ténart <[email protected]>
  4. */
  5. /dts-v1/;
  6. #include <dt-bindings/gpio/gpio.h>
  7. #include "berlin2q.dtsi"
  8. / {
  9. model = "Marvell BG2-Q DMP";
  10. compatible = "marvell,berlin2q-dmp", "marvell,berlin2q", "marvell,berlin";
  11. memory@0 {
  12. device_type = "memory";
  13. reg = <0x00000000 0x80000000>;
  14. };
  15. chosen {
  16. bootargs = "earlyprintk";
  17. stdout-path = "serial0:115200n8";
  18. };
  19. regulators {
  20. compatible = "simple-bus";
  21. #address-cells = <1>;
  22. #size-cells = <0>;
  23. reg_usb0_vbus: regulator_usb0 {
  24. compatible = "regulator-fixed";
  25. regulator-name = "usb0_vbus";
  26. regulator-min-microvolt = <5000000>;
  27. regulator-max-microvolt = <5000000>;
  28. gpio = <&portb 8 GPIO_ACTIVE_HIGH>;
  29. enable-active-high;
  30. };
  31. reg_usb1_vbus: regulator_usb1 {
  32. compatible = "regulator-fixed";
  33. regulator-name = "usb1_vbus";
  34. regulator-min-microvolt = <5000000>;
  35. regulator-max-microvolt = <5000000>;
  36. gpio = <&portb 10 GPIO_ACTIVE_HIGH>;
  37. enable-active-high;
  38. };
  39. reg_usb2_vbus: regulator_usb2 {
  40. compatible = "regulator-fixed";
  41. regulator-name = "usb2_vbus";
  42. regulator-min-microvolt = <5000000>;
  43. regulator-max-microvolt = <5000000>;
  44. gpio = <&portb 12 GPIO_ACTIVE_HIGH>;
  45. enable-active-high;
  46. };
  47. reg_sdio1_vmmc: regulator_sdio1_vmmc {
  48. compatible = "regulator-fixed";
  49. regulator-min-microvolt = <3300000>;
  50. regulator-max-microvolt = <3300000>;
  51. regulator-name = "sdio1_vmmc";
  52. enable-active-high;
  53. regulator-boot-on;
  54. gpio = <&portb 21 GPIO_ACTIVE_HIGH>;
  55. };
  56. reg_sdio1_vqmmc: regulator_sido1_vqmmc {
  57. compatible = "regulator-gpio";
  58. regulator-min-microvolt = <1800000>;
  59. regulator-max-microvolt = <3300000>;
  60. regulator-name = "sdio1_vqmmc";
  61. regulator-type = "voltage";
  62. enable-active-high;
  63. gpios = <&portb 16 GPIO_ACTIVE_HIGH>;
  64. states = <3300000 0x1
  65. 1800000 0x0>;
  66. };
  67. };
  68. };
  69. &soc_pinctrl {
  70. sd1gpio_pmux: sd1pwr-pmux {
  71. groups = "G23", "G32";
  72. function = "gpio";
  73. };
  74. };
  75. &sdhci1 {
  76. vmmc-supply = <&reg_sdio1_vmmc>;
  77. vqmmc-supply = <&reg_sdio1_vqmmc>;
  78. cd-gpios = <&portc 30 GPIO_ACTIVE_LOW>;
  79. wp-gpios = <&portd 0 GPIO_ACTIVE_HIGH>;
  80. pinctrl-0 = <&sd1gpio_pmux>, <&sd1_pmux>;
  81. pinctrl-names = "default";
  82. status = "okay";
  83. };
  84. &sdhci2 {
  85. bus-width = <8>;
  86. non-removable;
  87. status = "okay";
  88. };
  89. &i2c0 {
  90. status = "okay";
  91. };
  92. &i2c2 {
  93. status = "okay";
  94. };
  95. &uart0 {
  96. status = "okay";
  97. };
  98. &usb_phy0 {
  99. status = "okay";
  100. };
  101. &usb_phy2 {
  102. status = "okay";
  103. };
  104. &usb0 {
  105. vbus-supply = <&reg_usb0_vbus>;
  106. status = "okay";
  107. };
  108. &usb2 {
  109. vbus-supply = <&reg_usb2_vbus>;
  110. status = "okay";
  111. };
  112. &eth0 {
  113. status = "okay";
  114. };
  115. &sata0 {
  116. status = "okay";
  117. };
  118. &sata_phy {
  119. status = "okay";
  120. };