arm64: dts: add description for solidrun cn9130 som and clearfog boards
Subsystems (2)
v5 cover arm64: dts: add description for solidrun cn9130 som and clearfog boards
SolidRun CN9130 SoM is a mostly pin-comptible replacement for Armada 388 SoM used in Clearfog and Clearfog Pro boards.
1. Add new binding for compatible strings closely matching the original.
2. Add device-tree includes for SoM and carrier shared design.
3. Add device-tree for both Clearfog Base and Pro.
While dtbs_check is happy with LED descriptions behind dsa switch, functionally they require supporting code by Andrew Lunn:
https://lore.kernel.org/r/20240401-v6-8-0-net-next-mv88e6xxx-leds-v4-v3-0-221b3fa55f78@lunn.ch
NOTICE IN CASE ANYBODY WANTS TO SELF-UPGRADE:
CN9130 SoM has a different footprint from Armada 388 SoM. Components on the carrier board below the SoM may collide causing damage, such as on Clearfog Base.
---
Changes in v5:
- replaced *-gpio properties with preferred *-gpios
(Reported-by: [email protected])
- removed fixed-regulator regulator-oc-protection-microamp properties
This property is intended to set a configurable over-current limit to
a particular value. The physical component however is not
configurable, remove the property.
- kept all review tags since the changes were minor, hope that is okay
with everybody.
- Link to v4: https://lore.kernel.org/r/[email protected]
Changes in v4:
- Picked up reviewed-by tags by Andrew Lunn.
- fixed a typo and changed 3-line comment into single-line comment
for clearfog-base/-pro dts, but kept review tags since change was
minor.
- Updated SFP led labels to use "sfp?:colour" without "color" property,
to avoid duplicate labels while reflecting they are each dual-colour.
- Link to v3: https://lore.kernel.org/r/[email protected]
Changes in v3:
- picked up acked-by for dt-bindings
- skipped acked-by for dts because additional changes were made:
- moved legacy netdev aliases to carrier dts
- fix status property style errors
- add pinctrl for secondary spi chip-select on mikrobus header (& som)
- specify spi bus frequency limits for som
- Added CN9131 SolidWAN board
- Link to v2: https://lore.kernel.org/r/[email protected]
Changes in v2:
- rewrote dt bindings dropping unnecessary compatibles
(Reported-By: Krzysztof Kozlowski <[email protected]>)
- added bindings for two additional boards (cn9131/9132)
support planned for the coming weeks, mostly serves
illustrational purposes, to understand cn913x variants
- cf-pro: add description for LEDs behind DSA switch
- cf-base: add description for LEDs behind PHYs
(Reported-By: Andrew Lunn <[email protected]>)
- Link to v1: https://lore.kernel.org/r/[email protected]
---
Josua Mayer (4):
dt-bindings: arm64: marvell: add solidrun cn9130 som based boards
dt-bindings: arm64: marvell: add solidrun cn9132 CEX-7 evaluation board
arm64: dts: add description for solidrun cn9130 som and clearfog boards
arm64: dts: add description for solidrun cn9131 solidwan board
.../bindings/arm/marvell/armada-7k-8k.yaml | 18 + arch/arm64/boot/dts/marvell/Makefile | 3 + arch/arm64/boot/dts/marvell/cn9130-cf-base.dts | 178 ++++++ arch/arm64/boot/dts/marvell/cn9130-cf-pro.dts | 375 ++++++++++++ arch/arm64/boot/dts/marvell/cn9130-cf.dtsi | 197 +++++++ arch/arm64/boot/dts/marvell/cn9130-sr-som.dtsi | 160 +++++ arch/arm64/boot/dts/marvell/cn9131-cf-solidwan.dts | 641 +++++++++++++++++++++ 7 files changed, 1572 insertions(+)
---
base-commit: 4cece764965020c22cff7665b18a012006359095
change-id: 20240318-cn9130-som-848e86acb0ac
Sincerely,
Signature · 1 line
Josua Mayer <[email protected]>
PATCH v5 1/4 dt-bindings: arm64: marvell: add solidrun cn9130 som based boards
Add bindings for SolidRun boards based on CN9130 SoM.
Three boards are added in total:
- Clearfog Base
- Clearfog Pro
- SolidWAN
The Clearfog boards are identical to the older Armada 388 based boards, upgraded with a new SoM and SoC.
However the feature set and performance characteristics are different, therefore compatible strings from armada 388 versions are not included.
SolidWAN uses the same SoM adding a southbridge on the carrier.
Since 2019 there are bindings in-tree for two boards based on cn9130 and 9131. These are extremely verbose by listing cn9132, cn9131, cn9130, ap807-quad, ap807 for the SoC alone.
CN9130 SoC combines an application processor (ap807) and a communication processor (cp115) in a single package.
The communication processor (short CP) is also available separately as a southbridge. It only functions in combination with the CN9130 SoC. Complete systems adding one or two southbridges are by convention called CN9131 and CN9132 respectively.
Despite different naming all systems are built around the same SoC. Therefore marvell,cn9131 and marvell,cn9132 can be omitted. The number of CPs is part of a board's BoM and can be reflected in the board compatible string instead.
Existing bindings also describe cn9130 as a specialisation of ap807-quad. Usually board-level compatibles stop at the SoC without going into silicon versions or individual dies.
There is no programming model at this layer, and in particular not for parts of an SoC. Therefore the ap compatibles can also be omitted.
--- .../devicetree/bindings/arm/marvell/armada-7k-8k.yaml | 10 ++++++++++ 1 file changed, 10 insertions(+)
Documentation/devicetree/bindings/arm/marvell/armada-7k-8k.yaml +10 -0
@@ -82,4 +82,14 @@ properties: - const: marvell,armada-ap807-quad - const: marvell,armada-ap807 + - description: + SolidRun CN9130 SoM based single-board computers + items: + - enum: + - solidrun,cn9130-clearfog-base + - solidrun,cn9130-clearfog-pro + - solidrun,cn9131-solidwan + - const: solidrun,cn9130-sr-som + - const: marvell,cn9130 + additionalProperties: true
Signature · 1 line
2.35.3
PATCH v5 2/4 dt-bindings: arm64: marvell: add solidrun cn9132 CEX-7 evaluation board
In reply to Josua MayerAdd bindings for the SolidRun CN9132 COM-Express Type 7 evaluation board. The CEX is based on CN9130 SoC and includes two southbridges.
Because CN9132 and 9131 are just names for different designs around the same SoC, no soc compatibles beside marvell,cn9130 are needed.
--- Documentation/devicetree/bindings/arm/marvell/armada-7k-8k.yaml | 8 ++++++++ 1 file changed, 8 insertions(+)
Documentation/devicetree/bindings/arm/marvell/armada-7k-8k.yaml +8 -0
@@ -92,4 +92,12 @@ properties: - const: solidrun,cn9130-sr-som - const: marvell,cn9130 + - description: + SolidRun CN9132 COM-Express Type 7 based single-board computers + items: + - enum: + - solidrun,cn9132-clearfog + - const: solidrun,cn9132-sr-cex7 + - const: marvell,cn9130 + additionalProperties: true
Signature · 1 line
2.35.3
Re: [PATCH v5 2/4] dt-bindings: arm64: marvell: add solidrun cn9132 CEX-7 evaluation board
Am 09.05.24 um 12:46 schrieb Josua Mayer:
Quoted 21 lines
Add bindings for the SolidRun CN9132 COM-Express Type 7 evaluation board. The CEX is based on CN9130 SoC and includes two southbridges.
Because CN9132 and 9131 are just names for different designs around the same SoC, no soc compatibles beside marvell,cn9130 are needed.
Signed-off-by Josua Mayer <[email protected]>Reviewed-by Andrew Lunn <[email protected]>--- Documentation/devicetree/bindings/arm/marvell/armada-7k-8k.yaml | 8 ++++++++ 1 file changed, 8 insertions(+)Documentation/devicetree/bindings/arm/marvell/armada-7k-8k.yaml +0
-0@@ -92,4 +92,12 @@ properties: - const: solidrun,cn9130-sr-som - const: marvell,cn9130
Documentation/devicetree/bindings/arm/marvell/armada-7k-8k.yaml properties: · line 103
Quoted 10 lines
Documentation/devicetree/bindings/arm/marvell/armada-7k-8k.yaml +8
-0+ - description: + SolidRun CN9132 COM-Express Type 7 based single-board computers + items: + - enum: + - solidrun,cn9132-clearfog + - const: solidrun,cn9132-sr-cex7 + - const: marvell,cn9130 + additionalProperties: true
It appears I will not be able to submit actual device-tree for this board. Therefore when applying this patch-set, it may be skipped.
I am not sure about the policy in this case,
if it is better to pick or skip.
Re: [PATCH v5 2/4] dt-bindings: arm64: marvell: add solidrun cn9132 CEX-7 evaluation board
Quoted 35 lines · Josua Mayer
Am 09.05.24 um 12:46 schrieb Josua Mayer:
Quoted 21 lines
Add bindings for the SolidRun CN9132 COM-Express Type 7 evaluation board. The CEX is based on CN9130 SoC and includes two southbridges.
Because CN9132 and 9131 are just names for different designs around the same SoC, no soc compatibles beside marvell,cn9130 are needed.
Signed-off-by Josua Mayer <[email protected]>Reviewed-by Andrew Lunn <[email protected]>--- Documentation/devicetree/bindings/arm/marvell/armada-7k-8k.yaml | 8 ++++++++ 1 file changed, 8 insertions(+)Documentation/devicetree/bindings/arm/marvell/armada-7k-8k.yaml +0
-0@@ -92,4 +92,12 @@ properties: - const: solidrun,cn9130-sr-som - const: marvell,cn9130Documentation/devicetree/bindings/arm/marvell/armada-7k-8k.yaml properties: · line 103
Quoted 10 lines
Documentation/devicetree/bindings/arm/marvell/armada-7k-8k.yaml +8
-0+ - description: + SolidRun CN9132 COM-Express Type 7 based single-board computers + items: + - enum: + - solidrun,cn9132-clearfog + - const: solidrun,cn9132-sr-cex7 + - const: marvell,cn9130 + additionalProperties: trueIt appears I will not be able to submit actual device-tree for this board. Therefore when applying this patch-set, it may be skipped.
Quoted 2 lines
I am not sure about the policy in this case,
if it is better to pick or skip.
What do you mean my "not be able to"? Does the device exist? If it does then, I at least, have no objection to documenting a compatible for it.
Cheers,
Conor.
Re: [PATCH v5 2/4] dt-bindings: arm64: marvell: add solidrun cn9132 CEX-7 evaluation board
Am 09.05.24 um 18:00 schrieb Conor Dooley:
Quoted 36 lines · Josua Mayer
Quoted 35 lines
Am 09.05.24 um 12:46 schrieb Josua Mayer:
Quoted 21 lines
Add bindings for the SolidRun CN9132 COM-Express Type 7 evaluation board. The CEX is based on CN9130 SoC and includes two southbridges.
Because CN9132 and 9131 are just names for different designs around the same SoC, no soc compatibles beside marvell,cn9130 are needed.
Signed-off-by Josua Mayer <[email protected]>Reviewed-by Andrew Lunn <[email protected]>--- Documentation/devicetree/bindings/arm/marvell/armada-7k-8k.yaml | 8 ++++++++ 1 file changed, 8 insertions(+)Documentation/devicetree/bindings/arm/marvell/armada-7k-8k.yaml +0
-0@@ -92,4 +92,12 @@ properties: - const: solidrun,cn9130-sr-som - const: marvell,cn9130Documentation/devicetree/bindings/arm/marvell/armada-7k-8k.yaml properties: · line 103
Quoted 10 lines
Documentation/devicetree/bindings/arm/marvell/armada-7k-8k.yaml +8
-0+ - description: + SolidRun CN9132 COM-Express Type 7 based single-board computers + items: + - enum: + - solidrun,cn9132-clearfog + - const: solidrun,cn9132-sr-cex7 + - const: marvell,cn9130 + additionalProperties: trueIt appears I will not be able to submit actual device-tree for this board. Therefore when applying this patch-set, it may be skipped.
Quoted 4 lines
Quoted 2 lines
I am not sure about the policy in this case,
if it is better to pick or skip.What do you mean my "not be able to"? Does the device exist? If it does then, I at least, have no objection to documenting a compatible for it.
Yes, it exists, and we do have a (low quality) dts for it. I may not be able to do it in time for closing of merge window.
If it can go with actual dts, that's great!
Re: [PATCH v5 2/4] dt-bindings: arm64: marvell: add solidrun cn9132 CEX-7 evaluation board
In reply to Conor DooleyAm 09.05.24 um 18:00 schrieb Conor Dooley:
Quoted 36 lines · Josua Mayer
Quoted 35 lines
Am 09.05.24 um 12:46 schrieb Josua Mayer:
Quoted 21 lines
Add bindings for the SolidRun CN9132 COM-Express Type 7 evaluation board. The CEX is based on CN9130 SoC and includes two southbridges.
Because CN9132 and 9131 are just names for different designs around the same SoC, no soc compatibles beside marvell,cn9130 are needed.
Signed-off-by Josua Mayer <[email protected]>Reviewed-by Andrew Lunn <[email protected]>--- Documentation/devicetree/bindings/arm/marvell/armada-7k-8k.yaml | 8 ++++++++ 1 file changed, 8 insertions(+)Documentation/devicetree/bindings/arm/marvell/armada-7k-8k.yaml +0
-0@@ -92,4 +92,12 @@ properties: - const: solidrun,cn9130-sr-som - const: marvell,cn9130Documentation/devicetree/bindings/arm/marvell/armada-7k-8k.yaml properties: · line 103
Quoted 10 lines
Documentation/devicetree/bindings/arm/marvell/armada-7k-8k.yaml +8
-0+ - description: + SolidRun CN9132 COM-Express Type 7 based single-board computers + items: + - enum: + - solidrun,cn9132-clearfog + - const: solidrun,cn9132-sr-cex7 + - const: marvell,cn9130 + additionalProperties: trueIt appears I will not be able to submit actual device-tree for this board. Therefore when applying this patch-set, it may be skipped.
Quoted 3 lines
Quoted 2 lines
I am not sure about the policy in this case,
if it is better to pick or skip.What do you mean my "not be able to"?
I may not be able to do it in time for closing of merge window.
Quoted 1 line
Does the device exist?
Yes, it exists, and we have a (low quality) downstream dts.
Quoted 2 lines
If it does
then, I at least, have no objection to documenting a compatible for it.
Great, in this case please keep it, thanks!
PATCH v5 3/4 arm64: dts: add description for solidrun cn9130 som and clearfog boards
In reply to Josua MayerAdd description for the SolidRun CN9130 SoM, and Clearfog Base / Pro reference boards.
The SoM has been designed as a pin-compatible replacement for the older Armada 388 based SoM. Therefore it supports the same boards and a similar feature set.
Most notable upgrades:
- 4x Cortex-A72
- 10Gbps SFP
- Both eMMC and SD supported at the same time
The developer first supporting this product at SolidRun decided to use different filenames for the DTBs: Armada 388 uses the full "clearfog" string while cn9130 uses the abbreviation "cf". This name is already hard-coded in pre-installed vendor u-boot and can not be changed easily.
NOTICE IN CASE ANYBODY WANTS TO SELF-UPGRADE:
CN9130 SoM has a different footprint from Armada 388 SoM. Components on the carrier board below the SoM may collide causing damage, such as on Clearfog Base.
--- arch/arm64/boot/dts/marvell/Makefile | 2 + arch/arm64/boot/dts/marvell/cn9130-cf-base.dts | 178 ++++++++++++ arch/arm64/boot/dts/marvell/cn9130-cf-pro.dts | 375 +++++++++++++++++++++++++ arch/arm64/boot/dts/marvell/cn9130-cf.dtsi | 197 +++++++++++++ arch/arm64/boot/dts/marvell/cn9130-sr-som.dtsi | 160 +++++++++++ 5 files changed, 912 insertions(+)
arch/arm64/boot/dts/marvell/Makefile +2 -0
@@ -28,3 +28,5 @@ dtb-$(CONFIG_ARCH_MVEBU) += cn9130-crb-A.dtb dtb-$(CONFIG_ARCH_MVEBU) += cn9130-crb-B.dtb dtb-$(CONFIG_ARCH_MVEBU) += ac5x-rd-carrier-cn9131.dtb dtb-$(CONFIG_ARCH_MVEBU) += ac5-98dx35xx-rd.dtb +dtb-$(CONFIG_ARCH_MVEBU) += cn9130-cf-base.dtb +dtb-$(CONFIG_ARCH_MVEBU) += cn9130-cf-pro.dtb
arch/arm64/boot/dts/marvell/cn9130-cf-base.dts new file +178 -0
178 lines not on this page · raw message
arch/arm64/boot/dts/marvell/cn9130-cf-pro.dts new file +375 -0
375 lines not on this page · raw message
arch/arm64/boot/dts/marvell/cn9130-cf.dtsi new file +197 -0
197 lines not on this page · raw message
arch/arm64/boot/dts/marvell/cn9130-sr-som.dtsi new file +160 -0
160 lines not on this page · raw message
Signature · 1 line
2.35.3
PATCH v5 4/4 arm64: dts: add description for solidrun cn9131 solidwan board
In reply to Josua MayerAdd description for the SolidRun CN9131 SolidWAN, based on CN9130 SoM with an extra communication processor on the carrier board.
This board differentiates itself from CN9130 Clearfog by providing additional SoC native network interfaces and pci buses:
2x 10Gbps SFP+
4x 1Gbps RJ45
1x miniPCI-E
1x m.2 b-key with sata, usb-2.0 and usb-3.0
1x m.2 m-key with pcie and usb-2.0
1x m.2 b-key with pcie, usb-2.0, usb-3.0 and 2x sim slots 1x mpcie with pcie only
2x type-a usb-2.0/3.0
--- arch/arm64/boot/dts/marvell/Makefile | 1 + arch/arm64/boot/dts/marvell/cn9131-cf-solidwan.dts | 641 +++++++++++++++++++++ 2 files changed, 642 insertions(+)
arch/arm64/boot/dts/marvell/Makefile +1 -0
@@ -30,3 +30,4 @@ dtb-$(CONFIG_ARCH_MVEBU) += ac5x-rd-carrier-cn9131.dtb dtb-$(CONFIG_ARCH_MVEBU) += ac5-98dx35xx-rd.dtb dtb-$(CONFIG_ARCH_MVEBU) += cn9130-cf-base.dtb dtb-$(CONFIG_ARCH_MVEBU) += cn9130-cf-pro.dtb +dtb-$(CONFIG_ARCH_MVEBU) += cn9131-cf-solidwan.dtb
arch/arm64/boot/dts/marvell/cn9131-cf-solidwan.dts new file +641 -0
641 lines not on this page · raw message
Signature · 1 line
2.35.3