From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from lelv0142.ext.ti.com (lelv0142.ext.ti.com [198.47.23.249]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 8D21E10A3E; Tue, 27 Aug 2024 08:06:23 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.47.23.249 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1724745985; cv=none; b=ntY4AkjZA/dXR83MZuGVXrVXQQfGWs6Vy9UZ7RvbK8i+CjIRH9BY1YtH5BVbl43OPiebqmmukQYjxr0mew3CYv5NHabhZLrB4tbNs37aoaxLeoPrLmo1CY7kqgOqB5sys+E/XmkT6N2Pntq1KHfAlMV04vJ9s9lwEU2QVJNu4h4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1724745985; c=relaxed/simple; bh=AcLkc26b9PYQn4/uwF23aTQej+Cge+p2ru+EExJCk9U=; h=Date:From:To:CC:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=bFZNk/B1zoEB+68Ie7AjeyDdDgHoIMvtQz6I5UvTV0rWik5iAeewYOzOcNuJriqZCK0Da1foFPm6htDSPflBvHGneSQ+/lzDx85vwbyGhZMgQXMZIPWJdEigOdYu98SJHmpB9ncWqpqfXlMj0yHKHMXki0TsH7MW0Ip+pyi8PNg= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=ti.com; spf=pass smtp.mailfrom=ti.com; dkim=pass (1024-bit key) header.d=ti.com header.i=@ti.com header.b=DRMC/HNX; arc=none smtp.client-ip=198.47.23.249 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=ti.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=ti.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=ti.com header.i=@ti.com header.b="DRMC/HNX" Received: from lelv0265.itg.ti.com ([10.180.67.224]) by lelv0142.ext.ti.com (8.15.2/8.15.2) with ESMTP id 47R86Gpa029843; Tue, 27 Aug 2024 03:06:16 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1724745976; bh=7HdlXB9b99rm5OP5zMcmXcUANpRivvoEO64WttLFBuk=; h=Date:From:To:CC:Subject:References:In-Reply-To; b=DRMC/HNXKQkBoIGM+V31jRAdSh3Di10xO1Or/Bz+Xgn/sm9kTiJHSP/PfLEWhu4s/ Ao59ykHm2mi2Yn4Y8W7Hmsx0IO/dmBlXrqNerfT1P8dAIRr7+E2J3JE+RRCxj+5RWQ 8CG9vQg6p88h7zoAy3lgiSRqa6Ha8692jrOqWzsE= Received: from DLEE107.ent.ti.com (dlee107.ent.ti.com [157.170.170.37]) by lelv0265.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 47R86G7i022204 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Tue, 27 Aug 2024 03:06:16 -0500 Received: from DLEE109.ent.ti.com (157.170.170.41) by DLEE107.ent.ti.com (157.170.170.37) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23; Tue, 27 Aug 2024 03:06:15 -0500 Received: from lelvsmtp5.itg.ti.com (10.180.75.250) by DLEE109.ent.ti.com (157.170.170.41) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23 via Frontend Transport; Tue, 27 Aug 2024 03:06:15 -0500 Received: from localhost (uda0492258.dhcp.ti.com [10.24.72.81]) by lelvsmtp5.itg.ti.com (8.15.2/8.15.2) with ESMTP id 47R86E22126086; Tue, 27 Aug 2024 03:06:15 -0500 Date: Tue, 27 Aug 2024 13:36:13 +0530 From: Siddharth Vadapalli To: Manorit Chawdhry CC: Nishanth Menon , Vignesh Raghavendra , Tero Kristo , Rob Herring , Krzysztof Kozlowski , Conor Dooley , , , , Udit Kumar , Neha Malcom Francis , Aniket Limaye , Beleswar Padhi , Subject: Re: [PATCH v4 1/5] arm64: dts: ti: Refactor J784s4 SoC files to a common file Message-ID: <78410d3c-0426-42e3-a0fa-480f845542da@ti.com> References: <20240819-b4-upstream-j742s2-v4-0-f2284f6f771d@ti.com> <20240819-b4-upstream-j742s2-v4-1-f2284f6f771d@ti.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline In-Reply-To: <20240819-b4-upstream-j742s2-v4-1-f2284f6f771d@ti.com> X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 On Mon, Aug 19, 2024 at 03:09:35PM +0530, Manorit Chawdhry wrote: > Refactor J784s4 SoC files to a common file which uses the > superset device to allow reuse in j742s2-evm which uses the subset part. > > Reviewed-by: Beleswar Padhi > Signed-off-by: Manorit Chawdhry > --- > .../arm64/boot/dts/ti/k3-j784s4-j742s2-common.dtsi | 149 + > .../boot/dts/ti/k3-j784s4-j742s2-main-common.dtsi | 2667 ++++++++++++++++++ > ...tsi => k3-j784s4-j742s2-mcu-wakeup-common.dtsi} | 2 +- > ...l.dtsi => k3-j784s4-j742s2-thermal-common.dtsi} | 0 > arch/arm64/boot/dts/ti/k3-j784s4-main.dtsi | 2847 +------------------- > arch/arm64/boot/dts/ti/k3-j784s4.dtsi | 135 +- > 6 files changed, 2913 insertions(+), 2887 deletions(-) > > diff --git a/arch/arm64/boot/dts/ti/k3-j784s4-j742s2-common.dtsi b/arch/arm64/boot/dts/ti/k3-j784s4-j742s2-common.dtsi > new file mode 100644 > index 000000000000..958054ab1018 > --- /dev/null > +++ b/arch/arm64/boot/dts/ti/k3-j784s4-j742s2-common.dtsi > @@ -0,0 +1,149 @@ > +// SPDX-License-Identifier: GPL-2.0-only OR MIT > +/* > + * Device Tree Source for J784S4 SoC Family Since the file is already named "...-j784s4-j742s2-...", wouldn't it be better to add J742S2 and the link to its TRM here itself rather than adding it in patch 4/5? > + * > + * TRM (SPRUJ43 JULY 2022): https://www.ti.com/lit/zip/spruj52 > + * > + * Copyright (C) 2022-2024 Texas Instruments Incorporated - https://www.ti.com/ Since this is a new file and not a moved file, should it simply be "2024"? > + * > + */ [...] > + > + > + cbass_main: bus@100000 { > + bootph-all; > + compatible = "simple-bus"; > + #address-cells = <2>; > + #size-cells = <2>; > + ranges = <0x00 0x00100000 0x00 0x00100000 0x00 0x00020000>, /* ctrl mmr */ > + <0x00 0x00600000 0x00 0x00600000 0x00 0x00031100>, /* GPIO */ > + <0x00 0x00700000 0x00 0x00700000 0x00 0x00001000>, /* ESM */ > + <0x00 0x01000000 0x00 0x01000000 0x00 0x0d000000>, /* Most peripherals */ Since SERDES2 lies in the above range, to be techincally correct, the above range should be split up to move SERDES2 out of the common file. > + <0x00 0x04210000 0x00 0x04210000 0x00 0x00010000>, /* VPU0 */ > + <0x00 0x04220000 0x00 0x04220000 0x00 0x00010000>, /* VPU1 */ > + <0x00 0x0d000000 0x00 0x0d000000 0x00 0x00800000>, /* PCIe0 Core*/ > + <0x00 0x0d800000 0x00 0x0d800000 0x00 0x00800000>, /* PCIe1 Core*/ > + <0x00 0x0e000000 0x00 0x0e000000 0x00 0x00800000>, /* PCIe2 Core*/ > + <0x00 0x0e800000 0x00 0x0e800000 0x00 0x00800000>, /* PCIe3 Core*/ PCIe2 and PCIe3 should be dropped from the common file. > + <0x00 0x10000000 0x00 0x10000000 0x00 0x08000000>, /* PCIe0 DAT0 */ > + <0x00 0x18000000 0x00 0x18000000 0x00 0x08000000>, /* PCIe1 DAT0 */ > + <0x00 0x64800000 0x00 0x64800000 0x00 0x0070c000>, /* C71_1 */ > + <0x00 0x65800000 0x00 0x65800000 0x00 0x0070c000>, /* C71_2 */ > + <0x00 0x66800000 0x00 0x66800000 0x00 0x0070c000>, /* C71_3 */ > + <0x00 0x67800000 0x00 0x67800000 0x00 0x0070c000>, /* C71_4 */ > + <0x00 0x6f000000 0x00 0x6f000000 0x00 0x00310000>, /* A72 PERIPHBASE */ > + <0x00 0x70000000 0x00 0x70000000 0x00 0x00400000>, /* MSMC RAM */ > + <0x00 0x30000000 0x00 0x30000000 0x00 0x0c400000>, /* MAIN NAVSS */ > + <0x40 0x00000000 0x40 0x00000000 0x01 0x00000000>, /* PCIe0 DAT1 */ > + <0x41 0x00000000 0x41 0x00000000 0x01 0x00000000>, /* PCIe1 DAT1 */ > + <0x42 0x00000000 0x42 0x00000000 0x01 0x00000000>, /* PCIe2 DAT1 */ > + <0x43 0x00000000 0x43 0x00000000 0x01 0x00000000>, /* PCIe3 DAT1 */ > + <0x44 0x00000000 0x44 0x00000000 0x00 0x08000000>, /* PCIe2 DAT0 */ > + <0x44 0x10000000 0x44 0x10000000 0x00 0x08000000>, /* PCIe3 DAT0 */ PCIe2 and PCIe3 should be dropped from the common file. > + <0x4e 0x20000000 0x4e 0x20000000 0x00 0x00080000>, /* GPU */ > + > + /* MCUSS_WKUP Range */ > + <0x00 0x28380000 0x00 0x28380000 0x00 0x03880000>, > + <0x00 0x40200000 0x00 0x40200000 0x00 0x00998400>, > + <0x00 0x40f00000 0x00 0x40f00000 0x00 0x00020000>, > + <0x00 0x41000000 0x00 0x41000000 0x00 0x00020000>, [...] > diff --git a/arch/arm64/boot/dts/ti/k3-j784s4-j742s2-main-common.dtsi b/arch/arm64/boot/dts/ti/k3-j784s4-j742s2-main-common.dtsi > new file mode 100644 > index 000000000000..04d77c42442d > --- /dev/null > +++ b/arch/arm64/boot/dts/ti/k3-j784s4-j742s2-main-common.dtsi > @@ -0,0 +1,2667 @@ > +// SPDX-License-Identifier: GPL-2.0-only OR MIT > +/* > + * Device Tree Source for J784S4 and J742S2 SoC Family Main Domain peripherals Here, you have mentioned J742S2 as well, so to keep it consistent, J742S2 should be mentioned in the "k3-j784s4-j742s2-common.dtsi" file as well as I have indicated above. > + * > + * Copyright (C) 2022-2024 Texas Instruments Incorporated - https://www.ti.com/ Since this is a new file and not a renamed file, shouldn't it be "2024"? > + */ > + > +#include > +#include > +#include > + [...] Regards, Siddharth.