From patchwork Tue Oct 16 06:04:01 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vignesh Raghavendra X-Patchwork-Id: 10643131 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 1AB193B73 for ; Tue, 16 Oct 2018 06:04:22 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 0A83A28534 for ; Tue, 16 Oct 2018 06:04:22 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id F2FA928BC2; Tue, 16 Oct 2018 06:04:21 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 65CA228BBE for ; Tue, 16 Oct 2018 06:04:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-ID:Date:Subject:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=XBK8lwwAEWpj4JOevfAbWn5jqMxuXncCE+uf1FqyyJQ=; b=JC86wz1R/mptda x9I439UCt/E/lrMpKxY45YRT/J/M4G5OKLeqG0xJ3sA4QIB/4irLoKGP+p8aSGzgAJxTx1W8YQMF7 /rDjVnaYNFlJJRdOlhi4facAPu4cb2SClqUm88KDvofQqqknB3ii/x0I4CBWp0P3T8P2qYQUWVlTB XqH5PbPP9vgboVFFEwU5IcpIDLFfDvV2atKaTuMFeBZGvjynxUUzIkk+LAT0Z3SIa/1Spwjv47hib csuNdt+5TJFukrztq5jDmI92ai1LUrLL6NAmlGhBRPQAwBzxQynUHN3p9A9oP29tRzYEVaH3fT3FA fyP7vyVSZK/fldG9uKDQ==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1gCISl-0004sk-K7; Tue, 16 Oct 2018 06:04:15 +0000 Received: from fllv0016.ext.ti.com ([198.47.19.142]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1gCIS1-0004XE-UE for linux-arm-kernel@lists.infradead.org; Tue, 16 Oct 2018 06:03:31 +0000 Received: from dflxv15.itg.ti.com ([128.247.5.124]) by fllv0016.ext.ti.com (8.15.2/8.15.2) with ESMTP id w9G63HFH045372; Tue, 16 Oct 2018 01:03:17 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1539669797; bh=H8KzI9Vac6elHy27XoGbgGpU3pE391Bg1aw6iDfkwrE=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=cBQvIdpSxt8aEURlSb76CYVomTzXXcNnbCjY02r59wHKgDHFtTn7G02IZptlwfI60 CdbjSFj3RvQAamtFgAuvJ4dC/sNcY1OTDRU4TObZhKccMjryazA1JVBg6kIp0nq70b Tb3ek9XZ8f/0CBp7XczTygoBe12SiL3JVbztxKuQ= Received: from DFLE110.ent.ti.com (dfle110.ent.ti.com [10.64.6.31]) by dflxv15.itg.ti.com (8.14.3/8.13.8) with ESMTP id w9G63HUD017208; Tue, 16 Oct 2018 01:03:17 -0500 Received: from DFLE107.ent.ti.com (10.64.6.28) by DFLE110.ent.ti.com (10.64.6.31) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1466.3; Tue, 16 Oct 2018 01:03:16 -0500 Received: from dflp33.itg.ti.com (10.64.6.16) by DFLE107.ent.ti.com (10.64.6.28) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.1.1466.3 via Frontend Transport; Tue, 16 Oct 2018 01:03:16 -0500 Received: from a0132425.india.ti.com (ileax41-snat.itg.ti.com [10.172.224.153]) by dflp33.itg.ti.com (8.14.3/8.13.8) with ESMTP id w9G63Bok027391; Tue, 16 Oct 2018 01:03:14 -0500 From: Vignesh R To: Thierry Reding Subject: [PATCH v2 1/2] dt-bindings: pwm: tiecap: Add TI AM654 SoC specific compatible Date: Tue, 16 Oct 2018 11:34:01 +0530 Message-ID: <20181016060402.18756-2-vigneshr@ti.com> X-Mailer: git-send-email 2.19.1 In-Reply-To: <20181016060402.18756-1-vigneshr@ti.com> References: <20181016060402.18756-1-vigneshr@ti.com> MIME-Version: 1.0 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-20181015_230330_021169_C49D39B7 X-CRM114-Status: GOOD ( 13.96 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: linux-pwm@vger.kernel.org, Vignesh R , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Andrew Davis , Rob Herring , Linux ARM Mailing List Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP Add a new compatible string "ti,am654-ecap" to support PWM ECAP IP of TI AM654 SoC. Signed-off-by: Vignesh R Reviewed-by: Rob Herring --- v2: Add Reviewed-by Documentation/devicetree/bindings/pwm/pwm-tiecap.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/pwm/pwm-tiecap.txt b/Documentation/devicetree/bindings/pwm/pwm-tiecap.txt index 06a363d9ccef..b9a1d7402128 100644 --- a/Documentation/devicetree/bindings/pwm/pwm-tiecap.txt +++ b/Documentation/devicetree/bindings/pwm/pwm-tiecap.txt @@ -7,6 +7,7 @@ Required properties: for da850 - compatible = "ti,da850-ecap", "ti,am3352-ecap", "ti,am33xx-ecap"; for dra746 - compatible = "ti,dra746-ecap", "ti,am3352-ecap"; for 66ak2g - compatible = "ti,k2g-ecap", "ti,am3352-ecap"; + for am654 - compatible = "ti,am654-ecap", "ti,am3352-ecap"; - #pwm-cells: should be 3. See pwm.txt in this directory for a description of the cells format. The PWM channel index ranges from 0 to 4. The only third cell flag supported by this binding is PWM_POLARITY_INVERTED. From patchwork Tue Oct 16 06:04:02 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vignesh Raghavendra X-Patchwork-Id: 10643133 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id E7D051057 for ; Tue, 16 Oct 2018 06:05:02 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id D6DF229504 for ; Tue, 16 Oct 2018 06:05:02 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id CACB1298D6; Tue, 16 Oct 2018 06:05:02 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 4438829504 for ; Tue, 16 Oct 2018 06:05:02 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-ID:Date:Subject:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=5eubJ6MKgITquP81ItVWo2i3MHoIC78cg6BB/antpQU=; b=tbO/gScSLSjdRE q7NmCIGPyx8+N3rbiA6uqUJFDKb0Rndql+KvNC4uoqzjdjWppM4aT9RdegOkZIGrKedDPuY8O0mNR IFqpcgjTtQhpCbFyrwRrNuHAgEXc/TtT7s+9doyG0kfkdL2IBek9BblNVczkLj8V092BSuzxuDn6U fGE95ovoTnZPYQAimMFbe1youi18SYtqZG6xZ0/fq/SzmjPKrUqGxrrk6c3nw7P1lhDNIlVfVr3nC 43z7YHxP8CGC0O9X5bCaXohfEfs72TffS/NpeTf/KwVLsSDxgdvsB0ECOBM3YDni9jexmjCtNY76D R646d3id8pFWso729S9w==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1gCITM-0005AI-BM; Tue, 16 Oct 2018 06:04:52 +0000 Received: from fllv0016.ext.ti.com ([198.47.19.142]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1gCIS1-0004XO-UF for linux-arm-kernel@lists.infradead.org; Tue, 16 Oct 2018 06:03:32 +0000 Received: from dflxv15.itg.ti.com ([128.247.5.124]) by fllv0016.ext.ti.com (8.15.2/8.15.2) with ESMTP id w9G63J4K045382; Tue, 16 Oct 2018 01:03:19 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1539669799; bh=bGL9tg1iQ7771FPd/rXQTrEE194mVUB29ZiqXa4qRlc=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=YdSVxBdaO05CLtV9b2ZslCg2Ozw831DDdgFb4QJ95jn7SYJy5rVqxbuoQg0wlZowO ROkN1iEp3PqCTuFBrB+Vuu2B/nGELEVu92Qe/7Nlg8qSuuQlC9aLk6MbnrZ4z+MWG5 lFee02cx3cE6XuLmJpb8B1DBMTMEShP1ppZkCxaU= Received: from DFLE112.ent.ti.com (dfle112.ent.ti.com [10.64.6.33]) by dflxv15.itg.ti.com (8.14.3/8.13.8) with ESMTP id w9G63J8r017253; Tue, 16 Oct 2018 01:03:19 -0500 Received: from DFLE109.ent.ti.com (10.64.6.30) by DFLE112.ent.ti.com (10.64.6.33) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1466.3; Tue, 16 Oct 2018 01:03:19 -0500 Received: from dflp33.itg.ti.com (10.64.6.16) by DFLE109.ent.ti.com (10.64.6.30) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.1.1466.3 via Frontend Transport; Tue, 16 Oct 2018 01:03:19 -0500 Received: from a0132425.india.ti.com (ileax41-snat.itg.ti.com [10.172.224.153]) by dflp33.itg.ti.com (8.14.3/8.13.8) with ESMTP id w9G63Bol027391; Tue, 16 Oct 2018 01:03:17 -0500 From: Vignesh R To: Thierry Reding Subject: [PATCH v2 2/2] pwm: Kconfig: Enable TI ECAP driver for ARCH_K3 Date: Tue, 16 Oct 2018 11:34:02 +0530 Message-ID: <20181016060402.18756-3-vigneshr@ti.com> X-Mailer: git-send-email 2.19.1 In-Reply-To: <20181016060402.18756-1-vigneshr@ti.com> References: <20181016060402.18756-1-vigneshr@ti.com> MIME-Version: 1.0 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-20181015_230330_034046_C73543A4 X-CRM114-Status: GOOD ( 15.40 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: linux-pwm@vger.kernel.org, Vignesh R , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Andrew Davis , Rob Herring , Linux ARM Mailing List Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP K3 devices have the same ECAP IP as OMAP SoCs. Enable driver to be built for K3 devices. Also, drop reference to AM33xx in help text, as IP is found on multiple TI SoCs. Signed-off-by: Vignesh R --- v2: Update help text to drop AM33xx as suggested by Andrew drivers/pwm/Kconfig | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/pwm/Kconfig b/drivers/pwm/Kconfig index 504d252716f2..27e5dd47a01f 100644 --- a/drivers/pwm/Kconfig +++ b/drivers/pwm/Kconfig @@ -447,10 +447,9 @@ config PWM_TEGRA config PWM_TIECAP tristate "ECAP PWM support" - depends on ARCH_OMAP2PLUS || ARCH_DAVINCI_DA8XX || ARCH_KEYSTONE + depends on ARCH_OMAP2PLUS || ARCH_DAVINCI_DA8XX || ARCH_KEYSTONE || ARCH_K3 help - PWM driver support for the ECAP APWM controller found on AM33XX - TI SOC + PWM driver support for the ECAP APWM controller found on TI SOCs To compile this driver as a module, choose M here: the module will be called pwm-tiecap.