Skip to contentSkip to conversation

Add support for several new rk3566 SBCs

PATCH Superseded Peter Geis 2 participants 12 messages Apr 25, 2022 – Apr 26, 2022

Subsystems (2)

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore

Peter Geis

author
#0 lore raw

cover Add support for several new rk3566 SBCs

The following series adds support for the following single board computers:
- Pine64 Quartz64 Model B
- Pine64 SoQuartz SoM with RPi CM4IO carrier board
- Firefly Station M2

Patches 1, 2, and 3 add the requisite dt-bindings. Patch 4 adds support for the SFC to the rk356x device tree. Patch 5 adds the Quartz64 Model B device tree. Patch 6 adds the SoQuartz CM4IO device tree.
Patch 7 adds the Firefly Station M2 device tree.

Please review and apply at your convenience.

Very Respectfully,
Peter Geis

Furkan Kardame (1):
arm64: dts: rockchip: add dts for Firefly Station M2 rk3566

Peter Geis (6):
dt-bindings: arm: rockchip: Add Pine64 Quartz64 Model B
dt-bindings: arm: rockchip: Add Pine64 SoQuartz SoM
dt-bindings: arm: rockchip: Add Firefly Station M2
arm64: dts: rockchip: add rk356x sfc support
arm64: dts: rockchip: add Pine64 Quartz64-B device tree
arm64: dts: rockchip: add SoQuartz CM4IO dts

 .../devicetree/bindings/arm/rockchip.yaml     |  17 +
 arch/arm64/boot/dts/rockchip/Makefile         |   3 +
 .../boot/dts/rockchip/rk3566-quartz64-b.dts   | 615 ++++++++++++++++++
 .../arm64/boot/dts/rockchip/rk3566-roc-pc.dts | 580 +++++++++++++++++
 .../boot/dts/rockchip/rk3566-soquartz-cm4.dts | 167 +++++
 .../boot/dts/rockchip/rk3566-soquartz.dtsi    | 607 +++++++++++++++++
 arch/arm64/boot/dts/rockchip/rk356x.dtsi      |  11 +
 7 files changed, 2000 insertions(+)
 create mode 100644 arch/arm64/boot/dts/rockchip/rk3566-quartz64-b.dts
 create mode 100644 arch/arm64/boot/dts/rockchip/rk3566-roc-pc.dts
 create mode 100644 arch/arm64/boot/dts/rockchip/rk3566-soquartz-cm4.dts
 create mode 100644 arch/arm64/boot/dts/rockchip/rk3566-soquartz.dtsi
Signature · 1 line
2.25.1
author
#1 lore raw

PATCH 1/7 dt-bindings: arm: rockchip: Add Pine64 Quartz64 Model B

The Quartz64 Model B is a compact single board computer from Pine64 based on the rk3566 SoC. It outputs on uart2 for the debug console.

---
 Documentation/devicetree/bindings/arm/rockchip.yaml | 5 +++++
 1 file changed, 5 insertions(+)
Documentation/devicetree/bindings/arm/rockchip.yaml +5 -0
index eece92f83a2d..d6650a366753 100644
@@ -507,6 +507,11 @@ properties:
           - const: pine64,quartz64-a
           - const: rockchip,rk3566
 
+      - description: Pine64 Quartz64 Model B
+        items:
+          - const: pine64,quartz64-b
+          - const: rockchip,rk3566
+
       - description: Radxa Rock
         items:
           - const: radxa,rock
Signature · 1 line
2.25.1
#2 lore raw

Re: [PATCH v1 1/7] dt-bindings: arm: rockchip: Add Pine64 Quartz64 Model B

Quoted 13 lines · Peter Geis

The Quartz64 Model B is a compact single board computer from Pine64 based on the rk3566 SoC. It outputs on uart2 for the debug console.

---
 Documentation/devicetree/bindings/arm/rockchip.yaml | 5 +++++
 1 file changed, 5 insertions(+)
Documentation/devicetree/bindings/arm/rockchip.yaml +0 -0
index eece92f83a2d..d6650a366753 100644

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

Quoted 6 lines
Documentation/devicetree/bindings/arm/rockchip.yaml +3 -0
@@ -507,6 +507,11 @@ properties:
           - const: pine64,quartz64-a
           - const: rockchip,rk3566
 
+      - description: Pine64 Quartz64 Model B
+        items:
+          - const: pine64,quartz64-b

Since it is a single board, not a SoM, this should be rather part of enum of Model A block.

See also Radxa ROCK Pi entry.

Keeping such approach - each single board in one item of oneOf - makes the file very, very long...

Best regards,
Krzysztof

author
#3 lore raw

Re: [PATCH v1 1/7] dt-bindings: arm: rockchip: Add Pine64 Quartz64 Model B

Quoted 25 lines · Krzysztof Kozlowski
Quoted 13 lines · Peter Geis

The Quartz64 Model B is a compact single board computer from Pine64 based on the rk3566 SoC. It outputs on uart2 for the debug console.

---
 Documentation/devicetree/bindings/arm/rockchip.yaml | 5 +++++
 1 file changed, 5 insertions(+)
Documentation/devicetree/bindings/arm/rockchip.yaml +0 -0
index eece92f83a2d..d6650a366753 100644

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

Quoted 6 lines
Documentation/devicetree/bindings/arm/rockchip.yaml +3 -0
@@ -507,6 +507,11 @@ properties:
           - const: pine64,quartz64-a
           - const: rockchip,rk3566
 
+      - description: Pine64 Quartz64 Model B
+        items:
+          - const: pine64,quartz64-b

Since it is a single board, not a SoM, this should be rather part of enum of Model A block.

Quoted 4 lines

See also Radxa ROCK Pi entry.

Keeping such approach - each single board in one item of oneOf - makes the file very, very long...

Thanks for pointing this out, I will go this route.

Quoted 3 lines

Best regards,
Krzysztof

_______________________________________________
Linux-rockchip mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-rockchip

author
#4 lore raw

PATCH 2/7 dt-bindings: arm: rockchip: Add Pine64 SoQuartz SoM

In reply to Peter Geis

The SoQuartz system on module is designed to be pin compatible with the RPi CM4 SoM. It is based on the rk3566 SoC and outputs on uart2 for debug and console. The first carrier board supported is the CM4IO board from RPi.

---
 Documentation/devicetree/bindings/arm/rockchip.yaml | 7 +++++++
 1 file changed, 7 insertions(+)
Documentation/devicetree/bindings/arm/rockchip.yaml +7 -0
index d6650a366753..ad940e4127d9 100644
@@ -512,6 +512,13 @@ properties:
           - const: pine64,quartz64-b
           - const: rockchip,rk3566
 
+      - description: Pine64 SoQuartz SoM
+        items:
+          - enum:
+              - pine64,soquartz-cm4io
+          - const: pine64,soquartz
+          - const: rockchip,rk3566
+
       - description: Radxa Rock
         items:
           - const: radxa,rock
Signature · 1 line
2.25.1
Acked-by on v1 2/7
#5 lore raw

Re: [PATCH v1 2/7] dt-bindings: arm: rockchip: Add Pine64 SoQuartz SoM

Quoted 4 lines · Peter Geis

The SoQuartz system on module is designed to be pin compatible with the RPi CM4 SoM. It is based on the rk3566 SoC and outputs on uart2 for debug and console. The first carrier board supported is the CM4IO board from RPi.

Best regards,
Krzysztof

author
#6 lore raw

PATCH 3/7 dt-bindings: arm: rockchip: Add Firefly Station M2

In reply to Peter Geis

The Station M2 is a compact single board computer based on the rk3566 SoC. It outputs on uart2 for debug and console purposes.

---
 Documentation/devicetree/bindings/arm/rockchip.yaml | 5 +++++
 1 file changed, 5 insertions(+)
Documentation/devicetree/bindings/arm/rockchip.yaml +5 -0
index ad940e4127d9..b6254baffa67 100644
@@ -133,6 +133,11 @@ properties:
               - firefly,roc-rk3399-pc-plus
           - const: rockchip,rk3399
 
+      - description: Firefly Station M2
+        items:
+          - const: firefly,rk3566-roc-pc
+          - const: rockchip,rk3566
+
       - description: FriendlyElec NanoPi R2S
         items:
           - const: friendlyarm,nanopi-r2s
Signature · 1 line
2.25.1
author
#8 lore raw

PATCH 4/7 arm64: dts: rockchip: add rk356x sfc support

In reply to Peter Geis

Add the sfc node to the rk356x device tree. This enables spi flash support for this soc.

---
 arch/arm64/boot/dts/rockchip/rk356x.dtsi | 11 +++++++++++
 1 file changed, 11 insertions(+)
arch/arm64/boot/dts/rockchip/rk356x.dtsi +11 -0
index ca20d7b91fe5..61a6d9d4c8a0 100644
@@ -750,6 +750,17 @@ sdmmc1: mmc@fe2c0000 {
 		status = "disabled";
 	};
 
+	sfc: spi@fe300000 {
+		compatible = "rockchip,sfc";
+		reg = <0x0 0xfe300000 0x0 0x4000>;
+		interrupts = <GIC_SPI 101 IRQ_TYPE_LEVEL_HIGH>;
+		clocks = <&cru SCLK_SFC>, <&cru HCLK_SFC>;
+		clock-names = "clk_sfc", "hclk_sfc";
+		pinctrl-0 = <&fspi_pins>;
+		pinctrl-names = "default";
+		status = "disabled";
+	};
+
 	sdhci: mmc@fe310000 {
 		compatible = "rockchip,rk3568-dwcmshc";
 		reg = <0x0 0xfe310000 0x0 0x10000>;
Signature · 1 line
2.25.1
author
#9 lore raw

PATCH 5/7 arm64: dts: rockchip: add Pine64 Quartz64-B device tree

In reply to Peter Geis

Add a device tree for the Pine64 Quartz64 Model B single board computer. This board ouputs debug on uart2 and supports the following components:
Gigabit Ethernet
USB2 x2 (one port otg capable)
USB3
PCIe/SATA M2
HDMI
DSI (RPi compatible pinout)
CSI (RPi compatible pinout)
A/B/G/N WiFi
Bluetooth
SDMMC
eMMC
SPI Flash
PI-40 compatible pin header

---
 arch/arm64/boot/dts/rockchip/Makefile         |   1 +
 .../boot/dts/rockchip/rk3566-quartz64-b.dts   | 615 ++++++++++++++++++
 2 files changed, 616 insertions(+)
 create mode 100644 arch/arm64/boot/dts/rockchip/rk3566-quartz64-b.dts
arch/arm64/boot/dts/rockchip/Makefile +1 -0
index 4ae9f35434b8..252ee47b8a1d 100644
@@ -59,5 +59,6 @@ dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3399pro-rock-pi-n10.dtb
 dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3566-pinenote-v1.1.dtb
 dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3566-pinenote-v1.2.dtb
 dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3566-quartz64-a.dtb
+dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3566-quartz64-b.dtb
 dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3568-evb1-v10.dtb
 dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3568-bpi-r2-pro.dtb
arch/arm64/boot/dts/rockchip/rk3566-quartz64-b.dts new file +615 -0

615 lines not on this page · raw message

Signature · 1 line
2.25.1
author
#10 lore raw

PATCH 6/7 arm64: dts: rockchip: add SoQuartz CM4IO dts

In reply to Peter Geis

This is the initial SoQuartz SoM device tree on a CM4IO carrier board. This board outputs debug on uart2 and supports the following components:
Gigabit Ethernet
USB2 (OTG/Host shared)
PCIe 2.0 x1
HDMI (HDMI Port 0)
eDP (HDMI Port 1)
DSI (RPi compatible pinout)
CSI (RPi compatible pinout)
A/B/G/N WiFi
Bluetooth
SDMMC
eMMC
SPI NOR Flash (Not placed)
PI-40 compatible pin header

---
 arch/arm64/boot/dts/rockchip/Makefile         |   1 +
 .../boot/dts/rockchip/rk3566-soquartz-cm4.dts | 167 +++++
 .../boot/dts/rockchip/rk3566-soquartz.dtsi    | 607 ++++++++++++++++++
 3 files changed, 775 insertions(+)
 create mode 100644 arch/arm64/boot/dts/rockchip/rk3566-soquartz-cm4.dts
 create mode 100644 arch/arm64/boot/dts/rockchip/rk3566-soquartz.dtsi
arch/arm64/boot/dts/rockchip/Makefile +1 -0
index 252ee47b8a1d..23a2a0c111ac 100644
@@ -60,5 +60,6 @@ dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3566-pinenote-v1.1.dtb
 dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3566-pinenote-v1.2.dtb
 dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3566-quartz64-a.dtb
 dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3566-quartz64-b.dtb
+dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3566-soquartz-cm4.dtb
 dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3568-evb1-v10.dtb
 dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3568-bpi-r2-pro.dtb
arch/arm64/boot/dts/rockchip/rk3566-soquartz-cm4.dts new file +167 -0

167 lines not on this page · raw message

arch/arm64/boot/dts/rockchip/rk3566-soquartz.dtsi new file +607 -0

607 lines not on this page · raw message

Signature · 1 line
2.25.1
author
#11 lore raw

PATCH 7/7 arm64: dts: rockchip: add dts for Firefly Station M2 rk3566

In reply to Peter Geis

From: Furkan Kardame <[email protected]>

Add dts for Firefly Station M2.
Working IO:
* UART
* LED
* LAN
* Wifi
* SD Card
* eMMC
* USB2

---
 arch/arm64/boot/dts/rockchip/Makefile         |   1 +
 .../arm64/boot/dts/rockchip/rk3566-roc-pc.dts | 580 ++++++++++++++++++
 2 files changed, 581 insertions(+)
 create mode 100644 arch/arm64/boot/dts/rockchip/rk3566-roc-pc.dts
arch/arm64/boot/dts/rockchip/Makefile +1 -0
index 23a2a0c111ac..617915c17ca8 100644
@@ -60,6 +60,7 @@ dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3566-pinenote-v1.1.dtb
 dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3566-pinenote-v1.2.dtb
 dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3566-quartz64-a.dtb
 dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3566-quartz64-b.dtb
+dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3566-roc-pc.dtb
 dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3566-soquartz-cm4.dtb
 dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3568-evb1-v10.dtb
 dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3568-bpi-r2-pro.dtb
arch/arm64/boot/dts/rockchip/rk3566-roc-pc.dts new file +580 -0

580 lines not on this page · raw message

Signature · 1 line
2.25.1