Skip to contentSkip to conversation

arm64: dts: marvell: add Device Tree files for Armada-8KP

PATCH New hannah at marvell.com 2 participants 4 messages Aug 8, 2017 – Aug 9, 2017

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 arm64: dts: marvell: add Device Tree files for Armada-8KP

From: Hanna Hawa <[email protected]>

This commit adds the base Device Tree files for the Armada 8KPlus. The Armada 8KP SoCs include several hardware blocks, and this commit only adds support for the AP810 block, that contains the CPU core and basic peripherals.

AP810 is a high-performance die, includes octal core application processor based ARMv8-A architecture, two standard high speed DDR4 interface, and GIC-600 interrupt controller.
AP810 Built as part of Marvell?s MoChi AP family products.

Armada-8080 (8KPlus family), include an AP810 block that contains the CPU core and basic peripherals.

This commit creates the following hierarchy:
* armada-ap810-ap0.dtsi - definitions common to AP810
* armada-ap810-ap0-octa-core.dtsi - description of the octa cores
* armada-8080.dtsi - description of the 8080 SoC
* armada-8080-db.dts - description of the 8080 board

---
 .../devicetree/bindings/arm/marvell/armada-8kp.txt |  15 ++
 arch/arm64/boot/dts/marvell/Makefile               |   1 +
 arch/arm64/boot/dts/marvell/armada-8080-db.dts     |  67 +++++++++
 arch/arm64/boot/dts/marvell/armada-8080.dtsi       |  53 +++++++
 .../dts/marvell/armada-ap810-ap0-octa-core.dtsi    | 104 ++++++++++++++
 arch/arm64/boot/dts/marvell/armada-ap810-ap0.dtsi  | 160 +++++++++++++++++++++
 6 files changed, 400 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/arm/marvell/armada-8kp.txt
 create mode 100644 arch/arm64/boot/dts/marvell/armada-8080-db.dts
 create mode 100644 arch/arm64/boot/dts/marvell/armada-8080.dtsi
 create mode 100644 arch/arm64/boot/dts/marvell/armada-ap810-ap0-octa-core.dtsi
 create mode 100644 arch/arm64/boot/dts/marvell/armada-ap810-ap0.dtsi
Documentation/devicetree/bindings/arm/marvell/armada-8kp.txt new file +15 -0
new file mode 100644
index 0000000..f3e9624
@@ -0,0 +1,15 @@
+Marvell Armada 8KPlus Platforms Device Tree Bindings
+----------------------------------------------------
+
+Boards using a SoC of the Marvell Armada 8KP families must carry
+the following root node property:
+
+ - compatible, with one of the following values:
+
+   - "marvell,armada-8080", "marvell,armada-ap810-octa", "marvell,armada-ap810"
+     when the SoC being used is the Armada 8080
+
+Example:
+
+compatible = "marvell,armada-8080-db", "marvell,armada-8080",
+	     "marvell,armada-ap810-octa", "marvell,armada-ap810"
arch/arm64/boot/dts/marvell/Makefile +1 -0
index 3e6ce6c..6cff81e 100644
@@ -8,6 +8,7 @@ dtb-$(CONFIG_ARCH_MVEBU) += armada-3720-espressobin.dtb
 dtb-$(CONFIG_ARCH_MVEBU) += armada-7040-db.dtb
 dtb-$(CONFIG_ARCH_MVEBU) += armada-8040-db.dtb
 dtb-$(CONFIG_ARCH_MVEBU) += armada-8040-mcbin.dtb
+dtb-$(CONFIG_ARCH_MVEBU) += armada-8080-db.dtb
 
 always		:= $(dtb-y)
 subdir-y	:= $(dts-dirs)
arch/arm64/boot/dts/marvell/armada-8080-db.dts new file +67 -0

67 lines not on this page · raw message

arch/arm64/boot/dts/marvell/armada-8080.dtsi new file +53 -0

53 lines not on this page · raw message

arch/arm64/boot/dts/marvell/armada-ap810-ap0-octa-core.dtsi new file +104 -0

104 lines not on this page · raw message

arch/arm64/boot/dts/marvell/armada-ap810-ap0.dtsi new file +160 -0

160 lines not on this page · raw message

Signature · 1 line
1.9.1
#1 lore raw

PATCH 1/1 arm64: dts: marvell: add Device Tree files for Armada-8KP

Quoted 35 lines · hannah at marvell.com

From: Hanna Hawa <[email protected]>

This commit adds the base Device Tree files for the Armada 8KPlus. The Armada 8KP SoCs include several hardware blocks, and this commit only adds support for the AP810 block, that contains the CPU core and basic peripherals.

AP810 is a high-performance die, includes octal core application processor based ARMv8-A architecture, two standard high speed DDR4 interface, and GIC-600 interrupt controller.
AP810 Built as part of Marvell?s MoChi AP family products.

Armada-8080 (8KPlus family), include an AP810 block that contains the CPU core and basic peripherals.

This commit creates the following hierarchy:
* armada-ap810-ap0.dtsi - definitions common to AP810
* armada-ap810-ap0-octa-core.dtsi - description of the octa cores
* armada-8080.dtsi - description of the 8080 SoC
* armada-8080-db.dts - description of the 8080 board

---
 .../devicetree/bindings/arm/marvell/armada-8kp.txt |  15 ++
 arch/arm64/boot/dts/marvell/Makefile               |   1 +
 arch/arm64/boot/dts/marvell/armada-8080-db.dts     |  67 +++++++++
 arch/arm64/boot/dts/marvell/armada-8080.dtsi       |  53 +++++++
 .../dts/marvell/armada-ap810-ap0-octa-core.dtsi    | 104 ++++++++++++++
 arch/arm64/boot/dts/marvell/armada-ap810-ap0.dtsi  | 160 +++++++++++++++++++++
 6 files changed, 400 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/arm/marvell/armada-8kp.txt
 create mode 100644 arch/arm64/boot/dts/marvell/armada-8080-db.dts
 create mode 100644 arch/arm64/boot/dts/marvell/armada-8080.dtsi
 create mode 100644 arch/arm64/boot/dts/marvell/armada-ap810-ap0-octa-core.dtsi
 create mode 100644 arch/arm64/boot/dts/marvell/armada-ap810-ap0.dtsi

[...]

arch/arm64/boot/dts/marvell/armada-ap810-ap0.dtsi line 87

Quoted 7 lines
arch/arm64/boot/dts/marvell/armada-ap810-ap0.dtsi new file +7 -0
+			gic: interrupt-controller at 3000000 {
+				compatible = "arm,gic-v3";
+				#interrupt-cells = <3>;
+				#address-cells = <1>;
+				#size-cells = <1>;
+				interrupt-controller;
+				interrupts = <GIC_PPI 9 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_HIGH)>;

This is wrong. There is no such thing as an affinity mask for PPI on GICv3 (and 4 cpus seem unrelated in the context of this HW).

arch/arm64/boot/dts/marvell/armada-ap810-ap0.dtsi line 91

Quoted 4 lines
arch/arm64/boot/dts/marvell/armada-ap810-ap0.dtsi new file +4 -0
+				ranges;
+
+				reg = <0x3000000 0x10000>,     /* GICD */
+				      <0x3060000 0x100000>;    /* GICR */

Where is the GICv2 compatibility region (GICV)that is provided by each A72 cores? It should be at PERIPHBASE+0x20000 (see
http://infocenter.arm.com/help/topic/com.arm.doc.100095_0003_06_en/way1382452674438.html).

Quoted 5 lines
arch/arm64/boot/dts/marvell/armada-ap810-ap0.dtsi new file +5 -0
+
+				gic_its_ap0: interrupt-controller at 3040000 {
+					compatible = "arm,gic-v3-its";
+					msi-controller;
+					#msi-cells = <1>;

arch/arm64/boot/dts/marvell/armada-ap810-ap0.dtsi line 106

Quoted 10 lines
arch/arm64/boot/dts/marvell/armada-ap810-ap0.dtsi new file +10 -0
+					reg = <0x3040000 0x20000>;
+				};
+			};
+
+			timer {
+				compatible = "arm,armv8-timer";
+				interrupts = <GIC_PPI 13 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>,
+					     <GIC_PPI 14 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>,
+					     <GIC_PPI 11 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>,
+					     <GIC_PPI 10 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>;

Same issue here.

Thanks,

	M.
Signature · 1 line
Jazz is not dead. It just smells funny...
author
#2 lore raw

PATCH 1/1 arm64: dts: marvell: add Device Tree files for Armada-8KP

Quoted 39 lines · Marc Zyngier
Quoted 35 lines · hannah at marvell.com

From: Hanna Hawa <[email protected]>

This commit adds the base Device Tree files for the Armada 8KPlus. The Armada 8KP SoCs include several hardware blocks, and this commit only adds support for the AP810 block, that contains the CPU core and basic peripherals.

AP810 is a high-performance die, includes octal core application processor based ARMv8-A architecture, two standard high speed DDR4 interface, and GIC-600 interrupt controller.
AP810 Built as part of Marvell?s MoChi AP family products.

Armada-8080 (8KPlus family), include an AP810 block that contains the CPU core and basic peripherals.

This commit creates the following hierarchy:
* armada-ap810-ap0.dtsi - definitions common to AP810
* armada-ap810-ap0-octa-core.dtsi - description of the octa cores
* armada-8080.dtsi - description of the 8080 SoC
* armada-8080-db.dts - description of the 8080 board

---
 .../devicetree/bindings/arm/marvell/armada-8kp.txt |  15 ++
 arch/arm64/boot/dts/marvell/Makefile               |   1 +
 arch/arm64/boot/dts/marvell/armada-8080-db.dts     |  67 +++++++++
 arch/arm64/boot/dts/marvell/armada-8080.dtsi       |  53 +++++++
 .../dts/marvell/armada-ap810-ap0-octa-core.dtsi    | 104 ++++++++++++++
 arch/arm64/boot/dts/marvell/armada-ap810-ap0.dtsi  | 160 +++++++++++++++++++++
 6 files changed, 400 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/arm/marvell/armada-8kp.txt
 create mode 100644 arch/arm64/boot/dts/marvell/armada-8080-db.dts
 create mode 100644 arch/arm64/boot/dts/marvell/armada-8080.dtsi
 create mode 100644 arch/arm64/boot/dts/marvell/armada-ap810-ap0-octa-core.dtsi
 create mode 100644 arch/arm64/boot/dts/marvell/armada-ap810-ap0.dtsi

[...]

Quoted 10 lines

arch/arm64/boot/dts/marvell/armada-ap810-ap0.dtsi line 87

Quoted 7 lines
arch/arm64/boot/dts/marvell/armada-ap810-ap0.dtsi new file +7 -0
+			gic: interrupt-controller at 3000000 {
+				compatible = "arm,gic-v3";
+				#interrupt-cells = <3>;
+				#address-cells = <1>;
+				#size-cells = <1>;
+				interrupt-controller;
+				interrupts = <GIC_PPI 9 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_HIGH)>;

This is wrong. There is no such thing as an affinity mask for PPI on GICv3 (and 4 cpus seem unrelated in the context of this HW).

I'll fix it in V2

Quoted 9 lines

arch/arm64/boot/dts/marvell/armada-ap810-ap0.dtsi line 91

Quoted 5 lines
arch/arm64/boot/dts/marvell/armada-ap810-ap0.dtsi new file +4 -0
+				ranges;
+
+				reg = <0x3000000 0x10000>,     /* GICD */
+				      <0x3060000 0x100000>;    /* GICR */

Where is the GICv2 compatibility region (GICV)that is provided by each A72 cores? It should be at PERIPHBASE+0x20000 (see
http://infocenter.arm.com/help/topic/com.arm.doc.100095_0003_06_en/way1382452674438.html).

Currently virtualization out of our focus, I add GICV region & it not tested.

Quoted 10 lines
Quoted 10 lines
arch/arm64/boot/dts/marvell/armada-ap810-ap0.dtsi new file +9 -0
+
+				gic_its_ap0: interrupt-controller at 3040000 {
+					compatible = "arm,gic-v3-its";
+					msi-controller;
+					#msi-cells = <1>;
+					reg = <0x3040000 0x20000>;
+				};
+			};
+
Quoted 8 lines

arch/arm64/boot/dts/marvell/armada-ap810-ap0.dtsi line 106

Quoted 6 lines
arch/arm64/boot/dts/marvell/armada-ap810-ap0.dtsi new file +6 -0
+			timer {
+				compatible = "arm,armv8-timer";
+				interrupts = <GIC_PPI 13 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>,
+					     <GIC_PPI 14 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>,
+					     <GIC_PPI 11 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>,
+					     <GIC_PPI 10 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>;

Same issue here.

I'll fix in V2

Thank you for reviewing

Thanks,
Hanna

Quoted 5 lines

Thanks,

	M.
#3 lore raw

PATCH 1/1 arm64: dts: marvell: add Device Tree files for Armada-8KP

Quoted 2 lines · Hanna Hawa
Quoted 1 line · Marc Zyngier

On 08/08/17 13:31, hannah at marvell.com wrote:

[...]

Quoted 10 lines
Quoted 8 lines

arch/arm64/boot/dts/marvell/armada-ap810-ap0.dtsi line 91

Quoted 4 lines
arch/arm64/boot/dts/marvell/armada-ap810-ap0.dtsi new file +4 -0
+				ranges;
+
+				reg = <0x3000000 0x10000>,     /* GICD */
+				      <0x3060000 0x100000>;    /* GICR */

Where is the GICv2 compatibility region (GICV)that is provided by each A72 cores? It should be at PERIPHBASE+0x20000 (see
http://infocenter.arm.com/help/topic/com.arm.doc.100095_0003_06_en/way1382452674438.html).

Currently virtualization out of our focus, I add GICV region & it not tested.

To be completely blunt, this is a bit out of your hands. The HW exists (it is part of the Cortex-A72 core), and it should be described. If it doesn't work for one reason or another, then this is a defect and we should treat it as such.

Also, you do describe the maintenance interrupt, whose sole purpose is to support virtualization.

Thanks,

	M.
Signature · 1 line
Jazz is not dead. It just smells funny.