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 X-Spam-Level: X-Spam-Status: No, score=-12.1 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_PATCH,MAILING_LIST_MULTI,SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS, URIBL_BLOCKED,USER_AGENT_SANE_1 autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id DCBBCC4363D for ; Mon, 5 Oct 2020 12:08:44 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 8FB322075A for ; Mon, 5 Oct 2020 12:08:44 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=ti.com header.i=@ti.com header.b="y2iAnCHI" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726017AbgJEMIn (ORCPT ); Mon, 5 Oct 2020 08:08:43 -0400 Received: from fllv0016.ext.ti.com ([198.47.19.142]:38796 "EHLO fllv0016.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725930AbgJEMIn (ORCPT ); Mon, 5 Oct 2020 08:08:43 -0400 Received: from fllv0034.itg.ti.com ([10.64.40.246]) by fllv0016.ext.ti.com (8.15.2/8.15.2) with ESMTP id 095C8cPm047241; Mon, 5 Oct 2020 07:08:38 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1601899718; bh=IYQh6NvcLHwQvpyUYx1AlXSUCurApS4nkon46rVr804=; h=Date:From:To:CC:Subject:References:In-Reply-To; b=y2iAnCHIptattDu4Hk2vIuqHYDv1XkdWync2f+Zd8Up4WMZKgsgIWe6js+1pMdTzQ 6l/GzK65c0ADBbn+KQbVYzbKH+z87Dht23riT3tlR8TBL4t3SuAZrF1oyLdx+rnc5y +gCd+IEwCJfCNWkQPIFW2ceI25PMnlekrUAf6tmg= Received: from DFLE103.ent.ti.com (dfle103.ent.ti.com [10.64.6.24]) by fllv0034.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 095C8csV007784 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Mon, 5 Oct 2020 07:08:38 -0500 Received: from DFLE105.ent.ti.com (10.64.6.26) by DFLE103.ent.ti.com (10.64.6.24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1979.3; Mon, 5 Oct 2020 07:08:38 -0500 Received: from fllv0040.itg.ti.com (10.64.41.20) 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 via Frontend Transport; Mon, 5 Oct 2020 07:08:38 -0500 Received: from localhost (ileax41-snat.itg.ti.com [10.172.224.153]) by fllv0040.itg.ti.com (8.15.2/8.15.2) with ESMTP id 095C8bMb051913; Mon, 5 Oct 2020 07:08:38 -0500 Date: Mon, 5 Oct 2020 07:08:37 -0500 From: Nishanth Menon To: Peter Ujfalusi CC: , , , , Subject: Re: [PATCH] arm64: dts: ti: k3-j7200-main: Add McASP nodes Message-ID: <20201005120837.75cwdmcpvzbvayq7@kinfolk> References: <20201005074850.11247-1-peter.ujfalusi@ti.com> <20201005115805.d6yhykn7oc6x2tbu@charm> <5a9ed7d3-fcfd-edbf-fc34-112a7e55aa1c@ti.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline In-Reply-To: <5a9ed7d3-fcfd-edbf-fc34-112a7e55aa1c@ti.com> User-Agent: NeoMutt/20171215 X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 15:02-20201005, Peter Ujfalusi wrote: > > > On 05/10/2020 14.58, Nishanth Menon wrote: > > On 10:48-20201005, Peter Ujfalusi wrote: > >> Add the nodes for McASP 0-2 and keep them disabled because several > >> required properties are not present as they are board specific. > >> > >> Signed-off-by: Peter Ujfalusi > >> --- > >> arch/arm64/boot/dts/ti/k3-j7200-main.dtsi | 57 +++++++++++++++++++++++ > >> 1 file changed, 57 insertions(+) > >> > >> diff --git a/arch/arm64/boot/dts/ti/k3-j7200-main.dtsi b/arch/arm64/boot/dts/ti/k3-j7200-main.dtsi > >> index 72d6496e88dd..cc6c2a81887a 100644 > >> --- a/arch/arm64/boot/dts/ti/k3-j7200-main.dtsi > >> +++ b/arch/arm64/boot/dts/ti/k3-j7200-main.dtsi > >> @@ -446,4 +446,61 @@ usb0: usb@6000000 { > >> dr_mode = "otg"; > >> }; > >> }; > >> +x > >> + mcasp0: mcasp@02b00000 { > >> + compatible = "ti,am33xx-mcasp-audio"; > >> + reg = <0x0 0x02b00000 0x0 0x2000>, > >> + <0x0 0x02b08000 0x0 0x1000>; > >> + reg-names = "mpu","dat"; > >> + interrupts = , > >> + ; > >> + interrupt-names = "tx", "rx"; > >> + > >> + dmas = <&main_udmap 0xc400>, <&main_udmap 0x4400>; > >> + dma-names = "tx", "rx"; > >> + > >> + clocks = <&k3_clks 174 40>; > >> + clock-names = "fck"; > >> + power-domains = <&k3_pds 174 TI_SCI_PD_EXCLUSIVE>; > >> + > >> + status = "disabled"; > > > > I see that there is inconsistent usage of "disabled" in our SoC.dts > > > > Our generic rule has been set them to disabled in board.dtsi > > McASP and DSS for existing SoC dts do not follow this.. which is a tad > > confusing.. (considering that not even all uarts come out on every board > > and every uart needs pinmux to function..) > > "keep them disabled because several required properties are not present > as they are board specific." > > In board file the enabled mcasp must be updated with options that is > required for operation. Without those option the McASP can not be > initialized. > > I think we have been revisiting the very same discussion every time we > have a new SoC with McASP... > Yep.. This doe'snt really follow the rest of the SoC definition. [1] came to mind. The McASP discussion is a variation in the debate of the same. I'd argue Serdes, or for that matter any IP that has a link to outside-the-SoC world has the same discussion point. [1] https://patchwork.kernel.org/patch/9304575/ -- Regards, Nishanth Menon Key (0xDDB5849D1736249D) / Fingerprint: F8A2 8693 54EB 8232 17A3 1A34 DDB5 849D 1736 249D 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 X-Spam-Level: X-Spam-Status: No, score=-12.0 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH, MAILING_LIST_MULTI,SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED, USER_AGENT_SANE_1 autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 0B966C4363A for ; Mon, 5 Oct 2020 12:10:18 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 968472075A for ; Mon, 5 Oct 2020 12:10:17 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="fyfoHrbm"; dkim=fail reason="signature verification failed" (1024-bit key) header.d=ti.com header.i=@ti.com header.b="y2iAnCHI" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 968472075A Authentication-Results: mail.kernel.org; dmarc=fail (p=quarantine dis=none) header.from=ti.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References:Message-ID: Subject:To:From:Date:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=kPzkeAq27jlI2R7KdwOm/hfNIF6yTo6p3bMX3DptqA8=; b=fyfoHrbmYclEBlGTtsbD8Akqq ayl91KjkA7Uv/QhZR+AaCEmbL2uIn2SexCn5b2id3zELkoXbXI/NsX1/CAyjLLP4gJiwM5uFX/Kmc OLxaEnzUKvxVGxiveN9ujTBNlQAFcI32FroBPgDVV7HAmUGxJ7rcXXYUDRmDgdx+Y5DyzSs60bJJp rgg3CSThnERmfD0C+8T2m6BjqSKikPFJCeB7d2dycA8ju4IGMS4omAcPMRtLKaNXhs+fDK9PUVB3V 4UGl52fMIiteyUoix5NBr6+WFs6+QCLmIZh5P0wYZPBJyvxkakl9CY7BQZIM41MvvBi7ocO1vAhMe b+66cogBA==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kPPIK-00071W-1S; Mon, 05 Oct 2020 12:08:44 +0000 Received: from fllv0016.ext.ti.com ([198.47.19.142]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kPPIG-00070m-O7 for linux-arm-kernel@lists.infradead.org; Mon, 05 Oct 2020 12:08:42 +0000 Received: from fllv0034.itg.ti.com ([10.64.40.246]) by fllv0016.ext.ti.com (8.15.2/8.15.2) with ESMTP id 095C8cPm047241; Mon, 5 Oct 2020 07:08:38 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1601899718; bh=IYQh6NvcLHwQvpyUYx1AlXSUCurApS4nkon46rVr804=; h=Date:From:To:CC:Subject:References:In-Reply-To; b=y2iAnCHIptattDu4Hk2vIuqHYDv1XkdWync2f+Zd8Up4WMZKgsgIWe6js+1pMdTzQ 6l/GzK65c0ADBbn+KQbVYzbKH+z87Dht23riT3tlR8TBL4t3SuAZrF1oyLdx+rnc5y +gCd+IEwCJfCNWkQPIFW2ceI25PMnlekrUAf6tmg= Received: from DFLE103.ent.ti.com (dfle103.ent.ti.com [10.64.6.24]) by fllv0034.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 095C8csV007784 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Mon, 5 Oct 2020 07:08:38 -0500 Received: from DFLE105.ent.ti.com (10.64.6.26) by DFLE103.ent.ti.com (10.64.6.24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1979.3; Mon, 5 Oct 2020 07:08:38 -0500 Received: from fllv0040.itg.ti.com (10.64.41.20) 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 via Frontend Transport; Mon, 5 Oct 2020 07:08:38 -0500 Received: from localhost (ileax41-snat.itg.ti.com [10.172.224.153]) by fllv0040.itg.ti.com (8.15.2/8.15.2) with ESMTP id 095C8bMb051913; Mon, 5 Oct 2020 07:08:38 -0500 Date: Mon, 5 Oct 2020 07:08:37 -0500 From: Nishanth Menon To: Peter Ujfalusi Subject: Re: [PATCH] arm64: dts: ti: k3-j7200-main: Add McASP nodes Message-ID: <20201005120837.75cwdmcpvzbvayq7@kinfolk> References: <20201005074850.11247-1-peter.ujfalusi@ti.com> <20201005115805.d6yhykn7oc6x2tbu@charm> <5a9ed7d3-fcfd-edbf-fc34-112a7e55aa1c@ti.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <5a9ed7d3-fcfd-edbf-fc34-112a7e55aa1c@ti.com> User-Agent: NeoMutt/20171215 X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20201005_080840_882322_06E55F70 X-CRM114-Status: GOOD ( 23.03 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: t-kristo@ti.com, devicetree@vger.kernel.org, robh+dt@kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On 15:02-20201005, Peter Ujfalusi wrote: > > > On 05/10/2020 14.58, Nishanth Menon wrote: > > On 10:48-20201005, Peter Ujfalusi wrote: > >> Add the nodes for McASP 0-2 and keep them disabled because several > >> required properties are not present as they are board specific. > >> > >> Signed-off-by: Peter Ujfalusi > >> --- > >> arch/arm64/boot/dts/ti/k3-j7200-main.dtsi | 57 +++++++++++++++++++++++ > >> 1 file changed, 57 insertions(+) > >> > >> diff --git a/arch/arm64/boot/dts/ti/k3-j7200-main.dtsi b/arch/arm64/boot/dts/ti/k3-j7200-main.dtsi > >> index 72d6496e88dd..cc6c2a81887a 100644 > >> --- a/arch/arm64/boot/dts/ti/k3-j7200-main.dtsi > >> +++ b/arch/arm64/boot/dts/ti/k3-j7200-main.dtsi > >> @@ -446,4 +446,61 @@ usb0: usb@6000000 { > >> dr_mode = "otg"; > >> }; > >> }; > >> +x > >> + mcasp0: mcasp@02b00000 { > >> + compatible = "ti,am33xx-mcasp-audio"; > >> + reg = <0x0 0x02b00000 0x0 0x2000>, > >> + <0x0 0x02b08000 0x0 0x1000>; > >> + reg-names = "mpu","dat"; > >> + interrupts = , > >> + ; > >> + interrupt-names = "tx", "rx"; > >> + > >> + dmas = <&main_udmap 0xc400>, <&main_udmap 0x4400>; > >> + dma-names = "tx", "rx"; > >> + > >> + clocks = <&k3_clks 174 40>; > >> + clock-names = "fck"; > >> + power-domains = <&k3_pds 174 TI_SCI_PD_EXCLUSIVE>; > >> + > >> + status = "disabled"; > > > > I see that there is inconsistent usage of "disabled" in our SoC.dts > > > > Our generic rule has been set them to disabled in board.dtsi > > McASP and DSS for existing SoC dts do not follow this.. which is a tad > > confusing.. (considering that not even all uarts come out on every board > > and every uart needs pinmux to function..) > > "keep them disabled because several required properties are not present > as they are board specific." > > In board file the enabled mcasp must be updated with options that is > required for operation. Without those option the McASP can not be > initialized. > > I think we have been revisiting the very same discussion every time we > have a new SoC with McASP... > Yep.. This doe'snt really follow the rest of the SoC definition. [1] came to mind. The McASP discussion is a variation in the debate of the same. I'd argue Serdes, or for that matter any IP that has a link to outside-the-SoC world has the same discussion point. [1] https://patchwork.kernel.org/patch/9304575/ -- Regards, Nishanth Menon Key (0xDDB5849D1736249D) / Fingerprint: F8A2 8693 54EB 8232 17A3 1A34 DDB5 849D 1736 249D _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel