* [PATCH v3 1/2] ARM: dts: rk3588-rock-5b-u-boot: add bootph-all to pinctrl for sdmmc
@ 2023-04-17 10:06 Eugen Hristev
2023-04-17 10:06 ` [PATCH v3 2/2] configs: rockchip: rock5b-rk3588: add pinctrl to SPL Eugen Hristev
2023-04-20 6:54 ` [PATCH v3 1/2] ARM: dts: rk3588-rock-5b-u-boot: add bootph-all to pinctrl for sdmmc Kever Yang
0 siblings, 2 replies; 4+ messages in thread
From: Eugen Hristev @ 2023-04-17 10:06 UTC (permalink / raw)
To: u-boot, kever.yang, jonas; +Cc: jagan, eugen.hristev
To be able to initialize the pinctrl correctly at SPL level and read
u-boot proper from SD-Card, the pinctrl must be initialized.
Signed-off-by: Eugen Hristev <eugen.hristev@collabora.com>
---
Changes in v3:
- change to bootph-all props.
Changes in v2:
- add u-boot,dm-spl to pull up nodes, to also setup the pull control
correctly. Also, in the loop that initializes multiple pins, only the
first will be muxed as the loop will break when the pull up node is not
found.
arch/arm/dts/rk3588-rock-5b-u-boot.dtsi | 26 +++++++++++++++++++++++++
1 file changed, 26 insertions(+)
diff --git a/arch/arm/dts/rk3588-rock-5b-u-boot.dtsi b/arch/arm/dts/rk3588-rock-5b-u-boot.dtsi
index 1e87854acd6d..091b036707a8 100644
--- a/arch/arm/dts/rk3588-rock-5b-u-boot.dtsi
+++ b/arch/arm/dts/rk3588-rock-5b-u-boot.dtsi
@@ -38,6 +38,8 @@
};
&pinctrl {
+ bootph-all;
+
usb {
vcc5v0_host_en: vcc5v0-host-en {
rockchip,pins = <4 RK_PB0 RK_FUNC_GPIO &pcfg_pull_none>;
@@ -45,6 +47,30 @@
};
};
+&pcfg_pull_up_drv_level_2 {
+ bootph-all;
+};
+
+&pcfg_pull_up {
+ bootph-all;
+};
+
+&sdmmc_bus4 {
+ bootph-all;
+};
+
+&sdmmc_clk {
+ bootph-all;
+};
+
+&sdmmc_cmd {
+ bootph-all;
+};
+
+&sdmmc_det {
+ bootph-all;
+};
+
&usb_host0_ehci {
companion = <&usb_host0_ohci>;
phys = <&u2phy2_host>;
--
2.34.1
^ permalink raw reply related [flat|nested] 4+ messages in thread* [PATCH v3 2/2] configs: rockchip: rock5b-rk3588: add pinctrl to SPL
2023-04-17 10:06 [PATCH v3 1/2] ARM: dts: rk3588-rock-5b-u-boot: add bootph-all to pinctrl for sdmmc Eugen Hristev
@ 2023-04-17 10:06 ` Eugen Hristev
2023-04-20 6:54 ` Kever Yang
2023-04-20 6:54 ` [PATCH v3 1/2] ARM: dts: rk3588-rock-5b-u-boot: add bootph-all to pinctrl for sdmmc Kever Yang
1 sibling, 1 reply; 4+ messages in thread
From: Eugen Hristev @ 2023-04-17 10:06 UTC (permalink / raw)
To: u-boot, kever.yang, jonas; +Cc: jagan, eugen.hristev
Add pinctrl driver in SPL. Do not remove pinctrl properties for SPL dtb.
Signed-off-by: Eugen Hristev <eugen.hristev@collabora.com>
---
Changes in v2,v3:
- no change
configs/rock5b-rk3588_defconfig | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/configs/rock5b-rk3588_defconfig b/configs/rock5b-rk3588_defconfig
index f198575f47cc..b34a74736239 100644
--- a/configs/rock5b-rk3588_defconfig
+++ b/configs/rock5b-rk3588_defconfig
@@ -47,7 +47,7 @@ CONFIG_CMD_REGULATOR=y
# CONFIG_SPL_DOS_PARTITION is not set
CONFIG_SPL_OF_CONTROL=y
CONFIG_OF_LIVE=y
-CONFIG_OF_SPL_REMOVE_PROPS="pinctrl-0 pinctrl-names clock-names interrupt-parent assigned-clocks assigned-clock-rates assigned-clock-parents"
+CONFIG_OF_SPL_REMOVE_PROPS="clock-names interrupt-parent assigned-clocks assigned-clock-rates assigned-clock-parents"
CONFIG_NET_RANDOM_ETHADDR=y
CONFIG_SPL_REGMAP=y
CONFIG_SPL_SYSCON=y
@@ -64,6 +64,7 @@ CONFIG_MMC_SDHCI_ROCKCHIP=y
CONFIG_ETH_DESIGNWARE=y
CONFIG_GMAC_ROCKCHIP=y
CONFIG_PHY_ROCKCHIP_INNO_USB2=y
+CONFIG_SPL_PINCTRL=y
CONFIG_REGULATOR_PWM=y
CONFIG_DM_REGULATOR_FIXED=y
CONFIG_PWM_ROCKCHIP=y
--
2.34.1
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH v3 2/2] configs: rockchip: rock5b-rk3588: add pinctrl to SPL
2023-04-17 10:06 ` [PATCH v3 2/2] configs: rockchip: rock5b-rk3588: add pinctrl to SPL Eugen Hristev
@ 2023-04-20 6:54 ` Kever Yang
0 siblings, 0 replies; 4+ messages in thread
From: Kever Yang @ 2023-04-20 6:54 UTC (permalink / raw)
To: Eugen Hristev, u-boot, jonas; +Cc: jagan
On 2023/4/17 18:06, Eugen Hristev wrote:
> Add pinctrl driver in SPL. Do not remove pinctrl properties for SPL dtb.
>
> Signed-off-by: Eugen Hristev <eugen.hristev@collabora.com>
Reviewed-by: Kever Yang <kever.yang@rock-chips.com>
Thanks,
- Kever
> ---
> Changes in v2,v3:
> - no change
>
> configs/rock5b-rk3588_defconfig | 3 ++-
> 1 file changed, 2 insertions(+), 1 deletion(-)
>
> diff --git a/configs/rock5b-rk3588_defconfig b/configs/rock5b-rk3588_defconfig
> index f198575f47cc..b34a74736239 100644
> --- a/configs/rock5b-rk3588_defconfig
> +++ b/configs/rock5b-rk3588_defconfig
> @@ -47,7 +47,7 @@ CONFIG_CMD_REGULATOR=y
> # CONFIG_SPL_DOS_PARTITION is not set
> CONFIG_SPL_OF_CONTROL=y
> CONFIG_OF_LIVE=y
> -CONFIG_OF_SPL_REMOVE_PROPS="pinctrl-0 pinctrl-names clock-names interrupt-parent assigned-clocks assigned-clock-rates assigned-clock-parents"
> +CONFIG_OF_SPL_REMOVE_PROPS="clock-names interrupt-parent assigned-clocks assigned-clock-rates assigned-clock-parents"
> CONFIG_NET_RANDOM_ETHADDR=y
> CONFIG_SPL_REGMAP=y
> CONFIG_SPL_SYSCON=y
> @@ -64,6 +64,7 @@ CONFIG_MMC_SDHCI_ROCKCHIP=y
> CONFIG_ETH_DESIGNWARE=y
> CONFIG_GMAC_ROCKCHIP=y
> CONFIG_PHY_ROCKCHIP_INNO_USB2=y
> +CONFIG_SPL_PINCTRL=y
> CONFIG_REGULATOR_PWM=y
> CONFIG_DM_REGULATOR_FIXED=y
> CONFIG_PWM_ROCKCHIP=y
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH v3 1/2] ARM: dts: rk3588-rock-5b-u-boot: add bootph-all to pinctrl for sdmmc
2023-04-17 10:06 [PATCH v3 1/2] ARM: dts: rk3588-rock-5b-u-boot: add bootph-all to pinctrl for sdmmc Eugen Hristev
2023-04-17 10:06 ` [PATCH v3 2/2] configs: rockchip: rock5b-rk3588: add pinctrl to SPL Eugen Hristev
@ 2023-04-20 6:54 ` Kever Yang
1 sibling, 0 replies; 4+ messages in thread
From: Kever Yang @ 2023-04-20 6:54 UTC (permalink / raw)
To: Eugen Hristev, u-boot, jonas; +Cc: jagan
On 2023/4/17 18:06, Eugen Hristev wrote:
> To be able to initialize the pinctrl correctly at SPL level and read
> u-boot proper from SD-Card, the pinctrl must be initialized.
>
> Signed-off-by: Eugen Hristev <eugen.hristev@collabora.com>
Reviewed-by: Kever Yang <kever.yang@rock-chips.com>
Thanks,
- Kever
> ---
> Changes in v3:
> - change to bootph-all props.
>
> Changes in v2:
> - add u-boot,dm-spl to pull up nodes, to also setup the pull control
> correctly. Also, in the loop that initializes multiple pins, only the
> first will be muxed as the loop will break when the pull up node is not
> found.
>
> arch/arm/dts/rk3588-rock-5b-u-boot.dtsi | 26 +++++++++++++++++++++++++
> 1 file changed, 26 insertions(+)
>
> diff --git a/arch/arm/dts/rk3588-rock-5b-u-boot.dtsi b/arch/arm/dts/rk3588-rock-5b-u-boot.dtsi
> index 1e87854acd6d..091b036707a8 100644
> --- a/arch/arm/dts/rk3588-rock-5b-u-boot.dtsi
> +++ b/arch/arm/dts/rk3588-rock-5b-u-boot.dtsi
> @@ -38,6 +38,8 @@
> };
>
> &pinctrl {
> + bootph-all;
> +
> usb {
> vcc5v0_host_en: vcc5v0-host-en {
> rockchip,pins = <4 RK_PB0 RK_FUNC_GPIO &pcfg_pull_none>;
> @@ -45,6 +47,30 @@
> };
> };
>
> +&pcfg_pull_up_drv_level_2 {
> + bootph-all;
> +};
> +
> +&pcfg_pull_up {
> + bootph-all;
> +};
> +
> +&sdmmc_bus4 {
> + bootph-all;
> +};
> +
> +&sdmmc_clk {
> + bootph-all;
> +};
> +
> +&sdmmc_cmd {
> + bootph-all;
> +};
> +
> +&sdmmc_det {
> + bootph-all;
> +};
> +
> &usb_host0_ehci {
> companion = <&usb_host0_ohci>;
> phys = <&u2phy2_host>;
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2023-04-20 6:55 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-04-17 10:06 [PATCH v3 1/2] ARM: dts: rk3588-rock-5b-u-boot: add bootph-all to pinctrl for sdmmc Eugen Hristev
2023-04-17 10:06 ` [PATCH v3 2/2] configs: rockchip: rock5b-rk3588: add pinctrl to SPL Eugen Hristev
2023-04-20 6:54 ` Kever Yang
2023-04-20 6:54 ` [PATCH v3 1/2] ARM: dts: rk3588-rock-5b-u-boot: add bootph-all to pinctrl for sdmmc Kever Yang
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox