[U-Boot] [PATCH v3 0/8] rk3399-puma: Enable PWM regulator for RK3399-Q7

Christoph Muellner christoph.muellner at theobroma-systems.com
Mon Dec 17 13:29:58 UTC 2018


This patch series allows to tune VDD_LOG on RK3399-Q7 Puma boards
to a voltage level defined in the DTS using a PWM adjustable regulator.

To do so a reimplemenation of the RK3399 pinctrl driver has been done,
which uses .set_state() instead of .set_state_simple().
This means, that the pinctrl driver operates based on the pinctrl settings
in the DTB (contrary to the current implemenation, which has these
settings hard-coded).

Although the new pinctrl driver is written in a way, that we could
factor it out into a generic rockchip pinctrl driver and have SoC-specific
mini drivers, this is not part of this series. This is planned to be
done for at least RK3399 in the next merge window.

The effect of the series is, that VDD_LOG will be set to about 950 mV
on Puma. This is required to address stability issues on Puma.

This series has no intended impact on any board except the RK3399-Q7.

Changes in v3:
 - Fix message verbosity in pinctrl driver.
 - Changed patches according to review feedback.
 - Add patches to enable the full pinctrl driver only for Puma boards.

Changes in v2:
 - Changed patches according to review feedback.
 - Fix pinctrl infrastructure instead of hacking board_init() code.

Christoph Muellner (8):
  rockchip: rk3399-puma: Cleanup of vdd_log DTS entry.
  power: regulator: Allow PWM regulator to be omitted from SPL.
  rockchip: rk3399-puma: enable PWM regulator in Puma defconfig.
  dm: pinctrl: Add pinctrl_decode_pin_config_dm().
  rockchip: rk3399: Add improved pinctrl driver.
  rockchip: rk3399: Add Kconfig option for full pinctrl driver
  rockchip: rk3399-puma: enable full pinctrl driver in Puma defconfig.
  rockchip: rk3399-puma: Set VDD_LOG to 950 mV.

 arch/arm/dts/rk3399-puma.dtsi             |   5 +-
 configs/puma-rk3399_defconfig             |   2 +
 drivers/pinctrl/Kconfig                   |  10 ++
 drivers/pinctrl/pinctrl-uclass.c          |  15 ++
 drivers/pinctrl/rockchip/pinctrl_rk3399.c | 235 ++++++++++++++++++++++++++++++
 drivers/power/regulator/Kconfig           |   7 +
 drivers/power/regulator/Makefile          |   2 +-
 include/dm/pinctrl.h                      |  12 ++
 8 files changed, 283 insertions(+), 5 deletions(-)

-- 
2.11.0



More information about the U-Boot mailing list