Skip to content

arm64: dts: rockchip: Add Firefly AIO-3588Q

Saeed Nourian linux-arm-kernel linux-devicetree linux-rockchip lkml 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2dt-bindings: arm: rockchip: Add Firefly AIO-3588QDocumentation/devicetree/bindings/arm/rockchip.yaml+1 -00 replies
2/2arm64: dts: rockchip: Add Firefly AIO-3588Qarch/arm64/boot/dts/rockchip/Makefile arch/arm64/boot/dts/rockchip/rk3588-firefly-aio-3588q.dts+435 -00 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/2] arm64: dts: rockchip: Add Firefly AIO-3588Q

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
Signature · 1 line
2.43.0