From: sashiko-bot@kernel.org
To: "Saeed Nourian" <saeednourian82@gmail.com>
Cc: devicetree@vger.kernel.org, robh@kernel.org, conor+dt@kernel.org
Subject: Re: [PATCH 2/2] arm64: dts: rockchip: Add Firefly AIO-3588Q
Date: Wed, 25 Nov 2026 12:06:30 +0000 [thread overview]
Message-ID: <sashiko-outbox-233335@kernel.org> (raw)
In-Reply-To: <20261125114757.654051-3-saeednourian82@gmail.com>
Thank you for your contribution! Sashiko AI review found 5 potential
issues to consider:
- [High] arm64: dts: rockchip: missing domain-supply on pd_gpu and
pd_npu
- [Medium] arm64: dts: rockchip: deprecated snps,reset-* properties on
gmac0/1
- [Medium] arm64: dts: rockchip: tsadc left disabled and pwm-fan
unmapped
- [Medium] arm64: dts: rockchip: sdmmc uses broken-cd instead of
cd-gpios
- [Low] arm64: dts: rockchip: missing GPIO pinctrl for pcie3x4 and PHY
resets
--
commit 941a7a1be6e86ac4e133cb78a5dcd1d5cdaff5f1
Author: Saeed Nourian <saeednourian82@gmail.com>
arm64: dts: rockchip: Add Firefly AIO-3588Q
This commit adds a devicetree for the Firefly AIO-3588Q carrier board,
which hosts the Firefly iCore-3588Q SoM.
> diff --git a/arch/arm64/boot/dts/rockchip/rk3588-firefly-aio-3588q.dts b/arch/arm64/boot/dts/rockchip/rk3588-firefly-aio-3588q.dts
> new file mode 100644
> index 0000000000000..a37f16260beb9
> --- /dev/null
> +++ b/arch/arm64/boot/dts/rockchip/rk3588-firefly-aio-3588q.dts
[ ... ]
> + fan: pwm-fan {
> + compatible = "pwm-fan";
> + #cooling-cells = <2>;
> + cooling-levels = <0 50 100 150 200 255>;
> + fan-supply = <&vcc12v_dcin>;
> + pwms = <&pwm15 0 50000 0>;
> + };
[Severity: Medium]
Should this board also enable &tsadc and bind &fan to a thermal zone via
cooling-maps?
rk3588-base.dtsi leaves &tsadc disabled, and rk3588-firefly-icore-3588q.dtsi
does not enable it either. Without &tsadc enabled and cooling-maps
referencing &fan, all seven SoC thermal zones, passive CPU/GPU thermal
throttling, hardware over-temperature shutdown, and automatic fan control
remain inactive.
[ ... ]
> +&gmac0 {
> + clock_in_out = "output";
> + phy-handle = <&rgmii_phy0>;
> + /*
> + * The PHY supplies the RGMII RX delay (rgmii-rxid), so the one in
> + * the SoC is disabled; the TX delay still comes from the SoC.
> + */
> + phy-mode = "rgmii-rxid";
> + pinctrl-names = "default";
> + pinctrl-0 = <&gmac0_miim
> + &gmac0_tx_bus2
> + &gmac0_rx_bus2
> + &gmac0_rgmii_clk
> + &gmac0_rgmii_bus>;
> + snps,reset-gpio = <&gpio3 RK_PC7 GPIO_ACTIVE_LOW>;
> + snps,reset-active-low;
> + /* Reset time is 20ms, 100ms for rtl8211f */
> + snps,reset-delays-us = <0 20000 100000>;
> + rx_delay = <0x00>;
> + tx_delay = <0x47>;
> + status = "okay";
> +};
> +
> +&gmac1 {
> + clock_in_out = "output";
> + phy-handle = <&rgmii_phy1>;
> + /*
> + * The PHY supplies the RGMII RX delay (rgmii-rxid), so the one in
> + * the SoC is disabled; the TX delay still comes from the SoC.
> + */
> + phy-mode = "rgmii-rxid";
> + pinctrl-names = "default";
> + pinctrl-0 = <&gmac1_miim
> + &gmac1_tx_bus2
> + &gmac1_rx_bus2
> + &gmac1_rgmii_clk
> + &gmac1_rgmii_bus>;
> + snps,reset-gpio = <&gpio3 RK_PB7 GPIO_ACTIVE_LOW>;
> + snps,reset-active-low;
> + /* Reset time is 20ms, 100ms for rtl8211f */
> + snps,reset-delays-us = <0 20000 100000>;
> + rx_delay = <0x00>;
> + tx_delay = <0x4f>;
> + status = "okay";
> +};
[Severity: Medium]
Should the RTL8211F PHY reset properties be placed on the rgmii_phy0 and
rgmii_phy1 child nodes instead of using snps,reset-* on &gmac0 and &gmac1?
snps,reset-gpio, snps,reset-active-low, and snps,reset-delays-us are
deprecated in snps,dwmac.yaml. In stmmac_mdio_reset(), the driver requests
snps,reset-gpio via devm_gpiod_get_optional() on each MDIO bus reset
without releasing it, which fails with -EBUSY if the MDIO bus is reset more
than once and bypasses phylib per-PHY reset handling. Moving these to
reset-gpios, reset-assert-us = <20000>, and reset-deassert-us = <100000> on
rgmii_phy0 and rgmii_phy1 lets phylib manage the resets.
> +
> +&gpu {
> + mali-supply = <&vdd_gpu_s0>;
> + sram-supply = <&vdd_gpu_mem_s0>;
> + status = "okay";
> +};
[Severity: High]
Are &pd_gpu and &pd_npu missing domain-supply properties for <&vdd_gpu_s0>
and <&vdd_npu_s0>?
In rk3588_pm_domains[], both RK3588_PD_GPU and RK3588_PD_NPU set
need_regulator = true, and rk3588-firefly-icore-3588q.dtsi marks
vdd_gpu_s0 as regulator-boot-on rather than regulator-always-on without
wiring domain-supply on &pd_gpu or &pd_npu. If panthor probes after unused
boot-on regulators are turned off (or across a driver unbind/rebind), genpd
powers on RK3588_PD_GPU before panthor enables mali-supply, hanging the SoC
as described in f94500eb7328 ("arm64: dts: rockchip: Add GPU power domain
regulator dependency for RK3588").
[ ... ]
> +&pcie3x4 {
> + reset-gpios = <&gpio4 RK_PB6 GPIO_ACTIVE_HIGH>;
> + vpcie3v3-supply = <&vcc3v3_pcie30>;
> + status = "okay";
> +};
> +
> +&pinctrl {
> + hym8563 {
> + hym8563_int: hym8563-int {
> + rockchip,pins = <0 RK_PB0 RK_FUNC_GPIO &pcfg_pull_up>;
> + };
> + };
> +
> + leds {
> + led_pins: led-pins {
> + rockchip,pins = <3 RK_PB2 RK_FUNC_GPIO &pcfg_pull_none>;
> + };
> + };
> +
> + pcie3 {
> + pcie3_vcc3v3_en: pcie3-vcc3v3-en {
> + rockchip,pins = <4 RK_PC6 RK_FUNC_GPIO &pcfg_pull_none>;
> + };
> + };
> +};
[Severity: Low]
Should &pinctrl also define RK_FUNC_GPIO pin configurations for the
&pcie3x4 reset GPIO (gpio4 RK_PB6) and the two Ethernet PHY reset GPIOs
(gpio3 RK_PC7 and gpio3 RK_PB7)?
Without pinctrl entries and pinctrl-0 references on those nodes, pin muxing
and bias on the reset lines are left at hardware or bootloader defaults.
[ ... ]
> +&sdmmc {
> + /* card detect does not generate events on this board, poll instead */
> + broken-cd;
> + bus-width = <4>;
> + cap-sd-highspeed;
> + disable-wp;
> + max-frequency = <150000000>;
> + no-mmc;
> + no-sdio;
> + sd-uhs-sdr104;
> + vmmc-supply = <&vcc3v3_sd>;
> + vqmmc-supply = <&vccio_sd_s0>;
> + status = "okay";
> +};
[Severity: Medium]
Could the missing card detect events be caused by inheriting the default
sdmmc_det pin mux from rk3588-base.dtsi instead of using cd-gpios?
In rk3588-base.dtsi, &sdmmc defaults to pinctrl-0 = <&sdmmc_clk &sdmmc_cmd
&sdmmc_det &sdmmc_bus4> inside RK3588_PD_SDMMC; once dw_mmc-rockchip
runtime-suspends and powers off RK3588_PD_SDMMC, the controller's internal
sdmmc_det logic can no longer detect card insertions, as noted in
c7a9549ce46e ("arm64: dts: rockchip: Switch microSD card detect to gpio on
Radxa ROCK 5 ITX/5C"). With broken-cd set instead, dw_mci_get_cd() always
reports a card present and polls every second whenever the slot is empty,
repeatedly powering on RK3588_PD_SDMMC and toggling vcc3v3_sd over I2C
while gpio0 RK_PA4 remains muxed to sdmmc_det. Using cd-gpios = <&gpio0
RK_PA4 GPIO_ACTIVE_LOW> and overriding pinctrl-0 to omit &sdmmc_det routes
card detection through the always-on gpio0 controller.
--
Sashiko AI review · https://sashiko.dev/#/patchset/20261125114757.654051-1-saeednourian82@gmail.com?part=2
prev parent reply other threads:[~2026-11-25 12:06 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-25 11:47 [PATCH 0/2] arm64: dts: rockchip: Add Firefly AIO-3588Q Saeed Nourian
2026-11-25 11:47 ` [PATCH 1/2] dt-bindings: arm: " Saeed Nourian
2026-11-25 11:47 ` [PATCH 2/2] arm64: dts: " Saeed Nourian
2026-11-25 12:06 ` sashiko-bot [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=sashiko-outbox-233335@kernel.org \
--to=sashiko-bot@kernel.org \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=robh@kernel.org \
--cc=saeednourian82@gmail.com \
--cc=sashiko-reviews@lists.linux.dev \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox