From patchwork Fri Dec 7 09:35:34 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vignesh Raghavendra X-Patchwork-Id: 10717747 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 11CAE13AF for ; Fri, 7 Dec 2018 09:43:06 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id F23842E347 for ; Fri, 7 Dec 2018 09:43:05 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id E66FC2E4CF; Fri, 7 Dec 2018 09:43:05 +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=-5.2 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED 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 8A90A2E347 for ; Fri, 7 Dec 2018 09:43:05 +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=t3D8yijTbzAzdx+lol65Z+UmDRDAaJz0EIyGuj0geWQ=; b=qtCElXj1klkLND eIE+dgfFqAqoEoOn9Wfc+UZUjqIzp9VNOA6Q6kGpO8kS2m3UA3h6IBX/GREELShJTaEVqw2bximzN HbwV/Ostr4ocgQMVsVY84868P/MoGsyXTtfBNfd0yArc4HaI/+bZdG+nCZbd7teIKUUZS4JwHVo6B ku4DJLuVW6LnjHx7P1516gOMmZSJ364ASUxQ0fgrXJNfv66jlZ9ZrFt9nhydGOWBxeIbsQIrLFh/7 Cqs7J40S/aPGUhVaBTQPrKuq0aAdwdHCEnJukFi5nu91476iImwuKbuUx0PNTMxbcuEoDIjzKCTYm mATVinfEDuUsv014ifZA==; 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 1gVCf0-00078L-2i; Fri, 07 Dec 2018 09:43:02 +0000 Received: from casper.infradead.org ([2001:8b0:10b:1236::1]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1gVCey-000744-1A for linux-arm-kernel@bombadil.infradead.org; Fri, 07 Dec 2018 09:43:00 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=Content-Type:Content-Transfer-Encoding: MIME-Version:References:In-Reply-To:Message-ID:Date:Subject:CC:To:From:Sender :Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help: List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=2jKxkI220R+5wuMTqsBOD2PoFL9puReITo+PnY2gRUU=; b=LuOgoqwWy84SYUa2KJNp/3GUHu G+F/ULAgDHRXTUakUg3dnSQS8oCxa9fLfR5zMWSuOzpgjIjrf07S37lklqFGuFyU5U8DeZmgun27p EGkSodOpWIuIwYoRxQNeomXf8h2ETd/AgugthrhQr8DNaXjAhJ0iWpBp0mnaHS0aH4pHj6XdSaDv8 sghy2xxsV/6OJCuPHcZ1NGzRHTFG25C6ZBa/gXiN9DLCG7yO3LXYk0htaWjw3Gua8oxBVVEH6zL49 +JGNdVj3GWbiLT75BiM81cgA0wJsVBa/0cWMkqeyeukgI5G9YgZ3RVAu3QzmtE5EImmBYR2hAMMtj WPt5AyKQ==; Received: from lelv0142.ext.ti.com ([198.47.23.249]) by casper.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1gVCXC-0001wI-RT for linux-arm-kernel@lists.infradead.org; Fri, 07 Dec 2018 09:35:00 +0000 Received: from lelv0266.itg.ti.com ([10.180.67.225]) by lelv0142.ext.ti.com (8.15.2/8.15.2) with ESMTP id wB79Yh2H003670; Fri, 7 Dec 2018 03:34:43 -0600 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1544175283; bh=2jKxkI220R+5wuMTqsBOD2PoFL9puReITo+PnY2gRUU=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=E71T0iqzERnOFhSac+xTi86T/VbDsQah5ijHH2yse8h1YinaIkRJz2kjzHvW7lplo +v4TmX00rD4fEjDIkV55RFmjgZ+12y64F5D9HhdS1r9dxXrfTXfsQu7j3f1/1+1ROn CsTPdeFWKStEOlnVHk3X8Fue8bcnKK5pC58tb5nA= Received: from DLEE100.ent.ti.com (dlee100.ent.ti.com [157.170.170.30]) by lelv0266.itg.ti.com (8.15.2/8.15.2) with ESMTPS id wB79YhI6064472 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Fri, 7 Dec 2018 03:34:43 -0600 Received: from DLEE111.ent.ti.com (157.170.170.22) 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.1591.10; Fri, 7 Dec 2018 03:34:43 -0600 Received: from dlep33.itg.ti.com (157.170.170.75) by DLEE111.ent.ti.com (157.170.170.22) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.1.1591.10 via Frontend Transport; Fri, 7 Dec 2018 03:34:43 -0600 Received: from a0132425.india.ti.com (ileax41-snat.itg.ti.com [10.172.224.153]) by dlep33.itg.ti.com (8.14.3/8.13.8) with ESMTP id wB79Ycw7011818; Fri, 7 Dec 2018 03:34:41 -0600 From: Vignesh R To: Tero Kristo , Nishanth Menon Subject: [PATCH 1/2] arm64: dts: ti: k3-am65-main: Add ECAP PWM node Date: Fri, 7 Dec 2018 15:05:34 +0530 Message-ID: <20181207093535.5497-2-vigneshr@ti.com> X-Mailer: git-send-email 2.19.2 In-Reply-To: <20181207093535.5497-1-vigneshr@ti.com> References: <20181207093535.5497-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-20181207_093459_085469_5D6F3E45 X-CRM114-Status: UNSURE ( 8.39 ) X-CRM114-Notice: Please train this message. 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: devicetree@vger.kernel.org, Rob Herring , linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Vignesh R 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 DT entry for ECAP0 PWM node present in main domain Signed-off-by: Vignesh R --- arch/arm64/boot/dts/ti/k3-am65-main.dtsi | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/arch/arm64/boot/dts/ti/k3-am65-main.dtsi b/arch/arm64/boot/dts/ti/k3-am65-main.dtsi index 916434839603..0a0a8fc5df64 100644 --- a/arch/arm64/boot/dts/ti/k3-am65-main.dtsi +++ b/arch/arm64/boot/dts/ti/k3-am65-main.dtsi @@ -129,4 +129,13 @@ clocks = <&k3_clks 113 1>; power-domains = <&k3_pds 113>; }; + + ecap0: pwm@3100000 { + compatible = "ti,am654-ecap", "ti,am3352-ecap"; + #pwm-cells = <3>; + reg = <0x0 0x03100000 0x0 0x60>; + power-domains = <&k3_pds 39>; + clocks = <&k3_clks 39 0>; + clock-names = "fck"; + }; }; From patchwork Fri Dec 7 09:35:35 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vignesh Raghavendra X-Patchwork-Id: 10717745 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 0A04513AF for ; Fri, 7 Dec 2018 09:35:36 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id EA6E92C4E4 for ; Fri, 7 Dec 2018 09:35:35 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id DE3332E72B; Fri, 7 Dec 2018 09:35:35 +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=-5.2 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED 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 77AF22C4E4 for ; Fri, 7 Dec 2018 09:35:35 +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=940AiZkgCsHMTRDDYe8IyjC4n459+N8Xnba+PJQ5w/0=; b=Uj+P6a6x/ta/33 5sOvYmi25+bni2a2ZTecV9ObnwA6cjSYZ4Y8SzZuRLzjONscg3g4mdrwiZ1kT5b4b4HigyVNPstUb OjB0iVaOz9/VW5FKIpXLn5/3CkAvqPIPOmf+MCPTG8Jg9L32sToi65G1hHar/hgvziKorUwS4UxYY KXtzsj7eEsmt1vIXmad2LvM8DOs+EDPLEGjasyH4VKZlzzONOL+hssXYg1uuO9d3AGmt1UimCeWQi zzB+30mViTVlRMnf16oK+LGJkngDwNJdv3FVtBKavxqMfIQCumpui9k4jtIcJlyG2XkG+/5ubie9m jztku9wFiivTpQl2co0g==; 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 1gVCXl-000395-5U; Fri, 07 Dec 2018 09:35:33 +0000 Received: from lelv0143.ext.ti.com ([198.47.23.248]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1gVCXC-0001Q4-Mf for linux-arm-kernel@lists.infradead.org; Fri, 07 Dec 2018 09:35:30 +0000 Received: from lelv0265.itg.ti.com ([10.180.67.224]) by lelv0143.ext.ti.com (8.15.2/8.15.2) with ESMTP id wB79Yk0Y068412; Fri, 7 Dec 2018 03:34:46 -0600 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1544175286; bh=0uu4d1fl6OhSoVn5C1riTCMiDdjaCQIua6SRoTOrIhk=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=h1dBloT4c/hUT3oeu7RjUIAGxn0JdbrHMVEvpWgveUMGAG0MPYA529WSCMWr1b71b JFIoWWj/sp7/lvCHujpepp6HP5nNO26+7eDuJpWSmwTJky75GE+TXU/ofTGb1DsPrt rHTrO2GAY/GUNviaKMDl2FBmqB7JFjOqcSkgMxHs= Received: from DLEE108.ent.ti.com (dlee108.ent.ti.com [157.170.170.38]) by lelv0265.itg.ti.com (8.15.2/8.15.2) with ESMTPS id wB79Ykaa032495 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Fri, 7 Dec 2018 03:34:46 -0600 Received: from DLEE106.ent.ti.com (157.170.170.36) by DLEE108.ent.ti.com (157.170.170.38) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1591.10; Fri, 7 Dec 2018 03:34:45 -0600 Received: from dlep33.itg.ti.com (157.170.170.75) by DLEE106.ent.ti.com (157.170.170.36) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.1.1591.10 via Frontend Transport; Fri, 7 Dec 2018 03:34:45 -0600 Received: from a0132425.india.ti.com (ileax41-snat.itg.ti.com [10.172.224.153]) by dlep33.itg.ti.com (8.14.3/8.13.8) with ESMTP id wB79Ycw8011818; Fri, 7 Dec 2018 03:34:43 -0600 From: Vignesh R To: Tero Kristo , Nishanth Menon Subject: [PATCH 2/2] arm64: dts: ti: k3-am654-base-board: Enable ECAP PWM Date: Fri, 7 Dec 2018 15:05:35 +0530 Message-ID: <20181207093535.5497-3-vigneshr@ti.com> X-Mailer: git-send-email 2.19.2 In-Reply-To: <20181207093535.5497-1-vigneshr@ti.com> References: <20181207093535.5497-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-20181207_013459_365452_A502806D X-CRM114-Status: GOOD ( 12.47 ) 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: devicetree@vger.kernel.org, Rob Herring , linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Vignesh R 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 Enable ECAP PWM which is used for LCD backlight. Signed-off-by: Vignesh R --- arch/arm64/boot/dts/ti/k3-am654-base-board.dts | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/arch/arm64/boot/dts/ti/k3-am654-base-board.dts b/arch/arm64/boot/dts/ti/k3-am654-base-board.dts index bd5a0069191d..49ec2c3f5ef1 100644 --- a/arch/arm64/boot/dts/ti/k3-am654-base-board.dts +++ b/arch/arm64/boot/dts/ti/k3-am654-base-board.dts @@ -76,6 +76,12 @@ AM65X_IOPAD(0x000c, PIN_INPUT, 0) /* (E21) I2C1_SDA */ >; }; + + ecap0_pins_default: ecap0-pins-default { + pinctrl-single,pins = < + AM65X_IOPAD(0x0010, PIN_INPUT, 0) /* (D21) ECAP0_IN_APWM_OUT */ + >; + }; }; &wkup_uart0 { @@ -125,3 +131,8 @@ pinctrl-0 = <&main_i2c2_pins_default>; clock-frequency = <400000>; }; + +&ecap0 { + pinctrl-names = "default"; + pinctrl-0 = <&ecap0_pins_default>; +};