Skip to contentSkip to conversation

Add initial support for RoseapplePi SBC

PATCH Superseded Cristian Ciocaltea 3 participants 12 messages Jun 15, 2020 – Aug 27, 2020

Subsystems (3)

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

cover Add initial support for RoseapplePi SBC

This patchset enables basic support for RoseapplePi, relying exclusively on the existing infrastructure for the Actions Semi Sxx SoCs (thank you Andreas and Manni for making this possible).

The SBC is powered by the Actions Semi S500 SoC and comes with 2GB RAM, uSD slot and optional eMMC storage. For more details, please check:
http://roseapplepi.org/index.php/spec/

The upcoming patches will improve this initial support by adding the missing bits and pieces to the S500 clock management unit, which is a prerequisite for providing an S500 pinctrl and gpio driver, in order to eventually enable access to additional functionality like I2C and MMC.

Thanks and regards,
Cristian Ciocaltea

Cristian Ciocaltea (4):
arm: dts: owl-s500: Fix incorrect PPI interrupt specifiers
dt-bindings: Add vendor prefix for RoseapplePi.org
dt-bindings: arm: actions: Document RoseapplePi
arm: dts: owl-s500: Add RoseapplePi

 .../devicetree/bindings/arm/actions.yaml      |  1 +
 .../devicetree/bindings/vendor-prefixes.yaml  |  2 +
 arch/arm/boot/dts/Makefile                    |  1 +
 arch/arm/boot/dts/owl-s500-roseapplepi.dts    | 47 +++++++++++++++++++
 arch/arm/boot/dts/owl-s500.dtsi               |  6 +--
 5 files changed, 54 insertions(+), 3 deletions(-)
 create mode 100644 arch/arm/boot/dts/owl-s500-roseapplepi.dts
Signature · 1 line
2.27.0
#4 lore raw

PATCH 2/4 dt-bindings: Add vendor prefix for RoseapplePi.org

Add devicetree vendor prefix for RoseapplePi.org Foundation.
Website: http://roseapplepi.org/

---
 Documentation/devicetree/bindings/vendor-prefixes.yaml | 2 ++
 1 file changed, 2 insertions(+)
Documentation/devicetree/bindings/vendor-prefixes.yaml +2 -0
index d3891386d671..e58dbe719fcd 100644
@@ -864,6 +864,8 @@ patternProperties:
     description: Ronbo Electronics
   "^roofull,.*":
     description: Shenzhen Roofull Technology Co, Ltd
+  "^roseapplepi,.*":
+    description: RoseapplePi.org
   "^samsung,.*":
     description: Samsung Semiconductor
   "^samtec,.*":
Signature · 1 line
2.27.0
#8 lore raw

PATCH 4/4 arm: dts: owl-s500: Add RoseapplePi

In reply to Cristian Ciocaltea

Add a Device Tree for the RoseapplePi SBC.

---
 arch/arm/boot/dts/Makefile                 |  1 +
 arch/arm/boot/dts/owl-s500-roseapplepi.dts | 47 ++++++++++++++++++++++
 2 files changed, 48 insertions(+)
 create mode 100644 arch/arm/boot/dts/owl-s500-roseapplepi.dts
arch/arm/boot/dts/Makefile +1 -0
index e8dd99201397..d0712e7275da 100644
@@ -856,6 +856,7 @@ dtb-$(CONFIG_ARCH_ORION5X) += \
 dtb-$(CONFIG_ARCH_ACTIONS) += \
 	owl-s500-cubieboard6.dtb \
 	owl-s500-guitar-bb-rev-b.dtb \
+	owl-s500-roseapplepi.dtb \
 	owl-s500-sparky.dtb
 dtb-$(CONFIG_ARCH_PRIMA2) += \
 	prima2-evb.dtb
arch/arm/boot/dts/owl-s500-roseapplepi.dts new file +47 -0

47 lines not on this page · raw message

Signature · 1 line
2.27.0
#1 lore raw

PATCH 1/4 arm: dts: owl-s500: Fix incorrect PPI interrupt specifiers

In reply to Cristian Ciocaltea

The PPI interrupts for cortex-a9 were incorrectly specified, fix them.

Fixes fdfe7f4f9d85 ("ARM: dts: Add Actions Semi S500 and LeMaker Guitar")
---
 arch/arm/boot/dts/owl-s500.dtsi | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
arch/arm/boot/dts/owl-s500.dtsi +3 -3
index 5ceb6cc4451d..1dbe4e8b38ac 100644
@@ -84,21 +84,21 @@ scu: scu@b0020000 {
 		global_timer: timer@b0020200 {
 			compatible = "arm,cortex-a9-global-timer";
 			reg = <0xb0020200 0x100>;
-			interrupts = <GIC_PPI 0 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_EDGE_RISING)>;
+			interrupts = <GIC_PPI 11 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_EDGE_RISING)>;
 			status = "disabled";
 		};
 
 		twd_timer: timer@b0020600 {
 			compatible = "arm,cortex-a9-twd-timer";
 			reg = <0xb0020600 0x20>;
-			interrupts = <GIC_PPI 2 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_EDGE_RISING)>;
+			interrupts = <GIC_PPI 13 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_EDGE_RISING)>;
 			status = "disabled";
 		};
 
 		twd_wdt: wdt@b0020620 {
 			compatible = "arm,cortex-a9-twd-wdt";
 			reg = <0xb0020620 0xe0>;
-			interrupts = <GIC_PPI 3 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_EDGE_RISING)>;
+			interrupts = <GIC_PPI 14 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_EDGE_RISING)>;
 			status = "disabled";
 		};
 
Signature · 1 line
2.27.0
#6 lore raw

PATCH 3/4 dt-bindings: arm: actions: Document RoseapplePi

In reply to Cristian Ciocaltea

Define compatible strings for RoseapplePi, a SBC manufactured in Taiwan, based on Actions Semi S500 reference design.

---
 Documentation/devicetree/bindings/arm/actions.yaml | 1 +
 1 file changed, 1 insertion(+)
Documentation/devicetree/bindings/arm/actions.yaml +1 -0
index ace3fdaa8396..787cd1b4f26c 100644
@@ -18,6 +18,7 @@ properties:
           - enum:
               - allo,sparky # Allo.com Sparky
               - cubietech,cubieboard6 # Cubietech CubieBoard6
+              - roseapplepi,roseapplepi # RoseapplePi.org RoseapplePi
           - const: actions,s500
       - items:
           - enum:
Signature · 1 line
2.27.0
maintainer Reviewed-by on v1 3/4
#7 lore raw

Re: [PATCH 3/4] dt-bindings: arm: actions: Document RoseapplePi

In reply to Cristian Ciocaltea
Quoted 8 lines · Cristian Ciocaltea

Define compatible strings for RoseapplePi, a SBC manufactured in Taiwan, based on Actions Semi S500 reference design.

---
 Documentation/devicetree/bindings/arm/actions.yaml | 1 +
 1 file changed, 1 insertion(+)
Reviewed-by on v1 1/4
#2 lore raw

Re: [PATCH 1/4] arm: dts: owl-s500: Fix incorrect PPI interrupt specifiers

In reply to Cristian Ciocaltea
Quoted 5 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Cristian" == Cristian Ciocaltea <[email protected]> writes:

The PPI interrupts for cortex-a9 were incorrectly specified, fix them.

Fixes fdfe7f4f9d85 ("ARM: dts: Add Actions Semi S500 and LeMaker Guitar")
Signature · 1 line
Bye, Peter Korsgaard
Reviewed-by on v1 4/4
#9 lore raw

Re: [PATCH 4/4] arm: dts: owl-s500: Add RoseapplePi

In reply to Cristian Ciocaltea
Quoted 4 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Cristian" == Cristian Ciocaltea <[email protected]> writes:

Add a Device Tree for the RoseapplePi SBC.

On a related note: There is now an owl-mmc driver for the s900. From a quick look at the datasheet it looks compatible with the controller on the s500. Did you have a look at hooking that up?

Signature · 1 line
Bye, Peter Korsgaard
#3 lore raw

Re: [PATCH 1/4] arm: dts: owl-s500: Fix incorrect PPI interrupt specifiers

In reply to Peter Korsgaard
Quoted 10 lines · Peter Korsgaard
Quoted 5 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Cristian" == Cristian Ciocaltea <[email protected]> writes:

The PPI interrupts for cortex-a9 were incorrectly specified, fix them.

Fixes fdfe7f4f9d85 ("ARM: dts: Add Actions Semi S500 and LeMaker Guitar")
Signature · 1 line
Bye, Peter Korsgaard

Thanks,
Cristi

#10 lore raw

Re: [PATCH 4/4] arm: dts: owl-s500: Add RoseapplePi

In reply to Peter Korsgaard

Hi Peter,

Thanks for the review!

Quoted 10 lines · Peter Korsgaard
Quoted 4 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Cristian" == Cristian Ciocaltea <[email protected]> writes:

Add a Device Tree for the RoseapplePi SBC.

On a related note: There is now an owl-mmc driver for the s900. From a quick look at the datasheet it looks compatible with the controller on the s500. Did you have a look at hooking that up?

Yes, please see:
https://lore.kernel.org/lkml/[email protected]/

The clock related patches have been already applied to v5.9 and hopefully the pinctrl driver will follow in v5.10.

Quoted 2 lines
Signature · 1 line
Bye, Peter Korsgaard

Regards,
Cristi

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

#11 lore raw

Re: [PATCH 4/4] arm: dts: owl-s500: Add RoseapplePi

Quoted 17 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Cristian" == Cristian Ciocaltea <[email protected]> writes:

Hi Peter,
Thanks for the review!

Quoted 10 lines · Peter Korsgaard
Quoted 4 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Cristian" == Cristian Ciocaltea <[email protected]> writes:

Add a Device Tree for the RoseapplePi SBC.

On a related note: There is now an owl-mmc driver for the s900. From a quick look at the datasheet it looks compatible with the controller on the s500. Did you have a look at hooking that up?

Quoted 5 lines

Yes, please see:
https://lore.kernel.org/lkml/[email protected]/

The clock related patches have been already applied to v5.9 and hopefully the pinctrl driver will follow in v5.10.

Cool, I must have missed that series Great, thanks!

Signature · 1 line
Bye, Peter Korsgaard