[PATCH v4 0/5] rockchip: rk3399: rk3399-nanopi-4: Fix SD power initialization in SPL

2025-05-23 Thread Justin Klaassen
RK8XX Kconfig - Added patch to remove device-tree properties that conflicted with MMC driver initialization - Added defconfig changes for all NanoPi RK3399 boards Justin Klaassen (5): rockchip: io-domain: Add debug logging for regulators during probe rockchip: io-domain: Add CONFIG_SPL_ROCKCHIP_IO

[PATCH v4 2/5] rockchip: io-domain: Add CONFIG_SPL_ROCKCHIP_IODOMAIN

2025-05-23 Thread Justin Klaassen
Allows use of the Rockchip IO-domain driver in SPL to configure the GPIO to match the voltage supplied by specific regulators (e.g. "vcc_sdio"). Signed-off-by: Justin Klaassen Reviewed-by: Quentin Schulz --- (no changes since v3) Changes in v3: - Add depends on SPL_DM_REGULATOR Cha

[PATCH v4 1/5] rockchip: io-domain: Add debug logging for regulators during probe

2025-05-23 Thread Justin Klaassen
Log the value of the regulators during initialization of the IO-domain driver to aid in debugging GPIO voltage configuration problems. Signed-off-by: Justin Klaassen Reviewed-by: Quentin Schulz --- (no changes since v3) Changes in v3: - Use dev_dbg instead of log_debug Changes in v2: - Made

[PATCH v4 4/5] rockchip: rk3399-nanopi-4: Allow MMC driver to control SD regulators

2025-05-23 Thread Justin Klaassen
removes the "regulator-boot-on" from the "vcc_sdio" regulator, which could theoretically damage a SD card that is already initialized in a low voltage mode. Signed-off-by: Justin Klaassen --- (no changes since v2) Changes in v2: - Added patch to remove device-tree properti

[PATCH v4 5/5] rockchip: rk3399-nanopi-4: Enable IO-domain driver in SPL

2025-05-23 Thread Justin Klaassen
card from being reinitialized and read successfully. This change enables the RK8XX regulators and Rockchip IO-domain drivers in SPL, which initializes "vcc_sdio" regulator to 3.0v and configures the GPIO for the correct level on boot. Signed-off-by: Justin Klaassen --- Changes in

[PATCH v4 3/5] regulator: rk8xx: Add CONFIG_SPL_REGULATOR_RK8XX

2025-05-23 Thread Justin Klaassen
Allows use of the regulator functions of the RK8XX PMIC in SPL, which is necessary to support the functionality of the Rockchip IO-domain driver on relevant platforms. Signed-off-by: Justin Klaassen Reviewed-by: Quentin Schulz --- (no changes since v2) Changes in v2: - Added separate patch

Re: [PATCH] rockchip: nanopi-r4s: Enable second usb port and fix crash

2025-02-24 Thread Justin Klaassen
Hi Kever, On Feb 19, 2025 at 07:02:25, Kever Yang wrote: > Hi Justin, > > On 2025/2/1 01:06, Justin Klaassen wrote: > > The patch enables the second USB3.0 Type-A USB port on the NanoPi R4S > > board, which prevents a crash when initializing the usb system in U-Boot >

Re: [PATCH] rockchip: nanopi-r4s: Enable second usb port and fix crash

2025-02-10 Thread Justin Klaassen
://source.denx.de/u-boot/u-boot/-/commit/cae4707f25105554f94ad5af1199c7c27edd75e1 Thanks, Justin On Jan 31, 2025 at 09:06:13, Justin Klaassen wrote: > The patch enables the second USB3.0 Type-A USB port on the NanoPi R4S > board, which prevents a crash when initializing the usb system in U-Boot

[PATCH v3 0/5] rockchip: rk3399: rk3399-nanopi-4: Fix SD power initialization in SPL

2025-02-05 Thread Justin Klaassen
ree properties that conflicted with MMC driver initialization - Added defconfig changes for all NanoPi RK3399 boards Justin Klaassen (5): rockchip: io-domain: Add debug logging for regulators during probe rockchip: io-domain: Add CONFIG_SPL_ROCKCHIP_IODOMAIN regulator: rk8xx: Add CONFIG_

[PATCH v3 4/5] rockchip: rk3399-nanopi-4: Allow MMC driver to control SD regulators

2025-02-05 Thread Justin Klaassen
removes the "regulator-boot-on" from the "vcc_sdio" regulator, which could theoretically damage a SD card that is already initialized in a low voltage mode. Signed-off-by: Justin Klaassen --- (no changes since v2) Changes in v2: - Added patch to remove device-tree properti

Re: [PATCH v2 3/5] regulator: rk8xx: Add CONFIG_SPL_REGULATOR_RK8XX

2025-02-05 Thread Justin Klaassen
Hi Quentin, On Feb 4, 2025 at 09:30:33, Quentin Schulz wrote: > Hi Justin, > > On 1/28/25 10:37 PM, Justin Klaassen wrote: > > Allows use of the regulator functions of the RK8XX PMIC in SPL, which is > > necessary to support the functionality of the Rockchip IO-domain d

Re: [PATCH v2 1/5] rockchip: io-domain: Add debug logging for regulators during probe

2025-02-05 Thread Justin Klaassen
Hi Quentin, On Feb 4, 2025 at 09:16:29, Quentin Schulz wrote: > Hi Justin, > > On 1/28/25 10:37 PM, Justin Klaassen wrote: > > [You don't often get email from jus...@tidylabs.net. Learn why this is > important at https://aka.ms/LearnAboutSenderIdentification ] >

[PATCH v3 2/5] rockchip: io-domain: Add CONFIG_SPL_ROCKCHIP_IODOMAIN

2025-02-05 Thread Justin Klaassen
Allows use of the Rockchip IO-domain driver in SPL to configure the GPIO to match the voltage supplied by specific regulators (e.g. "vcc_sdio"). Signed-off-by: Justin Klaassen --- Changes in v3: - Add depends on SPL_DM_REGULATOR Changes in v2: - Added separate patch

[PATCH v3 5/5] rockchip: rk3399-nanopi-4: Enable IO-domain driver in SPL

2025-02-05 Thread Justin Klaassen
card from being reinitialized and read successfully. This change enables the RK8XX regulators and Rockchip IO-domain drivers in SPL, which initializes "vcc_sdio" regulator to 3.0v and configures the GPIO for the correct level on boot. Signed-off-by: Justin Klaassen --- (no changes s

[PATCH v3 1/5] rockchip: io-domain: Add debug logging for regulators during probe

2025-02-05 Thread Justin Klaassen
Log the value of the regulators during initialization of the IO-domain driver to aid in debugging GPIO voltage configuration problems. Signed-off-by: Justin Klaassen --- Changes in v3: - Use dev_dbg instead of log_debug Changes in v2: - Made added IO-domain driver logs verbose and consistent

[PATCH v3 3/5] regulator: rk8xx: Add CONFIG_SPL_REGULATOR_RK8XX

2025-02-05 Thread Justin Klaassen
Allows use of the regulator functions of the RK8XX PMIC in SPL, which is necessary to support the functionality of the Rockchip IO-domain driver on relevant platforms. Signed-off-by: Justin Klaassen Reviewed-by: Quentin Schulz --- (no changes since v2) Changes in v2: - Added separate patch

Re: [PATCH v2 2/5] rockchip: io-domain: Add CONFIG_SPL_ROCKCHIP_IODOMAIN

2025-02-05 Thread Justin Klaassen
Hi Quentin, On Feb 4, 2025 at 09:20:56, Quentin Schulz wrote: > Hi Justin > > On 1/28/25 10:37 PM, Justin Klaassen wrote: > > Allows use of the Rockchip IO-domain driver in SPL to configure > > the GPIO to match the voltage supplied by specific regulators > > (e.g

[PATCH] rockchip: nanopi-r4s: Enable second usb port and fix crash

2025-01-31 Thread Justin Klaassen
us Abort" handler, esr 0x9610, far 0x0 Signed-off-by: Justin Klaassen --- arch/arm/dts/rk3399-nanopi-r4s-u-boot.dtsi | 5 + 1 file changed, 5 insertions(+) diff --git a/arch/arm/dts/rk3399-nanopi-r4s-u-boot.dtsi b/arch/arm/dts/rk3399-nanopi-r4s-u-boot.dtsi index 69800cc368d

[PATCH v2 5/5] rockchip: rk3399-nanopi-4: Enable IO-domain driver in SPL

2025-01-28 Thread Justin Klaassen
card from being reinitialized and read successfully. This change enables the RK8XX regulators and Rockchip IO-domain drivers in SPL, which initializes "vcc_sdio" regulator to 3.0v and configures the GPIO for the correct level on boot. Signed-off-by: Justin Klaassen --- Changes in v

[PATCH v2 2/5] rockchip: io-domain: Add CONFIG_SPL_ROCKCHIP_IODOMAIN

2025-01-28 Thread Justin Klaassen
Allows use of the Rockchip IO-domain driver in SPL to configure the GPIO to match the voltage supplied by specific regulators (e.g. "vcc_sdio"). Signed-off-by: Justin Klaassen --- Changes in v2: - Added separate patch for added CONFIG_SPL_ROCKCHIP_IODOMAIN Kconfig drivers/misc/K

[PATCH v2 3/5] regulator: rk8xx: Add CONFIG_SPL_REGULATOR_RK8XX

2025-01-28 Thread Justin Klaassen
Allows use of the regulator functions of the RK8XX PMIC in SPL, which is necessary to support the functionality of the Rockchip IO-domain driver on relevant platforms. Signed-off-by: Justin Klaassen --- Changes in v2: - Added separate patch for added CONFIG_SPL_REGULATOR_RK8XX Kconfig drivers

[PATCH v2 4/5] rockchip: rk3399-nanopi-4: Allow MMC driver to control SD regulators

2025-01-28 Thread Justin Klaassen
removes the "regulator-boot-on" from the "vcc_sdio" regulator, which could theoretically damage a SD card that is already initialized in a low voltage mode. Signed-off-by: Justin Klaassen --- Changes in v2: - Added patch to remove device-tree properties that conflicted wit

[PATCH v2 0/5] rockchip: rk3399: rk3399-nanopi-4: Fix SD power initialization in SPL

2025-01-28 Thread Justin Klaassen
changes for all NanoPi RK3399 boards Justin Klaassen (5): rockchip: io-domain: Add debug logging for regulators during probe rockchip: io-domain: Add CONFIG_SPL_ROCKCHIP_IODOMAIN regulator: rk8xx: Add CONFIG_SPL_REGULATOR_RK8XX rockchip: rk3399-nanopi-4: Allow MMC driver to control SD regulato

[PATCH v2 1/5] rockchip: io-domain: Add debug logging for regulators during probe

2025-01-28 Thread Justin Klaassen
Log the value of the regulators during initialization of the IO-domain driver to aid in debugging GPIO voltage configuration problems. Signed-off-by: Justin Klaassen --- Changes in v2: - Made added IO-domain driver logs verbose and consistent drivers/misc/rockchip-io-domain.c | 7 ++- 1

Re: [PATCH] rockchip: rk3399: nanopi-r4s: Support v1.8 SD cards in SPL

2025-01-25 Thread Justin Klaassen
Hi Jonas, Thanks for the quick initial review. On Jan 24, 2025 at 14:25:25, Jonas Karlman wrote: > Hi Justin, > > On 2025-01-24 22:19, Justin Klaassen wrote: > > The NanoPi R4S supports UHS-I (up to SDR104) SD cards, however using any > > of these 1.8v modes results in

[PATCH] rockchip: rk3399: nanopi-r4s: Support v1.8 SD cards in SPL

2025-01-24 Thread Justin Klaassen
ned-off-by: Justin Klaassen --- arch/arm/dts/rk3399-nanopi4-u-boot.dtsi | 9 + configs/nanopi-r4s-rk3399_defconfig | 7 +++ drivers/misc/Kconfig| 8 drivers/misc/rockchip-io-domain.c | 7 ++- drivers/power/regulator/Kconfig

Re: [PATCH] rockchip: nanopi-r4s: Fix ehci usb error

2024-04-18 Thread Justin Klaassen
Hi Jonas, On Apr 18, 2024 at 07:52:03, Jonas Karlman wrote: > Hi Justin, > > On 2024-04-18 03:45, Justin Klaassen wrote: > > The ehci_generic driver always failed with the error: > > Bus usb@fe38: ehci_generic usb@fe38: > > ... Failed to get clocks (ret=

[PATCH] rockchip: nanopi-r4s: Fix ehci usb error

2024-04-18 Thread Justin Klaassen
d scanning bus usb@fe90 for devices... 1 USB Device(s) found scanning usb for storage devices... 0 Storage Device(s) found Signed-off-by: Justin Klaassen Cc: Simon Glass Cc: Philipp Tomsich Cc: Kever Yang --- arch/arm/dts/rk3399-nanopi-r4s.dts | 2 +- configs/nanopi-r4s-rk3399_def