berlin2q-marvell-dmp.dts 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176
  1. /*
  2. * Copyright (C) 2014 Antoine Ténart <antoine.tenart@free-electrons.com>
  3. *
  4. * This file is dual-licensed: you can use it either under the terms
  5. * of the GPL or the X11 license, at your option. Note that this dual
  6. * licensing only applies to this file, and not this project as a
  7. * whole.
  8. *
  9. * a) This file is licensed under the terms of the GNU General Public
  10. * License version 2. This program is licensed "as is" without any
  11. * warranty of any kind, whether express or implied.
  12. *
  13. * Or, alternatively,
  14. *
  15. * b) Permission is hereby granted, free of charge, to any person
  16. * obtaining a copy of this software and associated documentation
  17. * files (the "Software"), to deal in the Software without
  18. * restriction, including without limitation the rights to use,
  19. * copy, modify, merge, publish, distribute, sublicense, and/or
  20. * sell copies of the Software, and to permit persons to whom the
  21. * Software is furnished to do so, subject to the following
  22. * conditions:
  23. *
  24. * The above copyright notice and this permission notice shall be
  25. * included in all copies or substantial portions of the Software.
  26. *
  27. * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
  28. * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
  29. * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
  30. * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
  31. * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
  32. * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
  33. * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
  34. * OTHER DEALINGS IN THE SOFTWARE.
  35. */
  36. /dts-v1/;
  37. #include <dt-bindings/gpio/gpio.h>
  38. #include "berlin2q.dtsi"
  39. / {
  40. model = "Marvell BG2-Q DMP";
  41. compatible = "marvell,berlin2q-dmp", "marvell,berlin2q", "marvell,berlin";
  42. memory@0 {
  43. device_type = "memory";
  44. reg = <0x00000000 0x80000000>;
  45. };
  46. choosen {
  47. bootargs = "earlyprintk";
  48. stdout-path = "serial0:115200n8";
  49. };
  50. regulators {
  51. compatible = "simple-bus";
  52. #address-cells = <1>;
  53. #size-cells = <0>;
  54. reg_usb0_vbus: regulator@0 {
  55. compatible = "regulator-fixed";
  56. regulator-name = "usb0_vbus";
  57. regulator-min-microvolt = <5000000>;
  58. regulator-max-microvolt = <5000000>;
  59. gpio = <&portb 8 GPIO_ACTIVE_HIGH>;
  60. enable-active-high;
  61. };
  62. reg_usb1_vbus: regulator@1 {
  63. compatible = "regulator-fixed";
  64. regulator-name = "usb1_vbus";
  65. regulator-min-microvolt = <5000000>;
  66. regulator-max-microvolt = <5000000>;
  67. gpio = <&portb 10 GPIO_ACTIVE_HIGH>;
  68. enable-active-high;
  69. };
  70. reg_usb2_vbus: regulator@2 {
  71. compatible = "regulator-fixed";
  72. regulator-name = "usb2_vbus";
  73. regulator-min-microvolt = <5000000>;
  74. regulator-max-microvolt = <5000000>;
  75. gpio = <&portb 12 GPIO_ACTIVE_HIGH>;
  76. enable-active-high;
  77. };
  78. reg_sdio1_vmmc: regulator@3 {
  79. compatible = "regulator-fixed";
  80. regulator-min-microvolt = <3300000>;
  81. regulator-max-microvolt = <3300000>;
  82. regulator-name = "sdio1_vmmc";
  83. enable-active-high;
  84. regulator-boot-on;
  85. gpio = <&portb 21 GPIO_ACTIVE_HIGH>;
  86. };
  87. reg_sdio1_vqmmc: regulator@4 {
  88. compatible = "regulator-gpio";
  89. regulator-min-microvolt = <1800000>;
  90. regulator-max-microvolt = <3300000>;
  91. regulator-name = "sdio1_vqmmc";
  92. regulator-type = "voltage";
  93. enable-active-high;
  94. gpios = <&portb 16 GPIO_ACTIVE_HIGH>;
  95. states = <3300000 0x1
  96. 1800000 0x0>;
  97. };
  98. };
  99. };
  100. &soc_pinctrl {
  101. sd1gpio_pmux: sd1pwr-pmux {
  102. groups = "G23", "G32";
  103. function = "gpio";
  104. };
  105. };
  106. &sdhci1 {
  107. vmmc-supply = <&reg_sdio1_vmmc>;
  108. vqmmc-supply = <&reg_sdio1_vqmmc>;
  109. cd-gpios = <&portc 30 GPIO_ACTIVE_LOW>;
  110. wp-gpios = <&portd 0 GPIO_ACTIVE_HIGH>;
  111. pinctrl-0 = <&sd1gpio_pmux>, <&sd1_pmux>;
  112. pinctrl-names = "default";
  113. status = "okay";
  114. };
  115. &sdhci2 {
  116. bus-width = <8>;
  117. non-removable;
  118. status = "okay";
  119. };
  120. &i2c0 {
  121. status = "okay";
  122. };
  123. &i2c2 {
  124. status = "okay";
  125. };
  126. &uart0 {
  127. status = "okay";
  128. };
  129. &usb_phy0 {
  130. status = "okay";
  131. };
  132. &usb_phy2 {
  133. status = "okay";
  134. };
  135. &usb0 {
  136. vbus-supply = <&reg_usb0_vbus>;
  137. status = "okay";
  138. };
  139. &usb2 {
  140. vbus-supply = <&reg_usb2_vbus>;
  141. status = "okay";
  142. };
  143. &eth0 {
  144. status = "okay";
  145. };
  146. &sata0 {
  147. status = "okay";
  148. };
  149. &sata_phy {
  150. status = "okay";
  151. };