Skip to contentSkip to conversation

dt-bindings: arm: rockchip: add Radxa E52C

RFC Superseded FUKAUMI Naoki 4 participants 8 messages Aug 7, 2024 – Aug 8, 2024

Subsystems (2)

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

RFC 1/2 dt-bindings: arm: rockchip: add Radxa E52C

Add devicetree binding for the Radxa E52C.

Radxa E52C is a compact network computer using the Rockchip RK3582 chip.

---
how should we handle RK3582? as far as I know, it's just an another version of RK3588S.

---
 Documentation/devicetree/bindings/arm/rockchip.yaml | 6 ++++++
 1 file changed, 6 insertions(+)
Documentation/devicetree/bindings/arm/rockchip.yaml +6 -0
index 2ad835f4068e..ba6d03b37bef 100644
@@ -759,6 +759,12 @@ properties:
           - const: radxa,cm3i
           - const: rockchip,rk3568
 
+      - description: Radxa E52C
+        items:
+          - enum:
+              - radxa,e52c
+          - const: rockchip,rk3588s
+
       - description: Radxa Rock
         items:
           - const: radxa,rock
Signature · 7 lines
2.43.0


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

RFC 2/2 arm64: dts: rockchip: add Radxa E52C

Radxa E52C is a compact network computer using the Rockchip RK3582 chip:

- Rockchip RK3582 SoC
- Dual A76 and Quad A55 CPU
- 5TOPS NPU
- 2GB/4GB/8GB LPDDR4x RAM
- 16GB/32GB/64GB eMMC
- Micro SD Card slot
- 2x 2.5GbE port
- 1x USB 3.0 Type-A HOST port
- 1x USB Type-C debug port
- 1x USB Type-C 5V/3A power port

---
 arch/arm64/boot/dts/rockchip/Makefile         |   1 +
 .../boot/dts/rockchip/rk3588s-radxa-e52c.dts  | 680 ++++++++++++++++++
 2 files changed, 681 insertions(+)
 create mode 100644 arch/arm64/boot/dts/rockchip/rk3588s-radxa-e52c.dts
arch/arm64/boot/dts/rockchip/Makefile +1 -0
index 4861987457a4..ff64756c432a 100644
@@ -144,5 +144,6 @@ dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3588s-indiedroid-nova.dtb
 dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3588s-khadas-edge2.dtb
 dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3588s-nanopi-r6s.dtb
 dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3588s-nanopi-r6c.dtb
+dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3588s-radxa-e52c.dtb
 dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3588s-rock-5a.dtb
 dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3588s-orangepi-5.dtb
arch/arm64/boot/dts/rockchip/rk3588s-radxa-e52c.dts new file +680 -0

680 lines not on this page · raw message

Signature · 7 lines
2.43.0


_______________________________________________
Linux-rockchip mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-rockchip
#2 lore raw
In reply to FUKAUMI Naoki

Hello Fukaumi,

Quoted 9 lines · FUKAUMI Naoki

Add devicetree binding for the Radxa E52C.

Radxa E52C is a compact network computer using the Rockchip RK3582 chip.

---
how should we handle RK3582? as far as I know, it's just an another version of RK3588S.

Could you, please, provide links to downstream kernel code from Rockchip that shows the CPU and GPU OPPs for the RK3582?

By the way, is the schematic of Radxa E52C available?

Quoted 12 lines
---
 Documentation/devicetree/bindings/arm/rockchip.yaml | 6 ++++++
 1 file changed, 6 insertions(+)
Documentation/devicetree/bindings/arm/rockchip.yaml +0 -0
index 2ad835f4068e..ba6d03b37bef 100644
@@ -759,6 +759,12 @@ properties:
           - const: radxa,cm3i
           - const: rockchip,rk3568

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

Quoted 10 lines
Documentation/devicetree/bindings/arm/rockchip.yaml +6 -0
 
+      - description: Radxa E52C
+        items:
+          - enum:
+              - radxa,e52c
+          - const: rockchip,rk3588s
+
       - description: Radxa Rock
         items:
           - const: radxa,rock

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

#3 lore raw

Hi,

Quoted 8 lines · Dragan Simic

Hello Fukaumi,

Quoted 5 lines · FUKAUMI Naoki

Add devicetree binding for the Radxa E52C.

Radxa E52C is a compact network computer using the Rockchip RK3582 chip.

Quoted 7 lines
Quoted 4 lines

---
how should we handle RK3582? as far as I know, it's just an another version of RK3588S.

Could you, please, provide links to downstream kernel code from Rockchip that shows the CPU and GPU OPPs for the RK3582?

https://github.com/radxa/kernel/commits/linux-6.1-stan-rkr1/

I noticed there are some differences between source and schematic. I guess there are some copy & paste work, both are not so reliable...

Quoted 1 line

By the way, is the schematic of Radxa E52C available?

it's not yet available in public. everything, include hardware, is WIP. but it will be available before end of this month.

Best regards,

--
FUKAUMI Naoki
Radxa Computer (Shenzhen) Co., Ltd.

Quoted 13 lines
Quoted 13 lines

---
 Documentation/devicetree/bindings/arm/rockchip.yaml | 6 ++++++

 1 file changed, 6 insertions(+)
Documentation/devicetree/bindings/arm/rockchip.yaml +0 -0
index 2ad835f4068e..ba6d03b37bef 100644
@@ -759,6 +759,12 @@ properties:

           - const: radxa,cm3i
           - const: rockchip,rk3568

Quoted 10 lines
Quoted 9 lines

+      - description: Radxa E52C
+        items:
+          - enum:
+              - radxa,e52c
+          - const: rockchip,rk3588s
+
       - description: Radxa Rock
         items:
           - const: radxa,rock

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

#4 lore raw
Quoted 12 lines · FUKAUMI Naoki
Quoted 11 lines · Dragan Simic
Quoted 9 lines · FUKAUMI Naoki

Add devicetree binding for the Radxa E52C.

Radxa E52C is a compact network computer using the Rockchip RK3582 chip.

---
how should we handle RK3582? as far as I know, it's just an another version of RK3588S.

Quoted 4 lines
Quoted 2 lines

Could you, please, provide links to downstream kernel code from Rockchip that shows the CPU and GPU OPPs for the RK3582?

https://github.com/radxa/kernel/commits/linux-6.1-stan-rkr1/

In fact, we'd need downstream source code from Rockchip as a reference, instead of downstream source code from Radxa.

The link avaliable below seems to provide the required downstream information about the RK3582, straight from Rockchip. I'll go through it and come back with an update.

https://raw.githubusercontent.com/rockchip-linux/kernel/develop-5.10/arch/arm64/boot/dts/rockchip/rk3528.dtsi

Quoted 7 lines

I noticed there are some differences between source and schematic. I guess there are some copy & paste work, both are not so reliable...

Quoted 1 line

By the way, is the schematic of Radxa E52C available?

it's not yet available in public. everything, include hardware, is WIP. but it will be available before end of this month.

I see, thanks for the clarification. Then it's the best to wait until the actual public release of this new board.

Quoted 13 lines
Quoted 13 lines
Quoted 13 lines

---
 Documentation/devicetree/bindings/arm/rockchip.yaml | 6 ++++++

 1 file changed, 6 insertions(+)
Documentation/devicetree/bindings/arm/rockchip.yaml +0 -0
index 2ad835f4068e..ba6d03b37bef 100644
@@ -759,6 +759,12 @@ properties:

           - const: radxa,cm3i
           - const: rockchip,rk3568

Quoted 9 lines
Quoted 9 lines
Quoted 9 lines

+      - description: Radxa E52C
+        items:
+          - enum:
+              - radxa,e52c
+          - const: rockchip,rk3588s
+
       - description: Radxa Rock
         items:
           - const: radxa,rock

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

#5 lore raw
Quoted 18 lines · Dragan Simic
Quoted 12 lines · FUKAUMI Naoki
Quoted 11 lines · Dragan Simic
Quoted 9 lines · FUKAUMI Naoki

Add devicetree binding for the Radxa E52C.

Radxa E52C is a compact network computer using the Rockchip RK3582 chip.

---
how should we handle RK3582? as far as I know, it's just an another version of RK3588S.

Quoted 4 lines
Quoted 2 lines

Could you, please, provide links to downstream kernel code from Rockchip that shows the CPU and GPU OPPs for the RK3582?

https://github.com/radxa/kernel/commits/linux-6.1-stan-rkr1/

Quoted 8 lines

In fact, we'd need downstream source code from Rockchip as a reference, instead of downstream source code from Radxa.

The link avaliable below seems to provide the required downstream information about the RK3582, straight from Rockchip. I'll go through it and come back with an update.

https://raw.githubusercontent.com/rockchip-linux/kernel/develop-5.10/arch/arm64/boot/dts/rockchip/rk3528.dtsi

Oops, my bad, somehow I got RK3582 and RK3528 mixed up, sorry for that. There have been quite a few similar yet different SoCs from Rockchip recently, so mixing them up has become rather easy. :)

AFAICT, there's no information about the RK3582 available from the Rockchip downstream kernel code in the GitHub repository linked above, so we'll have to wait for that to also become publicly available from Rockchip.

Quoted 24 lines
Quoted 7 lines

I noticed there are some differences between source and schematic. I guess there are some copy & paste work, both are not so reliable...

Quoted 1 line

By the way, is the schematic of Radxa E52C available?

it's not yet available in public. everything, include hardware, is WIP. but it will be available before end of this month.

I see, thanks for the clarification. Then it's the best to wait until the actual public release of this new board.

Quoted 13 lines
Quoted 13 lines
Quoted 13 lines

---
 Documentation/devicetree/bindings/arm/rockchip.yaml | 6 ++++++

 1 file changed, 6 insertions(+)
Documentation/devicetree/bindings/arm/rockchip.yaml +0 -0
index 2ad835f4068e..ba6d03b37bef 100644
@@ -759,6 +759,12 @@ properties:

           - const: radxa,cm3i
           - const: rockchip,rk3568

Quoted 9 lines
Quoted 9 lines
Quoted 9 lines
Quoted 9 lines

+      - description: Radxa E52C
+        items:
+          - enum:
+              - radxa,e52c
+          - const: rockchip,rk3588s
+
       - description: Radxa Rock
         items:
           - const: radxa,rock

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

#6 lore raw
In reply to FUKAUMI Naoki
Quoted 5 lines · FUKAUMI Naoki

Add devicetree binding for the Radxa E52C.

Radxa E52C is a compact network computer using the Rockchip RK3582 chip.

Quoted 8 lines

---
how should we handle RK3582? as far as I know, it's just an another version of RK3588S.

---
 Documentation/devicetree/bindings/arm/rockchip.yaml | 6 ++++++
 1 file changed, 6 insertions(+)

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

New warnings running 'make CHECK_DTBS=y rockchip/rk3588s-radxa-e52c.dtb' for [email protected]:

arch/arm64/boot/dts/rockchip/rk3588s-radxa-e52c.dtb: leds: led-2:linux,default-trigger: 'oneOf' conditional failed, one must be fixed:

	'r8169-4-4100:00:link' is not one of ['backlight', 'default-on', 'heartbeat', 'disk-activity', 'disk-read', 'disk-write', 'timer', 'pattern', 'audio-micmute', 'audio-mute', 'bluetooth-power', 'flash', 'kbd-capslock', 'mtd', 'nand-disk', 'none', 'torch', 'usb-gadget', 'usb-host', 'usbport']
	'r8169-4-4100:00:link' does not match '^cpu[0-9]*$'
	'r8169-4-4100:00:link' does not match '^hci[0-9]+-power$'
	'r8169-4-4100:00:link' does not match '^mmc[0-9]+$'
	'r8169-4-4100:00:link' does not match '^phy[0-9]+tx$'
	from schema $id: http://devicetree.org/schemas/leds/leds-gpio.yaml#

arch/arm64/boot/dts/rockchip/rk3588s-radxa-e52c.dtb: leds: led-2: Unevaluated properties are not allowed ('linux,default-trigger' was unexpected)
from schema $id: http://devicetree.org/schemas/leds/leds-gpio.yaml#

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

#7 lore raw
In reply to FUKAUMI Naoki
Quoted 9 lines · FUKAUMI Naoki

Add devicetree binding for the Radxa E52C.

Radxa E52C is a compact network computer using the Rockchip RK3582 chip.

---
how should we handle RK3582? as far as I know, it's just an another version of RK3588S.

<form letter>
Please use scripts/get_maintainers.pl to get a list of necessary people and lists to CC. It might happen, that command when run on an older kernel, gives you outdated entries. Therefore please be sure you base your patches on recent Linux kernel.

Tools like b4 or scripts/get_maintainer.pl provide you proper list of people, so fix your workflow. Tools might also fail if you work on some ancient tree (don't, instead use mainline) or work on fork of kernel (don't, instead use mainline). Just use b4 and everything should be fine, although remember about b4 prep --auto-to-cc if you added new patches to the patchset.

You missed at least devicetree list (maybe more), so this won't be tested by automated tooling. Performing review on untested code might be a waste of time.

Please kindly resend and include all necessary To/Cc entries. </form letter>

Best regards,
Krzysztof

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