* [PATCH v3 0/4] arm64: Add support for Airoha EN7581 Soc
@ 2024-03-07 0:11 Lorenzo Bianconi
2024-03-07 0:11 ` [PATCH v3 1/4] dt-bindings: arm64: dts: airoha: Add en7581 entry Lorenzo Bianconi
` (3 more replies)
0 siblings, 4 replies; 10+ messages in thread
From: Lorenzo Bianconi @ 2024-03-07 0:11 UTC (permalink / raw)
To: linux-arm-kernel
Cc: robh+dt, krzysztof.kozlowski+dt, conor+dt, nbd, john, devicetree,
dd, catalin.marinas, will, upstream, lorenzo.bianconi83,
angelogioacchino.delregno
Introduce basic support for Airoha EN7581 Soc and EN7581 Evaluation Board.
Changes since v2:
- fix cpu-map definition
- add more cache info
- add missing soc node
- remove unnecessary definitions
Changes since v1:
- add missing en7581 entry in airoha binding
- fix checkpatch errors
Daniel Danzberger (3):
arm64: dts: Add Airoha EN7581 SoC and EN7581 Evaluation Board
arm64: add Airoha EN7581 platform
arm64: defconfig: enable Airoha platform
Lorenzo Bianconi (1):
dt-bindings: arm64: dts: airoha: Add en7581 entry
.../devicetree/bindings/arm/airoha.yaml | 4 +
arch/arm64/Kconfig.platforms | 13 ++
arch/arm64/boot/dts/Makefile | 1 +
arch/arm64/boot/dts/airoha/Makefile | 2 +
arch/arm64/boot/dts/airoha/en7581-evb.dts | 26 +++
arch/arm64/boot/dts/airoha/en7581.dtsi | 154 ++++++++++++++++++
arch/arm64/configs/defconfig | 1 +
7 files changed, 201 insertions(+)
create mode 100644 arch/arm64/boot/dts/airoha/Makefile
create mode 100644 arch/arm64/boot/dts/airoha/en7581-evb.dts
create mode 100644 arch/arm64/boot/dts/airoha/en7581.dtsi
--
2.44.0
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
^ permalink raw reply [flat|nested] 10+ messages in thread
* [PATCH v3 1/4] dt-bindings: arm64: dts: airoha: Add en7581 entry
2024-03-07 0:11 [PATCH v3 0/4] arm64: Add support for Airoha EN7581 Soc Lorenzo Bianconi
@ 2024-03-07 0:11 ` Lorenzo Bianconi
2024-03-07 11:28 ` AngeloGioacchino Del Regno
2024-03-07 0:11 ` [PATCH v3 2/4] arm64: dts: Add Airoha EN7581 SoC and EN7581 Evaluation Board Lorenzo Bianconi
` (2 subsequent siblings)
3 siblings, 1 reply; 10+ messages in thread
From: Lorenzo Bianconi @ 2024-03-07 0:11 UTC (permalink / raw)
To: linux-arm-kernel
Cc: robh+dt, krzysztof.kozlowski+dt, conor+dt, nbd, john, devicetree,
dd, catalin.marinas, will, upstream, lorenzo.bianconi83,
angelogioacchino.delregno
Introduce Airoha EN7581 entry in Airoha dts binding.
Acked-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Signed-off-by: Lorenzo Bianconi <lorenzo@kernel.org>
---
Documentation/devicetree/bindings/arm/airoha.yaml | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/Documentation/devicetree/bindings/arm/airoha.yaml b/Documentation/devicetree/bindings/arm/airoha.yaml
index 3292c669ee11..7c38c08dbf3f 100644
--- a/Documentation/devicetree/bindings/arm/airoha.yaml
+++ b/Documentation/devicetree/bindings/arm/airoha.yaml
@@ -22,6 +22,10 @@ properties:
- enum:
- airoha,en7523-evb
- const: airoha,en7523
+ - items:
+ - enum:
+ - airoha,en7581-evb
+ - const: airoha,en7581
additionalProperties: true
--
2.44.0
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
^ permalink raw reply related [flat|nested] 10+ messages in thread
* [PATCH v3 2/4] arm64: dts: Add Airoha EN7581 SoC and EN7581 Evaluation Board
2024-03-07 0:11 [PATCH v3 0/4] arm64: Add support for Airoha EN7581 Soc Lorenzo Bianconi
2024-03-07 0:11 ` [PATCH v3 1/4] dt-bindings: arm64: dts: airoha: Add en7581 entry Lorenzo Bianconi
@ 2024-03-07 0:11 ` Lorenzo Bianconi
2024-03-07 11:28 ` AngeloGioacchino Del Regno
2024-03-07 0:11 ` [PATCH v3 3/4] arm64: add Airoha EN7581 platform Lorenzo Bianconi
2024-03-07 0:11 ` [PATCH v3 4/4] arm64: defconfig: enable Airoha platform Lorenzo Bianconi
3 siblings, 1 reply; 10+ messages in thread
From: Lorenzo Bianconi @ 2024-03-07 0:11 UTC (permalink / raw)
To: linux-arm-kernel
Cc: robh+dt, krzysztof.kozlowski+dt, conor+dt, nbd, john, devicetree,
dd, catalin.marinas, will, upstream, lorenzo.bianconi83,
angelogioacchino.delregno
From: Daniel Danzberger <dd@embedd.com>
Introduce the Airoha EN7581 SoC's dtsi and the Airoha EN7581 Evaluation
Board's dts file, as well as the required Makefiles.
Signed-off-by: Daniel Danzberger <dd@embedd.com>
Co-developed-by: Lorenzo Bianconi <lorenzo@kernel.org>
Signed-off-by: Lorenzo Bianconi <lorenzo@kernel.org>
---
arch/arm64/boot/dts/Makefile | 1 +
arch/arm64/boot/dts/airoha/Makefile | 2 +
arch/arm64/boot/dts/airoha/en7581-evb.dts | 26 ++++
arch/arm64/boot/dts/airoha/en7581.dtsi | 154 ++++++++++++++++++++++
4 files changed, 183 insertions(+)
create mode 100644 arch/arm64/boot/dts/airoha/Makefile
create mode 100644 arch/arm64/boot/dts/airoha/en7581-evb.dts
create mode 100644 arch/arm64/boot/dts/airoha/en7581.dtsi
diff --git a/arch/arm64/boot/dts/Makefile b/arch/arm64/boot/dts/Makefile
index 30dd6347a929..21cd3a87f385 100644
--- a/arch/arm64/boot/dts/Makefile
+++ b/arch/arm64/boot/dts/Makefile
@@ -1,5 +1,6 @@
# SPDX-License-Identifier: GPL-2.0
subdir-y += actions
+subdir-y += airoha
subdir-y += allwinner
subdir-y += altera
subdir-y += amazon
diff --git a/arch/arm64/boot/dts/airoha/Makefile b/arch/arm64/boot/dts/airoha/Makefile
new file mode 100644
index 000000000000..ebea112ce1d7
--- /dev/null
+++ b/arch/arm64/boot/dts/airoha/Makefile
@@ -0,0 +1,2 @@
+# SPDX-License-Identifier: GPL-2.0-only
+dtb-$(CONFIG_ARCH_AIROHA) += en7581-evb.dtb
diff --git a/arch/arm64/boot/dts/airoha/en7581-evb.dts b/arch/arm64/boot/dts/airoha/en7581-evb.dts
new file mode 100644
index 000000000000..cf58e43dd5b2
--- /dev/null
+++ b/arch/arm64/boot/dts/airoha/en7581-evb.dts
@@ -0,0 +1,26 @@
+// SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
+/dts-v1/;
+
+/* Bootloader installs ATF here */
+/memreserve/ 0x80000000 0x200000;
+
+#include "en7581.dtsi"
+
+/ {
+ model = "Airoha EN7581 Evaluation Board";
+ compatible = "airoha,en7581-evb", "airoha,en7581";
+
+ aliases {
+ serial0 = &uart1;
+ };
+
+ chosen {
+ stdout-path = "serial0:115200n8";
+ linux,usable-memory-range = <0x0 0x80200000 0x0 0x1fe00000>;
+ };
+
+ memory@80000000 {
+ device_type = "memory";
+ reg = <0x0 0x80000000 0x2 0x00000000>;
+ };
+};
diff --git a/arch/arm64/boot/dts/airoha/en7581.dtsi b/arch/arm64/boot/dts/airoha/en7581.dtsi
new file mode 100644
index 000000000000..732080cf6f2b
--- /dev/null
+++ b/arch/arm64/boot/dts/airoha/en7581.dtsi
@@ -0,0 +1,154 @@
+// SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
+
+#include <dt-bindings/interrupt-controller/irq.h>
+#include <dt-bindings/interrupt-controller/arm-gic.h>
+
+/ {
+ interrupt-parent = <&gic>;
+ #address-cells = <2>;
+ #size-cells = <2>;
+
+ reserved-memory {
+ #address-cells = <2>;
+ #size-cells = <2>;
+ ranges;
+
+ npu-binary@84000000 {
+ no-map;
+ reg = <0x0 0x84000000 0x0 0xA00000>;
+ };
+
+ npu-flag@84B0000 {
+ no-map;
+ reg = <0x0 0x84B00000 0x0 0x100000>;
+ };
+
+ npu-pkt@85000000 {
+ no-map;
+ reg = <0x0 0x85000000 0x0 0x1A00000>;
+ };
+
+ npu-phyaddr@86B00000 {
+ no-map;
+ reg = <0x0 0x86B00000 0x0 0x100000>;
+ };
+
+ npu-rxdesc@86D00000 {
+ no-map;
+ reg = <0x0 0x86D00000 0x0 0x100000>;
+ };
+ };
+
+ psci {
+ compatible = "arm,psci-1.0";
+ method = "smc";
+ };
+
+ cpus {
+ #address-cells = <1>;
+ #size-cells = <0>;
+
+ cpu-map {
+ cluster0 {
+ core0 {
+ cpu = <&cpu0>;
+ };
+
+ core1 {
+ cpu = <&cpu1>;
+ };
+
+ core2 {
+ cpu = <&cpu2>;
+ };
+
+ core3 {
+ cpu = <&cpu3>;
+ };
+ };
+ };
+
+ cpu0: cpu@0 {
+ device_type = "cpu";
+ compatible = "arm,cortex-a53";
+ reg = <0x0>;
+ enable-method = "psci";
+ clock-frequency = <80000000>;
+ next-level-cache = <&l2>;
+ };
+
+ cpu1: cpu@1 {
+ device_type = "cpu";
+ compatible = "arm,cortex-a53";
+ reg = <0x1>;
+ enable-method = "psci";
+ clock-frequency = <80000000>;
+ next-level-cache = <&l2>;
+ };
+
+ cpu2: cpu@2 {
+ device_type = "cpu";
+ compatible = "arm,cortex-a53";
+ reg = <0x2>;
+ enable-method = "psci";
+ clock-frequency = <80000000>;
+ next-level-cache = <&l2>;
+ };
+
+ cpu3: cpu@3 {
+ device_type = "cpu";
+ compatible = "arm,cortex-a53";
+ reg = <0x3>;
+ enable-method = "psci";
+ clock-frequency = <80000000>;
+ next-level-cache = <&l2>;
+ };
+
+ l2: l2-cache {
+ compatible = "cache";
+ cache-size = <0x80000>;
+ cache-line-size = <64>;
+ cache-level = <2>;
+ cache-unified;
+ };
+ };
+
+ timer {
+ compatible = "arm,armv8-timer";
+ interrupt-parent = <&gic>;
+ interrupts = <GIC_PPI 13 IRQ_TYPE_LEVEL_LOW>,
+ <GIC_PPI 14 IRQ_TYPE_LEVEL_LOW>,
+ <GIC_PPI 11 IRQ_TYPE_LEVEL_LOW>,
+ <GIC_PPI 10 IRQ_TYPE_LEVEL_LOW>;
+ };
+
+ soc {
+ compatible = "simple-bus";
+ #address-cells = <2>;
+ #size-cells = <2>;
+ ranges;
+
+ gic: interrupt-controller@9000000 {
+ compatible = "arm,gic-v3";
+ interrupt-controller;
+ #interrupt-cells = <3>;
+ #address-cells = <1>;
+ #size-cells = <1>;
+ reg = <0x0 0x09000000 0x0 0x20000>,
+ <0x0 0x09080000 0x0 0x80000>,
+ <0x0 0x09400000 0x0 0x2000>,
+ <0x0 0x09500000 0x0 0x2000>,
+ <0x0 0x09600000 0x0 0x20000>;
+ interrupts = <GIC_PPI 9 IRQ_TYPE_LEVEL_LOW>;
+ };
+
+ uart1: serial@1fbf0000 {
+ compatible = "ns16550";
+ reg = <0x0 0x1fbf0000 0x0 0x30>;
+ reg-io-width = <4>;
+ reg-shift = <2>;
+ interrupts = <GIC_SPI 18 IRQ_TYPE_LEVEL_HIGH>;
+ clock-frequency = <1843200>;
+ };
+ };
+};
--
2.44.0
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
^ permalink raw reply related [flat|nested] 10+ messages in thread
* [PATCH v3 3/4] arm64: add Airoha EN7581 platform
2024-03-07 0:11 [PATCH v3 0/4] arm64: Add support for Airoha EN7581 Soc Lorenzo Bianconi
2024-03-07 0:11 ` [PATCH v3 1/4] dt-bindings: arm64: dts: airoha: Add en7581 entry Lorenzo Bianconi
2024-03-07 0:11 ` [PATCH v3 2/4] arm64: dts: Add Airoha EN7581 SoC and EN7581 Evaluation Board Lorenzo Bianconi
@ 2024-03-07 0:11 ` Lorenzo Bianconi
2024-03-07 11:37 ` AngeloGioacchino Del Regno
2024-03-07 0:11 ` [PATCH v3 4/4] arm64: defconfig: enable Airoha platform Lorenzo Bianconi
3 siblings, 1 reply; 10+ messages in thread
From: Lorenzo Bianconi @ 2024-03-07 0:11 UTC (permalink / raw)
To: linux-arm-kernel
Cc: robh+dt, krzysztof.kozlowski+dt, conor+dt, nbd, john, devicetree,
dd, catalin.marinas, will, upstream, lorenzo.bianconi83,
angelogioacchino.delregno
From: Daniel Danzberger <dd@embedd.com>
Introduce the Kconfig entry for the Airoha EN7581 multicore architecture
available in the Airoha EN7581 evaluation board.
Signed-off-by: Daniel Danzberger <dd@embedd.com>
Signed-off-by: Lorenzo Bianconi <lorenzo@kernel.org>
---
arch/arm64/Kconfig.platforms | 13 +++++++++++++
1 file changed, 13 insertions(+)
diff --git a/arch/arm64/Kconfig.platforms b/arch/arm64/Kconfig.platforms
index 24335565bad5..bbe61e233034 100644
--- a/arch/arm64/Kconfig.platforms
+++ b/arch/arm64/Kconfig.platforms
@@ -8,6 +8,19 @@ config ARCH_ACTIONS
help
This enables support for the Actions Semiconductor S900 SoC family.
+config ARCH_AIROHA
+ bool "Airoha SoC Support"
+ select ARM_AMBA
+ select ARM_GIC
+ select ARM_GIC_V3
+ select ARM_PSCI
+ select HAVE_ARM_ARCH_TIMER
+ select COMMON_CLK
+ help
+ This enables support for Airoha EN7581 multicore architecture
+ available on the following SoCs:
+ - Airoha EN7581 Evaluation Board
+
config ARCH_SUNXI
bool "Allwinner sunxi 64-bit SoC Family"
select ARCH_HAS_RESET_CONTROLLER
--
2.44.0
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
^ permalink raw reply related [flat|nested] 10+ messages in thread
* [PATCH v3 4/4] arm64: defconfig: enable Airoha platform
2024-03-07 0:11 [PATCH v3 0/4] arm64: Add support for Airoha EN7581 Soc Lorenzo Bianconi
` (2 preceding siblings ...)
2024-03-07 0:11 ` [PATCH v3 3/4] arm64: add Airoha EN7581 platform Lorenzo Bianconi
@ 2024-03-07 0:11 ` Lorenzo Bianconi
3 siblings, 0 replies; 10+ messages in thread
From: Lorenzo Bianconi @ 2024-03-07 0:11 UTC (permalink / raw)
To: linux-arm-kernel
Cc: robh+dt, krzysztof.kozlowski+dt, conor+dt, nbd, john, devicetree,
dd, catalin.marinas, will, upstream, lorenzo.bianconi83,
angelogioacchino.delregno
From: Daniel Danzberger <dd@embedd.com>
Enables the ARCH_AIROHA config by default.
Signed-off-by: Daniel Danzberger <dd@embedd.com>
Signed-off-by: Lorenzo Bianconi <lorenzo@kernel.org>
---
arch/arm64/configs/defconfig | 1 +
1 file changed, 1 insertion(+)
diff --git a/arch/arm64/configs/defconfig b/arch/arm64/configs/defconfig
index e6cf3e5d63c3..aa44791a47e6 100644
--- a/arch/arm64/configs/defconfig
+++ b/arch/arm64/configs/defconfig
@@ -34,6 +34,7 @@ CONFIG_KEXEC=y
CONFIG_KEXEC_FILE=y
CONFIG_CRASH_DUMP=y
CONFIG_ARCH_ACTIONS=y
+CONFIG_ARCH_AIROHA=y
CONFIG_ARCH_SUNXI=y
CONFIG_ARCH_ALPINE=y
CONFIG_ARCH_APPLE=y
--
2.44.0
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
^ permalink raw reply related [flat|nested] 10+ messages in thread
* Re: [PATCH v3 2/4] arm64: dts: Add Airoha EN7581 SoC and EN7581 Evaluation Board
2024-03-07 0:11 ` [PATCH v3 2/4] arm64: dts: Add Airoha EN7581 SoC and EN7581 Evaluation Board Lorenzo Bianconi
@ 2024-03-07 11:28 ` AngeloGioacchino Del Regno
0 siblings, 0 replies; 10+ messages in thread
From: AngeloGioacchino Del Regno @ 2024-03-07 11:28 UTC (permalink / raw)
To: Lorenzo Bianconi, linux-arm-kernel
Cc: robh+dt, krzysztof.kozlowski+dt, conor+dt, nbd, john, devicetree,
dd, catalin.marinas, will, upstream, lorenzo.bianconi83
Il 07/03/24 01:11, Lorenzo Bianconi ha scritto:
> From: Daniel Danzberger <dd@embedd.com>
>
> Introduce the Airoha EN7581 SoC's dtsi and the Airoha EN7581 Evaluation
> Board's dts file, as well as the required Makefiles.
>
> Signed-off-by: Daniel Danzberger <dd@embedd.com>
> Co-developed-by: Lorenzo Bianconi <lorenzo@kernel.org>
> Signed-off-by: Lorenzo Bianconi <lorenzo@kernel.org>
> ---
> arch/arm64/boot/dts/Makefile | 1 +
> arch/arm64/boot/dts/airoha/Makefile | 2 +
> arch/arm64/boot/dts/airoha/en7581-evb.dts | 26 ++++
> arch/arm64/boot/dts/airoha/en7581.dtsi | 154 ++++++++++++++++++++++
> 4 files changed, 183 insertions(+)
> create mode 100644 arch/arm64/boot/dts/airoha/Makefile
> create mode 100644 arch/arm64/boot/dts/airoha/en7581-evb.dts
> create mode 100644 arch/arm64/boot/dts/airoha/en7581.dtsi
>
> diff --git a/arch/arm64/boot/dts/Makefile b/arch/arm64/boot/dts/Makefile
> index 30dd6347a929..21cd3a87f385 100644
> --- a/arch/arm64/boot/dts/Makefile
> +++ b/arch/arm64/boot/dts/Makefile
> @@ -1,5 +1,6 @@
> # SPDX-License-Identifier: GPL-2.0
> subdir-y += actions
> +subdir-y += airoha
> subdir-y += allwinner
> subdir-y += altera
> subdir-y += amazon
> diff --git a/arch/arm64/boot/dts/airoha/Makefile b/arch/arm64/boot/dts/airoha/Makefile
> new file mode 100644
> index 000000000000..ebea112ce1d7
> --- /dev/null
> +++ b/arch/arm64/boot/dts/airoha/Makefile
> @@ -0,0 +1,2 @@
> +# SPDX-License-Identifier: GPL-2.0-only
> +dtb-$(CONFIG_ARCH_AIROHA) += en7581-evb.dtb
> diff --git a/arch/arm64/boot/dts/airoha/en7581-evb.dts b/arch/arm64/boot/dts/airoha/en7581-evb.dts
> new file mode 100644
> index 000000000000..cf58e43dd5b2
> --- /dev/null
> +++ b/arch/arm64/boot/dts/airoha/en7581-evb.dts
> @@ -0,0 +1,26 @@
> +// SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
> +/dts-v1/;
> +
> +/* Bootloader installs ATF here */
> +/memreserve/ 0x80000000 0x200000;
> +
> +#include "en7581.dtsi"
> +
> +/ {
> + model = "Airoha EN7581 Evaluation Board";
> + compatible = "airoha,en7581-evb", "airoha,en7581";
> +
> + aliases {
> + serial0 = &uart1;
> + };
> +
> + chosen {
> + stdout-path = "serial0:115200n8";
> + linux,usable-memory-range = <0x0 0x80200000 0x0 0x1fe00000>;
> + };
> +
> + memory@80000000 {
> + device_type = "memory";
> + reg = <0x0 0x80000000 0x2 0x00000000>;
> + };
> +};
> diff --git a/arch/arm64/boot/dts/airoha/en7581.dtsi b/arch/arm64/boot/dts/airoha/en7581.dtsi
> new file mode 100644
> index 000000000000..732080cf6f2b
> --- /dev/null
> +++ b/arch/arm64/boot/dts/airoha/en7581.dtsi
> @@ -0,0 +1,154 @@
> +// SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
> +
> +#include <dt-bindings/interrupt-controller/irq.h>
> +#include <dt-bindings/interrupt-controller/arm-gic.h>
> +
> +/ {
> + interrupt-parent = <&gic>;
> + #address-cells = <2>;
> + #size-cells = <2>;
> +
> + reserved-memory {
> + #address-cells = <2>;
> + #size-cells = <2>;
> + ranges;
> +
> + npu-binary@84000000 {
> + no-map;
> + reg = <0x0 0x84000000 0x0 0xA00000>;
> + };
> +
> + npu-flag@84B0000 {
> + no-map;
> + reg = <0x0 0x84B00000 0x0 0x100000>;
> + };
> +
> + npu-pkt@85000000 {
> + no-map;
> + reg = <0x0 0x85000000 0x0 0x1A00000>;
> + };
> +
> + npu-phyaddr@86B00000 {
> + no-map;
> + reg = <0x0 0x86B00000 0x0 0x100000>;
> + };
> +
> + npu-rxdesc@86D00000 {
> + no-map;
> + reg = <0x0 0x86D00000 0x0 0x100000>;
Lower case hex please. Here and everywhere else.
Otherwise,
Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Cheers,
Angelo
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [PATCH v3 1/4] dt-bindings: arm64: dts: airoha: Add en7581 entry
2024-03-07 0:11 ` [PATCH v3 1/4] dt-bindings: arm64: dts: airoha: Add en7581 entry Lorenzo Bianconi
@ 2024-03-07 11:28 ` AngeloGioacchino Del Regno
0 siblings, 0 replies; 10+ messages in thread
From: AngeloGioacchino Del Regno @ 2024-03-07 11:28 UTC (permalink / raw)
To: Lorenzo Bianconi, linux-arm-kernel
Cc: robh+dt, krzysztof.kozlowski+dt, conor+dt, nbd, john, devicetree,
dd, catalin.marinas, will, upstream, lorenzo.bianconi83
Il 07/03/24 01:11, Lorenzo Bianconi ha scritto:
> Introduce Airoha EN7581 entry in Airoha dts binding.
>
> Acked-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
> Signed-off-by: Lorenzo Bianconi <lorenzo@kernel.org>
Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [PATCH v3 3/4] arm64: add Airoha EN7581 platform
2024-03-07 0:11 ` [PATCH v3 3/4] arm64: add Airoha EN7581 platform Lorenzo Bianconi
@ 2024-03-07 11:37 ` AngeloGioacchino Del Regno
2024-03-07 12:14 ` Lorenzo Bianconi
0 siblings, 1 reply; 10+ messages in thread
From: AngeloGioacchino Del Regno @ 2024-03-07 11:37 UTC (permalink / raw)
To: Lorenzo Bianconi, linux-arm-kernel
Cc: robh+dt, krzysztof.kozlowski+dt, conor+dt, nbd, john, devicetree,
dd, catalin.marinas, will, upstream, lorenzo.bianconi83
Il 07/03/24 01:11, Lorenzo Bianconi ha scritto:
> From: Daniel Danzberger <dd@embedd.com>
>
> Introduce the Kconfig entry for the Airoha EN7581 multicore architecture
> available in the Airoha EN7581 evaluation board.
>
> Signed-off-by: Daniel Danzberger <dd@embedd.com>
> Signed-off-by: Lorenzo Bianconi <lorenzo@kernel.org>
> ---
> arch/arm64/Kconfig.platforms | 13 +++++++++++++
> 1 file changed, 13 insertions(+)
>
> diff --git a/arch/arm64/Kconfig.platforms b/arch/arm64/Kconfig.platforms
> index 24335565bad5..bbe61e233034 100644
> --- a/arch/arm64/Kconfig.platforms
> +++ b/arch/arm64/Kconfig.platforms
> @@ -8,6 +8,19 @@ config ARCH_ACTIONS
> help
> This enables support for the Actions Semiconductor S900 SoC family.
>
> +config ARCH_AIROHA
> + bool "Airoha SoC Support"
> + select ARM_AMBA
ARM_AMBA is selected by ARM64 already, you don't need that one here.
> + select ARM_GIC
> + select ARM_GIC_V3
ARM_GIC and ARM_GIC_v3 are also selected by ARM64
> + select ARM_PSCI
ARM64 selects ARM_PSCI_FW (which should select ARM_PSCI, please verify)
> + select HAVE_ARM_ARCH_TIMER
> + select COMMON_CLK
ARM64 selects COMMON_CLK already.
> + help
> + This enables support for Airoha EN7581 multicore architecture
> + available on the following SoCs:
> + - Airoha EN7581 Evaluation Board
You're not going to add one ARCH entry for each MTK Airoha platform, are you?
(if you are, that's wrong)
....so the help text must be refactored; you could say something like
"This enables support for the ARM64 based Airoha SoCs"
...also, I'm undecided whether MTK should be mentioned or not, here, as those
SoCs are (...at least the 7581 seems to be) really based on MediaTek router
chips, in many instances, sharing the same IPs.
Cheers,
Angelo
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [PATCH v3 3/4] arm64: add Airoha EN7581 platform
2024-03-07 11:37 ` AngeloGioacchino Del Regno
@ 2024-03-07 12:14 ` Lorenzo Bianconi
2024-03-07 12:22 ` AngeloGioacchino Del Regno
0 siblings, 1 reply; 10+ messages in thread
From: Lorenzo Bianconi @ 2024-03-07 12:14 UTC (permalink / raw)
To: AngeloGioacchino Del Regno
Cc: linux-arm-kernel, robh+dt, krzysztof.kozlowski+dt, conor+dt, nbd,
john, devicetree, dd, catalin.marinas, will, upstream,
lorenzo.bianconi83
[-- Attachment #1.1: Type: text/plain, Size: 2302 bytes --]
> Il 07/03/24 01:11, Lorenzo Bianconi ha scritto:
> > From: Daniel Danzberger <dd@embedd.com>
> >
> > Introduce the Kconfig entry for the Airoha EN7581 multicore architecture
> > available in the Airoha EN7581 evaluation board.
> >
> > Signed-off-by: Daniel Danzberger <dd@embedd.com>
> > Signed-off-by: Lorenzo Bianconi <lorenzo@kernel.org>
> > ---
> > arch/arm64/Kconfig.platforms | 13 +++++++++++++
> > 1 file changed, 13 insertions(+)
> >
> > diff --git a/arch/arm64/Kconfig.platforms b/arch/arm64/Kconfig.platforms
> > index 24335565bad5..bbe61e233034 100644
> > --- a/arch/arm64/Kconfig.platforms
> > +++ b/arch/arm64/Kconfig.platforms
> > @@ -8,6 +8,19 @@ config ARCH_ACTIONS
> > help
> > This enables support for the Actions Semiconductor S900 SoC family.
> > +config ARCH_AIROHA
> > + bool "Airoha SoC Support"
> > + select ARM_AMBA
>
> ARM_AMBA is selected by ARM64 already, you don't need that one here.
ack, I will fix it in v4.
>
> > + select ARM_GIC
> > + select ARM_GIC_V3
>
> ARM_GIC and ARM_GIC_v3 are also selected by ARM64
ack, I will fix it in v4.
>
> > + select ARM_PSCI
>
> ARM64 selects ARM_PSCI_FW (which should select ARM_PSCI, please verify)
ARM64 selects ARM_PSCI_FW but ARM_PSCI_FW does not seem to select ARM_PSCI.
Am I missing something?
>
> > + select HAVE_ARM_ARCH_TIMER
> > + select COMMON_CLK
>
> ARM64 selects COMMON_CLK already.
ack, I will fix it in v4.
>
> > + help
> > + This enables support for Airoha EN7581 multicore architecture
> > + available on the following SoCs:
> > + - Airoha EN7581 Evaluation Board
>
> You're not going to add one ARCH entry for each MTK Airoha platform, are you?
>
> (if you are, that's wrong)
>
> ....so the help text must be refactored; you could say something like
> "This enables support for the ARM64 based Airoha SoCs"
ack, I will fix it in v4.
>
> ...also, I'm undecided whether MTK should be mentioned or not, here, as those
> SoCs are (...at least the 7581 seems to be) really based on MediaTek router
> chips, in many instances, sharing the same IPs.
Right, EN7581 is similar to mtk router but I do not know if this will be always
true (maybe?? :))
Regards,
Lorenzo
>
>
> Cheers,
> Angelo
>
[-- Attachment #1.2: signature.asc --]
[-- Type: application/pgp-signature, Size: 228 bytes --]
[-- Attachment #2: Type: text/plain, Size: 176 bytes --]
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [PATCH v3 3/4] arm64: add Airoha EN7581 platform
2024-03-07 12:14 ` Lorenzo Bianconi
@ 2024-03-07 12:22 ` AngeloGioacchino Del Regno
0 siblings, 0 replies; 10+ messages in thread
From: AngeloGioacchino Del Regno @ 2024-03-07 12:22 UTC (permalink / raw)
To: Lorenzo Bianconi
Cc: linux-arm-kernel, robh+dt, krzysztof.kozlowski+dt, conor+dt, nbd,
john, devicetree, dd, catalin.marinas, will, upstream,
lorenzo.bianconi83
Il 07/03/24 13:14, Lorenzo Bianconi ha scritto:
>> Il 07/03/24 01:11, Lorenzo Bianconi ha scritto:
>>> From: Daniel Danzberger <dd@embedd.com>
>>>
>>> Introduce the Kconfig entry for the Airoha EN7581 multicore architecture
>>> available in the Airoha EN7581 evaluation board.
>>>
>>> Signed-off-by: Daniel Danzberger <dd@embedd.com>
>>> Signed-off-by: Lorenzo Bianconi <lorenzo@kernel.org>
>>> ---
>>> arch/arm64/Kconfig.platforms | 13 +++++++++++++
>>> 1 file changed, 13 insertions(+)
>>>
>>> diff --git a/arch/arm64/Kconfig.platforms b/arch/arm64/Kconfig.platforms
>>> index 24335565bad5..bbe61e233034 100644
>>> --- a/arch/arm64/Kconfig.platforms
>>> +++ b/arch/arm64/Kconfig.platforms
>>> @@ -8,6 +8,19 @@ config ARCH_ACTIONS
>>> help
>>> This enables support for the Actions Semiconductor S900 SoC family.
>>> +config ARCH_AIROHA
>>> + bool "Airoha SoC Support"
>>> + select ARM_AMBA
>>
>> ARM_AMBA is selected by ARM64 already, you don't need that one here.
>
> ack, I will fix it in v4.
>
>>
>>> + select ARM_GIC
>>> + select ARM_GIC_V3
>>
>> ARM_GIC and ARM_GIC_v3 are also selected by ARM64
>
> ack, I will fix it in v4.
>
>>
>>> + select ARM_PSCI
>>
>> ARM64 selects ARM_PSCI_FW (which should select ARM_PSCI, please verify)
>
> ARM64 selects ARM_PSCI_FW but ARM_PSCI_FW does not seem to select ARM_PSCI.
> Am I missing something?
>
I asked you to verify because I didn't (and was making assumptions) - if it's
not getting selected, keep the select here. I have no problem with that.
>>
>>> + select HAVE_ARM_ARCH_TIMER
>>> + select COMMON_CLK
>>
>> ARM64 selects COMMON_CLK already.
>
> ack, I will fix it in v4.
>
>>
>>> + help
>>> + This enables support for Airoha EN7581 multicore architecture
>>> + available on the following SoCs:
>>> + - Airoha EN7581 Evaluation Board
>>
>> You're not going to add one ARCH entry for each MTK Airoha platform, are you?
>>
>> (if you are, that's wrong)
>>
>> ....so the help text must be refactored; you could say something like
>> "This enables support for the ARM64 based Airoha SoCs"
>
> ack, I will fix it in v4.
>
>>
>> ...also, I'm undecided whether MTK should be mentioned or not, here, as those
>> SoCs are (...at least the 7581 seems to be) really based on MediaTek router
>> chips, in many instances, sharing the same IPs.
>
> Right, EN7581 is similar to mtk router but I do not know if this will be always
> true (maybe?? :))
>
I hoped you did know more... but even if logic says that it will be true for most
probably a long time (since Airoha *is* [a subsidiary of] MediaTek), perhaps it's
not a good idea to mention MTK?
I'm not sure either. Of course, mentioning MTK would for the sole purpose of making
sure that whoever tries to port new Airoha SoCs has a pointer (as in: look at MTK
SoCs, you can reuse stuff from there, don't lose time with reinventing the wheel),
but at the same time if Airoha starts being different, that'd do the exact opposite
of my intention...
Uhm.
Any advice from anyone else?
...otherwise just avoid the mention.
Cheers,
Angelo
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
^ permalink raw reply [flat|nested] 10+ messages in thread
end of thread, other threads:[~2024-03-07 12:22 UTC | newest]
Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-03-07 0:11 [PATCH v3 0/4] arm64: Add support for Airoha EN7581 Soc Lorenzo Bianconi
2024-03-07 0:11 ` [PATCH v3 1/4] dt-bindings: arm64: dts: airoha: Add en7581 entry Lorenzo Bianconi
2024-03-07 11:28 ` AngeloGioacchino Del Regno
2024-03-07 0:11 ` [PATCH v3 2/4] arm64: dts: Add Airoha EN7581 SoC and EN7581 Evaluation Board Lorenzo Bianconi
2024-03-07 11:28 ` AngeloGioacchino Del Regno
2024-03-07 0:11 ` [PATCH v3 3/4] arm64: add Airoha EN7581 platform Lorenzo Bianconi
2024-03-07 11:37 ` AngeloGioacchino Del Regno
2024-03-07 12:14 ` Lorenzo Bianconi
2024-03-07 12:22 ` AngeloGioacchino Del Regno
2024-03-07 0:11 ` [PATCH v3 4/4] arm64: defconfig: enable Airoha platform Lorenzo Bianconi
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).