All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v3 0/3] arm64: dts: rockchip: Add Mekotronics R58X-Pro
@ 2026-12-05 18:47 ` Ricardo Pardini
  0 siblings, 0 replies; 13+ messages in thread
From: Ricardo Pardini via B4 Relay @ 2026-12-05 18:47 UTC (permalink / raw)
  To: Rob Herring, Krzysztof Kozlowski, Conor Dooley, Heiko Stuebner
  Cc: devicetree, linux-kernel, linux-arm-kernel, linux-rockchip,
	Sebastian Reichel, Ricardo Pardini

This series adds support for the Mekotronics R58X-Pro, an industrial
mini PC based on the Rockchip RK3588.

There is no public schematic; the DT is based on Armbian's and on the
vendor BSP DT.

dt-check-style --mode=strict is clean except where the existing
rockchip DTs differ (pinctrl-names first, no blank line before status)
and for names fixed by bindings.

GMAC0 gets RX CRC errors with rgmii-id under iperf3 load, so it uses
rgmii-rxid with tx_delay = <0x44>; GMAC1 uses rgmii-id.

The Type-C port is source only (the board is powered from a 12V barrel
jack). usbdp_phy0 has both orientation-switch and mode-switch, as
asked for in the cover letter of [2]. On its own, v7.4-rc4 brings up
USB 3.0 in either orientation at boot, but when the cable is re-plugged
the other way round, the SuperSpeed link does not come up until the
USBDP PHY is re-initialized. With Sebastian Reichel's pending DWC3 glue
[1] and USBDP [2] series applied, it works in both orientations on
hotplug. DP alt mode goes to dp0 (VP1) through usbdp_phy0. With [1],
[2] and the dw-dp series [3], an Apple USB-C to HDMI adapter gives
1080p60 in both orientations, with USB 3.0 on the adapter working too.

Tested on the board with v7.4-rc4: it boots from eMMC and NVMe, and
both GbE ports, USB 3.0 over Type-C, the HDMI and DP outputs, DP alt
mode, headphone audio, the RTC, WiFi/BT, the LEDs, the keys, the GPU
(Panfrost) and the NPU (Mesa Teflon) work.

I used Claude for cleanups, ordering and naming, according to recent
series lore.

[1] https://lore.kernel.org/all/20261114-b4-rockchip-dwc3-rockchip-glue-v19-0-b79fb5f4b42a@collabora.com/
[2] https://lore.kernel.org/all/20261119-b4-rockchip-usbdp-cleanup-part3-v18-0-fb325e336494@collabora.com/
[3] https://lore.kernel.org/all/20261114-synopsys-dw-dp-improvements-v12-0-d42d3dc5bdd4@collabora.com/
[4] https://lore.kernel.org/all/20261126-rockchip-usb-c-dp-altmode-v1-0-7991eb5bb426@collabora.com/

---
Changes in v3:
- Set the DP alt mode VDO to 0x1c46 instead of the vendor 0xffffffff,
  as done for the other Rockchip boards in [4]
- Rename the usbdp_phy0 DP output endpoint to usbdp_phy0_dp_out, to
  match the naming in [4]
- Set PDO_FIXED_DATA_SWAP in the USB-C source PDO: the port is
  source-only with a dual data role, so device mode needs a DR_Swap,
  which partners only accept with the Dual-Role Data bit set
- Route the headphone jack from LOUT2/ROUT2 instead of LOUT1/ROUT1:
  the board's only audio jack is wired to the codec's second output
- Re-tested DP alt mode and USB 3.0 on the adapter with the new VDO
- Link to v2: https://patch.msgid.link/20261123-rk3588-mekotronics-r58x-pro-v2-0-2a3430cf5f88@pardini.net

Changes in v2:
- Describe DP alt mode on the Type-C port (dp0 via usbdp_phy0)
- Keep the default USB3 PHY on usb_host1_xhci, so the USBDP PHY disables
  the unused U3 port (Sashiko)
- Pull down the BT host-wake pin, it is active high (Sashiko)
- Add pinctrl for the HDMI0 FRL enable GPIO (Sashiko)
- Link to v1: https://patch.msgid.link/20261120-rk3588-mekotronics-r58x-pro-v1-0-4e70c077c7b4@pardini.net

---
Ricardo Pardini (3):
      dt-bindings: vendor-prefixes: Add Mekotronics
      dt-bindings: arm: rockchip: Add Mekotronics R58X-Pro
      arm64: dts: rockchip: Add Mekotronics R58X-Pro

 .../devicetree/bindings/arm/rockchip.yaml          |    5 +
 .../devicetree/bindings/vendor-prefixes.yaml       |    2 +
 arch/arm64/boot/dts/rockchip/Makefile              |    1 +
 .../dts/rockchip/rk3588-mekotronics-r58x-pro.dts   | 1286 ++++++++++++++++++++
 4 files changed, 1294 insertions(+)
---
base-commit: 23c62304dde29abe92013d85910d03a77dada35d
change-id: 20261118-rk3588-mekotronics-r58x-pro-54cfda4bd8a4

Best regards,
--  
Ricardo Pardini <ricardo@pardini.net>



^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2026-12-05 19:07 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-12-05 18:47 [PATCH v3 0/3] arm64: dts: rockchip: Add Mekotronics R58X-Pro Ricardo Pardini via B4 Relay
2026-12-05 18:47 ` Ricardo Pardini via B4 Relay
2026-12-05 18:47 ` Ricardo Pardini
2026-12-05 18:47 ` [PATCH v3 1/3] dt-bindings: vendor-prefixes: Add Mekotronics Ricardo Pardini via B4 Relay
2026-12-05 18:47   ` Ricardo Pardini via B4 Relay
2026-12-05 18:47   ` Ricardo Pardini
2026-12-05 18:47 ` [PATCH v3 2/3] dt-bindings: arm: rockchip: Add Mekotronics R58X-Pro Ricardo Pardini via B4 Relay
2026-12-05 18:47   ` Ricardo Pardini via B4 Relay
2026-12-05 18:47   ` Ricardo Pardini
2026-12-05 18:47 ` [PATCH v3 3/3] arm64: dts: " Ricardo Pardini via B4 Relay
2026-12-05 18:47   ` Ricardo Pardini via B4 Relay
2026-12-05 18:47   ` Ricardo Pardini
2026-12-05 19:07   ` sashiko-bot

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.