* [PATCH 0/2] arm64: dts: rockchip: Add Firefly AIO-3588Q
@ 2026-11-25 11:47 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
0 siblings, 2 replies; 4+ messages in thread
From: Saeed Nourian @ 2026-11-25 11:47 UTC (permalink / raw)
To: Heiko Stuebner, linux-rockchip
Cc: Rob Herring, Krzysztof Kozlowski, Conor Dooley, devicetree,
linux-arm-kernel, linux-kernel, Saeed Nourian
Add a device tree for the Firefly AIO-3588Q, an AIO carrier board for the
iCore-3588Q system-on-module.
The module itself is already described by rk3588-firefly-icore-3588q.dtsi,
so the new file only describes the carrier: the two RGMII Ethernet ports
with their RTL8211F PHYs, microSD, the USB hubs and ports, the PCIe 3.0 x4
slot, the M.2 PCIe slot, the PCA9555 GPIO expander, the HYM8563 RTC, the
fan, the LEDs, the recovery key on SARADC channel 1 and the three Rocket
NPU cores.
Besides the board bring-up itself, this series enables the RK3588 NPU
on mainline. The three cores and their IOMMUs come from the SoC dtsi
and are bound by the Rocket accel driver; all this board has to supply
is npu-supply and sram-supply. Testing details are below.
The first patch only adds the compatible string to the existing "Firefly
iCore-3588Q-based boards" enum.
Tested on hardware with Linux 7.4-rc1 (for-next, e19bd795e8, plus this
series), booted from TFTP with a RAM-only initramfs, without touching the
existing image on the eMMC:
- eMMC comes up in HS400 Enhanced strobe, all existing partitions intact
- both GMACs bind, RTL8211F is detected on both MDIO buses, and both
ports link up at 1 Gbit/s and pass ICMP traffic cleanly
- the GL3523 hub enumerates on both its USB 2.0 and USB 3.0 side, the
four type-A ports are its downstream ports and a USB 2.0 device works
on each of them; the onboard FE1.1S hub enumerates on the EHCI port
- a microSD card enumerates as UHS-I SDR104; no card detect events were
seen, so broken-cd is set and the slot is polled
- both PCIe host bridges come up (both slots were empty during the test)
- the PMIC regulators, PCA9555 and HYM8563 (rtc0) are present on I2C
- NPU: all three cores probe and report "Rockchip NPU core N version:
1179210309", the IOMMUs attach, /dev/accel/accel0 is created, and
a runtime probe through it passes
- the devicetree has no deferred devices
The hub RESET# lines are wired to the PCA9555 and are released with
gpio-hog nodes; describing the hubs themselves is left for later. The
display outputs (HDMI0, DP0, VGA through DP1, eDP, DSI0), the Type-C port,
the ES8388 audio codec, HDMI-in, the camera connectors and the 4G/5G modem
are not described yet and are left for follow-up patches. PCA9555 line 3
is used both as the user LED and as an SD power enable; only the LED is
modelled here, and the card slot is powered through line 13.
AI coding assistants were used to help prepare the DTS (cross-checking the
board's hardware description and some of the edits, mainly the USB hub
nodes). I reviewed all of it and tested the result on the board.
Saeed Nourian (2):
dt-bindings: arm: rockchip: Add Firefly AIO-3588Q
arm64: dts: rockchip: Add Firefly AIO-3588Q
.../devicetree/bindings/arm/rockchip.yaml | 1 +
arch/arm64/boot/dts/rockchip/Makefile | 1 +
.../dts/rockchip/rk3588-firefly-aio-3588q.dts | 434 ++++++++++++++++++
3 files changed, 436 insertions(+)
create mode 100644 arch/arm64/boot/dts/rockchip/rk3588-firefly-aio-3588q.dts
--
2.43.0
^ permalink raw reply [flat|nested] 4+ messages in thread* [PATCH 1/2] dt-bindings: arm: rockchip: Add Firefly AIO-3588Q
2026-11-25 11:47 [PATCH 0/2] arm64: dts: rockchip: Add Firefly AIO-3588Q Saeed Nourian
@ 2026-11-25 11:47 ` Saeed Nourian
2026-11-25 11:47 ` [PATCH 2/2] arm64: dts: " Saeed Nourian
1 sibling, 0 replies; 4+ messages in thread
From: Saeed Nourian @ 2026-11-25 11:47 UTC (permalink / raw)
To: Heiko Stuebner, linux-rockchip
Cc: Rob Herring, Krzysztof Kozlowski, Conor Dooley, devicetree,
linux-arm-kernel, linux-kernel, Saeed Nourian
The AIO-3588Q is an RK3588 board from Firefly built from an iCore-3588Q
SoM on a carrier board. Add its compatible next to the other boards
based on the iCore-3588Q module.
Signed-off-by: Saeed Nourian <saeednourian82@gmail.com>
---
Documentation/devicetree/bindings/arm/rockchip.yaml | 1 +
1 file changed, 1 insertion(+)
diff --git a/Documentation/devicetree/bindings/arm/rockchip.yaml b/Documentation/devicetree/bindings/arm/rockchip.yaml
index 744b364fb7..2fb93380dd 100644
--- a/Documentation/devicetree/bindings/arm/rockchip.yaml
+++ b/Documentation/devicetree/bindings/arm/rockchip.yaml
@@ -260,6 +260,7 @@ properties:
- description: Firefly iCore-3588Q-based boards
items:
- enum:
+ - firefly,aio-3588q
- mntre,reform2-rcore
- const: firefly,icore-3588q
- const: rockchip,rk3588
--
2.43.0
^ permalink raw reply related [flat|nested] 4+ messages in thread* [PATCH 2/2] arm64: dts: rockchip: Add Firefly AIO-3588Q
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 ` Saeed Nourian
2026-11-25 12:06 ` sashiko-bot
1 sibling, 1 reply; 4+ messages in thread
From: Saeed Nourian @ 2026-11-25 11:47 UTC (permalink / raw)
To: Heiko Stuebner, linux-rockchip
Cc: Rob Herring, Krzysztof Kozlowski, Conor Dooley, devicetree,
linux-arm-kernel, linux-kernel, Saeed Nourian
The AIO-3588Q is an RK3588 board from Firefly built from an iCore-3588Q
SoM on a carrier board. The SoM part (PMIC, CPU and NPU rails, eMMC and
debug UART) is already described by rk3588-firefly-icore-3588q.dtsi, so
this only describes the carrier:
- two RGMII Ethernet ports (RTL8211F PHYs)
- microSD slot
- USB 2.0 and 3.0 type-A ports behind a GL3523 hub, plus the onboard
FE1.1S hub
- PCIe 3.0 x4 slot and an M.2 PCIe 2.1 slot
- PCA9555 GPIO expander, HYM8563 RTC, fan, LEDs and the recovery button
- the three NPU cores, powered through npu-supply and sram-supply
The hub RESET# lines are wired to the PCA9555 and are released with
gpio-hog nodes. Describing the hubs themselves is left for later.
No card detect events were seen from the microSD slot on this board, so
set broken-cd and let the core poll for the card.
Signed-off-by: Saeed Nourian <saeednourian82@gmail.com>
---
arch/arm64/boot/dts/rockchip/Makefile | 1 +
.../dts/rockchip/rk3588-firefly-aio-3588q.dts | 434 ++++++++++++++++++
2 files changed, 435 insertions(+)
create mode 100644 arch/arm64/boot/dts/rockchip/rk3588-firefly-aio-3588q.dts
diff --git a/arch/arm64/boot/dts/rockchip/Makefile b/arch/arm64/boot/dts/rockchip/Makefile
index e4a0237e11..76c6cc6bc3 100644
--- a/arch/arm64/boot/dts/rockchip/Makefile
+++ b/arch/arm64/boot/dts/rockchip/Makefile
@@ -200,6 +200,7 @@ dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3588-edgeble-neu6a-wifi.dtbo
dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3588-edgeble-neu6b-io.dtb
dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3588-evb1-v10.dtb
dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3588-evb2-v10.dtb
+dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3588-firefly-aio-3588q.dtb
dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3588-firefly-itx-3588j.dtb
dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3588-friendlyelec-cm3588-nas.dtb
dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3588-h96-max-v58.dtb
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 0000000000..a37f16260b
--- /dev/null
+++ b/arch/arm64/boot/dts/rockchip/rk3588-firefly-aio-3588q.dts
@@ -0,0 +1,434 @@
+// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
+/*
+ * Copyright (c) 2026 Saeed Nourian
+ */
+
+/dts-v1/;
+
+#include <dt-bindings/gpio/gpio.h>
+#include <dt-bindings/input/input.h>
+#include <dt-bindings/leds/common.h>
+#include <dt-bindings/pinctrl/rockchip.h>
+#include <dt-bindings/pwm/pwm.h>
+
+#include "rk3588-firefly-icore-3588q.dtsi"
+
+/ {
+ model = "Firefly AIO-3588Q";
+ compatible = "firefly,aio-3588q", "firefly,icore-3588q", "rockchip,rk3588";
+
+ aliases {
+ ethernet0 = &gmac0;
+ ethernet1 = &gmac1;
+ mmc1 = &sdmmc;
+ };
+
+ chosen {
+ stdout-path = "serial2:1500000n8";
+ };
+
+ adc-keys {
+ compatible = "adc-keys";
+ io-channels = <&saradc 1>;
+ io-channel-names = "buttons";
+ keyup-threshold-microvolt = <1800000>;
+ poll-interval = <100>;
+
+ button-recovery {
+ label = "Recovery";
+ linux,code = <KEY_VENDOR>;
+ press-threshold-microvolt = <17000>;
+ };
+ };
+
+ leds {
+ compatible = "gpio-leds";
+ pinctrl-names = "default";
+ pinctrl-0 = <&led_pins>;
+
+ led-power {
+ function = LED_FUNCTION_POWER;
+ gpios = <&gpio3 RK_PB2 GPIO_ACTIVE_HIGH>;
+ default-state = "on";
+ };
+
+ led-user {
+ function = LED_FUNCTION_STATUS;
+ gpios = <&pca9555 3 GPIO_ACTIVE_HIGH>;
+ };
+ };
+
+ 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>;
+ };
+
+ vcc12v_dcin: regulator-vcc12v-dcin {
+ compatible = "regulator-fixed";
+ regulator-name = "vcc12v_dcin";
+ regulator-always-on;
+ regulator-boot-on;
+ regulator-min-microvolt = <12000000>;
+ regulator-max-microvolt = <12000000>;
+ };
+
+ vcc5v0_sys: regulator-vcc5v0-sys {
+ compatible = "regulator-fixed";
+ regulator-name = "vcc5v0_sys";
+ regulator-always-on;
+ regulator-boot-on;
+ regulator-min-microvolt = <5000000>;
+ regulator-max-microvolt = <5000000>;
+ vin-supply = <&vcc12v_dcin>;
+ };
+
+ vcc5v0_usb: regulator-vcc5v0-usb {
+ compatible = "regulator-fixed";
+ regulator-name = "vcc5v0_usb";
+ regulator-always-on;
+ regulator-boot-on;
+ regulator-min-microvolt = <5000000>;
+ regulator-max-microvolt = <5000000>;
+ vin-supply = <&vcc12v_dcin>;
+ };
+
+ vcc3v3_sys: regulator-vcc3v3-sys {
+ compatible = "regulator-fixed";
+ regulator-name = "vcc3v3_sys";
+ regulator-always-on;
+ regulator-boot-on;
+ regulator-min-microvolt = <3300000>;
+ regulator-max-microvolt = <3300000>;
+ vin-supply = <&vcc12v_dcin>;
+ };
+
+ vcc_1v1_nldo_s3: regulator-vcc-1v1-nldo-s3 {
+ compatible = "regulator-fixed";
+ regulator-name = "vcc_1v1_nldo_s3";
+ regulator-always-on;
+ regulator-boot-on;
+ regulator-min-microvolt = <1100000>;
+ regulator-max-microvolt = <1100000>;
+ vin-supply = <&vcc5v0_sys>;
+ };
+
+ /* microSD slot power switch */
+ vcc3v3_sd: regulator-vcc3v3-sd {
+ compatible = "regulator-fixed";
+ regulator-name = "vcc3v3_sd";
+ regulator-min-microvolt = <3300000>;
+ regulator-max-microvolt = <3300000>;
+ gpios = <&pca9555 13 GPIO_ACTIVE_HIGH>;
+ enable-active-high;
+ };
+
+ /* 5V for the USB2 hubs behind u2phy2 and u2phy3 */
+ vcc5v0_usb20_host0: regulator-vcc5v0-usb20-host0 {
+ compatible = "regulator-fixed";
+ regulator-name = "vcc5v0_usb20_host0";
+ regulator-always-on;
+ regulator-boot-on;
+ regulator-min-microvolt = <5000000>;
+ regulator-max-microvolt = <5000000>;
+ gpios = <&pca9555 5 GPIO_ACTIVE_HIGH>;
+ enable-active-high;
+ vin-supply = <&vcc5v0_usb>;
+ };
+
+ /* VBUS of the type-A hub on usb_host1_xhci */
+ vcc5v0_usb30: regulator-vcc5v0-usb30 {
+ compatible = "regulator-fixed";
+ regulator-name = "vcc5v0_usb30";
+ regulator-min-microvolt = <5000000>;
+ regulator-max-microvolt = <5000000>;
+ gpios = <&pca9555 7 GPIO_ACTIVE_HIGH>;
+ enable-active-high;
+ vin-supply = <&vcc5v0_sys>;
+ };
+
+ vcc3v3_pcie30: regulator-vcc3v3-pcie30 {
+ compatible = "regulator-fixed";
+ regulator-name = "vcc3v3_pcie30";
+ regulator-min-microvolt = <3300000>;
+ regulator-max-microvolt = <3300000>;
+ gpios = <&gpio4 RK_PC6 GPIO_ACTIVE_HIGH>;
+ enable-active-high;
+ pinctrl-names = "default";
+ pinctrl-0 = <&pcie3_vcc3v3_en>;
+ startup-delay-us = <5000>;
+ vin-supply = <&vcc12v_dcin>;
+ };
+
+ /* 3V3 for the M.2 (PCIe 2.1) slot */
+ vcc3v3_m2: regulator-vcc3v3-m2 {
+ compatible = "regulator-fixed";
+ regulator-name = "vcc3v3_m2";
+ regulator-min-microvolt = <3300000>;
+ regulator-max-microvolt = <3300000>;
+ gpios = <&pca9555 10 GPIO_ACTIVE_HIGH>;
+ enable-active-high;
+ startup-delay-us = <5000>;
+ vin-supply = <&vcc12v_dcin>;
+ };
+};
+
+&combphy0_ps {
+ status = "okay";
+};
+
+&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";
+};
+
+&gpu {
+ mali-supply = <&vdd_gpu_s0>;
+ sram-supply = <&vdd_gpu_mem_s0>;
+ status = "okay";
+};
+
+&i2c6 {
+ pinctrl-names = "default";
+ pinctrl-0 = <&i2c6m0_xfer>;
+ status = "okay";
+
+ pca9555: gpio@21 {
+ compatible = "nxp,pca9555";
+ reg = <0x21>;
+ gpio-controller;
+ #gpio-cells = <2>;
+
+ /* FE1.1S RESET#, deasserted */
+ usb-hub2-reset-hog {
+ gpio-hog;
+ gpios = <4 GPIO_ACTIVE_HIGH>;
+ output-high;
+ line-name = "usb-hub2-reset";
+ };
+
+ /* GL3523 RESET#, deasserted */
+ usb-hub3-reset-hog {
+ gpio-hog;
+ gpios = <6 GPIO_ACTIVE_HIGH>;
+ output-high;
+ line-name = "usb-hub3-reset";
+ };
+ };
+
+ hym8563: rtc@51 {
+ compatible = "haoyu,hym8563";
+ reg = <0x51>;
+ #clock-cells = <0>;
+ clock-output-names = "hym8563";
+ interrupt-parent = <&gpio0>;
+ interrupts = <RK_PB0 IRQ_TYPE_LEVEL_LOW>;
+ pinctrl-names = "default";
+ pinctrl-0 = <&hym8563_int>;
+ wakeup-source;
+ };
+};
+
+&mdio0 {
+ rgmii_phy0: ethernet-phy@1 {
+ compatible = "ethernet-phy-ieee802.3-c22";
+ reg = <0x1>;
+ };
+};
+
+&mdio1 {
+ rgmii_phy1: ethernet-phy@1 {
+ compatible = "ethernet-phy-ieee802.3-c22";
+ reg = <0x1>;
+ };
+};
+
+/* M.2 key-M slot, PCIe 2.1 lane */
+&pcie2x1l2 {
+ reset-gpios = <&pca9555 14 GPIO_ACTIVE_HIGH>;
+ vpcie3v3-supply = <&vcc3v3_m2>;
+ status = "okay";
+};
+
+&pcie30phy {
+ status = "okay";
+};
+
+&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>;
+ };
+ };
+};
+
+&pwm15 {
+ pinctrl-names = "default";
+ pinctrl-0 = <&pwm15m2_pins>;
+ status = "okay";
+};
+
+&rknn_core_0 {
+ npu-supply = <&vdd_npu_s0>;
+ sram-supply = <&vdd_npu_mem_s0>;
+ status = "okay";
+};
+
+&rknn_core_1 {
+ npu-supply = <&vdd_npu_s0>;
+ sram-supply = <&vdd_npu_mem_s0>;
+ status = "okay";
+};
+
+&rknn_core_2 {
+ npu-supply = <&vdd_npu_s0>;
+ sram-supply = <&vdd_npu_mem_s0>;
+ status = "okay";
+};
+
+&rknn_mmu_0 {
+ status = "okay";
+};
+
+&rknn_mmu_1 {
+ status = "okay";
+};
+
+&rknn_mmu_2 {
+ status = "okay";
+};
+
+&saradc {
+ vref-supply = <&vcc_1v8_s0>;
+ status = "okay";
+};
+
+&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";
+};
+
+&u2phy1 {
+ status = "okay";
+};
+
+&u2phy1_otg {
+ /* VBUS of the type-A hub on usb_host1_xhci */
+ phy-supply = <&vcc5v0_usb30>;
+ status = "okay";
+};
+
+&u2phy2 {
+ status = "okay";
+};
+
+&u2phy2_host {
+ phy-supply = <&vcc5v0_usb20_host0>;
+ status = "okay";
+};
+
+&u2phy3 {
+ status = "okay";
+};
+
+&u2phy3_host {
+ phy-supply = <&vcc5v0_usb20_host0>;
+ status = "okay";
+};
+
+&usb_host0_ehci {
+ status = "okay";
+};
+
+&usb_host0_ohci {
+ status = "okay";
+};
+
+&usb_host1_ehci {
+ status = "okay";
+};
+
+&usb_host1_ohci {
+ status = "okay";
+};
+
+/* USB3 half of the four type-A ports (Genesys GL3523) */
+&usb_host1_xhci {
+ dr_mode = "host";
+ status = "okay";
+};
+
+&usbdp_phy1 {
+ status = "okay";
+};
--
2.43.0
^ permalink raw reply related [flat|nested] 4+ messages in thread* Re: [PATCH 2/2] arm64: dts: rockchip: Add Firefly AIO-3588Q
2026-11-25 11:47 ` [PATCH 2/2] arm64: dts: " Saeed Nourian
@ 2026-11-25 12:06 ` sashiko-bot
0 siblings, 0 replies; 4+ messages in thread
From: sashiko-bot @ 2026-11-25 12:06 UTC (permalink / raw)
To: Saeed Nourian; +Cc: devicetree, robh, conor+dt
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
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2026-11-25 12:06 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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 is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox