Skip to contentSkip to conversation

Add support for Cool Pi GenBook

PATCH Superseded Andy Yan 3 participants 5 messages Jul 28, 2024

Subsystems (2)

v2 of 6 Superseded Latest is v6 →

lore
Share & tools
lore

Andy Yan

author
#0 lore raw

v2 cover Add support for Cool Pi GenBook

Cool Pi GenBook is a rk3588 based laptop, it is designed to consist of a carrier board conntected with a CM5 SoM.

This series add support of eMMC/USB HOST/WiFi/Battery/TouchPad/Keyboard, with a mainline based u-boot[0], it can boot a third-party distribution such as Armbian on u-disk.

[0]https://github.com/andyshrk/u-boot/commit/8eedc6700367166bfa63b861d8e7aca486d315fe

Changes in v2:
- Descripte it as Cool Pi CM5 GenBook
- rename dts to rk3588-coolpi-cm5-genbook
- enable touchpad
- enable battery

Andy Yan (2):
dt-bindings: arm: rockchip: Add Cool Pi CM5 GenBook
arm64: dts: rockchip: Add support for rk3588 based Cool Pi CM5 GenBook

 .../devicetree/bindings/arm/rockchip.yaml     |   8 +
 arch/arm64/boot/dts/rockchip/Makefile         |   1 +
 .../rockchip/rk3588-coolpi-cm5-genbook.dts    | 349 ++++++++++++++++++
 3 files changed, 358 insertions(+)
 create mode 100644 arch/arm64/boot/dts/rockchip/rk3588-coolpi-cm5-genbook.dts
Signature · 1 line
2.34.1
author
#1 lore raw

PATCH v2 1/2 dt-bindings: arm: rockchip: Add Cool Pi CM5 GenBook

Add Cool Pi CM5 GenBook, a laptop powered by RK3588.

Cool Pi GenBook works with a carrier board connect with CM5.

---

Changes in v2:
- Descripte it as Cool Pi CM5 GenBook

 Documentation/devicetree/bindings/arm/rockchip.yaml | 8 ++++++++
 1 file changed, 8 insertions(+)
Documentation/devicetree/bindings/arm/rockchip.yaml +8 -0
index 1ef09fbfdfaf..a9bfb87e69f5 100644
@@ -96,6 +96,14 @@ properties:
           - const: coolpi,pi-cm5
           - const: rockchip,rk3588
 
+      - description: Cool Pi CM5 GenBook
+        items:
+          - enum:
+              - coolpi,genbook
+          - const: coolpi,pi-cm5
+          - const: rockchip,rk3588
+
+
       - description: Cool Pi 4 Model B
         items:
           - const: coolpi,pi-4b
Signature · 1 line
2.34.1
#2 lore raw

Re: [PATCH v2 1/2] dt-bindings: arm: rockchip: Add Cool Pi CM5 GenBook

Quoted 4 lines · Andy Yan

Add Cool Pi CM5 GenBook, a laptop powered by RK3588.

Cool Pi GenBook works with a carrier board connect with CM5.

Please wrap commit message according to Linux coding style / submission process (neither too early nor over the limit):
https://elixir.bootlin.com/linux/v6.4-rc1/source/Documentation/process/submitting-patches.rst#L597

Quoted 17 lines

---

Changes in v2:
- Descripte it as Cool Pi CM5 GenBook

 Documentation/devicetree/bindings/arm/rockchip.yaml | 8 ++++++++
 1 file changed, 8 insertions(+)
Documentation/devicetree/bindings/arm/rockchip.yaml +0 -0
index 1ef09fbfdfaf..a9bfb87e69f5 100644
@@ -96,6 +96,14 @@ properties:
           - const: coolpi,pi-cm5

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

Quoted 10 lines
Documentation/devicetree/bindings/arm/rockchip.yaml +8 -0
           - const: rockchip,rk3588
 
+      - description: Cool Pi CM5 GenBook
+        items:
+          - enum:
+              - coolpi,genbook
+          - const: coolpi,pi-cm5
+          - const: rockchip,rk3588
+
+

Just one blank line. Please always take a look how the code looks around and do not implement things entirely different. Like odd blank lines.

Best regards,
Krzysztof

#3 lore raw

Re: [PATCH v2 1/2] dt-bindings: arm: rockchip: Add Cool Pi CM5 GenBook

In reply to Andy Yan

Hello Andy,

Quoted 21 lines · Andy Yan

Add Cool Pi CM5 GenBook, a laptop powered by RK3588.

Cool Pi GenBook works with a carrier board connect with CM5.

---

Changes in v2:
- Descripte it as Cool Pi CM5 GenBook

 Documentation/devicetree/bindings/arm/rockchip.yaml | 8 ++++++++
 1 file changed, 8 insertions(+)
Documentation/devicetree/bindings/arm/rockchip.yaml +0 -0
index 1ef09fbfdfaf..a9bfb87e69f5 100644

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

Quoted 7 lines
Documentation/devicetree/bindings/arm/rockchip.yaml +4 -0
@@ -96,6 +96,14 @@ properties:
           - const: coolpi,pi-cm5
           - const: rockchip,rk3588
 
+      - description: Cool Pi CM5 GenBook
+        items:
+          - enum:
+              - coolpi,genbook

This should also follow the "dependency graph" naming approach, so it should be named "coolpi,pi-cm5-genbook" instead. It would also make the naming scheme future-proof for some other SoM that could possibly be made available for the GenBook in the future, for which the new identifier would be "coolpi,pi-XYZ-genbook".

Though, the "pi-" part in "coolpi,pi-cm5-genbook" seems redundant to me, but it's already present in all related Cool Pi identifiers, e.g. "coolpi,pi-cm5-evb", so including the leading "pi-" here as well is obviously required for consistency.

Oh, and I somehow managed to miss this in my earlier repose, which would have saved you from sending another version of this series. I'm sorry for that.

Quoted 7 lines
Documentation/devicetree/bindings/arm/rockchip.yaml +4 -0
+          - const: coolpi,pi-cm5
+          - const: rockchip,rk3588
+
+
       - description: Cool Pi 4 Model B
         items:
           - const: coolpi,pi-4b
author
#4 lore raw

PATCH v2 2/2 arm64: dts: rockchip: Add support for rk3588 based Cool Pi CM5 GenBook

In reply to Andy Yan

Cool Pi CM5 GenBook works as a carrier board connect with CM5 [0].

Specification:
- Rockchip RK3588
- LPDDR5X 8/32 GB
- eMMC 64 GB
- HDMI Type A out x 1
- USB 3.0 Host x 1
- USB-C 3.0 with DisplayPort AltMode
- PCIE M.2 E Key for RTL8852BE Wireless connection
- PCIE M.2 M Key for NVME connection
- eDP panel with 1920x1080

This patch add basic support to bringup eMMC/USB HOST/WiFi/TouchPad/Battery/PCIE NVME,
and can also drive a HDMI output with out of tree hdmi patches.

[0] https://www.crowdsupply.com/shenzhen-tianmao-technology-co-ltd/genbook-rk3588

---

Changes in v2:
- rename dts to rk3588-coolpi-cm5-genbook
- enable touchpad
- enable battery
- descripte it as CoolPi CM5 GenBook

 arch/arm64/boot/dts/rockchip/Makefile         |   1 +
 .../rockchip/rk3588-coolpi-cm5-genbook.dts    | 349 ++++++++++++++++++
 2 files changed, 350 insertions(+)
 create mode 100644 arch/arm64/boot/dts/rockchip/rk3588-coolpi-cm5-genbook.dts
arch/arm64/boot/dts/rockchip/Makefile +1 -0
index 8fa469db400c..9cc8ef024fd7 100644
@@ -122,6 +122,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) += rk3588-armsom-sige7.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
 dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3588-edgeble-neu6a-wifi.dtbo
 dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3588-edgeble-neu6b-io.dtb
arch/arm64/boot/dts/rockchip/rk3588-coolpi-cm5-genbook.dts new file +349 -0

349 lines not on this page · raw message

Signature · 1 line
2.34.1