27 Apr, 2020

1 commit


06 Feb, 2020

2 commits

  • At present dm/device.h includes the linux-compatible features. This
    requires including linux/compat.h which in turn includes a lot of headers.
    One of these is malloc.h which we thus end up including in every file in
    U-Boot. Apart from the inefficiency of this, it is problematic for sandbox
    which needs to use the system malloc() in some files.

    Move the compatibility features into a separate header file.

    Signed-off-by: Simon Glass

    Simon Glass
     
  • This currently reads the uclass's private data in the ofdata_to_platdata
    method which is not allowed, since the uclass has not read it from the
    device tree. This happens in the probe method.

    Fix it by adding a probe() method and moving the code there.

    Signed-off-by: Simon Glass

    Simon Glass
     

28 Jan, 2020

1 commit

  • This adds the basic register access operations and child regulator
    binding (if a regulator driver exists).

    Robert Beckett: simplify accesses by using bottom bit of address as
    offset overflow. This avoids the need to track which page we are on.
    Add an option CONFIG_SPL_DM_PMIC_DA9063.

    Signed-off-by: Martin Fuzzey
    Signed-off-by: Robert Beckett

    Martin Fuzzey
     

08 Jan, 2020

1 commit

  • PCA9450 PMIC series is used to support iMX8MM (PCA9450A) and
    iMX8MN (PCA9450B). Add the PMIC driver for both PCA9450A and PCA9450B.

    Signed-off-by: Robin Gong
    Signed-off-by: Ye Li
    Signed-off-by: Peng Fan

    Ye Li
     

03 Dec, 2019

1 commit


23 Nov, 2019

1 commit


12 Nov, 2019

1 commit


10 Nov, 2019

4 commits

  • The RK809 is a Power Management IC (PMIC) for multimedia
    and handheld devices. They contains the following components:
    - Regulators(5*BUCKs, 9*LDOs, 2*SWITCHes)
    - RTC
    - Clocking

    Signed-off-by: Joseph Chen
    Signed-off-by: Elaine Zhang
    Reviewed-by: Kever Yang

    Joseph Chen
     
  • The RK817 is a Power Management IC (PMIC) for multimedia
    and handheld devices. They contains the following components:
    - Regulators(4*BUCKs, 1* BOOST, 9*LDOs, 1*SWITCH)
    - RTC
    - Clocking

    Signed-off-by: Joseph Chen
    Signed-off-by: Elaine Zhang
    Reviewed-by: Kever Yang

    Joseph Chen
     
  • The RK805 are a Power Management IC (PMIC) for multimedia
    and handheld devices. They contains the following components:
    - Regulators(4*BUCKs, 3*LDOs)
    - RTC
    - Clocking

    Signed-off-by: Elaine Zhang
    Reviewed-by: Kever Yang

    Elaine Zhang
     
  • The RK816 is a Power Management IC (PMIC) for multimedia
    and handheld devices. They contains the following components:
    - Regulators(4*BUCKs, 1*BOOST, 6*LDOs, 1*SWITCH)
    - RTC
    - Clocking

    Signed-off-by: Elaine Zhang
    Reviewed-by: Kever Yang

    Elaine Zhang
     

08 Nov, 2019

1 commit


04 Nov, 2019

2 commits


27 Aug, 2019

2 commits


19 Aug, 2019

1 commit

  • This is a generic implementation. Add CONFIG_SYSRESET_CMD_POWEROFF
    to signal when we need it. Enable it from the STPMIC1 config and in
    sandbox.

    The config flag is transitionary, that is it can be removed after all
    poweroff implementations use sysreset, and just have CMD_POWEROFF depend
    on sysreset.

    Signed-off-by: Urja Rannikko
    Reviewed-by: Patrice Chotard
    Reviewed-by: Patrick Delaunay
    Tested-by: Patrick Delaunay

    Urja Rannikko
     

19 Jul, 2019

1 commit

  • BD71837 and BD71847 is PMIC intended for powering single-core,
    dual-core, and quad-core SoC’s such as NXP-i.MX 8M. BD71847
    is used for example on NXP imx8mm EVK.

    Add regulator driver for ROHM BD71837 and BD71847 PMICs.
    BD71837 contains 8 bucks and 7 LDOS. BD71847 is reduced
    version containing 6 bucks and 6 LDOs. Voltages for DVS
    bucks (1-4 on BD71837, 1 and 2 on BD71847) can be adjusted
    when regulators are enabled. For other bucks and LDOs we may
    have over- or undershooting if voltage is adjusted when
    regulator is enabled. Thus this is prevented by default.

    BD718x7 has a quirk which may leave power output disabled
    after reset if enable/disable state was controlled by SW.
    Thus the SW control is only allowed for BD71837 bucks
    3 and 4 by default. The impact of this limitation must be
    evaluated board-by board and restrictions may need to be
    modified. (Linux driver get's these limitations from DT and we
    may want to implement same on u-Boot driver).

    Signed-off-by: Matti Vaittinen
    Reviewed-by: Simon Glass

    Matti Vaittinen
     

14 Jul, 2019

1 commit


13 Jul, 2019

1 commit


12 Jul, 2019

1 commit


11 Jun, 2019

1 commit


12 Apr, 2019

4 commits


10 Dec, 2018

3 commits

  • Improvements:
    - init DRAM for RK322x in SPL
    - add FAN53555 PMIC/regulator driver
    - update MicroCrystal RV3029 driver to Kconfig and sync from Linux
    - add bootcount uclass and first DM-driver for bootcount

    Tom Rini
     
  • This adds a driver for the FAN53555 family of regulators and wraps it
    in a PMIC implementation.

    While these devices support a 'normal' and 'suspend' mode (controlled
    via an external pin) to switch between two programmable voltages, this
    incarnation of the driver assumes that the device is always operating
    in 'normal' mode.

    Only setting/reading the programmed voltage is supported at this time
    and the following device functionality remains unsupported:
    - switching the selected voltage (via a GPIO)
    - disabling the voltage output via software-control
    This matches the functionality of the Linux driver.

    Tested on a RK3399-Q7 (with 'option 5' devices): setting voltages from
    the U-Boot shell and verifying output voltages on the board.

    Signed-off-by: Philipp Tomsich
    Tested-by: Klaus Goger

    Philipp Tomsich
     
  • Those driver are not DM drivers per se (not using the PMIC/regulator
    framework) and are using the legacy I2C API. Make them compatible with
    the DM_I2C API.

    This impacts the following drivers:
    - palmas (used by am57xx/dra7xx evms)
    - tps65218 (used by am43xx evms)
    - tps65217 and tps65910 (used by am335x evms and am335x boneblack vboot)
    - twl4030 (used by omap3_logicpd)
    - tps65217 (used by brppt1)
    - twl6030

    Signed-off-by: Jean-Jacques Hiblot
    Reviewed-by: Tom Rini
    Reviewed-by: Heiko Schocher

    Jean-Jacques Hiblot
     

30 Nov, 2018

2 commits


30 Jul, 2018

1 commit

  • Remove additional trailing whitespaces in prompt reported by kconfiglib:

    warning: DM_PMIC_SANDBOX (defined at drivers/power/pmic/Kconfig:133) has
    leading or trailing whitespace in its prompt
    warning: (defined at dts/Kconfig:204) has leading or trailing
    whitespace in its prompt

    Signed-off-by: Michal Simek
    Reviewed-by: Felix Brack

    Michal Simek
     

27 Jun, 2018

1 commit

  • The PFUZE3000 uses registers addresses up to 0xff.

    The DM pfuze100 driver supports both pfuze100 and pfuze3000. Allow it
    to use the device type to return the correct number of registers.

    Also rename the too generic PMIC_NUM_OF_REGS enumeration value for
    pfuze3000 to match the other "PFUZE3000_" prefixed enumerations and the
    pfuze100 enumeration value PFUZE100_NUM_OF_REGS.

    Cc: Peng Fan
    Cc: Jaehoon Chung
    Cc: Stefano Babic
    Cc: Fabio Estevam
    Signed-off-by: Trent Piepho
    Reviewed-by: Fabio Estevam

    Trent Piepho
     

18 May, 2018

4 commits


09 May, 2018

1 commit


08 May, 2018

1 commit