From: Lorenzo Bianconi <lorenzo@kernel.org>
To: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Cc: linux-arm-kernel@lists.infradead.org,
lorenzo.bianconi@redhat.com, robh+dt@kernel.org,
krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org,
nbd@nbd.name, john@phrozen.org, devicetree@vger.kernel.org,
dd@embedd.com, catalin.marinas@arm.com, will@kernel.org,
angelogioacchino.delregno@collabora.com
Subject: Re: [PATCH v2 2/4] arm64: dts: Add Airoha EN7581 SoC and EN7581 Evaluation Board
Date: Wed, 21 Feb 2024 11:30:44 +0100 [thread overview]
Message-ID: <ZdXQ1OXjjyWOzSWD@lore-desk> (raw)
In-Reply-To: <2e8e6a0a-44ce-45e4-8321-592f08852412@linaro.org>
[-- Attachment #1.1: Type: text/plain, Size: 5350 bytes --]
> On 21/02/2024 01:04, Lorenzo Bianconi wrote:
> > 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>
> > 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 | 27 +++++
> > arch/arm64/boot/dts/airoha/en7581.dtsi | 137 ++++++++++++++++++++++
> > 4 files changed, 167 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";
>
> You have console below. You don't need earlycon for mainline, broad
> usage, because it is purely debugging part, so drop entire bootargs.
ack, I will fix it in v3.
>
> > + 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..7a3c0a45c03f
> > --- /dev/null
> > +++ b/arch/arm64/boot/dts/airoha/en7581.dtsi
> > @@ -0,0 +1,137 @@
> > +// 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 underscores in nodenames.
> ...
>
ack, I will fix it in v3.
> > +
> > + L2_0: l2-cache0 {
>
> Nodename: l2-cache
>
ack, I will fix it in v3.
> > + compatible = "cache";
> > + cache-level = <2>;
> > + cache-unified;
> > + };
> > + };
> > +
> > + gic: interrupt-controller@9000000 {
>
> Why this is outside of SoC? Where is your SoC node BTW?
ack, I will fix it in v3.
>
> 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).
>
> > + 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 {
>
> This cannot be outside of SoC.
ack, I will fix it in v3.
>
> > + 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";
>
> Drop
ack, I will fix it in v3.
Regards,
Lorenzo
>
>
> Best regards,
> Krzysztof
>
[-- 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
WARNING: multiple messages have this Message-ID (diff)
From: Lorenzo Bianconi <lorenzo@kernel.org>
To: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Cc: linux-arm-kernel@lists.infradead.org,
lorenzo.bianconi@redhat.com, robh+dt@kernel.org,
krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org,
nbd@nbd.name, john@phrozen.org, devicetree@vger.kernel.org,
dd@embedd.com, catalin.marinas@arm.com, will@kernel.org,
angelogioacchino.delregno@collabora.com
Subject: Re: [PATCH v2 2/4] arm64: dts: Add Airoha EN7581 SoC and EN7581 Evaluation Board
Date: Wed, 21 Feb 2024 11:30:44 +0100 [thread overview]
Message-ID: <ZdXQ1OXjjyWOzSWD@lore-desk> (raw)
In-Reply-To: <2e8e6a0a-44ce-45e4-8321-592f08852412@linaro.org>
[-- Attachment #1: Type: text/plain, Size: 5350 bytes --]
> On 21/02/2024 01:04, Lorenzo Bianconi wrote:
> > 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>
> > 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 | 27 +++++
> > arch/arm64/boot/dts/airoha/en7581.dtsi | 137 ++++++++++++++++++++++
> > 4 files changed, 167 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";
>
> You have console below. You don't need earlycon for mainline, broad
> usage, because it is purely debugging part, so drop entire bootargs.
ack, I will fix it in v3.
>
> > + 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..7a3c0a45c03f
> > --- /dev/null
> > +++ b/arch/arm64/boot/dts/airoha/en7581.dtsi
> > @@ -0,0 +1,137 @@
> > +// 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 underscores in nodenames.
> ...
>
ack, I will fix it in v3.
> > +
> > + L2_0: l2-cache0 {
>
> Nodename: l2-cache
>
ack, I will fix it in v3.
> > + compatible = "cache";
> > + cache-level = <2>;
> > + cache-unified;
> > + };
> > + };
> > +
> > + gic: interrupt-controller@9000000 {
>
> Why this is outside of SoC? Where is your SoC node BTW?
ack, I will fix it in v3.
>
> 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).
>
> > + 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 {
>
> This cannot be outside of SoC.
ack, I will fix it in v3.
>
> > + 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";
>
> Drop
ack, I will fix it in v3.
Regards,
Lorenzo
>
>
> Best regards,
> Krzysztof
>
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 228 bytes --]
next prev parent reply other threads:[~2024-02-21 10:31 UTC|newest]
Thread overview: 22+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-02-21 0:04 [PATCH v2 0/4] arm64: Add support for Airoha EN7581 Soc Lorenzo Bianconi
2024-02-21 0:04 ` Lorenzo Bianconi
2024-02-21 0:04 ` [PATCH v2 1/4] dt-bindings: arm64: dts: airoha: Add en7581 series Lorenzo Bianconi
2024-02-21 0:04 ` Lorenzo Bianconi
2024-02-21 7:43 ` Krzysztof Kozlowski
2024-02-21 7:43 ` Krzysztof Kozlowski
2024-02-21 0:04 ` [PATCH v2 2/4] arm64: dts: Add Airoha EN7581 SoC and EN7581 Evaluation Board Lorenzo Bianconi
2024-02-21 0:04 ` Lorenzo Bianconi
2024-02-21 7:45 ` Krzysztof Kozlowski
2024-02-21 7:45 ` Krzysztof Kozlowski
2024-02-21 10:30 ` Lorenzo Bianconi [this message]
2024-02-21 10:30 ` Lorenzo Bianconi
2024-02-21 9:54 ` AngeloGioacchino Del Regno
2024-02-21 9:54 ` AngeloGioacchino Del Regno
2024-02-21 17:36 ` Lorenzo Bianconi
2024-02-21 17:36 ` Lorenzo Bianconi
2024-02-21 0:04 ` [PATCH v2 3/4] arm64: add Airoha EN7581 platform Lorenzo Bianconi
2024-02-21 0:04 ` Lorenzo Bianconi
2024-02-21 0:04 ` [PATCH v2 4/4] arm64: defconfig: enable Airoha platform Lorenzo Bianconi
2024-02-21 0:04 ` Lorenzo Bianconi
2024-02-21 7:46 ` Krzysztof Kozlowski
2024-02-21 7:46 ` Krzysztof Kozlowski
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=ZdXQ1OXjjyWOzSWD@lore-desk \
--to=lorenzo@kernel.org \
--cc=angelogioacchino.delregno@collabora.com \
--cc=catalin.marinas@arm.com \
--cc=conor+dt@kernel.org \
--cc=dd@embedd.com \
--cc=devicetree@vger.kernel.org \
--cc=john@phrozen.org \
--cc=krzysztof.kozlowski+dt@linaro.org \
--cc=krzysztof.kozlowski@linaro.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=lorenzo.bianconi@redhat.com \
--cc=nbd@nbd.name \
--cc=robh+dt@kernel.org \
--cc=will@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.