Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp295756pxb; Wed, 4 Nov 2020 23:29:20 -0800 (PST) X-Google-Smtp-Source: ABdhPJxzWOFUz25DC6au3hb9XyX1MEH20b7DYQJNS51YeMAaoxSQs0FpP1eYGg+brgE519aKQWNT X-Received: by 2002:a17:906:c836:: with SMTP id dd22mr988944ejb.552.1604561360326; Wed, 04 Nov 2020 23:29:20 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1604561360; cv=none; d=google.com; s=arc-20160816; b=pZbxfAu6RrPa433CPjBNU0C98tTyEyVsng1utbYHb4HUKFMR8Ln9PNTDXaQZY8S+Fb CuzxtoAdY95+m83w9ke8wedkPdtMNyFfzH0C7ZmSpcfc4VbUUpUkpfFnPGsFEfoR9zHV R26y2A6uHH/cOvECCAI7E+KIvKJLYQ0ER6Qjqj3Yqjhgtru1XqVzE5shDI9q1hIw4YKL m3rPSz5vO40DzpipcRfKPxhlWqG8kQzMRZAO3P3d43zhi3J4PK7NLQ20ZL9myggr4VmD q95hjiuAeaRQaswlFx1qkmH5NOq+c4SUjqrFvaUedWzRSg37t138b5SznFmZwE+O7HhP hovQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:dkim-signature; bh=T5DlDzsAeznf0wsBj6LJt3ZW12Kli5EmdqiLUvgGk5g=; b=fGi0Gb4FLEZG+nEjR7KSBrXEHRIgBeqp8XxAlpnRIKxl5/bHTU2QQOkNq7NbAMqind gX+vbxVZGfU63yEsgwS4xIHyYb64XlzH69ZGyN1GOdaL9XjLNkIz2ZrpFIkoirKPZ0VC X3VkcvMlYCgNVlBQjmyh+i7pBkGxo10+6VF57VPrZfBY3+5extmv7cBwcVfxB1Yth+Mm BqXXvIRmMsJQGYKAQCNRWodkI5q281UrtNgTxsI1SMdbziAP0vTEEs3/tWh4XEjddnrv CBHTFA9Em2Zt80zvrSlYkRhcBrlfT1ATEnfafH+JThjO5Moz636G6pHeReYnouDl6Wl0 CyLA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=eNheejXC; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id d18si541167edx.345.2020.11.04.23.28.57; Wed, 04 Nov 2020 23:29:20 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=eNheejXC; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728986AbgKEHZM (ORCPT + 99 others); Thu, 5 Nov 2020 02:25:12 -0500 Received: from fllv0015.ext.ti.com ([198.47.19.141]:60358 "EHLO fllv0015.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726626AbgKEHZM (ORCPT ); Thu, 5 Nov 2020 02:25:12 -0500 Received: from fllv0035.itg.ti.com ([10.64.41.0]) by fllv0015.ext.ti.com (8.15.2/8.15.2) with ESMTP id 0A57P6cI083934; Thu, 5 Nov 2020 01:25:06 -0600 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1604561106; bh=T5DlDzsAeznf0wsBj6LJt3ZW12Kli5EmdqiLUvgGk5g=; h=Subject:To:CC:References:From:Date:In-Reply-To; b=eNheejXCzcCcnho3WrCgym6kgAMsiCZOrNHwLd/b2s+iB8urUNfGazEN1beSMHAf9 flnkvhf89pUbqT5ZQd5WcEQX5dSkRVT1XaqhgzAkAPZtlLR1/9qtrAYcRj4VbcxFfz 1ZSA2b1tAbtSJLugOrBcYduLJnqNeQgF4OrJTnio= Received: from DFLE105.ent.ti.com (dfle105.ent.ti.com [10.64.6.26]) by fllv0035.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 0A57P5Ih122475 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Thu, 5 Nov 2020 01:25:05 -0600 Received: from DFLE101.ent.ti.com (10.64.6.22) by DFLE105.ent.ti.com (10.64.6.26) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1979.3; Thu, 5 Nov 2020 01:25:05 -0600 Received: from fllv0040.itg.ti.com (10.64.41.20) by DFLE101.ent.ti.com (10.64.6.22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1979.3 via Frontend Transport; Thu, 5 Nov 2020 01:25:05 -0600 Received: from [192.168.2.6] (ileax41-snat.itg.ti.com [10.172.224.153]) by fllv0040.itg.ti.com (8.15.2/8.15.2) with ESMTP id 0A57P2AC051619; Thu, 5 Nov 2020 01:25:02 -0600 Subject: Re: [PATCH 1/4] arm64: dts: ti: k3-am65*: Cleanup disabled nodes at SoC dtsi level To: Nishanth Menon , Roger Quadros , Keerthy , Jyri Sarha , Peter Ujfalusi , Lokesh Vutla , Rob Herring , Tony Lindgren , Tero Kristo CC: , , References: <20201104224356.18040-1-nm@ti.com> <20201104224356.18040-2-nm@ti.com> From: Tomi Valkeinen Message-ID: <3cc234ac-ea7a-fe3e-e485-ee3123048fec@ti.com> Date: Thu, 5 Nov 2020 09:25:01 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 MIME-Version: 1.0 In-Reply-To: <20201104224356.18040-2-nm@ti.com> Content-Type: text/plain; charset="utf-8" Content-Language: en-US Content-Transfer-Encoding: 7bit X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 05/11/2020 00:43, Nishanth Menon wrote: > The device tree standard sets the default node behavior when status > property as enabled. There are many reasons for doing the same, number > of strings in device tree, default power management functionality etc > are few of the reasons. > > In general, after a few rounds of discussions [1] there are few > options one could take when dealing with SoC dtsi and board dts > > a. SoC dtsi provide nodes as a super-set default (aka enabled) state and > to prevent messy board files, when more boards are added per SoC, we > optimize and disable commonly un-used nodes in board-common.dtsi > b. SoC dtsi disables all hardware dependent nodes by default and board > dts files enable nodes based on a need basis. > c. Subjectively pick and choose which nodes we will disable by default > in SoC dtsi and over the years we can optimize things and change > default state depending on the need. > > While there are pros and cons on each of these approaches, the right > thing to do will be to stick with device tree default standards and > work within those established rules. So, we choose to go with option > (a). > > Lets cleanup defaults of am654 SoC dtsi before this gets more harder > to cleanup later on and new SoCs are added. > > The dtb generated is identical with the patch and it is just cleanup to > ensure we have a clean usage model > > [1] https://lore.kernel.org/linux-arm-kernel/20201027130701.GE5639@atomide.com/ > > Fixes: 9bcb631e9953 ("arm64: dts: ti: k3-am654-main: Add McASP nodes") > Fixes: fc539b90eda2 ("arm64: dts: ti: am654: Add DSS node") > Cc: Jyri Sarha > Cc: Tomi Valkeinen > Cc: Peter Ujfalusi > Cc: Tony Lindgren > Signed-off-by: Nishanth Menon > --- > arch/arm64/boot/dts/ti/k3-am65-main.dtsi | 8 -------- > arch/arm64/boot/dts/ti/k3-am654-base-board.dts | 16 ++++++++++++++++ > 2 files changed, 16 insertions(+), 8 deletions(-) Reviewed-by: Tomi Valkeinen Tomi -- Texas Instruments Finland Oy, Porkkalankatu 22, 00180 Helsinki. Y-tunnus/Business ID: 0615521-4. Kotipaikka/Domicile: Helsinki