From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 78A95C48BC3 for ; Wed, 21 Feb 2024 09:55:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:Content-Type: Content-Transfer-Encoding:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:In-Reply-To:From:References:Cc:To:Subject: MIME-Version:Date:Message-ID:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=mRLAiECpXzlxOOnzhtqKB0Uqf3r3NVD3uc1kJF2vNZc=; b=Mx6Cc50gbS89Kb 5X7nEmj7+sGN7W9FlpCkdMlzQ1wvGoh6G3bEOQoylomUG/EfmzctW5px1O3bbSPU07zupNR9I7Rwr ExW2cA6HvghQ5qCV4YS5w6EmNnddTFmIgFOXvLYt3bXTr0QawDw35OFxea8ebHbwbcHw6+m+bcDAr ocGh3hF3lP1IbLHJWKZcWEH8UVFEzprfI8rGVd+4B3RfG3eDiEPqf0t47qL31B8FwmVBUcwLubG/u mthtDQtcFabZ2lQ9DG2/enW4F6nAvZjoiTLC5yfIF5IKhpTVT+Sus9hTHdCMuRVfQY6nFx6FkP6js Z4KuU2tBzeTZqtiDHS9A==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1rcjJm-00000000NMk-46uJ; Wed, 21 Feb 2024 09:55:11 +0000 Received: from madrid.collaboradmins.com ([46.235.227.194]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1rcjJa-00000000NBw-0SXr for linux-arm-kernel@lists.infradead.org; Wed, 21 Feb 2024 09:55:01 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1708509291; bh=Ov6Fr48gl0NfzJDJ/3C8ImGoCw/m3Sy0KlaKo63UvA0=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=i9xXFb9q0JzKtrzxylejHMKSnQdr4rUNu8Vk3cyb427BHDXNE5X1BEqUHjulJvCLZ 53455+nsw0zZejSSnILF/Q6zL6khL9mBJ9S9RL1MKxxCdfBiEhd5hrMZX1GUXEwGor /AGcg94WEeRsNALZ5xepKTsOH1o+XyxapBKaDy5+4RzczD6zXaNTJOHyps/dyJtuM0 I2Ztqe2S7+TxrtCboEFRNd5IVaM5L2+upCWKQZNjlEVDf6olFJ7ygfUENFoL6GyAFj 6gtA3LM8IvPf/OVUJze1FGNKYwO6BV5TDXfEwoOGoSaWDC53moFCwPazB8qi9xjlBh nq7HLWSRyw4sw== Received: from [100.113.186.2] (cola.collaboradmins.com [195.201.22.229]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: kholk11) by madrid.collaboradmins.com (Postfix) with ESMTPSA id C52F6378107C; Wed, 21 Feb 2024 09:54:50 +0000 (UTC) Message-ID: <7a623f15-02cc-4508-88e2-da12aaeee242@collabora.com> Date: Wed, 21 Feb 2024 10:54:50 +0100 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v2 2/4] arm64: dts: Add Airoha EN7581 SoC and EN7581 Evaluation Board Content-Language: en-US To: Lorenzo Bianconi , linux-arm-kernel@lists.infradead.org Cc: 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 References: From: AngeloGioacchino Del Regno In-Reply-To: X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240221_015458_552901_57A3CA40 X-CRM114-Status: GOOD ( 22.32 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="us-ascii"; Format="flowed" Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Il 21/02/24 01:04, Lorenzo Bianconi ha scritto: > From: Daniel Danzberger > > 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 > Signed-off-by: Lorenzo Bianconi > --- > 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"; > + stdout-path = "serial0:115200n8"; > + linux,usable-memory-range = <0x0 0x80200000 0x0 0x1fe00000>; > + }; > + > + memory@80000000 { > + device_type = "memory"; > + reg = <0x0 0x80000000 0x2 0x00000000>; Is your bootloader really not filling the size for the memory node? Can you please verify? If it doesn't, it's not a problem of course. > + }; > +}; > 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 > +#include > + > +/ { > + interrupt-parent = <&gic>; > + #address-cells = <2>; > + #size-cells = <2>; > + > + reserved-memory { > + #address-cells = <2>; > + #size-cells = <2>; > + ranges; > + > + npu_binary@84000000 { npu-binary@... > + 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"; Not the first time I comment that (in general - not specifically to you): are you sure that your platform supports PSCI v0.2 and not a later version? Please check your kernel log, you should see a message like [ 0.000000] psci: PSCIv1.1 detected in firmware. (with the right version) ...then use the right compatible string :-) > + method = "smc"; > + }; > + > + cpus { > + #address-cells = <1>; > + #size-cells = <0>; > + > + cpu-map { > + cluster0 { > + core0 { > + cpu = <&cpu0>; > + }; > + core1 { > + cpu = <&cpu1>; > + }; Your cluster contains only two cores, this means that the other two are in a parallel reality? :-P :-P Jokes apart, this cpu-map looks wrong. Check what the topology is supposed to be for real, clusterized or DynamIQ? In the first case, you get X clusters with Y CPUs each - in the second case, you get *one* single cluster with all CPUs inside. > + }; > + }; > + > + 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"; > + cache-level = <2>; > + cache-unified; Do you know what is the l2 cache size, line size, sets? cache-size = < ... > cache-line-size = < ... > cache-sets = < ... > > + }; > + }; > + All iospace addressable nodes must go into a soc node, others go in the root node. soc { gic: interrupt-controller@9000000 { .... } uart0: serial@ .... }; > + 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 = ; > + }; > + > + timer { > + compatible = "arm,armv8-timer"; > + interrupt-parent = <&gic>; > + interrupts = , > + , > + , > + ; > + }; > + > + uart1: serial@1fbf0000 { > + compatible = "ns16550"; > + reg = <0x0 0x1fbf0000 0x0 0x30>; > + reg-io-width = <4>; > + reg-shift = <2>; > + interrupts = ; > + clock-frequency = <1843200>; > + status = "okay"; status is okay by default, you don't need that. > + }; > +}; Cheers, Angelo _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel