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=-18.8 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_CR_TRAILER,INCLUDES_PATCH,MAILING_LIST_MULTI,NICE_REPLY_A, SPF_HELO_NONE,SPF_PASS,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 E3155C12002 for ; Wed, 21 Jul 2021 18:27:21 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id CB15A6120C for ; Wed, 21 Jul 2021 18:27:21 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238993AbhGURqo (ORCPT ); Wed, 21 Jul 2021 13:46:44 -0400 Received: from fllv0016.ext.ti.com ([198.47.19.142]:53160 "EHLO fllv0016.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232571AbhGURqn (ORCPT ); Wed, 21 Jul 2021 13:46:43 -0400 Received: from lelv0266.itg.ti.com ([10.180.67.225]) by fllv0016.ext.ti.com (8.15.2/8.15.2) with ESMTP id 16LIRFKB018350; Wed, 21 Jul 2021 13:27:15 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1626892035; bh=AAmZWojQo9ONsCFEwdKYb2NXdYDGQvHNHW+g3WsirsQ=; h=Subject:To:CC:References:From:Date:In-Reply-To; b=dvSEv0FttKdh5y76dH/rQgCNDkvBqy9rRhpx6BQVzUm3pJKG9SH1qYWHldk9TTjU/ r9s6FET/6/5O5KbqVx2vHANpbpCMCWruwAXJlwinXjVhqWV7ScUNqcNnVHssBX726r V8O1OFT+47fCpBJ49ncl8PHybTDLkllWT9NfyJ2o= Received: from DLEE103.ent.ti.com (dlee103.ent.ti.com [157.170.170.33]) by lelv0266.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 16LIRFWP004304 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Wed, 21 Jul 2021 13:27:15 -0500 Received: from DLEE100.ent.ti.com (157.170.170.30) by DLEE103.ent.ti.com (157.170.170.33) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2176.2; Wed, 21 Jul 2021 13:27:14 -0500 Received: from fllv0040.itg.ti.com (10.64.41.20) by DLEE100.ent.ti.com (157.170.170.30) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2176.2 via Frontend Transport; Wed, 21 Jul 2021 13:27:15 -0500 Received: from [10.250.100.73] (ileax41-snat.itg.ti.com [10.172.224.153]) by fllv0040.itg.ti.com (8.15.2/8.15.2) with ESMTP id 16LIRCxD029757; Wed, 21 Jul 2021 13:27:13 -0500 Subject: Re: [PATCH v2 2/4] arm64: dts: ti: k3-am64-main: Add ecap pwm nodes To: Lokesh Vutla , Nishanth Menon , CC: Device Tree Mailing List , Rob Herring , Linux ARM Mailing List , , Vignesh R References: <20210721113625.17299-1-lokeshvutla@ti.com> <20210721113625.17299-3-lokeshvutla@ti.com> From: Grygorii Strashko Message-ID: Date: Wed, 21 Jul 2021 21:27:10 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.11.0 MIME-Version: 1.0 In-Reply-To: <20210721113625.17299-3-lokeshvutla@ti.com> Content-Type: text/plain; charset="utf-8"; format=flowed 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 21/07/2021 14:36, Lokesh Vutla wrote: > There are 3 instances of ecap modules that are capable of generating > a pwm when configured in apwm mode. Add DT nodes for these 3 ecap > instances. > > Signed-off-by: Lokesh Vutla > --- > arch/arm64/boot/dts/ti/k3-am64-main.dtsi | 27 ++++++++++++++++++++++++ > 1 file changed, 27 insertions(+) > > diff --git a/arch/arm64/boot/dts/ti/k3-am64-main.dtsi b/arch/arm64/boot/dts/ti/k3-am64-main.dtsi > index 9e762f64b631..42d1d219a3fd 100644 > --- a/arch/arm64/boot/dts/ti/k3-am64-main.dtsi > +++ b/arch/arm64/boot/dts/ti/k3-am64-main.dtsi > @@ -946,4 +946,31 @@ epwm8: pwm@23080000 { > clocks = <&epwm_tbclk 8>, <&k3_clks 94 0>; > clock-names = "tbclk", "fck"; > }; > + > + ecap0: pwm@23100000 { > + compatible = "ti,am64-ecap", "ti,am3352-ecap"; > + #pwm-cells = <3>; > + reg = <0x0 0x23100000 0x0 0x60>; > + power-domains = <&k3_pds 51 TI_SCI_PD_EXCLUSIVE>; > + clocks = <&k3_clks 51 0>; > + clock-names = "fck"; > + }; > + > + ecap1: pwm@23110000 { > + compatible = "ti,am64-ecap", "ti,am3352-ecap"; > + #pwm-cells = <3>; > + reg = <0x0 0x23110000 0x0 0x60>; > + power-domains = <&k3_pds 52 TI_SCI_PD_EXCLUSIVE>; > + clocks = <&k3_clks 52 0>; > + clock-names = "fck"; > + }; > + > + ecap2: pwm@23120000 { > + compatible = "ti,am64-ecap", "ti,am3352-ecap"; > + #pwm-cells = <3>; > + reg = <0x0 0x23120000 0x0 0x60>; > + power-domains = <&k3_pds 53 TI_SCI_PD_EXCLUSIVE>; > + clocks = <&k3_clks 53 0>; > + clock-names = "fck"; > + }; > }; > Reviewed-by: Grygorii Strashko -- Best regards, grygorii 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=-16.8 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,NICE_REPLY_A,SPF_HELO_NONE,SPF_PASS, USER_AGENT_SANE_1 autolearn=ham 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 7B298C636C9 for ; Wed, 21 Jul 2021 18:38:31 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (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 4E89661244 for ; Wed, 21 Jul 2021 18:38:31 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 4E89661244 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=bombadil.20210309; h=Sender:Content-Type: Content-Transfer-Encoding:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:Date:Message-ID:From: References:CC:To:Subject:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=Xcifo89UfSXIjMmQZaUdDBwkz5ke/17ot74Dyx+YNiM=; b=cfR/Ig+i1AxGI+lQjWSFyMGNrp LUMsnHlUHTA7YuB7Va7OqasnhFR+KvGuytpugXa/KTEoXan5DvaybtWxZ6qiUcFnkEFa40ObtPUe3 OrrADkj7NuM2kAVJXWmOTG9i01W0BAi4y5aBBbhHiT96SQdeiZwWOsJ8LR2VXAhjdIbiWxpyyxsTL 4O0LVUAVIz19fZfg3lCO1WlE/cEhnMMCmqzITqB+db88a3HObT4iib1ij621nKSWciq2pINy8bxzy qnq55FY+EDFBDRCohQ4NYbshbu1zClMmChIZWQCR8hmX9jKSombgU+dNqxMHHAGt9FDiiqF8zKFK5 qGHHlFOg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1m6H5E-00GwbT-Rm; Wed, 21 Jul 2021 18:36:41 +0000 Received: from fllv0016.ext.ti.com ([198.47.19.142]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1m6Gw9-00GsbM-T0 for linux-arm-kernel@lists.infradead.org; Wed, 21 Jul 2021 18:27:19 +0000 Received: from lelv0266.itg.ti.com ([10.180.67.225]) by fllv0016.ext.ti.com (8.15.2/8.15.2) with ESMTP id 16LIRFKB018350; Wed, 21 Jul 2021 13:27:15 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1626892035; bh=AAmZWojQo9ONsCFEwdKYb2NXdYDGQvHNHW+g3WsirsQ=; h=Subject:To:CC:References:From:Date:In-Reply-To; b=dvSEv0FttKdh5y76dH/rQgCNDkvBqy9rRhpx6BQVzUm3pJKG9SH1qYWHldk9TTjU/ r9s6FET/6/5O5KbqVx2vHANpbpCMCWruwAXJlwinXjVhqWV7ScUNqcNnVHssBX726r V8O1OFT+47fCpBJ49ncl8PHybTDLkllWT9NfyJ2o= Received: from DLEE103.ent.ti.com (dlee103.ent.ti.com [157.170.170.33]) by lelv0266.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 16LIRFWP004304 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Wed, 21 Jul 2021 13:27:15 -0500 Received: from DLEE100.ent.ti.com (157.170.170.30) by DLEE103.ent.ti.com (157.170.170.33) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2176.2; Wed, 21 Jul 2021 13:27:14 -0500 Received: from fllv0040.itg.ti.com (10.64.41.20) by DLEE100.ent.ti.com (157.170.170.30) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2176.2 via Frontend Transport; Wed, 21 Jul 2021 13:27:15 -0500 Received: from [10.250.100.73] (ileax41-snat.itg.ti.com [10.172.224.153]) by fllv0040.itg.ti.com (8.15.2/8.15.2) with ESMTP id 16LIRCxD029757; Wed, 21 Jul 2021 13:27:13 -0500 Subject: Re: [PATCH v2 2/4] arm64: dts: ti: k3-am64-main: Add ecap pwm nodes To: Lokesh Vutla , Nishanth Menon , CC: Device Tree Mailing List , Rob Herring , Linux ARM Mailing List , , Vignesh R References: <20210721113625.17299-1-lokeshvutla@ti.com> <20210721113625.17299-3-lokeshvutla@ti.com> From: Grygorii Strashko Message-ID: Date: Wed, 21 Jul 2021 21:27:10 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.11.0 MIME-Version: 1.0 In-Reply-To: <20210721113625.17299-3-lokeshvutla@ti.com> Content-Language: en-US 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-20210721_112718_130150_4E204658 X-CRM114-Status: GOOD ( 17.34 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="us-ascii"; Format="flowed" Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On 21/07/2021 14:36, Lokesh Vutla wrote: > There are 3 instances of ecap modules that are capable of generating > a pwm when configured in apwm mode. Add DT nodes for these 3 ecap > instances. > > Signed-off-by: Lokesh Vutla > --- > arch/arm64/boot/dts/ti/k3-am64-main.dtsi | 27 ++++++++++++++++++++++++ > 1 file changed, 27 insertions(+) > > diff --git a/arch/arm64/boot/dts/ti/k3-am64-main.dtsi b/arch/arm64/boot/dts/ti/k3-am64-main.dtsi > index 9e762f64b631..42d1d219a3fd 100644 > --- a/arch/arm64/boot/dts/ti/k3-am64-main.dtsi > +++ b/arch/arm64/boot/dts/ti/k3-am64-main.dtsi > @@ -946,4 +946,31 @@ epwm8: pwm@23080000 { > clocks = <&epwm_tbclk 8>, <&k3_clks 94 0>; > clock-names = "tbclk", "fck"; > }; > + > + ecap0: pwm@23100000 { > + compatible = "ti,am64-ecap", "ti,am3352-ecap"; > + #pwm-cells = <3>; > + reg = <0x0 0x23100000 0x0 0x60>; > + power-domains = <&k3_pds 51 TI_SCI_PD_EXCLUSIVE>; > + clocks = <&k3_clks 51 0>; > + clock-names = "fck"; > + }; > + > + ecap1: pwm@23110000 { > + compatible = "ti,am64-ecap", "ti,am3352-ecap"; > + #pwm-cells = <3>; > + reg = <0x0 0x23110000 0x0 0x60>; > + power-domains = <&k3_pds 52 TI_SCI_PD_EXCLUSIVE>; > + clocks = <&k3_clks 52 0>; > + clock-names = "fck"; > + }; > + > + ecap2: pwm@23120000 { > + compatible = "ti,am64-ecap", "ti,am3352-ecap"; > + #pwm-cells = <3>; > + reg = <0x0 0x23120000 0x0 0x60>; > + power-domains = <&k3_pds 53 TI_SCI_PD_EXCLUSIVE>; > + clocks = <&k3_clks 53 0>; > + clock-names = "fck"; > + }; > }; > Reviewed-by: Grygorii Strashko -- Best regards, grygorii _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel