Skip to contentSkip to conversation

Add Luckfox Omni3576 Carrier Board support for RK3576

PATCH Superseded John Clark 5 participants 14 messages May 6, 2025

Subsystems (2)

v3 of 5 Superseded Latest is v5 →

lore
Share & tools
lore

John Clark

author
#0 lore raw

v3 cover Add Luckfox Omni3576 Carrier Board support for RK3576

This series adds device tree support for the Luckfox Omni3576 Carrier Board with the Core3576 Module, powered by the Rockchip RK3576 SoC (four Cortex-A72 cores, four Cortex-A53 cores, Mali-G52 MC3 GPU). It enables essential functionality for booting Linux and basic connectivity, with plans for future support of peripherals like WiFi, MIPI-DSI, HDMI, and Ethernet.

The series was first posted as v1 at:
https://lore.kernel.org/linux-rockchip/[email protected]
v2 at:
https://lore.kernel.org/linux-rockchip/[email protected]

Tested features (on Linux 6.15-rc4):
- UART: Serial console operational
- SD card: Mounts and reads/writes successfully
- PCIe: NVMe SSD detected, mounted, and fully functional
- USB 2.0: Host ports operational
- RTC: Timekeeping and wake-up tested
- LED: Heartbeat trigger functional
- eMMC: Enabled in device tree, not populated on tested hardware

The series includes three patches:
1. dt-bindings: vendor-prefixes: Add Luckfox vendor prefix
2. dt-bindings: arm: rockchip: Add Luckfox Omni3576 and Core3576 bindings
3. arm64: dts: rockchip: Add Luckfox Omni3576 board support

The device tree is covered by the existing ROCKCHIP ARCHITECTURE entry in MAINTAINERS. I am aware of ongoing RK3576 upstreaming efforts (e.g., by Collabora) and welcome feedback or collaboration to align with mainline driver development.

Changes in v3:
- Addressed Jonas Karlman's feedback on patch 3/3 (Luckfox Omni3576 device tree):
- Added pinctrl for green LED GPIO (gpio1 RK_PD5) for proper pin setup.
- Reordered regulator node properties for consistent sequence (e.g., regulator-name, regulator-min-microvolt, regulator-max-microvolt, etc.).
- Updated regulator nodes (vcc_3v3_pcie, vbus_5v0_typec, vcc_5v0_host, vcc_5v0_hdmi) to use 'gpios' property instead of deprecated 'gpio'.
- Removed pmic-power-off pinctrl state and pinctrl-1 from RK806 PMIC node, as they are vendor-specific and undocumented in bindings.
- Removed pwrkey node from PMIC, as it lacks binding documentation.
- Added blank line between properties and child nodes in i2c2 node for DT style compliance.
- Removed no-mmc property from sdmmc node to enable MMC support, aligning with RK3576 SD v3.0 and MMC v4.51 capabilities, allowing TF card slot to support MMC devices or eMMC via adapter.
- Removed Ethernet support (gmac0/gmac1 nodes) per Andrew Lunn's feedback, as it relied on the generic PHY driver with incorrect RGMII delay settings, which would break with the upcoming MAE0621A driver.
- Addressed Rob Herring's DTB check warnings, other warnings (e.g., VOP, PCIe, OTP, HDMI PHY) originate from rk3576.dtsi and are outside this patchset scope.
- Added RNG node to pick up Nicolas Frattaroli's "add RK3576 RNG node" patch

Changes in v2:
- Enabled HDMI node per feedback from Heiko Stuebner and Nicolas Frattaroli; untested due to upstream driver issues.
- Enabled Ethernet 1 node per Heiko's device tree philosophy; untested due to suspected PHY driver or configuration issues (removed in v3 per Andrew Lunn).
- Clarified eMMC remains enabled but unpopulated on tested board, per Heiko.

---
John Clark (3):
dt-bindings: vendor-prefixes: Add luckfox prefix
dt-bindings: arm: rockchip: Add Luckfox Omni3576 and Core3576 bindings
arm64: dts: rockchip: Add Luckfox Omni3576 Board support

 .../devicetree/bindings/arm/rockchip.yaml     |  10 +
 .../devicetree/bindings/vendor-prefixes.yaml  |   2 +
 arch/arm64/boot/dts/rockchip/Makefile         |   1 +
 .../dts/rockchip/rk3576-luckfox-core3576.dtsi | 683 ++++++++++++++++++
 .../dts/rockchip/rk3576-luckfox-omni3576.dts  |  53 ++
 5 files changed, 749 insertions(+)
 create mode 100644 arch/arm64/boot/dts/rockchip/rk3576-luckfox-core3576.dtsi
 create mode 100644 arch/arm64/boot/dts/rockchip/rk3576-luckfox-omni3576.dts
Signature · 1 line
2.39.5
author
#1 lore raw

PATCH v3 1/3 dt-bindings: vendor-prefixes: Add luckfox prefix

Add vendor prefix for Shenzhen Luckfox Technology Co., Ltd., which produces development boards like the Luckfox Omni3576.

---
 Documentation/devicetree/bindings/vendor-prefixes.yaml | 2 ++
 1 file changed, 2 insertions(+)
Documentation/devicetree/bindings/vendor-prefixes.yaml +2 -0
index 86f6a19b28ae..9391e0c31bb8 100644
@@ -892,6 +892,8 @@ patternProperties:
     description: Liebherr-Werk Nenzing GmbH
   "^lxa,.*":
     description: Linux Automation GmbH
+  "^luckfox,.*":
+    description: Shenzhen Luckfox Technology Co., Ltd.
   "^m5stack,.*":
     description: M5Stack
   "^macnica,.*":
Signature · 1 line
2.39.5
author
#3 lore raw

PATCH v3 2/3 dt-bindings: arm: rockchip: Add Luckfox Omni3576 and Core3576 bindings

In reply to John Clark

Add device tree binding for the Luckfox Omni3576 Carrier Board with Core3576 Module, based on the Rockchip RK3576 SoC.

---
 Documentation/devicetree/bindings/arm/rockchip.yaml | 10 ++++++++++
 1 file changed, 10 insertions(+)
Documentation/devicetree/bindings/arm/rockchip.yaml +10 -0
index 455fbb290b77..826dede32145 100644
@@ -715,6 +715,16 @@ properties:
           - const: lckfb,tspi-rk3566
           - const: rockchip,rk3566
 
+      - description: Luckfox Core3576 Module
+        items:
+          - const: luckfox,core3576
+          - const: rockchip,rk3576
+
+      - description: Luckfox Omni3576 Carrier Board
+        items:
+          - const: luckfox,omni3576
+          - const: rockchip,rk3576
+
       - description: Lunzn FastRhino R66S / R68S
         items:
           - enum:
Signature · 1 line
2.39.5
author
#8 lore raw

PATCH v3 3/3 arm64: dts: rockchip: Add Luckfox Omni3576 Board support

In reply to John Clark

Add device tree for the Luckfox Omni3576 Carrier Board with Core3576 Module, powered by the Rockchip RK3576 SoC with four Cortex-A72 cores, four Cortex-A53 cores, and a Mali-G52 MC3 GPU. This initial implementation enables essential functionality for booting Linux and basic connectivity.

Supported and tested features:
- UART for serial console
- SD card for storage
- PCIe with NVMe SSD (detected, mounted, and fully functional)
- USB 2.0 host ports
- RK806 PMIC for power management
- RTC with timekeeping and wake-up
- GPIO-controlled LED with heartbeat trigger
- eMMC (enabled, not populated on tested board)

The device tree provides a foundation for further peripheral support, such as WiFi, MIPI-DSI, HDMI, and Ethernet, in future updates.

Tested on Linux 6.15-rc4

---
 arch/arm64/boot/dts/rockchip/Makefile         |   1 +
 .../dts/rockchip/rk3576-luckfox-core3576.dtsi | 683 ++++++++++++++++++
 .../dts/rockchip/rk3576-luckfox-omni3576.dts  |  53 ++
 3 files changed, 737 insertions(+)
 create mode 100644 arch/arm64/boot/dts/rockchip/rk3576-luckfox-core3576.dtsi
 create mode 100644 arch/arm64/boot/dts/rockchip/rk3576-luckfox-omni3576.dts
arch/arm64/boot/dts/rockchip/Makefile +1 -0
index 7948522cb225..22d74367b7e6 100644
@@ -136,6 +136,7 @@ dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3568-wolfvision-pf5-display-vz.dtbo
 dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3568-wolfvision-pf5-io-expander.dtbo
 dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3576-armsom-sige5.dtb
 dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3576-evb1-v10.dtb
+dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3576-luckfox-omni3576.dtb
 dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3576-roc-pc.dtb
 dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3576-rock-4d.dtb
 dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3582-radxa-e52c.dtb
arch/arm64/boot/dts/rockchip/rk3576-luckfox-core3576.dtsi new file +683 -0

683 lines not on this page · raw message

arch/arm64/boot/dts/rockchip/rk3576-luckfox-omni3576.dts new file +53 -0

53 lines not on this page · raw message

Signature · 1 line
2.39.5
#4 lore raw

Re: [PATCH v3 2/3] dt-bindings: arm: rockchip: Add Luckfox Omni3576 and Core3576 bindings

In reply to John Clark
Quoted 15 lines · John Clark

Add device tree binding for the Luckfox Omni3576 Carrier Board with Core3576 Module, based on the Rockchip RK3576 SoC.

---
 Documentation/devicetree/bindings/arm/rockchip.yaml | 10 ++++++++++
 1 file changed, 10 insertions(+)
Documentation/devicetree/bindings/arm/rockchip.yaml +0 -0
index 455fbb290b77..826dede32145 100644
@@ -715,6 +715,16 @@ properties:
           - const: lckfb,tspi-rk3566
           - const: rockchip,rk3566

Documentation/devicetree/bindings/arm/rockchip.yaml properties: · line 726

Quoted 10 lines
Documentation/devicetree/bindings/arm/rockchip.yaml +9 -0
 
+      - description: Luckfox Core3576 Module
+        items:
+          - const: luckfox,core3576
+          - const: rockchip,rk3576
+
+      - description: Luckfox Omni3576 Carrier Board
+        items:
+          - const: luckfox,omni3576
+          - const: rockchip,rk3576

Not sure this is correct, does the module not have to be attached to this particular carrier to be used?

Quoted 7 lines
Documentation/devicetree/bindings/arm/rockchip.yaml +1 -0
+
       - description: Lunzn FastRhino R66S / R68S
         items:
           - enum:
Signature · 1 line
2.39.5
author
#5 lore raw

Re: [PATCH v3 2/3] dt-bindings: arm: rockchip: Add Luckfox Omni3576 and Core3576 bindings

In reply to Conor Dooley
Quoted 17 lines · Conor Dooley
Quoted 16 lines · John Clark

Add device tree binding for the Luckfox Omni3576 Carrier Board with Core3576 Module, based on the Rockchip RK3576 SoC.

---
  Documentation/devicetree/bindings/arm/rockchip.yaml | 10 ++++++++++
  1 file changed, 10 insertions(+)
Documentation/devicetree/bindings/arm/rockchip.yaml +0 -0
index 455fbb290b77..826dede32145 100644
@@ -715,6 +715,16 @@ properties:
            - const: lckfb,tspi-rk3566
            - const: rockchip,rk3566
 
Quoted 12 lines

Documentation/devicetree/bindings/arm/rockchip.yaml properties: · line 726

Quoted 9 lines
Documentation/devicetree/bindings/arm/rockchip.yaml +9 -0
+      - description: Luckfox Core3576 Module
+        items:
+          - const: luckfox,core3576
+          - const: rockchip,rk3576
+
+      - description: Luckfox Omni3576 Carrier Board
+        items:
+          - const: luckfox,omni3576
+          - const: rockchip,rk3576

Not sure this is correct, does the module not have to be attached to this particular carrier to be used?

The compute module and the carrier board together like the E25. Presumably the compute module would be used in other applications but the carrier board is not useful without it.

Is the E25 done correctly here? I can copy this format:

model = "Radxa E25 Carrier Board";
compatible = "radxa,e25", "radxa,cm3i", "rockchip,rk3568";
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/arch/arm64/boot/dts/rockchip/rk3568-radxa-e25.dts?h=v6.15-rc5

compatible = "radxa,cm3i", "rockchip,rk3568";
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/arch/arm64/boot/dts/rockchip/rk3568-radxa-cm3i.dtsi?h=v6.15-rc5

- description: Radxa Compute Module 3 (CM3)
items:
- enum:
- radxa,cm3-io
- const: radxa,cm3
- const: rockchip,rk3566

- description: Radxa CM3 Industrial
items:
- enum:
- radxa,e25
- const: radxa,cm3i
- const: rockchip,rk3568
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/Documentation/devicetree/bindings/arm/rockchip.yaml?h=v6.15-rc5

Quoted 8 lines
Quoted 8 lines
Documentation/devicetree/bindings/arm/rockchip.yaml +1 -0
+
        - description: Lunzn FastRhino R66S / R68S
          items:
            - enum:
Signature · 1 line
2.39.5
#6 lore raw

Re: [PATCH v3 2/3] dt-bindings: arm: rockchip: Add Luckfox Omni3576 and Core3576 bindings

Quoted 30 lines · John Clark
Quoted 20 lines · Conor Dooley
Quoted 19 lines · John Clark

Add device tree binding for the Luckfox Omni3576 Carrier Board with Core3576 Module, based on the Rockchip RK3576 SoC.

---
  Documentation/devicetree/bindings/arm/rockchip.yaml | 10 ++++++++++
  1 file changed, 10 insertions(+)
Documentation/devicetree/bindings/arm/rockchip.yaml +4 -0
index 455fbb290b77..826dede32145 100644
@@ -715,6 +715,16 @@ properties:
            - const: lckfb,tspi-rk3566
            - const: rockchip,rk3566
+      - description: Luckfox Core3576 Module
+        items:
+          - const: luckfox,core3576
+          - const: rockchip,rk3576
Quoted 8 lines

Documentation/devicetree/bindings/arm/rockchip.yaml properties: · line 726

Quoted 5 lines
Documentation/devicetree/bindings/arm/rockchip.yaml +5 -0
+
+      - description: Luckfox Omni3576 Carrier Board
+        items:
+          - const: luckfox,omni3576
+          - const: rockchip,rk3576

Not sure this is correct, does the module not have to be attached to this particular carrier to be used?

Quoted 5 lines

The compute module and the carrier board together like the E25. Presumably the compute module would be used in other applications
but the carrier board is not useful without it.

Is the E25 done correctly here? I can copy this format:

Yeah, the format below looks good for these type of carrier situations.

Quoted 31 lines

model = "Radxa E25 Carrier Board";
compatible = "radxa,e25", "radxa,cm3i", "rockchip,rk3568";
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/arch/arm64/boot/dts/rockchip/rk3568-radxa-e25.dts?h=v6.15-rc5

compatible = "radxa,cm3i", "rockchip,rk3568";
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/arch/arm64/boot/dts/rockchip/rk3568-radxa-cm3i.dtsi?h=v6.15-rc5

- description: Radxa Compute Module 3 (CM3)
items:
- enum:
- radxa,cm3-io
- const: radxa,cm3
- const: rockchip,rk3566

- description: Radxa CM3 Industrial
items:
- enum:
- radxa,e25
- const: radxa,cm3i
- const: rockchip,rk3568
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/Documentation/devicetree/bindings/arm/rockchip.yaml?h=v6.15-rc5

Quoted 8 lines
Quoted 8 lines
Documentation/devicetree/bindings/arm/rockchip.yaml +1 -0
+
        - description: Lunzn FastRhino R66S / R68S
          items:
            - enum:
Signature · 1 line
2.39.5
maintainer
#7 lore raw

Re: [PATCH v3 2/3] dt-bindings: arm: rockchip: Add Luckfox Omni3576 and Core3576 bindings

In reply to John Clark

Hi John,

Am Dienstag, 6. Mai 2025, 17:54:10 Mitteleuropäische Sommerzeit schrieb John Clark:

Quoted 31 lines · Conor Dooley
Quoted 17 lines · John Clark
Quoted 16 lines

Add device tree binding for the Luckfox Omni3576 Carrier Board with Core3576 Module, based on the Rockchip RK3576 SoC.

---
  Documentation/devicetree/bindings/arm/rockchip.yaml | 10 ++++++++++
  1 file changed, 10 insertions(+)
Documentation/devicetree/bindings/arm/rockchip.yaml +0 -0
index 455fbb290b77..826dede32145 100644
@@ -715,6 +715,16 @@ properties:
            - const: lckfb,tspi-rk3566
            - const: rockchip,rk3566
 
Quoted 12 lines

Documentation/devicetree/bindings/arm/rockchip.yaml properties: · line 726

Quoted 9 lines
Documentation/devicetree/bindings/arm/rockchip.yaml +9 -0
+      - description: Luckfox Core3576 Module
+        items:
+          - const: luckfox,core3576
+          - const: rockchip,rk3576
+
+      - description: Luckfox Omni3576 Carrier Board
+        items:
+          - const: luckfox,omni3576
+          - const: rockchip,rk3576

Not sure this is correct, does the module not have to be attached to this particular carrier to be used?

Quoted 5 lines

The compute module and the carrier board together like the E25. Presumably the compute module would be used in other applications but the carrier board is not useful without it.

Is the E25 done correctly here? I can copy this format:

For the baseboard + module you should always have one of those

Quoted 5 lines
Quoted 5 lines

Documentation/devicetree/bindings/arm/rockchip.yaml properties: · line 722

Quoted 5 lines
Documentation/devicetree/bindings/arm/rockchip.yaml +5 -0
+      - description: Luckfox Core3576 Module
+        items:
+          - const: luckfox,core3576
+          - const: rockchip,rk3576
+

- description: Luckfox Core3576 based boards items:
- enum:
- luckfox,omni3576
- const: luckfox,core3576
- const: rockchip,rk3576

I've looked at the product page [0] now and the Core3576 module itself can't work independently without a baseboard present, so the above should be enough, and also allows for possible future other baseboards to be integrated.

Heiko

[0] https://www.luckfox.com/EN-Core3576

#9 lore raw
In reply to John Clark
Quoted 11 lines · John Clark

This series adds device tree support for the Luckfox Omni3576 Carrier Board with the Core3576 Module, powered by the Rockchip RK3576 SoC (four Cortex-A72 cores, four Cortex-A53 cores, Mali-G52 MC3 GPU). It enables essential functionality for booting Linux and basic connectivity, with plans for future support of peripherals like WiFi, MIPI-DSI, HDMI, and Ethernet.

The series was first posted as v1 at:
https://lore.kernel.org/linux-rockchip/[email protected]
v2 at:
https://lore.kernel.org/linux-rockchip/[email protected]

You got extensive guideline what to do in my reply to avoid exactly the mistake you did ... yet you ignored the guideline.

I don't understand.

Are you going to ignore also Conor's tags?

Best regards,
Krzysztof

author
#10 lore raw
Quoted 8 lines · Krzysztof Kozlowski
Quoted 7 lines · John Clark

This series adds device tree support for the Luckfox Omni3576 Carrier Board with the Core3576 Module, powered by the Rockchip RK3576 SoC (four Cortex-A72 cores, four Cortex-A53 cores, Mali-G52 MC3 GPU). It enables essential functionality for booting Linux and basic connectivity, with plans for future support of peripherals like WiFi, MIPI-DSI, HDMI, and Ethernet.

Quoted 6 lines
Quoted 4 lines

The series was first posted as v1 at:
https://lore.kernel.org/linux-rockchip/[email protected]
v2 at:
https://lore.kernel.org/linux-rockchip/[email protected]

You got extensive guideline what to do in my reply to avoid exactly the mistake you did ... yet you ignored the guideline.

I did not ignore it, I took this to mean:

Quoted 3 lines

Do not attach (thread) your patchsets to some other threads (unrelated or older versions). This buries them deep in the mailbox and might interfere with applying entire sets."

that I should not use the "--in-reply-to" on my git submission which caused the emails to be nested. I see now that you were referring to adding the urls to my submission. I realize this is probably painful to go through over and over again with new contributors as they try to carefully follow all of the linux submission guidelines and I apologize for my ignorance.

Quoted 7 lines

I don't understand.

Are you going to ignore also Conor's tags?

Best regards,
Krzysztof

#11 lore raw
Quoted 22 lines · John Clark
Quoted 8 lines · Krzysztof Kozlowski
Quoted 7 lines · John Clark

This series adds device tree support for the Luckfox Omni3576 Carrier Board with the Core3576 Module, powered by the Rockchip RK3576 SoC (four Cortex-A72 cores, four Cortex-A53 cores, Mali-G52 MC3 GPU). It enables essential functionality for booting Linux and basic connectivity, with plans for future support of peripherals like WiFi, MIPI-DSI, HDMI, and Ethernet.

Quoted 6 lines
Quoted 4 lines

The series was first posted as v1 at:
https://lore.kernel.org/linux-rockchip/[email protected]
v2 at:
https://lore.kernel.org/linux-rockchip/[email protected]

You got extensive guideline what to do in my reply to avoid exactly the mistake you did ... yet you ignored the guideline.

I did not ignore it, I took this to mean:

Quoted 3 lines

Do not attach (thread) your patchsets to some other threads (unrelated or older versions). This buries them deep in the mailbox and might interfere with applying entire sets."

Quoted 6 lines

that I should not use the "--in-reply-to" on my git submission which caused the emails to be nested. I see now that you were referring to adding the urls to my submission.
I realize this is probably painful to go through over and over again with new contributors as they try to carefully follow all of the linux submission guidelines and I apologize for my ignorance.

The next instruction, not that one. The instruction saying:

"...because many review tags are being ignored."

with much bigger explanation what is expected now and what should you do.

Best regards,
Krzysztof

#12 lore raw
In reply to John Clark
Quoted 88 lines · John Clark

This series adds device tree support for the Luckfox Omni3576 Carrier Board with the Core3576 Module, powered by the Rockchip RK3576 SoC (four Cortex-A72 cores, four Cortex-A53 cores, Mali-G52 MC3 GPU). It enables essential functionality for booting Linux and basic connectivity, with plans for future support of peripherals like WiFi, MIPI-DSI, HDMI, and Ethernet.

The series was first posted as v1 at:
https://lore.kernel.org/linux-rockchip/[email protected]
v2 at:
https://lore.kernel.org/linux-rockchip/[email protected]

Tested features (on Linux 6.15-rc4):
- UART: Serial console operational
- SD card: Mounts and reads/writes successfully
- PCIe: NVMe SSD detected, mounted, and fully functional
- USB 2.0: Host ports operational
- RTC: Timekeeping and wake-up tested
- LED: Heartbeat trigger functional
- eMMC: Enabled in device tree, not populated on tested hardware

The series includes three patches:
1. dt-bindings: vendor-prefixes: Add Luckfox vendor prefix
2. dt-bindings: arm: rockchip: Add Luckfox Omni3576 and Core3576 bindings
3. arm64: dts: rockchip: Add Luckfox Omni3576 board support

The device tree is covered by the existing ROCKCHIP ARCHITECTURE entry in MAINTAINERS. I am aware of ongoing RK3576 upstreaming efforts (e.g., by Collabora) and welcome feedback or collaboration to align with mainline driver development.

Changes in v3:
- Addressed Jonas Karlman's feedback on patch 3/3 (Luckfox Omni3576 device tree):
- Added pinctrl for green LED GPIO (gpio1 RK_PD5) for proper pin setup.
- Reordered regulator node properties for consistent sequence (e.g., regulator-name, regulator-min-microvolt, regulator-max-microvolt, etc.).
- Updated regulator nodes (vcc_3v3_pcie, vbus_5v0_typec, vcc_5v0_host, vcc_5v0_hdmi) to use 'gpios' property instead of deprecated 'gpio'.
- Removed pmic-power-off pinctrl state and pinctrl-1 from RK806 PMIC node, as they are vendor-specific and undocumented in bindings.
- Removed pwrkey node from PMIC, as it lacks binding documentation.
- Added blank line between properties and child nodes in i2c2 node for DT style compliance.
- Removed no-mmc property from sdmmc node to enable MMC support, aligning with RK3576 SD v3.0 and MMC v4.51 capabilities, allowing TF card slot to support MMC devices or eMMC via adapter.
- Removed Ethernet support (gmac0/gmac1 nodes) per Andrew Lunn's feedback, as it relied on the generic PHY driver with incorrect RGMII delay settings, which would break with the upcoming MAE0621A driver.
- Addressed Rob Herring's DTB check warnings, other warnings (e.g., VOP, PCIe, OTP, HDMI PHY) originate from rk3576.dtsi and are outside this patchset scope.
- Added RNG node to pick up Nicolas Frattaroli's "add RK3576 RNG node" patch

Changes in v2:
- Enabled HDMI node per feedback from Heiko Stuebner and Nicolas Frattaroli; untested due to upstream driver issues.
- Enabled Ethernet 1 node per Heiko's device tree philosophy; untested due to suspected PHY driver or configuration issues (removed in v3 per Andrew Lunn).
- Clarified eMMC remains enabled but unpopulated on tested board, per Heiko.

---
John Clark (3):
dt-bindings: vendor-prefixes: Add luckfox prefix
dt-bindings: arm: rockchip: Add Luckfox Omni3576 and Core3576 bindings
arm64: dts: rockchip: Add Luckfox Omni3576 Board support

 .../devicetree/bindings/arm/rockchip.yaml     |  10 +
 .../devicetree/bindings/vendor-prefixes.yaml  |   2 +
 arch/arm64/boot/dts/rockchip/Makefile         |   1 +
 .../dts/rockchip/rk3576-luckfox-core3576.dtsi | 683 ++++++++++++++++++
 .../dts/rockchip/rk3576-luckfox-omni3576.dts  |  53 ++
 5 files changed, 749 insertions(+)
 create mode 100644 arch/arm64/boot/dts/rockchip/rk3576-luckfox-core3576.dtsi
 create mode 100644 arch/arm64/boot/dts/rockchip/rk3576-luckfox-omni3576.dts
Quoted 5 lines

--
2.39.5

My bot found new DTB warnings on the .dts files added or changed in this series.

Some warnings may be from an existing SoC .dtsi. Or perhaps the warnings are fixed by another series. Ultimately, it is up to the platform maintainer whether these warnings are acceptable or not. No need to reply unless the platform maintainer has comments.

If you already ran DT checks and didn't see these error(s), then make sure dt-schema is up to date:

  pip3 install dtschema --upgrade

This patch series was applied (using b4) to base:
Base: attempting to guess base-commit...
Base: tags/next-20250506 (best guess, 2/3 blobs matched)

If this is not the correct base, please add 'base-commit' tag (or use b4 which does this automatically)

New warnings running 'make CHECK_DTBS=y for arch/arm64/boot/dts/rockchip/' for [email protected]:

arch/arm64/boot/dts/rockchip/rk3576-luckfox-omni3576.dtb: /soc/rng@2a410000: failed to match any schema with compatible: ['rockchip,rk3576-rng']

maintainer
#13 lore raw

Am Dienstag, 6. Mai 2025, 20:23:55 Mitteleuropäische Sommerzeit schrieb Rob Herring (Arm):

Quoted 115 lines · John Clark
Quoted 88 lines

This series adds device tree support for the Luckfox Omni3576 Carrier Board with the Core3576 Module, powered by the Rockchip RK3576 SoC (four Cortex-A72 cores, four Cortex-A53 cores, Mali-G52 MC3 GPU). It enables essential functionality for booting Linux and basic connectivity, with plans for future support of peripherals like WiFi, MIPI-DSI, HDMI, and Ethernet.

The series was first posted as v1 at:
https://lore.kernel.org/linux-rockchip/[email protected]
v2 at:
https://lore.kernel.org/linux-rockchip/[email protected]

Tested features (on Linux 6.15-rc4):
- UART: Serial console operational
- SD card: Mounts and reads/writes successfully
- PCIe: NVMe SSD detected, mounted, and fully functional
- USB 2.0: Host ports operational
- RTC: Timekeeping and wake-up tested
- LED: Heartbeat trigger functional
- eMMC: Enabled in device tree, not populated on tested hardware

The series includes three patches:
1. dt-bindings: vendor-prefixes: Add Luckfox vendor prefix
2. dt-bindings: arm: rockchip: Add Luckfox Omni3576 and Core3576 bindings
3. arm64: dts: rockchip: Add Luckfox Omni3576 board support

The device tree is covered by the existing ROCKCHIP ARCHITECTURE entry in MAINTAINERS. I am aware of ongoing RK3576 upstreaming efforts (e.g., by Collabora) and welcome feedback or collaboration to align with mainline driver development.

Changes in v3:
- Addressed Jonas Karlman's feedback on patch 3/3 (Luckfox Omni3576 device tree):
- Added pinctrl for green LED GPIO (gpio1 RK_PD5) for proper pin setup.
- Reordered regulator node properties for consistent sequence (e.g., regulator-name, regulator-min-microvolt, regulator-max-microvolt, etc.).
- Updated regulator nodes (vcc_3v3_pcie, vbus_5v0_typec, vcc_5v0_host, vcc_5v0_hdmi) to use 'gpios' property instead of deprecated 'gpio'.
- Removed pmic-power-off pinctrl state and pinctrl-1 from RK806 PMIC node, as they are vendor-specific and undocumented in bindings.
- Removed pwrkey node from PMIC, as it lacks binding documentation.
- Added blank line between properties and child nodes in i2c2 node for DT style compliance.
- Removed no-mmc property from sdmmc node to enable MMC support, aligning with RK3576 SD v3.0 and MMC v4.51 capabilities, allowing TF card slot to support MMC devices or eMMC via adapter.
- Removed Ethernet support (gmac0/gmac1 nodes) per Andrew Lunn's feedback, as it relied on the generic PHY driver with incorrect RGMII delay settings, which would break with the upcoming MAE0621A driver.
- Addressed Rob Herring's DTB check warnings, other warnings (e.g., VOP, PCIe, OTP, HDMI PHY) originate from rk3576.dtsi and are outside this patchset scope.
- Added RNG node to pick up Nicolas Frattaroli's "add RK3576 RNG node" patch

Changes in v2:
- Enabled HDMI node per feedback from Heiko Stuebner and Nicolas Frattaroli; untested due to upstream driver issues.
- Enabled Ethernet 1 node per Heiko's device tree philosophy; untested due to suspected PHY driver or configuration issues (removed in v3 per Andrew Lunn).
- Clarified eMMC remains enabled but unpopulated on tested board, per Heiko.

---
John Clark (3):
dt-bindings: vendor-prefixes: Add luckfox prefix
dt-bindings: arm: rockchip: Add Luckfox Omni3576 and Core3576 bindings
arm64: dts: rockchip: Add Luckfox Omni3576 Board support

 .../devicetree/bindings/arm/rockchip.yaml     |  10 +
 .../devicetree/bindings/vendor-prefixes.yaml  |   2 +
 arch/arm64/boot/dts/rockchip/Makefile         |   1 +
 .../dts/rockchip/rk3576-luckfox-core3576.dtsi | 683 ++++++++++++++++++
 .../dts/rockchip/rk3576-luckfox-omni3576.dts  |  53 ++
 5 files changed, 749 insertions(+)
 create mode 100644 arch/arm64/boot/dts/rockchip/rk3576-luckfox-core3576.dtsi
 create mode 100644 arch/arm64/boot/dts/rockchip/rk3576-luckfox-omni3576.dts
Quoted 5 lines

--
2.39.5

My bot found new DTB warnings on the .dts files added or changed in this series.

Some warnings may be from an existing SoC .dtsi. Or perhaps the warnings are fixed by another series. Ultimately, it is up to the platform maintainer whether these warnings are acceptable or not. No need to reply unless the platform maintainer has comments.

If you already ran DT checks and didn't see these error(s), then make sure dt-schema is up to date:

  pip3 install dtschema --upgrade

This patch series was applied (using b4) to base:
Base: attempting to guess base-commit...
Base: tags/next-20250506 (best guess, 2/3 blobs matched)

Quoted 6 lines

If this is not the correct base, please add 'base-commit' tag (or use b4 which does this automatically)

New warnings running 'make CHECK_DTBS=y for arch/arm64/boot/dts/rockchip/' for [email protected]:

arch/arm64/boot/dts/rockchip/rk3576-luckfox-omni3576.dtb: /soc/rng@2a410000: failed to match any schema with compatible: ['rockchip,rk3576-rng']

the binding (and driver) for the rk3576-rng have been merged into the cryptodev tree yesterday [0], so that issue should hopefully go away with the next linux-next.

[0] https://git.kernel.org/pub/scm/linux/kernel/git/herbert/cryptodev-2.6.git/commit/?id=165ef524bbeb71ccd470e70a4e63f813fa71e7cd