* [RFC PATCH] arm64: dts: rockchip: Fix microSD card detect for Radxa ROCK 5 ITX
@ 2025-11-10 3:00 FUKAUMI Naoki
2025-11-10 3:16 ` FUKAUMI Naoki
2025-11-10 14:34 ` Rob Herring (Arm)
0 siblings, 2 replies; 5+ messages in thread
From: FUKAUMI Naoki @ 2025-11-10 3:00 UTC (permalink / raw)
To: heiko
Cc: robh, krzk+dt, conor+dt, andy.yan, dmitry.baryshkov,
sebastian.reichel, devicetree, linux-rockchip, FUKAUMI Naoki
Due to the discussion about cd-gpios and sdmmmc_det pin
functionality[1], it would be better to use cd-gpios for now.
[1] https://lore.kernel.org/linux-rockchip/20240912152538.1.I858c2a0bf83606c8b59ba1ab6944978a398d2ac5@changeid/T/#u
Fixes: 31390eb8ffbf2 ("arm64: dts: rockchip: add ROCK 5 ITX board")
Signed-off-by: FUKAUMI Naoki <naoki@radxa.com>
---
arch/arm64/boot/dts/rockchip/rk3588-rock-5-itx.dts | 9 ++++++++-
1 file changed, 8 insertions(+), 1 deletion(-)
diff --git a/arch/arm64/boot/dts/rockchip/rk3588-rock-5-itx.dts b/arch/arm64/boot/dts/rockchip/rk3588-rock-5-itx.dts
index bc8140883de47..391c6482e8ee3 100644
--- a/arch/arm64/boot/dts/rockchip/rk3588-rock-5-itx.dts
+++ b/arch/arm64/boot/dts/rockchip/rk3588-rock-5-itx.dts
@@ -670,6 +670,12 @@ led_pins: led-pins {
};
};
+ mmc {
+ sdmmc_det_gpio: sdmmc-det-gpio {
+ rockchip,pins = <0 RK_PA4 RK_FUNC_GPIO &pcfg_pull_none>;
+ };
+ };
+
pcie {
pcie20x1_2_perstn: pcie20x1-2-perstn {
rockchip,pins = <3 RK_PB0 RK_FUNC_GPIO &pcfg_pull_none>;
@@ -795,12 +801,13 @@ &sdmmc {
bus-width = <4>;
cap-mmc-highspeed;
cap-sd-highspeed;
+ cd-gpios = <&gpio0 RK_PA4 GPIO_ACTIVE_LOW>;
disable-wp;
max-frequency = <200000000>;
no-sdio;
no-mmc;
pinctrl-names = "default";
- pinctrl-0 = <&sdmmc_bus4 &sdmmc_clk &sdmmc_cmd &sdmmc_det>;
+ pinctrl-0 = <&sdmmc_bus4 &sdmmc_clk &sdmmc_cmd &sdmmc_det_gpio>;
sd-uhs-sdr104;
vmmc-supply = <&vcc_3v3_s3>;
vqmmc-supply = <&vccio_sd_s0>;
--
2.43.0
^ permalink raw reply related [flat|nested] 5+ messages in thread
* Re: [RFC PATCH] arm64: dts: rockchip: Fix microSD card detect for Radxa ROCK 5 ITX
2025-11-10 3:00 [RFC PATCH] arm64: dts: rockchip: Fix microSD card detect for Radxa ROCK 5 ITX FUKAUMI Naoki
@ 2025-11-10 3:16 ` FUKAUMI Naoki
2025-11-10 10:05 ` Heiko Stübner
2025-11-10 14:34 ` Rob Herring (Arm)
1 sibling, 1 reply; 5+ messages in thread
From: FUKAUMI Naoki @ 2025-11-10 3:16 UTC (permalink / raw)
To: heiko
Cc: robh, krzk+dt, conor+dt, andy.yan, dmitry.baryshkov,
sebastian.reichel, devicetree, linux-rockchip
Hi,
On 11/10/25 12:00, FUKAUMI Naoki wrote:
> Due to the discussion about cd-gpios and sdmmmc_det pin
> functionality[1], it would be better to use cd-gpios for now.
>
> [1] https://lore.kernel.org/linux-rockchip/20240912152538.1.I858c2a0bf83606c8b59ba1ab6944978a398d2ac5@changeid/T/#u
>
> Fixes: 31390eb8ffbf2 ("arm64: dts: rockchip: add ROCK 5 ITX board")
> Signed-off-by: FUKAUMI Naoki <naoki@radxa.com>
> ---
> arch/arm64/boot/dts/rockchip/rk3588-rock-5-itx.dts | 9 ++++++++-
> 1 file changed, 8 insertions(+), 1 deletion(-)
>
> diff --git a/arch/arm64/boot/dts/rockchip/rk3588-rock-5-itx.dts b/arch/arm64/boot/dts/rockchip/rk3588-rock-5-itx.dts
> index bc8140883de47..391c6482e8ee3 100644
> --- a/arch/arm64/boot/dts/rockchip/rk3588-rock-5-itx.dts
> +++ b/arch/arm64/boot/dts/rockchip/rk3588-rock-5-itx.dts
> @@ -670,6 +670,12 @@ led_pins: led-pins {
> };
> };
>
> + mmc {
> + sdmmc_det_gpio: sdmmc-det-gpio {
> + rockchip,pins = <0 RK_PA4 RK_FUNC_GPIO &pcfg_pull_none>;
> + };
> + };
> +
I got following error:
$ make CHECK_DTBS=y rockchip/rk3588-rock-5-itx.dtb
UPD include/config/kernel.release
DTC [C] arch/arm64/boot/dts/rockchip/rk3588-rock-5-itx.dtb
/home/radxa/linux/arch/arm64/boot/dts/rockchip/rk3588-rock-5-itx.dtb:
mmc: sdmmc-det-gpio: {'rockchip,pins': [[0, 4, 0, 270]], 'phandle': 145}
is not of type 'array'
from schema $id: http://devicetree.org/schemas/gpio/gpio-consumer.yaml#
What's wrong?
Best regards,
--
FUKAUMI Naoki
Radxa Computer (Shenzhen) Co., Ltd.
> pcie {
> pcie20x1_2_perstn: pcie20x1-2-perstn {
> rockchip,pins = <3 RK_PB0 RK_FUNC_GPIO &pcfg_pull_none>;
> @@ -795,12 +801,13 @@ &sdmmc {
> bus-width = <4>;
> cap-mmc-highspeed;
> cap-sd-highspeed;
> + cd-gpios = <&gpio0 RK_PA4 GPIO_ACTIVE_LOW>;
> disable-wp;
> max-frequency = <200000000>;
> no-sdio;
> no-mmc;
> pinctrl-names = "default";
> - pinctrl-0 = <&sdmmc_bus4 &sdmmc_clk &sdmmc_cmd &sdmmc_det>;
> + pinctrl-0 = <&sdmmc_bus4 &sdmmc_clk &sdmmc_cmd &sdmmc_det_gpio>;
> sd-uhs-sdr104;
> vmmc-supply = <&vcc_3v3_s3>;
> vqmmc-supply = <&vccio_sd_s0>;
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [RFC PATCH] arm64: dts: rockchip: Fix microSD card detect for Radxa ROCK 5 ITX
2025-11-10 3:16 ` FUKAUMI Naoki
@ 2025-11-10 10:05 ` Heiko Stübner
2025-11-10 10:19 ` FUKAUMI Naoki
0 siblings, 1 reply; 5+ messages in thread
From: Heiko Stübner @ 2025-11-10 10:05 UTC (permalink / raw)
To: FUKAUMI Naoki
Cc: robh, krzk+dt, conor+dt, andy.yan, dmitry.baryshkov,
sebastian.reichel, devicetree, linux-rockchip
Hi,
Am Montag, 10. November 2025, 04:16:37 Mitteleuropäische Normalzeit schrieb FUKAUMI Naoki:
> On 11/10/25 12:00, FUKAUMI Naoki wrote:
> > Due to the discussion about cd-gpios and sdmmmc_det pin
> > functionality[1], it would be better to use cd-gpios for now.
> >
> > [1] https://lore.kernel.org/linux-rockchip/20240912152538.1.I858c2a0bf83606c8b59ba1ab6944978a398d2ac5@changeid/T/#u
> >
> > Fixes: 31390eb8ffbf2 ("arm64: dts: rockchip: add ROCK 5 ITX board")
> > Signed-off-by: FUKAUMI Naoki <naoki@radxa.com>
> > ---
> > arch/arm64/boot/dts/rockchip/rk3588-rock-5-itx.dts | 9 ++++++++-
> > 1 file changed, 8 insertions(+), 1 deletion(-)
> >
> > diff --git a/arch/arm64/boot/dts/rockchip/rk3588-rock-5-itx.dts b/arch/arm64/boot/dts/rockchip/rk3588-rock-5-itx.dts
> > index bc8140883de47..391c6482e8ee3 100644
> > --- a/arch/arm64/boot/dts/rockchip/rk3588-rock-5-itx.dts
> > +++ b/arch/arm64/boot/dts/rockchip/rk3588-rock-5-itx.dts
> > @@ -670,6 +670,12 @@ led_pins: led-pins {
> > };
> > };
> >
> > + mmc {
> > + sdmmc_det_gpio: sdmmc-det-gpio {
> > + rockchip,pins = <0 RK_PA4 RK_FUNC_GPIO &pcfg_pull_none>;
> > + };
> > + };
> > +
>
> I got following error:
>
> $ make CHECK_DTBS=y rockchip/rk3588-rock-5-itx.dtb
> UPD include/config/kernel.release
> DTC [C] arch/arm64/boot/dts/rockchip/rk3588-rock-5-itx.dtb
> /home/radxa/linux/arch/arm64/boot/dts/rockchip/rk3588-rock-5-itx.dtb:
> mmc: sdmmc-det-gpio: {'rockchip,pins': [[0, 4, 0, 270]], 'phandle': 145}
> is not of type 'array'
> from schema $id: http://devicetree.org/schemas/gpio/gpio-consumer.yaml#
>
> What's wrong?
the problem is the "-gpio" in the pinctrl node-name,which triggers
a pattern matching against a normal gpios property.
So ideally rename sdmmc-det-gpio to sdmmc-det-pin or so.
Hope that helps
Heiko
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [RFC PATCH] arm64: dts: rockchip: Fix microSD card detect for Radxa ROCK 5 ITX
2025-11-10 10:05 ` Heiko Stübner
@ 2025-11-10 10:19 ` FUKAUMI Naoki
0 siblings, 0 replies; 5+ messages in thread
From: FUKAUMI Naoki @ 2025-11-10 10:19 UTC (permalink / raw)
To: Heiko Stübner
Cc: robh, krzk+dt, conor+dt, andy.yan, dmitry.baryshkov,
sebastian.reichel, devicetree, linux-rockchip
Hi Heiko,
On 11/10/25 19:05, Heiko Stübner wrote:
> Hi,
>
> Am Montag, 10. November 2025, 04:16:37 Mitteleuropäische Normalzeit schrieb FUKAUMI Naoki:
>> On 11/10/25 12:00, FUKAUMI Naoki wrote:
>>> Due to the discussion about cd-gpios and sdmmmc_det pin
>>> functionality[1], it would be better to use cd-gpios for now.
>>>
>>> [1] https://lore.kernel.org/linux-rockchip/20240912152538.1.I858c2a0bf83606c8b59ba1ab6944978a398d2ac5@changeid/T/#u
>>>
>>> Fixes: 31390eb8ffbf2 ("arm64: dts: rockchip: add ROCK 5 ITX board")
>>> Signed-off-by: FUKAUMI Naoki <naoki@radxa.com>
>>> ---
>>> arch/arm64/boot/dts/rockchip/rk3588-rock-5-itx.dts | 9 ++++++++-
>>> 1 file changed, 8 insertions(+), 1 deletion(-)
>>>
>>> diff --git a/arch/arm64/boot/dts/rockchip/rk3588-rock-5-itx.dts b/arch/arm64/boot/dts/rockchip/rk3588-rock-5-itx.dts
>>> index bc8140883de47..391c6482e8ee3 100644
>>> --- a/arch/arm64/boot/dts/rockchip/rk3588-rock-5-itx.dts
>>> +++ b/arch/arm64/boot/dts/rockchip/rk3588-rock-5-itx.dts
>>> @@ -670,6 +670,12 @@ led_pins: led-pins {
>>> };
>>> };
>>>
>>> + mmc {
>>> + sdmmc_det_gpio: sdmmc-det-gpio {
>>> + rockchip,pins = <0 RK_PA4 RK_FUNC_GPIO &pcfg_pull_none>;
>>> + };
>>> + };
>>> +
>>
>> I got following error:
>>
>> $ make CHECK_DTBS=y rockchip/rk3588-rock-5-itx.dtb
>> UPD include/config/kernel.release
>> DTC [C] arch/arm64/boot/dts/rockchip/rk3588-rock-5-itx.dtb
>> /home/radxa/linux/arch/arm64/boot/dts/rockchip/rk3588-rock-5-itx.dtb:
>> mmc: sdmmc-det-gpio: {'rockchip,pins': [[0, 4, 0, 270]], 'phandle': 145}
>> is not of type 'array'
>> from schema $id: http://devicetree.org/schemas/gpio/gpio-consumer.yaml#
>>
>> What's wrong?
>
> the problem is the "-gpio" in the pinctrl node-name,which triggers
> a pattern matching against a normal gpios property.
>
> So ideally rename sdmmc-det-gpio to sdmmc-det-pin or so.
sdmmc-det-pin works! Thanks!
I'll send v2 with this fix.
Best regards,
--
FUKAUMI Naoki
Radxa Computer (Shenzhen) Co., Ltd.
> Hope that helps
> Heiko
>
>
>
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [RFC PATCH] arm64: dts: rockchip: Fix microSD card detect for Radxa ROCK 5 ITX
2025-11-10 3:00 [RFC PATCH] arm64: dts: rockchip: Fix microSD card detect for Radxa ROCK 5 ITX FUKAUMI Naoki
2025-11-10 3:16 ` FUKAUMI Naoki
@ 2025-11-10 14:34 ` Rob Herring (Arm)
1 sibling, 0 replies; 5+ messages in thread
From: Rob Herring (Arm) @ 2025-11-10 14:34 UTC (permalink / raw)
To: FUKAUMI Naoki
Cc: andy.yan, dmitry.baryshkov, heiko, krzk+dt, devicetree,
linux-rockchip, conor+dt, sebastian.reichel
On Mon, 10 Nov 2025 03:00:36 +0000, FUKAUMI Naoki wrote:
> Due to the discussion about cd-gpios and sdmmmc_det pin
> functionality[1], it would be better to use cd-gpios for now.
>
> [1] https://lore.kernel.org/linux-rockchip/20240912152538.1.I858c2a0bf83606c8b59ba1ab6944978a398d2ac5@changeid/T/#u
>
> Fixes: 31390eb8ffbf2 ("arm64: dts: rockchip: add ROCK 5 ITX board")
> Signed-off-by: FUKAUMI Naoki <naoki@radxa.com>
> ---
> arch/arm64/boot/dts/rockchip/rk3588-rock-5-itx.dts | 9 ++++++++-
> 1 file changed, 8 insertions(+), 1 deletion(-)
>
My bot found new DTB warnings on the .dts files added or changed in this
series.
Some warnings may be from an existing SoC .dtsi. Or perhaps the warnings
are fixed by another series. Ultimately, it is up to the platform
maintainer whether these warnings are acceptable or not. No need to reply
unless the platform maintainer has comments.
If you already ran DT checks and didn't see these error(s), then
make sure dt-schema is up to date:
pip3 install dtschema --upgrade
This patch series was applied (using b4) to base:
Base: attempting to guess base-commit...
Base: tags/next-20251107 (exact match)
Base: tags/next-20251107 (use --merge-base to override)
If this is not the correct base, please add 'base-commit' tag
(or use b4 which does this automatically)
New warnings running 'make CHECK_DTBS=y for arch/arm64/boot/dts/rockchip/' for 20251110030036.825150-1-naoki@radxa.com:
arch/arm64/boot/dts/rockchip/rk3588-rock-5-itx.dtb: mmc: sdmmc-det-gpio: {'rockchip,pins': [[0, 4, 0, 270]], 'phandle': 145} is not of type 'array'
from schema $id: http://devicetree.org/schemas/gpio/gpio-consumer.yaml
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2025-11-10 14:34 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-11-10 3:00 [RFC PATCH] arm64: dts: rockchip: Fix microSD card detect for Radxa ROCK 5 ITX FUKAUMI Naoki
2025-11-10 3:16 ` FUKAUMI Naoki
2025-11-10 10:05 ` Heiko Stübner
2025-11-10 10:19 ` FUKAUMI Naoki
2025-11-10 14:34 ` Rob Herring (Arm)
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).