mail archive of the barebox mailing list
 help / color / mirror / Atom feed
* [PATCH v2 0/7] soc: rockchip: add driver for rockchip io domains
@ 2022-09-19 11:39 Michael Riesch
  2022-09-19 11:39 ` [PATCH v2 1/7] " Michael Riesch
                   ` (6 more replies)
  0 siblings, 7 replies; 17+ messages in thread
From: Michael Riesch @ 2022-09-19 11:39 UTC (permalink / raw)
  To: barebox; +Cc: Frank Wunderlich, Michael Riesch

Hi all,

The IO domains in Rockchip SoCs need to be configured to match the
corresponding bank voltage. In Linux this is achieved by means of a
platform driver that reads the voltage value of the supplies and
configures the bits in the general register file (GRF) accordingly.

This series ports this driver to barebox to provide support for the
Rockchip RK356x SoCs. Please note that I could only test the changes
on RK3568 boards, so I left out the parts for the other SoCs supported
by the Linux driver. Also, it should be noted that the Linux driver
uses notifiers to react to voltage changes. This is not supported by
this barebox driver.

The driver has been tested on a Radxa ROCK3 Model A and a Rockchip
RK3568 EVB1. I do not have a BananaPi R2Pro and would therefore like
to ask someone with such a board a test.

The removal of the IO domain configuration in the low-level code allows
to refactor the low-level initialization to a common method rk3568_start.
This is introduced and used in patches 6 and 7.

Looking forward to your comments!

Best regards,
Michael

Changes since v1:
 - add defconfig
 - extend removal of IO domain configuration code
 - refactor initialization to rk3568_start()

Michael Riesch (7):
  soc: rockchip: add driver for rockchip io domains
  arm: rockchip_v8_defconfig: enable io domain driver
  arm: rockchip: radxa-rock3: remove io domain configuration
  arm: rockchip: rk3568-evb: remove io domain configuration
  arm: rockchip: rk3568-bpi-r2pro: remove io domain configuration
  arm: rockchip: rk3568: refactor common rk3568_start method
  arm: rockchip: rk3568-bpi-r2pro: use common method rk3568_start

 arch/arm/boards/pine64-quartz64/lowlevel.c    |  30 +--
 arch/arm/boards/radxa-rock3/lowlevel.c        |  33 ---
 .../rockchip-rk3568-bpi-r2pro/lowlevel.c      |  42 +---
 .../arm/boards/rockchip-rk3568-evb/lowlevel.c |  39 +--
 arch/arm/configs/rockchip_v8_defconfig        |   4 +
 .../arm/mach-rockchip/include/mach/rockchip.h |   1 +
 arch/arm/mach-rockchip/rk3568.c               |  24 ++
 drivers/soc/Kconfig                           |   1 +
 drivers/soc/Makefile                          |   1 +
 drivers/soc/rockchip/Kconfig                  |  17 ++
 drivers/soc/rockchip/Makefile                 |   6 +
 drivers/soc/rockchip/io-domain.c              | 223 ++++++++++++++++++
 12 files changed, 280 insertions(+), 141 deletions(-)
 create mode 100644 drivers/soc/rockchip/Kconfig
 create mode 100644 drivers/soc/rockchip/Makefile
 create mode 100644 drivers/soc/rockchip/io-domain.c

-- 
2.30.2




^ permalink raw reply	[flat|nested] 17+ messages in thread

end of thread, other threads:[~2022-09-22  8:25 UTC | newest]

Thread overview: 17+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-09-19 11:39 [PATCH v2 0/7] soc: rockchip: add driver for rockchip io domains Michael Riesch
2022-09-19 11:39 ` [PATCH v2 1/7] " Michael Riesch
2022-09-21  9:46   ` Sascha Hauer
2022-09-21 11:49     ` Michael Riesch
2022-09-22  8:03       ` Sascha Hauer
2022-09-22  8:13         ` Ahmad Fatoum
2022-09-22  8:23           ` Sascha Hauer
2022-09-19 11:39 ` [PATCH v2 2/7] arm: rockchip_v8_defconfig: enable io domain driver Michael Riesch
2022-09-19 11:39 ` [PATCH v2 3/7] arm: rockchip: radxa-rock3: remove io domain configuration Michael Riesch
2022-09-19 11:39 ` [PATCH v2 4/7] arm: rockchip: rk3568-evb: " Michael Riesch
2022-09-19 11:39 ` [PATCH v2 5/7] arm: rockchip: rk3568-bpi-r2pro: " Michael Riesch
2022-09-19 11:39 ` [PATCH v2 6/7] arm: rockchip: rk3568: refactor common rk3568_start method Michael Riesch
2022-09-21  9:17   ` Sascha Hauer
2022-09-21 11:57     ` Michael Riesch
2022-09-21 12:21       ` Sascha Hauer
2022-09-21 12:34         ` Michael Riesch
2022-09-19 11:39 ` [PATCH v2 7/7] arm: rockchip: rk3568-bpi-r2pro: use common method rk3568_start Michael Riesch

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox