* [PATCH 0/3] arm64: Add support for airoha en7581 Soc
@ 2023-10-01 12:24 Daniel Danzberger
2023-10-01 12:24 ` [PATCH 1/3] arm64: dts: Add Airoha en7581 SoC and evaluation board Daniel Danzberger
` (3 more replies)
0 siblings, 4 replies; 5+ messages in thread
From: Daniel Danzberger @ 2023-10-01 12:24 UTC (permalink / raw)
To: catalin.marinas, will; +Cc: linux-arm-kernel, linux-kernel, Daniel Danzberger
Hi,
I would like to add linux support for this new platform.
These 3 patches only add very basic support for the platform and
it's evaluation board.
The changes contain just some additions to the existing Kconfig and 2 dts files.
_______________________________________________
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] 5+ messages in thread
* [PATCH 1/3] arm64: dts: Add Airoha en7581 SoC and evaluation board
2023-10-01 12:24 [PATCH 0/3] arm64: Add support for airoha en7581 Soc Daniel Danzberger
@ 2023-10-01 12:24 ` Daniel Danzberger
2023-10-01 12:24 ` [PATCH 2/3] arm64: Add Airoha en7581 platform Daniel Danzberger
` (2 subsequent siblings)
3 siblings, 0 replies; 5+ messages in thread
From: Daniel Danzberger @ 2023-10-01 12:24 UTC (permalink / raw)
To: catalin.marinas, will; +Cc: linux-arm-kernel, linux-kernel, Daniel Danzberger
Adds the en7581 SoC's main dtsi and the evaluation board's dts file,
as well as the required Makefiles.
Signed-off-by: Daniel Danzberger <dd@embedd.com>
---
arch/arm64/boot/dts/Makefile | 1 +
arch/arm64/boot/dts/airoha/Makefile | 2 +
arch/arm64/boot/dts/airoha/en7581-evb.dts | 27 +++++
arch/arm64/boot/dts/airoha/en7581.dtsi | 135 ++++++++++++++++++++++
4 files changed, 165 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..4eaa8ac431c3
--- /dev/null
+++ b/arch/arm64/boot/dts/airoha/en7581-evb.dts
@@ -0,0 +1,27 @@
+// 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 {
+ bootargs = "console=ttyS0,115200 earlycon";
+ 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..2cbe1c538f2a
--- /dev/null
+++ b/arch/arm64/boot/dts/airoha/en7581.dtsi
@@ -0,0 +1,135 @@
+// 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-0.2";
+ method = "smc";
+ };
+
+ cpus {
+ #address-cells = <1>;
+ #size-cells = <0>;
+
+ cpu-map {
+ cluster0 {
+ core0 {
+ cpu = <&cpu0>;
+ };
+ core1 {
+ cpu = <&cpu1>;
+ };
+ };
+ };
+
+ cpu0: cpu@0 {
+ device_type = "cpu";
+ compatible = "arm,cortex-a53";
+ reg = <0x0>;
+ enable-method = "psci";
+ clock-frequency = <80000000>;
+ next-level-cache = <&L2_0>;
+ };
+
+ cpu1: cpu@1 {
+ device_type = "cpu";
+ compatible = "arm,cortex-a53";
+ reg = <0x1>;
+ enable-method = "psci";
+ clock-frequency = <80000000>;
+ next-level-cache = <&L2_0>;
+ };
+
+ cpu2: cpu@2 {
+ device_type = "cpu";
+ compatible = "arm,cortex-a53";
+ reg = <0x2>;
+ enable-method = "psci";
+ clock-frequency = <80000000>;
+ next-level-cache = <&L2_0>;
+ };
+
+ cpu3: cpu@3 {
+ device_type = "cpu";
+ compatible = "arm,cortex-a53";
+ reg = <0x3>;
+ enable-method = "psci";
+ clock-frequency = <80000000>;
+ next-level-cache = <&L2_0>;
+ };
+
+ L2_0: l2-cache0 {
+ compatible = "cache";
+ };
+ };
+
+ 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>;
+ };
+
+ 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>;
+ };
+
+ 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>;
+ status = "okay";
+ };
+};
--
2.39.2
_______________________________________________
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] 5+ messages in thread
* [PATCH 2/3] arm64: Add Airoha en7581 platform
2023-10-01 12:24 [PATCH 0/3] arm64: Add support for airoha en7581 Soc Daniel Danzberger
2023-10-01 12:24 ` [PATCH 1/3] arm64: dts: Add Airoha en7581 SoC and evaluation board Daniel Danzberger
@ 2023-10-01 12:24 ` Daniel Danzberger
2023-10-01 12:24 ` [PATCH 3/3] arm64: defconfig: enable airoha platform Daniel Danzberger
2024-01-29 15:20 ` [PATCH 0/3] arm64: Add support for airoha en7581 Soc Krzysztof Kozlowski
3 siblings, 0 replies; 5+ messages in thread
From: Daniel Danzberger @ 2023-10-01 12:24 UTC (permalink / raw)
To: catalin.marinas, will; +Cc: linux-arm-kernel, linux-kernel, Daniel Danzberger
Adds the Kconfig for the airoha en7581 SoC.
Signed-off-by: Daniel Danzberger <dd@embedd.com>
---
arch/arm64/Kconfig.platforms | 11 +++++++++++
1 file changed, 11 insertions(+)
diff --git a/arch/arm64/Kconfig.platforms b/arch/arm64/Kconfig.platforms
index 6069120199bb..d33302f69555 100644
--- a/arch/arm64/Kconfig.platforms
+++ b/arch/arm64/Kconfig.platforms
@@ -8,6 +8,17 @@ 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 EN7523 SoC family
+
config ARCH_SUNXI
bool "Allwinner sunxi 64-bit SoC Family"
select ARCH_HAS_RESET_CONTROLLER
--
2.39.2
_______________________________________________
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] 5+ messages in thread
* [PATCH 3/3] arm64: defconfig: enable airoha platform
2023-10-01 12:24 [PATCH 0/3] arm64: Add support for airoha en7581 Soc Daniel Danzberger
2023-10-01 12:24 ` [PATCH 1/3] arm64: dts: Add Airoha en7581 SoC and evaluation board Daniel Danzberger
2023-10-01 12:24 ` [PATCH 2/3] arm64: Add Airoha en7581 platform Daniel Danzberger
@ 2023-10-01 12:24 ` Daniel Danzberger
2024-01-29 15:20 ` [PATCH 0/3] arm64: Add support for airoha en7581 Soc Krzysztof Kozlowski
3 siblings, 0 replies; 5+ messages in thread
From: Daniel Danzberger @ 2023-10-01 12:24 UTC (permalink / raw)
To: catalin.marinas, will; +Cc: linux-arm-kernel, linux-kernel, Daniel Danzberger
Enables the ARCH_AIROHA config per default.
Signed-off-by: Daniel Danzberger <dd@embedd.com>
---
arch/arm64/configs/defconfig | 1 +
1 file changed, 1 insertion(+)
diff --git a/arch/arm64/configs/defconfig b/arch/arm64/configs/defconfig
index 5315789f4868..a206e6fe3b1d 100644
--- a/arch/arm64/configs/defconfig
+++ b/arch/arm64/configs/defconfig
@@ -47,6 +47,7 @@ CONFIG_ARCH_LG1K=y
CONFIG_ARCH_HISI=y
CONFIG_ARCH_KEEMBAY=y
CONFIG_ARCH_MEDIATEK=y
+CONFIG_ARCH_AIROHA=y
CONFIG_ARCH_MESON=y
CONFIG_ARCH_MVEBU=y
CONFIG_ARCH_NXP=y
--
2.39.2
_______________________________________________
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] 5+ messages in thread
* Re: [PATCH 0/3] arm64: Add support for airoha en7581 Soc
2023-10-01 12:24 [PATCH 0/3] arm64: Add support for airoha en7581 Soc Daniel Danzberger
` (2 preceding siblings ...)
2023-10-01 12:24 ` [PATCH 3/3] arm64: defconfig: enable airoha platform Daniel Danzberger
@ 2024-01-29 15:20 ` Krzysztof Kozlowski
3 siblings, 0 replies; 5+ messages in thread
From: Krzysztof Kozlowski @ 2024-01-29 15:20 UTC (permalink / raw)
To: Daniel Danzberger, catalin.marinas, will; +Cc: linux-arm-kernel, linux-kernel
On 01/10/2023 14:24, Daniel Danzberger wrote:
> Hi,
>
> I would like to add linux support for this new platform.
> These 3 patches only add very basic support for the platform and
> it's evaluation board.
>
> The changes contain just some additions to the existing Kconfig and 2 dts files.
You did not get any responses... because of few issues. First, you did
not Cc SoC maintainers, literally no one, so this will be totally
ignored. Second, you missed some lists explicitly asked by
get_maintainers.pl, so this should not be merged anyway. Also, I don't
see checkpatch run on it... so standard disclaimers:
Please use scripts/get_maintainers.pl to get a list of necessary people
and lists to CC (and consider --no-git-fallback argument). 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_getmaintainer.pl provide you proper list of
people, so fix your workflow. Tools might also fail if you work on some
ancient tree (don't, use mainline), work on fork of kernel (don't, use
mainline) or you ignore some maintainers (really don't). Just use b4 and
everything should be fine, although remember about `b4 prep
--auto-to-cc` if you added new patches to the patchset.
Please run scripts/checkpatch.pl and fix reported warnings. Some
warnings can be ignored, but the code here looks like it needs a fix.
Feel free to get in touch if the warning is not clear.
It does not look like you tested the DTS against bindings. Please run
`make dtbs_check W=1` (see
Documentation/devicetree/bindings/writing-schema.rst or
https://www.linaro.org/blog/tips-and-tricks-for-validating-devicetree-sources-with-the-devicetree-schema/
for instructions).
Also, please provide proper maintainers entry. If you do not intend to
be maintainer of it, Cc some of SoC maintainers to get it merged through
them.
Best regards,
Krzysztof
_______________________________________________
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] 5+ messages in thread
end of thread, other threads:[~2024-01-29 15:21 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-10-01 12:24 [PATCH 0/3] arm64: Add support for airoha en7581 Soc Daniel Danzberger
2023-10-01 12:24 ` [PATCH 1/3] arm64: dts: Add Airoha en7581 SoC and evaluation board Daniel Danzberger
2023-10-01 12:24 ` [PATCH 2/3] arm64: Add Airoha en7581 platform Daniel Danzberger
2023-10-01 12:24 ` [PATCH 3/3] arm64: defconfig: enable airoha platform Daniel Danzberger
2024-01-29 15:20 ` [PATCH 0/3] arm64: Add support for airoha en7581 Soc Krzysztof Kozlowski
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).