This commit adds sandbox PMIC subnode to sandbox i2c bus 0. The PMIC's node includes: - 2x BUCK - 2x LDO
Each regulator node include proper constraints: - min, max micro Volts - min, max micro Amps (only first of each type) - always on (BUCK1) - boot on (LDO1) Signed-off-by: Przemyslaw Marczak <p.marc...@samsung.com> --- test/dm/test.dts | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) diff --git a/test/dm/test.dts b/test/dm/test.dts index d0c40be..54e05d2 100644 --- a/test/dm/test.dts +++ b/test/dm/test.dts @@ -139,6 +139,44 @@ sandbox,size = <256>; }; }; + + sandbox_pmic { + reg = <0x40>; + compatible = "sandbox,pmic"; + emul { + compatible = "sandbox,i2c-pmic"; + }; + + buck1 { + regulator-name = "SUPPLY_1.2V"; + regulator-min-microvolt = <1200000>; + regulator-max-microvolt = <1200000>; + regulator-min-microamp = <200000>; + regulator-max-microamp = <200000>; + regulator-always-on; + }; + + buck2 { + regulator-name = "SUPPLY_3.3V"; + regulator-min-microvolt = <3300000>; + regulator-max-microvolt = <3300000>; + }; + + ldo1 { + regulator-name = "VDD_EMMC_1.8V"; + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <1800000>; + regulator-min-microamp = <100000>; + regulator-max-microamp = <100000>; + regulator-boot-on; + }; + + ldo2 { + regulator-name = "VDD_LCD_3.3V"; + regulator-min-microvolt = <3300000>; + regulator-max-microvolt = <3300000>; + }; + }; }; pci: pci-controller { -- 1.9.1 _______________________________________________ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot