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 phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id C4940C04A6A for ; Thu, 3 Aug 2023 12:39:37 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 8282586839; Thu, 3 Aug 2023 14:39:35 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=kernel.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=kernel.org header.i=@kernel.org header.b="dNXalYM+"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id BD54F86A8C; Thu, 3 Aug 2023 14:39:34 +0200 (CEST) Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id DDC76866C2 for ; Thu, 3 Aug 2023 14:39:30 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=kernel.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=rogerq@kernel.org Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id C088461D70; Thu, 3 Aug 2023 12:39:28 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 84473C433C8; Thu, 3 Aug 2023 12:39:26 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1691066368; bh=UBzOImPDcP9MnK53OyXoaVICZudqpoqf3v49WR02C/A=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=dNXalYM+JEq7KPyGIU/DNz/wR1nRq0jfmwXGaCe6HEa78ovjepNUmlP2IIiMr0KK9 zZ2YeGGDx8FieWjWK6RTl+2ctOGpXfopP29Qs9zuKEzbG63DejLZHwkYIa2ih94ZGE BdbxBXpQRm7ggY5oeK992S8CPyz5idKDDirmhivpre3YlIj9RsLXbTqklkjhfHV1Ke bVK5u7hfVVWP9usxkoCSFg3185BY93c6cPZrhN3mIKekJDVbMpUUFWWCvF7dk46r4s yoQaiiwk5rnesXaXFXUpxCosEOfxGz4UzlVRCWS2OiTW2DEZnp3ulf2ypfD+OrL12B cHvLnL9KBmWmw== Message-ID: <493abcbf-fbe3-5651-ce7a-ee844f7d4818@kernel.org> Date: Thu, 3 Aug 2023 15:39:23 +0300 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.13.0 Subject: Re: [PATCH v3 4/4] arm: dts: k3-am64: Sync DT with Linux v6.5-rc1 Content-Language: en-US To: Nishanth Menon Cc: trini@konsulko.com, vigneshr@ti.com, srk@ti.com, r-gunasekaran@ti.com, s-vadapalli@ti.com, u-boot@lists.denx.de References: <20230802171848.180056-1-rogerq@kernel.org> <20230802171848.180056-5-rogerq@kernel.org> <20230802213716.sohjkswusmtajy2a@overhear> From: Roger Quadros In-Reply-To: <20230802213716.sohjkswusmtajy2a@overhear> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.8 at phobos.denx.de X-Virus-Status: Clean Hi Nishanth, On 03/08/2023 00:37, Nishanth Menon wrote: > On 20:18-20230802, Roger Quadros wrote: >> Sync all am642-evm/am642-sk related DT files >> with Linux v6.5-rc1. >> >> - drop timer1 in favor of main_timer0 in am64-main.dtsi. >> Need to delete clock & power domain properties of >> main_timer1 in -r5.dts else won't boot. This is because >> timer_init is done during rproc_start to start System Firmware, >> but we can't do any clock/power-domain operations before >> System Firmware starts. > > if that is the argument for main_uart0 and main_i2c0 main_gpio0 etc. > - please document in the r5.dts as well as to why we are > /delete-property/ power-domains. I think we feed in boardconfig etc by > the time we get around to this, correct? if not, we might need to state > that information - that without boardconfig being fed to the sysfw pm > functions are'nt active. > > > Otherwise, this is coming along just right. > >> - drop cpsw3g custom DT property 'mac_efuse' and custom >> DT node cpsw-phy-sel as driver picks these from standard >> property/node. >> - include board dts file in -r5 dts file to avoid duplication >> of nodes. Include -u-boot.dtsi on top. >> - drop duplicate nodes in -r5 dts and -u-boot.dtsi >> >> Signed-off-by: Roger Quadros >> --- >> arch/arm/dts/k3-am64-main.dtsi | 171 ++++++++++++++++++++- >> arch/arm/dts/k3-am64-mcu.dtsi | 53 ++++++- >> arch/arm/dts/k3-am64-thermal.dtsi | 33 ++++ >> arch/arm/dts/k3-am64.dtsi | 22 +-- >> arch/arm/dts/k3-am642-evm-u-boot.dtsi | 67 +++++---- >> arch/arm/dts/k3-am642-evm.dts | 173 ++++++++++++++++----- >> arch/arm/dts/k3-am642-r5-evm.dts | 202 +++---------------------- >> arch/arm/dts/k3-am642-r5-sk.dts | 209 +++----------------------- >> arch/arm/dts/k3-am642-sk-u-boot.dtsi | 59 ++++---- >> arch/arm/dts/k3-am642-sk.dts | 166 ++++++++++++++------ >> arch/arm/dts/k3-am642.dtsi | 1 + >> 11 files changed, 613 insertions(+), 543 deletions(-) >> create mode 100644 arch/arm/dts/k3-am64-thermal.dtsi >> >> diff --git a/arch/arm/dts/k3-am64-main.dtsi b/arch/arm/dts/k3-am64-main.dtsi >> diff --git a/arch/arm/dts/k3-am642-r5-evm.dts b/arch/arm/dts/k3-am642-r5-evm.dts >> index b49064181a..240278dd53 100644 >> --- a/arch/arm/dts/k3-am642-r5-evm.dts >> +++ b/arch/arm/dts/k3-am642-r5-evm.dts >> @@ -1,19 +1,17 @@ >> // SPDX-License-Identifier: GPL-2.0 >> /* >> - * Copyright (C) 2020-2021 Texas Instruments Incorporated - https://www.ti.com/ >> + * Copyright (C) 2020-2023 Texas Instruments Incorporated - https://www.ti.com/ >> */ >> >> -/dts-v1/; >> - >> -#include "k3-am642.dtsi" >> +#include "k3-am642-evm.dts" >> #include "k3-am64-evm-ddr4-1600MTs.dtsi" >> #include "k3-am64-ddr.dtsi" >> -#include "k3-am64x-binman.dtsi" >> + >> +#include "k3-am642-evm-u-boot.dtsi" >> >> / { >> chosen { >> stdout-path = "serial2:115200n8"; >> - tick-timer = &timer1; >> }; > > Drop the entire chosen - comes in from u-boot.dtsi > >> >> aliases { >> @@ -21,14 +19,6 @@ >> remoteproc1 = &a53_0; >> }; >> >> - memory@80000000 { >> - device_type = "memory"; >> - /* 2G RAM */ >> - reg = <0x00000000 0x80000000 0x00000000 0x80000000>; >> - >> - bootph-pre-ram; >> - }; >> - >> a53_0: a53@0 { >> compatible = "ti,am654-rproc"; >> reg = <0x00 0x00a90000 0x00 0x10>; >> @@ -46,34 +36,12 @@ >> bootph-pre-ram; >> }; >> > > Can you also look at the &memory_controller { > } node? > > I think vtt_supply already points to the DDR vtt pinmux? so, a bit > confused why we would point the pinctrl-0 to the same pinmux again? > Right. Also vtt_supply is always-on fixed regulator. So will drop vtt-supply property from memory_controller node. >> -#include "k3-am642-evm-u-boot.dtsi" >> diff --git a/arch/arm/dts/k3-am642-r5-sk.dts b/arch/arm/dts/k3-am642-r5-sk.dts >> index 32d4c31728..9dbd444d6d 100644 >> --- a/arch/arm/dts/k3-am642-r5-sk.dts >> +++ b/arch/arm/dts/k3-am642-r5-sk.dts >> @@ -3,19 +3,15 @@ >> * Copyright (C) 2021 Texas Instruments Incorporated - https://www.ti.com/ >> */ >> >> -/dts-v1/; >> - >> -#include >> -#include >> -#include >> -#include "k3-am642.dtsi" >> +#include "k3-am642-sk.dts" >> #include "k3-am64-sk-lp4-1600MTs.dtsi" >> #include "k3-am64-ddr.dtsi" >> >> +#include "k3-am642-sk-u-boot.dtsi" >> + >> / { >> chosen { >> stdout-path = "serial2:115200n8"; >> - tick-timer = &timer1; >> }; > Drop entire chosen? OK. > >> >> aliases { >> @@ -23,13 +19,6 @@ >> remoteproc1 = &a53_0; >> }; >> >> - memory@80000000 { >> - device_type = "memory"; >> - /* 2G RAM */ >> - reg = <0x00000000 0x80000000 0x00000000 0x80000000>; >> - bootph-pre-ram; >> - }; >> - >> a53_0: a53@0 { >> compatible = "ti,am654-rproc"; >> reg = <0x00 0x00a90000 0x00 0x10>; >> @@ -47,18 +36,6 @@ >> bootph-pre-ram; >> }; >> >> - reserved-memory { >> - #address-cells = <2>; >> - #size-cells = <2>; >> - ranges; >> - >> - secure_ddr: optee@9e800000 { >> - reg = <0x00 0x9e800000 0x00 0x01800000>; /* for OP-TEE */ >> - alignment = <0x1000>; >> - no-map; >> - }; >> - }; >> - >> clk_200mhz: dummy-clock-200mhz { >> compatible = "fixed-clock"; >> #clock-cells = <0>; >> @@ -76,110 +53,6 @@ >> }; >> }; >> >> -&cbass_main { >> - main_esm: esm@420000 { >> - compatible = "ti,j721e-esm"; >> - reg = <0x0 0x420000 0x0 0x1000>; >> - ti,esm-pins = <160>, <161>; >> - bootph-pre-ram; >> - }; >> -}; > > please add for r5-sk: > &main_esm { > bootph-pre-ram; > }; > > &mcu_esm { > bootph-pre-ram; > }; > I added them in -u-boot.dtsi along with cbass_main and cbass_mcu. Should I move them to -r5-sk instead? -- cheers, -roger