sandbox_pmic.dtsi 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117
  1. // SPDX-License-Identifier: GPL-2.0+
  2. /*
  3. * Sandbox PMIC dts node
  4. *
  5. * Copyright (C) 2015 Samsung Electronics
  6. * Przemyslaw Marczak <p.marczak@samsung.com>
  7. */
  8. #include <dt-bindings/pmic/sandbox_pmic.h>
  9. &sandbox_pmic {
  10. compatible = "sandbox,pmic";
  11. buck1 {
  12. regulator-name = "SUPPLY_1.2V";
  13. regulator-min-microvolt = <1200000>;
  14. regulator-max-microvolt = <1200000>;
  15. regulator-min-microamp = <200000>;
  16. regulator-max-microamp = <200000>;
  17. regulator-always-on;
  18. };
  19. buck2: buck2 {
  20. regulator-name = "SUPPLY_3.3V";
  21. regulator-min-microvolt = <3300000>;
  22. regulator-max-microvolt = <3300000>;
  23. };
  24. ldo_1: ldo1 {
  25. regulator-name = "VDD_EMMC_1.8V";
  26. regulator-min-microvolt = <1800000>;
  27. regulator-max-microvolt = <1800000>;
  28. regulator-min-microamp = <100000>;
  29. regulator-max-microamp = <100000>;
  30. regulator-boot-on;
  31. };
  32. ldo2 {
  33. regulator-name = "VDD_LCD_3.3V";
  34. regulator-min-microvolt = <3300000>;
  35. regulator-max-microvolt = <3300000>;
  36. };
  37. no_match_by_nodename {
  38. regulator-name = "buck_SUPPLY_1.5V";
  39. regulator-min-microvolt = <1500000>;
  40. regulator-max-microvolt = <1500000>;
  41. };
  42. };
  43. &mc34708 {
  44. compatible = "fsl,mc34708";
  45. };
  46. &i2c_emul {
  47. emul_pmic0: pmic-emul0 {
  48. compatible = "sandbox,i2c-pmic";
  49. /*
  50. * Default PMICs register values are set by macro
  51. * VAL2REG(min, step, value) [uV/uA]
  52. * VAL2OMREG(mode id)
  53. * reg-defaults - byte array
  54. */
  55. reg-defaults = /bits/ 8 <
  56. /* BUCK1 */
  57. VAL2REG(800000, 25000, 1000000)
  58. VAL2REG(150000, 25000, 150000)
  59. VAL2OMREG(BUCK_OM_OFF)
  60. /* BUCK2 */
  61. VAL2REG(750000, 50000, 3000000)
  62. VAL2REG(150000, 25000, 150000)
  63. VAL2OMREG(0)
  64. /* LDO1 */
  65. VAL2REG(800000, 25000, 1600000)
  66. VAL2REG(100000, 50000, 150000)
  67. VAL2OMREG(LDO_OM_OFF)
  68. /* LDO2 */
  69. VAL2REG(750000, 50000, 3000000)
  70. VAL2REG(150000, 25000, 150000)
  71. VAL2OMREG(0)
  72. /* reg[12:15] - not used */
  73. 0x00
  74. 0x00
  75. 0x00
  76. 0x00
  77. >;
  78. };
  79. emul_pmic1: pmic-emul1 {
  80. compatible = "sandbox,i2c-pmic";
  81. reg-defaults = /bits/ 8 <
  82. 0x00 0x80 0x08 0xff 0xff 0xff 0x2e 0x01 0x08
  83. 0x40 0x80 0x81 0x5f 0xff 0xfb 0x1e 0x80 0x18
  84. 0x00 0x00 0x0e 0x00 0x00 0x14 0x00 0x00 0x00
  85. 0x00 0x00 0x20 0x00 0x01 0x3a 0x00 0x00 0x00
  86. 0x00 0x00 0x00 0x00 0x00 0x40 0x00 0x00 0x00
  87. 0x42 0x21 0x00 0x00 0x00 0x00 0x00 0x00 0x00
  88. 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x30 0x5f
  89. 0x01 0xff 0xff 0x00 0x00 0x00 0x00 0x7f 0xff
  90. 0x92 0x49 0x24 0x59 0x6d 0x34 0x18 0xc1 0x8c
  91. 0x00 0x60 0x18 0x51 0x48 0x45 0x14 0x51 0x45
  92. 0x00 0x06 0x32 0x00 0x00 0x00 0x06 0x9c 0x99
  93. 0x00 0x38 0x0a 0x00 0x38 0x0a 0x00 0x38 0x0a
  94. 0x00 0x38 0x0a 0x84 0x00 0x00 0x00 0x00 0x00
  95. 0x80 0x90 0x8f 0xf8 0x00 0x04 0x00 0x00 0x00
  96. 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00
  97. 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00
  98. 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00
  99. 0x01 0x31 0x7e 0x2b 0x03 0xfd 0xc0 0x36 0x1b
  100. 0x60 0x06 0x00 0x00 0x00 0x00 0x00 0x00 0x00
  101. 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00
  102. 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00
  103. 0x00 0x00 0x00
  104. >;
  105. };
  106. };