sandbox_pmic.dtsi 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  1. /*
  2. * Sandbox PMIC dts node
  3. *
  4. * Copyright (C) 2015 Samsung Electronics
  5. * Przemyslaw Marczak <p.marczak@samsung.com>
  6. *
  7. * SPDX-License-Identifier: GPL-2.0+
  8. */
  9. #include <dt-bindings/pmic/sandbox_pmic.h>
  10. &sandbox_pmic {
  11. compatible = "sandbox,pmic";
  12. pmic_emul {
  13. compatible = "sandbox,i2c-pmic";
  14. /*
  15. * Default PMICs register values are set by macro
  16. * VAL2REG(min, step, value) [uV/uA]
  17. * VAL2OMREG(mode id)
  18. * reg-defaults - byte array
  19. */
  20. reg-defaults = /bits/ 8 <
  21. /* BUCK1 */
  22. VAL2REG(800000, 25000, 1000000)
  23. VAL2REG(150000, 25000, 150000)
  24. VAL2OMREG(BUCK_OM_OFF)
  25. /* BUCK2 */
  26. VAL2REG(750000, 50000, 3000000)
  27. VAL2REG(150000, 25000, 150000)
  28. VAL2OMREG(0)
  29. /* LDO1 */
  30. VAL2REG(800000, 25000, 1600000)
  31. VAL2REG(100000, 50000, 150000)
  32. VAL2OMREG(LDO_OM_OFF)
  33. /* LDO2 */
  34. VAL2REG(750000, 50000, 3000000)
  35. VAL2REG(150000, 25000, 150000)
  36. VAL2OMREG(0)
  37. /* reg[12:15] - not used */
  38. 0x00
  39. 0x00
  40. 0x00
  41. 0x00
  42. >;
  43. };
  44. buck1 {
  45. regulator-name = "SUPPLY_1.2V";
  46. regulator-min-microvolt = <1200000>;
  47. regulator-max-microvolt = <1200000>;
  48. regulator-min-microamp = <200000>;
  49. regulator-max-microamp = <200000>;
  50. regulator-always-on;
  51. };
  52. buck2: buck2 {
  53. regulator-name = "SUPPLY_3.3V";
  54. regulator-min-microvolt = <3300000>;
  55. regulator-max-microvolt = <3300000>;
  56. };
  57. ldo1 {
  58. regulator-name = "VDD_EMMC_1.8V";
  59. regulator-min-microvolt = <1800000>;
  60. regulator-max-microvolt = <1800000>;
  61. regulator-min-microamp = <100000>;
  62. regulator-max-microamp = <100000>;
  63. regulator-boot-on;
  64. };
  65. ldo2 {
  66. regulator-name = "VDD_LCD_3.3V";
  67. regulator-min-microvolt = <3300000>;
  68. regulator-max-microvolt = <3300000>;
  69. };
  70. };