[PATCH v2 0/5] rockchip: Port IO-domain driver for RK3568 from linux

Jonas Karlman jonas at kwiboo.se
Tue Aug 22 00:30:22 CEST 2023


This series port the IO-domain driver for RK3568 from linux. It is
necessary for the IO-domain setting of the SoC to match the voltage
supplied by the regulators.

The driver auto probe after bind and configures IO-domain based on the
voltage reported by the regulators. This fixes issues observed while
working on the GMAC driver for RK3568 devices. The IO-domain setting
default to 3v3, however some vccio domains may be supplied by 1v8.

This series also add a minimal generic RK356x board that only enable
eMMC and SD-card node and keep the IO-domain driver disabled. The
generic board can be used to boot from eMMC/SD-card on boards that
follow reference board design.

Changes in v2:
- Include patch to return correct voltage for switchout converters
- Simplify code that return correct voltage for buck converters
- Add a minimal generic RK356x board with IO-domain driver disabled.
- Collect r-b tags

Patch 1 adds protection so that regulator autoset only happens one time.
Patch 2-3 fixes rk8xx buck/switchout regulator driver to report correct
voltage.
Patch 4 adds the IO-domain driver.
Patch 5 adds the minimal generic RK3566/RK3568 board.

This series can also be found at [1]

[1] https://github.com/Kwiboo/u-boot-rockchip/commits/rk3568-io-domain-v2

Jonas Karlman (3):
  power: regulator: Only run autoset once for each regulator
  rockchip: Port IO-domain driver for RK3568 from linux
  rockchip: board: Add minimal generic RK3566/RK3568 board

Joseph Chen (1):
  regulator: rk8xx: Return correct voltage for buck converters

shengfei Xu (1):
  regulator: rk8xx: Return correct voltage for switchout converters

 arch/arm/dts/rk3568-generic-u-boot.dtsi    |  14 ++
 arch/arm/dts/rk3568-generic.dts            |  38 +++++
 board/rockchip/evb_rk3568/MAINTAINERS      |   7 +
 configs/generic-rk3568_defconfig           |  64 ++++++++
 doc/board/rockchip/rockchip.rst            |   1 +
 drivers/misc/Kconfig                       |   9 ++
 drivers/misc/Makefile                      |   1 +
 drivers/misc/rockchip-io-domain.c          | 167 +++++++++++++++++++++
 drivers/power/regulator/regulator-uclass.c |  18 ++-
 drivers/power/regulator/rk8xx.c            |  95 +++++++-----
 include/power/regulator.h                  |   1 +
 11 files changed, 375 insertions(+), 40 deletions(-)
 create mode 100644 arch/arm/dts/rk3568-generic-u-boot.dtsi
 create mode 100644 arch/arm/dts/rk3568-generic.dts
 create mode 100644 configs/generic-rk3568_defconfig
 create mode 100644 drivers/misc/rockchip-io-domain.c

-- 
2.41.0



More information about the U-Boot mailing list