From patchwork Mon Sep 19 14:23:45 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bhuvanchandra DV X-Patchwork-Id: 9339561 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 7CAE36077A for ; Mon, 19 Sep 2016 14:28:44 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 6C09F2937E for ; Mon, 19 Sep 2016 14:28:44 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 5FD8C2938F; Mon, 19 Sep 2016 14:28:44 +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=-4.1 required=2.0 tests=BAD_ENC_HEADER,BAYES_00, DKIM_SIGNED, RCVD_IN_DNSWL_MED, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 534F92937E for ; Mon, 19 Sep 2016 14:28:43 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.85_2 #1 (Red Hat Linux)) id 1blzXb-0003Sk-Ja; Mon, 19 Sep 2016 14:27:27 +0000 Received: from mail-eopbgr30133.outbound.protection.outlook.com ([40.107.3.133] helo=EUR03-AM5-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.85_2 #1 (Red Hat Linux)) id 1blzX2-0003Fl-9b for linux-arm-kernel@lists.infradead.org; Mon, 19 Sep 2016 14:26:54 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=toradex.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=OdTEsJtJV4WxF9tw2OWtwommsFoL//Q/qeqE18lyDkg=; b=r3gzr+1DCw+PBEMRm4hbewE34A4TURGBUFQt9+Kjotq7AdcJTokgMWEkXXJc94VRPTAzUbtwVoclqrGe1lxAt7XcParSk+CC9wafcKo73cZzqSzTE5Sg+HjWuU1EjK+VIfrt9Z3ZYL6XuBqCttXL/m2FIIJWKJcz9wdNp0GLYXw= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=bhuvanchandra.dv@toradex.com; Received: from tdx-in-nb-0014.toradex.int (115.115.243.34) by AM3PR05MB1393.eurprd05.prod.outlook.com (2a01:111:e400:5870::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.619.10; Mon, 19 Sep 2016 14:25:55 +0000 From: Bhuvanchandra DV To: Subject: [PATCH 1/3] arm: dts: imx7: Update #pwm-cells for PWM polarity control Date: Mon, 19 Sep 2016 19:53:45 +0530 Message-ID: <20160919142347.11342-2-bhuvanchandra.dv@toradex.com> X-Mailer: git-send-email 2.9.2 In-Reply-To: <20160919142347.11342-1-bhuvanchandra.dv@toradex.com> References: <20160919142347.11342-1-bhuvanchandra.dv@toradex.com> MIME-Version: 1.0 X-Originating-IP: [115.115.243.34] X-ClientProxiedBy: MAXPR01CA0020.INDPRD01.PROD.OUTLOOK.COM (2a01:111:e400:5a3e::27) To AM3PR05MB1393.eurprd05.prod.outlook.com (2a01:111:e400:5870::11) X-MS-Office365-Filtering-Correlation-Id: 420e4386-5dba-4c80-4559-08d3e098df55 X-Microsoft-Exchange-Diagnostics: 1; AM3PR05MB1393; 2:O4umtzfNZKxjtJC30E+tpFSq8pm8SSCUkc04yz4e4JstltrYnzWoEqmSiUIN2J0vcwVXEhG896Gykx8VUgGJzd9NNa57PVQsxl/NuQgKzHBPnP6PeUKg3bqqfQsFJ9Rd66vvjYn9zqDBvQr83FM8F85MdIsbQzI8hKXAiFcFVrZS/iQoHes96VhfWbj4TukI; 3:QSC+dcJOog8O+qz288ZXjDv7WW7eUnM54YL+Z5G33fa2S0oWgWS5/aSURED2nZdywOGUwOfqHtMFpSaGFn41EsMfrf9C3WyIAZo1H5ZMqnln8E/r1gIgPXL/4pRgctXR X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:AM3PR05MB1393; X-Microsoft-Exchange-Diagnostics: 1; AM3PR05MB1393; 25:TXjNLhIEZ/u/sV7+RAe3+qB2Kna8H8GUUBhzOjAJP1gTVeYtW4G4/dw66Tw6Gl3nN+6j9+bi5GYuBbVR1Uxv72ufBqeqF5RpK5os6VE+2U5Ux/EZvydHnjmrgHhVh9fgy5+E2qGt6SpT56UAJv9navWC+ZtkfTFJ4N4Rf5F1a/kfKkfdogIm+1IVLTQQOqeZIA5snJG17U2cbGivoHgiBl8cARpmMkwzi/EQpUIS4DqHixmGCFylW/LhMT3Wm8BxFuEFDz1GlbCHJOslEJsFE3oZnezZrhN96OkhIVaDrG52rjwd/INAE7yjDkDq0v2NTz7BvAcn0PU5g99GdCdHjXJM25bx/lSYOWehe65judADL6ifyLnYGQ6wPerN+YsploGi/LJEo2orUKY6OwdwVhnfDa561CAV8550VNzXK32DSTTNy2fwsxWwXCwH2qkjfYRhaDJqZIYHF5VKhnN8Hj+GR3aNR3YuRUegH/R2AnR1r8YYzjMu7OU374exiBbxoJoHWDkc86mDA83hDH36zIqkNUrg5onlOPOPRfo78odmG85BPYGdNNPIB8tHrSvF5x6omHv002PgxzyEdGc5tjewPdV7+GoKaV0GNA3rGNN8/tPectvlhoYPK0CR8D6iUtistrfRugqDpc7pT1Xo89DbpI87+KI2a+7cZqivv9euTQMNDLYsUzuji6sGHAiS4AKj86BhzknlD/sej36+w8q9EsUZBDR/uqPEs2vX6cg= X-Microsoft-Exchange-Diagnostics: 1; AM3PR05MB1393; 31:uwRNqWLWgNIwFRIgJIlxzqPt1AZ2fPyYtHI7B6Gpx5exvnGojrZdrkXZldl8nfQ/olILDbAXoJ6OohBHDn/0ydbYexg3jIS7pakqPS23sV3fd+sCNFWCl/+A14dNFNwK2+/5qAA884l+Jtk+sZDImZKLK8DPf6t7FE9d3dpwpkfT48kmrKVkjg4/M9SHdigVbWz+PgCUx1jo5bpoqYv3IKCHozT8dbXHJ1V7squys90=; 20:7X3jI4cQz7RY5gjurEsL7HGV8/QC8WJ1SsXX5hGZ53Yzodd00rJdLDp1cwhWLQ3M/1Dz8YjvH1BbiSjnK44a3zRzxtDzqwrpUIHola9tyjq39NQkad1/CLqdw4ZdeIPAj0PgFC1nfIFMz1RATBXNyx1c+Mk2jmllUPO/ffYanwcHsMeSgb4Vt+10XeiajSmdWjtzc9FT2jtOr9qOpFuAj+EUWfmEJEMw5Hqsf6Gc1xYattGnMMv7uHmIseKFnfpJnnR/mdyCZEgys81Tw+81wyRoQo+8YEu9S3yfzMYyHpiZhPIazHGPXy6f38LZXfXG5sJrMEVQnn/ar+ueo4TY1w== X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6040176)(601004)(2401047)(5005006)(8121501046)(3002001)(10201501046); SRVR:AM3PR05MB1393; BCL:0; PCL:0; RULEID:; SRVR:AM3PR05MB1393; X-Microsoft-Exchange-Diagnostics: 1; AM3PR05MB1393; 4:EynoPY4epqY52l8lrUwykkS51UR3UQS750UcpjqiL0Z/aXikn+KmYJK8tfsTtzLz2nNBQfhNLi7oKTp8OXHmLiGvVuOQ8sT1grVzsk7fbPLS30qjUcSq/c8iOj1+TWVP4CrKMUs2lQWb4dciRxK//t1MzOTXxUcldfJqvpVg/3zvbQsgNrPoxmWQXvNNJp/895XTaVtbk0UwdJ5/RPTrEVh61clooJKpFLciJl7c62/ZD0oroUNFVOQyqi537m0DhQUKvownTJwt3Vbu4uvQ0cf1gPf0T34tNj6kxR9MF61DEdkVV6990yfxlSwX03RhAfnxwov9+PrcmMb5Ry+gke2Up3M/V4rAjRQWEi12wSbsEzWEW7aB9PHTgyTKaxTd236bEvLsJufilGSCTBWqKQ== X-Forefront-PRVS: 0070A8666B X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10019020)(4630300001)(6009001)(7916002)(199003)(189002)(50986999)(3846002)(42186005)(7416002)(97736004)(36756003)(6116002)(586003)(1076002)(68736007)(50226002)(2906002)(69596002)(5003940100001)(92566002)(19580405001)(19580395003)(8676002)(81156014)(81166006)(101416001)(33646002)(229853001)(4326007)(86362001)(5660300001)(15650500001)(48376002)(305945005)(106356001)(76176999)(189998001)(50466002)(66066001)(2351001)(4001430100002)(47776003)(7736002)(2950100001)(105586002)(8666005)(110136003)(107886002)(53416004)(7846002)(7059030); DIR:OUT; SFP:1102; SCL:1; SRVR:AM3PR05MB1393; H:tdx-in-nb-0014.toradex.int; FPR:; SPF:None; PTR:InfoNoRecords; A:1; MX:1; LANG:en; Received-SPF: None (protection.outlook.com: toradex.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; AM3PR05MB1393; 23:CDUUwiZnsk4o8PauPibCd7Yp8RUsdw0VfLEZOI5kG?= =?us-ascii?Q?K3Dpg9MJdQRCU7LU8U5fTxVFdWUf4nYGOplo1FIAT6T2mJCIcDbXZXe8srvj?= =?us-ascii?Q?zlOgsEY83K0/OiIyQsMcZB3kVM6Nj0LGhbBxdMZemWCnRaHUMWjH++8e8j32?= =?us-ascii?Q?buCg770OW7dAhiJdG4q4fhDx4ev7kyVhph85BQEQKPqgV3rq4SouEjnkRfhz?= =?us-ascii?Q?eGTmmpiOUBmJhB/UJpWXREr7K+itDkAu8IaL7uVX2PoNCDlVnLr0S4/Aggoj?= =?us-ascii?Q?yHwJ8x1mfRlIUczxNJG7cYp3nrbxYHv79e/GsrsmiC1evMWap4SlH88OEBsE?= =?us-ascii?Q?IW+cqmzDjd10AlQQGpsqmSHG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ascii?Q?fl/2kbHlYdO1B1NCjNiWSMSreM3sMjiG4HQyMrN?= X-Microsoft-Exchange-Diagnostics: 1; AM3PR05MB1393; 6:qMshN8OfLHbTprEAOVRd/NUvXqPfQwXy7CFhcELydJ9A124P1jsjSWl271pm6YJJ3lnm1x3C0aFBTjbsqiJqPh1HX2+BZZIZffT6lNjkrV04fbXBfCItjOMWnfacmHTPezXryBp3fYYRf3QzlRH9qXRsjy+LFnM7HYSDydIv14otXtMu15/n8wrnuz5WisUEWi8ycGzjuBSLtYtk8VpKe+f8XSy+iqgmh59MG2SmQM5sM7zdlgniE88NIlxbct2zbbZMFvBYnMJr+78FiReQZeaJDhX9fQhzt1GyFvPDWbs=; 5:TH2ltitY2oqufGkh0DMHnEDhAJtvu/m0fTpGT6Ds+nNbNWLlI8mz4dLmFrt90pgueWwsALtNc5ACdluBqTvtIoSIR4UeazGgwcp57gyesXTVN2sGjyZ0zGwFQcZFyBVeENZoKa1hP5IyVEvxJqRcew==; 24:upCxXilrGoQr2NWLo5g+/G/uYqzxYfveZbsDaYfWxR6S57Po5Om8QDODa+77K4TNTYlmDl1xn8aQzkCRzel9Hum26PP2ryMuTSKtjcSaMN8=; 7:5kNF6phGjNAHRv8kNkYqfXXr7xPBR1/cIqX9GLuhF2IErcESM3fYYAg63TBTZ1WNQPTIYaCLQBxuqI0qMtHb5y5YjMG2r3fU5acd+4PKFG7wYsNn016RFlUXlhdG9647HdQyMm9FiX3KHypaew8zubtkxlGhYfyIkQIbyLvqTFFBbL5vqA3lIPpaljfBYI/JwA8EXb7MnHcp2WpC8sU+KxEgNMiHKItYmU4kZAm3Pp5bS2J4ACJKQfSrIg9QmwXM+p4z3l5+IyPYzjOF2CsU2R5PXWcGNRyG+ceScgxnBiMy6FBXtLW7tmnDs5YXQ0hZ SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: toradex.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 19 Sep 2016 14:25:55.5151 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM3PR05MB1393 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20160919_072652_749393_0B42EE15 X-CRM114-Status: UNSURE ( 9.45 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: mark.rutland@arm.com, linux-pwm@vger.kernel.org, Bhuvanchandra DV , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, stefan@agner.ch, robh+dt@kernel.org, thierry.reding@gmail.com, kernel@pengutronix.de, fabio.estevam@nxp.com, linux-arm-kernel@lists.infradead.org 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 Update #pwm-cells to 3 in order to support PWM signal polarity control. Signed-off-by: Bhuvanchandra DV Acked-by: Rob Herring --- Documentation/devicetree/bindings/pwm/imx-pwm.txt | 6 +++--- arch/arm/boot/dts/imx7s.dtsi | 8 ++++---- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/Documentation/devicetree/bindings/pwm/imx-pwm.txt b/Documentation/devicetree/bindings/pwm/imx-pwm.txt index e00c2e9..c61bdf8 100644 --- a/Documentation/devicetree/bindings/pwm/imx-pwm.txt +++ b/Documentation/devicetree/bindings/pwm/imx-pwm.txt @@ -6,8 +6,8 @@ Required properties: - "fsl,imx1-pwm" for PWM compatible with the one integrated on i.MX1 - "fsl,imx27-pwm" for PWM compatible with the one integrated on i.MX27 - reg: physical base address and length of the controller's registers -- #pwm-cells: should be 2. See pwm.txt in this directory for a description of - the cells format. +- #pwm-cells: 2 for i.MX1 and 3 for i.MX27 and newer SoCs. See pwm.txt + in this directory for a description of the cells format. - clocks : Clock specifiers for both ipg and per clocks. - clock-names : Clock names should include both "ipg" and "per" See the clock consumer binding, @@ -17,7 +17,7 @@ See the clock consumer binding, Example: pwm1: pwm@53fb4000 { - #pwm-cells = <2>; + #pwm-cells = <3>; compatible = "fsl,imx53-pwm", "fsl,imx27-pwm"; reg = <0x53fb4000 0x4000>; clocks = <&clks IMX5_CLK_PWM1_IPG_GATE>, diff --git a/arch/arm/boot/dts/imx7s.dtsi b/arch/arm/boot/dts/imx7s.dtsi index 0d7d5ac..8d1d471 100644 --- a/arch/arm/boot/dts/imx7s.dtsi +++ b/arch/arm/boot/dts/imx7s.dtsi @@ -601,7 +601,7 @@ clocks = <&clks IMX7D_PWM1_ROOT_CLK>, <&clks IMX7D_PWM1_ROOT_CLK>; clock-names = "ipg", "per"; - #pwm-cells = <2>; + #pwm-cells = <3>; status = "disabled"; }; @@ -612,7 +612,7 @@ clocks = <&clks IMX7D_PWM2_ROOT_CLK>, <&clks IMX7D_PWM2_ROOT_CLK>; clock-names = "ipg", "per"; - #pwm-cells = <2>; + #pwm-cells = <3>; status = "disabled"; }; @@ -623,7 +623,7 @@ clocks = <&clks IMX7D_PWM3_ROOT_CLK>, <&clks IMX7D_PWM3_ROOT_CLK>; clock-names = "ipg", "per"; - #pwm-cells = <2>; + #pwm-cells = <3>; status = "disabled"; }; @@ -634,7 +634,7 @@ clocks = <&clks IMX7D_PWM4_ROOT_CLK>, <&clks IMX7D_PWM4_ROOT_CLK>; clock-names = "ipg", "per"; - #pwm-cells = <2>; + #pwm-cells = <3>; status = "disabled"; };