• Chen-Yu Tsai's avatar
    regulator: axp20x: Add support for AXP813 regulators · d81851c1
    Chen-Yu Tsai authored
    The AXP813 PMIC has 7 DC-DC buck regulators, 16 LDOs (including the
    fixed RTC LDO and 2 GPIO LDOs), and 1 switchable. The drive-vbus
    feature is also supported. All the hardware details are very similar
    to the AXP803, with the following exceptions:
    
      - Extra DCDC7 buck regulator, with the same range as DCDC6
    
      - SWitch now has a separate supply pin, instead of being chained
        internaly from DCDC1
    
      - RTC LDO output voltage is now 1.8V
    
      - FLDO3 is an LDO with switchable supplies, but unconfigurable output
        voltage. The voltage is always half that of its supply.
    
    Support for FLDO3 is currently unimplemented, as it requires runtime
    switching of its supplies, something the regulator subsystem does not
    support. It is not used in either the reference designs nor actually
    produced boards available.
    Signed-off-by: default avatarChen-Yu Tsai <wens@csie.org>
    Tested-by: default avatarMaxime Ripard <maxime.ripard@free-electrons.com>
    Acked-by: default avatarMaxime Ripard <maxime.ripard@free-electrons.com>
    Signed-off-by: default avatarMark Brown <broonie@kernel.org>
    d81851c1
axp20x-regulator.c 30.2 KB