Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp296022pxb; Wed, 4 Nov 2020 23:29:59 -0800 (PST) X-Google-Smtp-Source: ABdhPJxA8FzkEZHuJNKyAfYC4qdNKvSqMqLi73Y7d3Tp37ko7ZxNjFLp8i1nLkcKhwlqo8g+pM8N X-Received: by 2002:a05:6402:1457:: with SMTP id d23mr1169305edx.311.1604561399463; Wed, 04 Nov 2020 23:29:59 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1604561399; cv=none; d=google.com; s=arc-20160816; b=d+fU51L1CUWA863QVJk4atfgSwzgeJZqFWI+YpcvVonie8ua7dbgpltmu8aEeKVQkT WnoQvpYIYM/lscF+LjWCOuMVI1p4VutqkHHP7p9/3J7zB1CsWitHI/dSsRRiTNLbRQP6 us+352kC3M2Vma1kgczBvKb6S4G1tVcli5oiXjPlmIfJ5+HYkFQS3TjkcVM3HW491md0 w9G6+9VJYFxJhZpF0aOUl3zAbijul9jb3mhkiXGz6irqTKd6WbDrqZv6/Tzo9B18jRnn wOtlBNGSrCnk7JqsjzP+kYXgK7H7EuDcJfyrvlnIASYV3kZpmEp9Y/xMS0FlpMBQ4oy5 r8qw== 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=KslEU2O68CHJb3gLVJxeNScHoYi9XbnVfavsgk9RqVU=; b=fFeYQkAM79Pq+YLFt/jhJZrRG9mUK8srzrDaWx9N68d+qiff2zqaCIWcZeRju9LIwG tp3To/jyd2RiKuvP3XD9YHBNnzIOFOJVwPQuRzOc0Fx3wV7xraxVPkAwsopEo7Z0exl8 MWggu3/rihWUiiGa5KkZ4sAU9LBRSSZERK3q0lnK9zTvtIOFEjNIzeStlQIfBeK7l4mX Cx6XRQ2mDHV5CnbbS5YklXAwv6+HaQzU1RTBX91294Dpw8kq8f887i/OstBy7XYU8+o2 GpZSRbIdWCH164Pe9qT0HpL1wTvn1oTQ95QIGAoxNtQ1IjEvICnTp1jU2zD3vXJzFubj bE7w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=F0Lvsrl9; 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 d15si483231ejj.675.2020.11.04.23.29.37; Wed, 04 Nov 2020 23:29:59 -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=F0Lvsrl9; 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 S1729240AbgKEHZe (ORCPT + 99 others); Thu, 5 Nov 2020 02:25:34 -0500 Received: from fllv0015.ext.ti.com ([198.47.19.141]:60612 "EHLO fllv0015.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726626AbgKEHZe (ORCPT ); Thu, 5 Nov 2020 02:25:34 -0500 Received: from lelv0265.itg.ti.com ([10.180.67.224]) by fllv0015.ext.ti.com (8.15.2/8.15.2) with ESMTP id 0A57PTgx084143; Thu, 5 Nov 2020 01:25:29 -0600 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1604561129; bh=KslEU2O68CHJb3gLVJxeNScHoYi9XbnVfavsgk9RqVU=; h=Subject:To:CC:References:From:Date:In-Reply-To; b=F0Lvsrl9udoe3tKshM8zwbmdWz/W1U4H+1Y4mPgfdynKk0xRrhC+Q1wmR/WjRc47M BoChFHvicvjIBeVrHrblsmhwx1EvN8p8+4MwuMnDkXvPOUveRu01sfh/9GiS1mr5Xv yTG5sZTywAGlla5aNqdYRljzB0jtINekTiLyq5Is= Received: from DLEE106.ent.ti.com (dlee106.ent.ti.com [157.170.170.36]) by lelv0265.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 0A57PTY9068421 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Thu, 5 Nov 2020 01:25:29 -0600 Received: from DLEE111.ent.ti.com (157.170.170.22) by DLEE106.ent.ti.com (157.170.170.36) 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:26 -0600 Received: from fllv0040.itg.ti.com (10.64.41.20) by DLEE111.ent.ti.com (157.170.170.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:26 -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 0A57PNVs052480; Thu, 5 Nov 2020 01:25:24 -0600 Subject: Re: [PATCH 2/4] arm64: dts: ti: k3-j721e*: 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-3-nm@ti.com> From: Tomi Valkeinen Message-ID: <265fdc00-7f5f-48c3-3d99-971ccd466232@ti.com> Date: Thu, 5 Nov 2020 09:25:23 +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-3-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 j721e SoC dtsi before this gets more harder > to cleanup later on and new SoCs are added. > > The only functional difference between the dtb generated is > status='okay' is no longer necessary for mcasp10 and depends on the > default state. > > [1] https://lore.kernel.org/linux-arm-kernel/20201027130701.GE5639@atomide.com/ > > Fixes: 1c4d35265fb2 ("arm64: dts: ti: k3-j721e-main: Add McASP nodes") > Fixes: 76921f15acc0 ("arm64: dts: ti: k3-j721e-main: Add DSS node") > Cc: Jyri Sarha > Cc: Tomi Valkeinen > Cc: Peter Ujfalusi > Cc: Tony Lindgren > Signed-off-by: Nishanth Menon > --- > .../dts/ti/k3-j721e-common-proc-board.dts | 48 ++++++++++++++++++- > arch/arm64/boot/dts/ti/k3-j721e-main.dtsi | 26 ---------- > 2 files changed, 47 insertions(+), 27 deletions(-) Reviewed-by: Tomi Valkeinen Tomi -- Texas Instruments Finland Oy, Porkkalankatu 22, 00180 Helsinki. Y-tunnus/Business ID: 0615521-4. Kotipaikka/Domicile: Helsinki