Skip to contentSkip to conversation

arm64: dts: rockchip: add Vicharak Axon board support

PATCH Superseded Hrushiraj Gandhi 2 participants 5 messages Jun 1

Subsystems (2)

v3 of 8 Superseded Latest is v8 →

lore
Share & tools
lore
#0 lore raw

v3 cover arm64: dts: rockchip: add Vicharak Axon board support

This series adds initial device tree support for the Vicharak Axon single-board computer, which is based on the Rockchip RK3588 SoC.

The Vicharak Axon is a feature-rich SBC targeting developer and embedded use cases. It ships with:

- Rockchip RK3588 (4x Cortex-A76 + 4x Cortex-A55)
- RK806 PMIC providing all SoC power domains
- eMMC 5.1 (on-board) and microSD slot
- Gigabit Ethernet via RGMII (RTL8211F)
- Dual HDMI 2.1 output and one HDMI 2.0 input (receiver)
- PCIe 3.0 x4 and two PCIe 2.0 slots
- SATA 3.0
- SDIO Wi-Fi
- USB 2.0 host ports (EHCI/OHCI)
- NXP PCA9554 I/O expander for status LEDs
- Haoyu HYM8563 RTC

Changes since v2:
- Split the dt-bindings patch into two separate patches: one for the vendor prefix and one for the board binding as requested by Heiko.
- Removed invalid enable-gpios property from HDMI nodes (ignored by dw-hdmi-qp binding)
- Fixed copy-paste error in rk806_dvs1_null pinctrl node (gpio_pwrctrl2 -> gpio_pwrctrl1)

Changes since v1:
- Renamed the dts file from rk3588-axon.dts to rk3588-vicharak-axon.dts
- Added binding patches for the board (rockchip.yaml) and vendor (vendor-prefixes.yaml)
- Renamed regulator nodes to the standard regulator-name pattern
- Removed mem-supply properties and phandles from cpu nodes (vendor-kernel specific)
- Fixed pcie20_avdd0v85 vin-supply mismatch
- Removed obsolete regulator-compatible property
- Removed invalid regulator-init-microvolt property
- Removed dangling enable-active-high properties from fixed regulators
- Cleaned up unneeded i2c3 / es8388 nodes
- Added missing vpcie3v3-supply properties to PCIe nodes

Hrushiraj Gandhi (3):
dt-bindings: vendor-prefixes: add vicharak
dt-bindings: arm: rockchip: add Vicharak Axon board
arm64: dts: rockchip: add Vicharak Axon board

 .../devicetree/bindings/arm/rockchip.yaml     |    5 +
 .../devicetree/bindings/vendor-prefixes.yaml  |    2 +
 arch/arm64/boot/dts/rockchip/Makefile         |    1 +
 .../dts/rockchip/rk3588-vicharak-axon.dts     | 1036 +++++++++++++++++
 4 files changed, 1044 insertions(+)
 create mode 100644 arch/arm64/boot/dts/rockchip/rk3588-vicharak-axon.dts
Signature · 1 line
2.47.3
#1 lore raw

PATCH v3 1/3 dt-bindings: vendor-prefixes: add vicharak

Add the vendor prefix for Vicharak Computers Pvt. Ltd.

---
 Documentation/devicetree/bindings/vendor-prefixes.yaml | 2 ++
 1 file changed, 2 insertions(+)
Documentation/devicetree/bindings/vendor-prefixes.yaml +2 -0
index 28784d66ae7b..504a691a33b9 100644
@@ -1791,6 +1791,8 @@ patternProperties:
     description: VIA Technologies, Inc.
   "^vialab,.*":
     description: VIA Labs, Inc.
+  "^vicharak,.*":
+    description: Vicharak Computers Pvt. Ltd.
   "^vicor,.*":
     description: Vicor Corporation
   "^videostrong,.*":
Signature · 1 line
2.47.3
#2 lore raw

PATCH v3 2/3 dt-bindings: arm: rockchip: add Vicharak Axon board

In reply to Hrushiraj Gandhi

Add the device tree binding for the Vicharak Axon single-board computer based on the Rockchip RK3588 SoC.

---
 Documentation/devicetree/bindings/arm/rockchip.yaml | 5 +++++
 1 file changed, 5 insertions(+)
Documentation/devicetree/bindings/arm/rockchip.yaml +5 -0
index 1a9dde18626d..b023d4cc9842 100644
@@ -1306,6 +1306,11 @@ properties:
           - const: turing,rk1
           - const: rockchip,rk3588
 
+      - description: Vicharak Axon
+        items:
+          - const: vicharak,axon
+          - const: rockchip,rk3588
+
       - description: WolfVision PF5 mainboard
         items:
           - const: wolfvision,rk3568-pf5
Signature · 1 line
2.47.3
#3 lore raw

PATCH v3 3/3 arm64: dts: rockchip: add Vicharak Axon board

In reply to Hrushiraj Gandhi

Add initial support for the Vicharak Axon single-board computer based on the Rockchip RK3588 SoC.

The board supports:

- eMMC storage
- microSD card
- Gigabit Ethernet
- HDMI output (dual HDMI)
- HDMI input
- USB 2.0 host ports
- PCIe 2.0 slots
- PCIe 3.0 x4 slot
- SATA
- RTC
- Status LEDs

The board uses an RK806 PMIC and provides the regulators required by the RK3588 SoC.

---
 arch/arm64/boot/dts/rockchip/Makefile         |    1 +
 .../dts/rockchip/rk3588-vicharak-axon.dts     | 1036 +++++++++++++++++
 2 files changed, 1037 insertions(+)
 create mode 100644 arch/arm64/boot/dts/rockchip/rk3588-vicharak-axon.dts
arch/arm64/boot/dts/rockchip/Makefile +1 -0
index cb55c6b70d0e..fcb115b02eff 100644
@@ -179,6 +179,7 @@ dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3576-rock-4d.dtb
 dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3582-radxa-e52c.dtb
 dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3588-armsom-sige7.dtb
 dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3588-armsom-w3.dtb
+dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3588-vicharak-axon.dtb
 dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3588-coolpi-cm5-evb.dtb
 dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3588-coolpi-cm5-genbook.dtb
 dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3588-edgeble-neu6a-io.dtb
arch/arm64/boot/dts/rockchip/rk3588-vicharak-axon.dts new file +1036 -0

1,036 lines not on this page · raw message

Signature · 1 line
2.47.3
#4 lore raw

Re: [PATCH v3 3/3] arm64: dts: rockchip: add Vicharak Axon board

Thank you for your contribution! Sashiko AI review found 4 potential issue(s) to consider: - [High] Hardware conflict: both `pcie2x1l0` and `sata0` are enabled, but they share the same single-lane…

Thank you for your contribution! Sashiko AI review found 4 potential issue(s) to consider:
- [High] Hardware conflict: both pcie2x1l0 and sata0 are enabled, but they share the same single-lane PHY (combphy0_ps).
- [Medium] The SDIO node lacks UHS capability properties, limiting the Wi-Fi interface to 50MHz.
- [Medium] Incomplete configuration: USB PHYs and combphy2 are enabled but their respective controllers are disabled.
- [Low] Undocumented Wi-Fi interface configuration.
--

commit 395e8a5adb0ca626a634aafea8c647363459acf1
Author: Hrushiraj Gandhi <[email protected]>

arm64: dts: rockchip: add Vicharak Axon board

Add initial support for the Vicharak Axon single-board computer based on the Rockchip RK3588 SoC.

Quoted 13 lines

The board supports:

- eMMC storage
- microSD card
- Gigabit Ethernet
- HDMI output (dual HDMI)
- HDMI input
- USB 2.0 host ports
- PCIe 2.0 slots
- PCIe 3.0 x4 slot
- SATA
- RTC
- Status LEDs

[Severity: Low]
The commit message lists the board's supported features but omits Wi-Fi.

However, the device tree includes an &sdio node configured for a Wi-Fi module, along with an sdio_pwrseq.

Could the commit message be updated to include Wi-Fi, or is the Wi-Fi configuration leftover code from a reference design?

Quoted 6 lines
arch/arm64/boot/dts/rockchip/rk3588-vicharak-axon.dts new file +0 -0
new file mode 100644
index 0000000000000..9d1e61e1857ae
@@ -0,0 +1,1036 @@

[ ... ]

arch/arm64/boot/dts/rockchip/rk3588-vicharak-axon.dts

Quoted 3 lines

+&combphy2_psu {

arch/arm64/boot/dts/rockchip/rk3588-vicharak-axon.dts new file +2 -0
+	status = "okay";
+};

[Severity: Medium]
Are the controllers for this PHY supposed to be enabled as well?

combphy2_psu is explicitly enabled here, but all of its potential consumers (pcie2x1l2, sata2, usb_host2_xhci) appear to be disabled.

Does this leave the PHY initialized but orphaned, potentially wasting power?

[ ... ]

arch/arm64/boot/dts/rockchip/rk3588-vicharak-axon.dts line 454

Quoted 9 lines

+&sdio {

arch/arm64/boot/dts/rockchip/rk3588-vicharak-axon.dts new file +8 -0
+	max-frequency = <150000000>;
+	no-sd;
+	no-mmc;
+	bus-width = <4>;
+	disable-wp;
+	cap-sd-highspeed;
+	cap-sdio-irq;
+	keep-power-in-suspend;

[Severity: Medium]
Does this node need UHS capability properties to achieve the requested 150MHz?

Without properties like sd-uhs-sdr104, the Linux MMC core might assume the host does not support SDR104/UHS speeds and artificially cap the interface to High-Speed mode (50MHz).

Could this severely throttle the Wi-Fi bandwidth?

[ ... ]

Quoted 7 lines

+&pcie2x1l0 {

arch/arm64/boot/dts/rockchip/rk3588-vicharak-axon.dts new file +6 -0
+	reset-gpios = <&gpio4 RK_PA5 GPIO_ACTIVE_HIGH>;
+	pinctrl-names = "default";
+	pinctrl-0 = <&pcie2_0_rst>;
+	vpcie3v3-supply = <&vcc3v3_pcie20_sata30>;
+	status = "okay";
+};

[ ... ]

arch/arm64/boot/dts/rockchip/rk3588-vicharak-axon.dts

Quoted 3 lines

+&sata0 {

arch/arm64/boot/dts/rockchip/rk3588-vicharak-axon.dts new file +2 -0
+	status = "okay";
+};

[Severity: High]
Will enabling both pcie2x1l0 and sata0 create a hardware conflict?

In rk3588-base.dtsi, both pcie2x1l0 and sata-port@0 (in sata0) are hardcoded to use combphy0_ps. combphy0_ps is a single-lane PHY that can only operate in one mode at a time.

If both controllers are enabled without reassigning the PHY for either, will one interface fail to link or corrupt the PHY configuration of the other?

[ ... ]

arch/arm64/boot/dts/rockchip/rk3588-vicharak-axon.dts line 966

Quoted 7 lines

+&u2phy0 {

arch/arm64/boot/dts/rockchip/rk3588-vicharak-axon.dts new file +6 -0
+	status = "okay";
+};
+
+&u2phy0_otg {
+	status = "okay";
+};

[Severity: Medium]
Are the USB host controllers for these PHYs intended to be enabled?

u2phy0 and u2phy0_otg (along with u2phy1) are enabled, but their consumers like usb_host0_xhci remain disabled.

Could this result in non-functional USB ports and wasted power?

Signature · 1 line
Sashiko AI review · https://sashiko.dev/#/patchset/[email protected]?part=3