sc2731.dtsi 5.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225
  1. /*
  2. * Spreadtrum SC2731 PMIC dts file
  3. *
  4. * Copyright (C) 2018, Spreadtrum Communications Inc.
  5. *
  6. * SPDX-License-Identifier: (GPL-2.0+ OR MIT)
  7. */
  8. &adi_bus {
  9. sc2731_pmic: pmic@0 {
  10. compatible = "sprd,sc2731";
  11. reg = <0>;
  12. spi-max-frequency = <26000000>;
  13. interrupts = <GIC_SPI 31 IRQ_TYPE_LEVEL_HIGH>;
  14. interrupt-controller;
  15. #interrupt-cells = <2>;
  16. #address-cells = <1>;
  17. #size-cells = <0>;
  18. led-controller@200 {
  19. compatible = "sprd,sc27xx-bltc", "sprd,sc2731-bltc";
  20. reg = <0x200>;
  21. #address-cells = <1>;
  22. #size-cells = <0>;
  23. led@0 {
  24. label = "red";
  25. reg = <0x0>;
  26. };
  27. led@1 {
  28. label = "green";
  29. reg = <0x1>;
  30. };
  31. led@2 {
  32. label = "blue";
  33. reg = <0x2>;
  34. };
  35. };
  36. rtc@280 {
  37. compatible = "sprd,sc27xx-rtc", "sprd,sc2731-rtc";
  38. reg = <0x280>;
  39. interrupt-parent = <&sc2731_pmic>;
  40. interrupts = <2 IRQ_TYPE_LEVEL_HIGH>;
  41. };
  42. pmic_eic: gpio@300 {
  43. compatible = "sprd,sc27xx-eic";
  44. reg = <0x300>;
  45. interrupt-parent = <&sc2731_pmic>;
  46. interrupts = <5 IRQ_TYPE_LEVEL_HIGH>;
  47. gpio-controller;
  48. #gpio-cells = <2>;
  49. interrupt-controller;
  50. #interrupt-cells = <2>;
  51. };
  52. efuse@380 {
  53. compatible = "sprd,sc27xx-efuse", "sprd,sc2731-efuse";
  54. reg = <0x380>;
  55. #address-cells = <1>;
  56. #size-cells = <1>;
  57. hwlocks = <&hwlock 12>;
  58. };
  59. pmic_adc: adc@480 {
  60. compatible = "sprd,sc27xx-adc", "sprd,sc2731-adc";
  61. reg = <0x480>;
  62. interrupt-parent = <&sc2731_pmic>;
  63. interrupts = <0 IRQ_TYPE_LEVEL_HIGH>;
  64. #io-channel-cells = <1>;
  65. hwlocks = <&hwlock 4>;
  66. };
  67. vibrator@ec8 {
  68. compatible = "sprd,sc27xx-vibrator", "sprd,sc2731-vibrator";
  69. reg = <0xec8>;
  70. };
  71. regulators {
  72. compatible = "sprd,sc27xx-regulator";
  73. vddarm0: BUCK_CPU0 {
  74. regulator-name = "vddarm0";
  75. regulator-min-microvolt = <400000>;
  76. regulator-max-microvolt = <1996875>;
  77. regulator-ramp-delay = <25000>;
  78. regulator-always-on;
  79. };
  80. vddarm1: BUCK_CPU1 {
  81. regulator-name = "vddarm1";
  82. regulator-min-microvolt = <400000>;
  83. regulator-max-microvolt = <1996875>;
  84. regulator-ramp-delay = <25000>;
  85. regulator-always-on;
  86. };
  87. dcdcrf: BUCK_RF {
  88. regulator-name = "dcdcrf";
  89. regulator-min-microvolt = <600000>;
  90. regulator-max-microvolt = <2196875>;
  91. regulator-ramp-delay = <25000>;
  92. regulator-enable-ramp-delay = <100>;
  93. regulator-always-on;
  94. };
  95. vddcama0: LDO_CAMA0 {
  96. regulator-name = "vddcama0";
  97. regulator-min-microvolt = <1200000>;
  98. regulator-max-microvolt = <3750000>;
  99. regulator-enable-ramp-delay = <100>;
  100. };
  101. vddcama1: LDO_CAMA1 {
  102. regulator-name = "vddcama1";
  103. regulator-min-microvolt = <1200000>;
  104. regulator-max-microvolt = <3750000>;
  105. regulator-enable-ramp-delay = <100>;
  106. regulator-ramp-delay = <25000>;
  107. };
  108. vddcammot: LDO_CAMMOT {
  109. regulator-name = "vddcammot";
  110. regulator-min-microvolt = <1200000>;
  111. regulator-max-microvolt = <3750000>;
  112. regulator-enable-ramp-delay = <100>;
  113. regulator-ramp-delay = <25000>;
  114. };
  115. vddvldo: LDO_VLDO {
  116. regulator-name = "vddvldo";
  117. regulator-min-microvolt = <1200000>;
  118. regulator-max-microvolt = <3750000>;
  119. regulator-enable-ramp-delay = <100>;
  120. regulator-ramp-delay = <25000>;
  121. };
  122. vddemmccore: LDO_EMMCCORE {
  123. regulator-name = "vddemmccore";
  124. regulator-min-microvolt = <1200000>;
  125. regulator-max-microvolt = <3750000>;
  126. regulator-enable-ramp-delay = <100>;
  127. regulator-ramp-delay = <25000>;
  128. regulator-boot-on;
  129. };
  130. vddsdcore: LDO_SDCORE {
  131. regulator-name = "vddsdcore";
  132. regulator-min-microvolt = <1200000>;
  133. regulator-max-microvolt = <3750000>;
  134. regulator-enable-ramp-delay = <100>;
  135. regulator-ramp-delay = <25000>;
  136. };
  137. vddsdio: LDO_SDIO {
  138. regulator-name = "vddsdio";
  139. regulator-min-microvolt = <1200000>;
  140. regulator-max-microvolt = <3750000>;
  141. regulator-enable-ramp-delay = <100>;
  142. regulator-ramp-delay = <25000>;
  143. };
  144. vddwifipa: LDO_WIFIPA {
  145. regulator-name = "vddwifipa";
  146. regulator-min-microvolt = <1200000>;
  147. regulator-max-microvolt = <3750000>;
  148. regulator-enable-ramp-delay = <100>;
  149. regulator-ramp-delay = <25000>;
  150. };
  151. vddusb33: LDO_USB33 {
  152. regulator-name = "vddusb33";
  153. regulator-min-microvolt = <1200000>;
  154. regulator-max-microvolt = <3750000>;
  155. regulator-enable-ramp-delay = <100>;
  156. regulator-ramp-delay = <25000>;
  157. };
  158. vddcamd0: LDO_CAMD0 {
  159. regulator-name = "vddcamd0";
  160. regulator-min-microvolt = <1000000>;
  161. regulator-max-microvolt = <1793750>;
  162. regulator-enable-ramp-delay = <100>;
  163. regulator-ramp-delay = <25000>;
  164. };
  165. vddcamd1: LDO_CAMD1 {
  166. regulator-name = "vddcamd1";
  167. regulator-min-microvolt = <1000000>;
  168. regulator-max-microvolt = <1793750>;
  169. regulator-enable-ramp-delay = <100>;
  170. regulator-ramp-delay = <25000>;
  171. };
  172. vddcon: LDO_CON {
  173. regulator-name = "vddcon";
  174. regulator-min-microvolt = <1000000>;
  175. regulator-max-microvolt = <1793750>;
  176. regulator-enable-ramp-delay = <100>;
  177. regulator-ramp-delay = <25000>;
  178. };
  179. vddcamio: LDO_CAMIO {
  180. regulator-name = "vddcamio";
  181. regulator-min-microvolt = <1000000>;
  182. regulator-max-microvolt = <1793750>;
  183. regulator-enable-ramp-delay = <100>;
  184. regulator-ramp-delay = <25000>;
  185. };
  186. vddsram: LDO_SRAM {
  187. regulator-name = "vddsram";
  188. regulator-min-microvolt = <1000000>;
  189. regulator-max-microvolt = <1793750>;
  190. regulator-enable-ramp-delay = <100>;
  191. regulator-ramp-delay = <25000>;
  192. regulator-always-on;
  193. };
  194. };
  195. };
  196. };