Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752170AbcJALsH (ORCPT ); Sat, 1 Oct 2016 07:48:07 -0400 Received: from mail-db5eur01on0099.outbound.protection.outlook.com ([104.47.2.99]:7254 "EHLO EUR01-DB5-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751635AbcJALrw (ORCPT ); Sat, 1 Oct 2016 07:47:52 -0400 Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=bhuvanchandra.dv@toradex.com; From: Bhuvanchandra DV To: , CC: , , , , , , , , , , Bhuvanchandra DV Subject: [PATCH v2 0/6] Support PWM polarity control Date: Sat, 1 Oct 2016 15:42:29 +0530 Message-ID: <20161001101235.24598-1-bhuvanchandra.dv@toradex.com> X-Mailer: git-send-email 2.9.2 MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8bit X-Originating-IP: [115.115.243.34] X-ClientProxiedBy: PN1PR01CA0050.INDPRD01.PROD.OUTLOOK.COM (2a01:111:e400:5a3d::22) To AM3PR05MB1396.eurprd05.prod.outlook.com (2a01:111:e400:5871::11) X-MS-Office365-Filtering-Correlation-Id: 5f7a9fad-6e3c-4b69-07d5-08d3e9e3c7c5 X-Microsoft-Exchange-Diagnostics: 1;AM3PR05MB1396;2:b8Q4eFkkaOG4GJC5LIcMBIDXG0RcafshNjcYirdqXSAaP1F1tYTtAMVNiCWatW67lcRI5/IrlhaeV0Ug4+tI/hEAnUfWJ6YwKw8BQIOOaeGRNjxJ36ukz0huwKVIG+KrFGPHEmkoeFjCNh44CB6UFZuNKuSueOldEOkksv4GDjjIAEZWJiGoPYKk7pbizPo2;3:huR6dz3aUaRrtc/jhh/WtHADkS9qCzU4hGqLE8ovLGmFmCwjEo68r44sClO8C7D0GB55BoL3YcXYup00inW+jJCU0CJcw+jayah9RAnMckoquf6DEf7GjYw0tDPqTE5m;25:78shNZYjG67/mEsqE5ST+emDPKxNs2Jr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qQ== X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(6040176)(601004)(2401047)(8121501046)(5005006)(10201501046)(3002001);SRVR:AM3PR05MB1396;BCL:0;PCL:0;RULEID:;SRVR:AM3PR05MB1396; X-Microsoft-Exchange-Diagnostics: 1;AM3PR05MB1396;4:7bV5YRqC1TUrsaftUGLUvrDbuyyxhFvPxa5lt7ERt+R+olyRNUqD3ZZHg218msd0gIFijYj8bpG1UaUmfuRx45yhFudKiPB15t6/L59VQgYl2bZ7Rrqt36PdVvW6MepDl7Qge/6b2lTbkTCqtKObV1QqupbPdAfr80Ui4BCyE5JPKv5QEWYhLXVJazgPd+zNJ+vZv+4ZnB785cLxUd3sMrZRfqdW1/yo65njtCAtrOm+Dll0Lf/BnY14YWdz2kO771olF8yo69SszhxbOmCRDbeWjyxyjhUknKnw8hvcH5Qj150417/bQGMkIdKjOARQLoWD/zI1RCsF4G51y4jaBwaCNVGwgzo1UFP2fjXyNkH6x4k0sTAOXGg4kJZncBj4ES/hJQx/cvwIR6LMgAEYAQ== X-Forefront-PRVS: 00826B6158 X-Forefront-Antispam-Report: SFV:NSPM;SFS:(10019020)(4630300001)(6009001)(7916002)(199003)(189002)(7416002)(5820100001)(92566002)(36756003)(47776003)(189998001)(6666003)(305945005)(2870700001)(68736007)(229853001)(5001770100001)(97736004)(66066001)(4326007)(33646002)(105586002)(5660300001)(50226002)(106356001)(15975445007)(8666005)(2906002)(586003)(107886002)(50466002)(1076002)(81156014)(50986999)(81166006)(7736002)(6116002)(3846002)(23676002)(42186005)(7846002)(8676002)(53416004)(101416001)(69596002)(86362001)(19580395003)(4001430100002)(7059030);DIR:OUT;SFP:1102;SCL:1;SRVR:AM3PR05MB1396;H:tdx-in-nb-0014.toradex.int;FPR:;SPF:None;PTR:InfoNoRecords;A:1;MX:1;LANG:en; X-Microsoft-Exchange-Diagnostics: =?utf-8?B?MTtBTT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6i9ffKVkses9ERijFnV8LmnbxAGz/E2GFu4Bk3mE66NwhpkFXMx/QGTlpaPSKJiExVz6QLHMMDMF3MqRp/YWhlD+HSJQGZvM4xBFUNEVILH5REC5MNHn+ffkPLKC51HI1Ht3SGZQ4sNtZWI5NV2qU8wME/9GYBWC6eQtMS0ZwAL5NjWgl62r2polVC+zthJzrOLSchyMvJI=;5:ft1hDvVO/Q/HCKc5Fzh8orNjkMyQN/MRcDzqXD7xeC3swpRN3jHbfzEMzT0c8th23VelF/qnnJAM35DLxpnn5dX87+21qJbHv6Xq06j8rs4ZC083AXB+TnyAP/G2xmYBvfqxhD58yB36fwZTEV0FNg==;24:gHGNoqDIi1ppINZUB8Y9ITcsI2KrrATJVsDGs2jir4ehKNc0G4Yg31c9dC5Yec40+VEY11WbocANCLh9AWUh7mp1d67TAzXiS9u5zkt+AaU=;7:C4Mn8LnoeN6YgNEF6mwREEDRNei1cBf5N6ann26S/f0lOvBvXv+yiz3vtZY4MubpLvj9B6s9wklZq24ljytPYuS4z8V8rnAUaafpBgTcyi+S9wGFiXhkoo1E78LjKl2cvU9z/9+1H2dwtl+L0Qpa+u9PlCTtFAyEoxTOG2mwfzdQ6d8b+UQFTic1nhM4VjHz0xLo7Wo9Y76gyDpTWAgfIlYYNZZEjl9tAvVOGfdAjg+Kv3JB0HP8DvXYNSRVjq7wcsoIUHo/w/0yvZolA0b5ukLI8G9jKv0i3XKVofBnvHJDpvtgmgoEbK24m6szp3Vp SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: toradex.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 01 Oct 2016 10:14:48.5378 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM3PR05MB1396 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1182 Lines: 32 Changes since v2: - Picked the stalled patchset[1] from Lothar Wassmann which adds the basic support for polarity control on imx-pwm driver and adds backward compatibility support for devices which does not have polarity control feature. Changes since Lothars v6: - Squash Lukasz patch[2]. [1] http://thread.gmane.org/gmane.linux.pwm/1621 [2] https://www.spinics.net/lists/arm-kernel/msg530818.html Bhuvanchandra DV (3): arm: dts: imx7: Update #pwm-cells for PWM polarity control arm: dts: imx7-colibri: Use pwm polarity control arm: dts: imx7-colibri: Use enable-gpios for BL_ON Lothar Wassmann (3): pwm: print error messages with pr_err() instead of pr_debug() pwm: core: make the PWM_POLARITY flag in DTB optional pwm: imx: support output polarity inversion Documentation/devicetree/bindings/pwm/imx-pwm.txt | 6 +-- arch/arm/boot/dts/imx7-colibri.dtsi | 12 +++++- arch/arm/boot/dts/imx7s.dtsi | 8 ++-- drivers/pwm/core.c | 31 ++++++++------ drivers/pwm/pwm-imx.c | 51 +++++++++++++++++++++-- 5 files changed, 83 insertions(+), 25 deletions(-) -- 2.9.2