Message ID | 1502533184-15765-3-git-send-email-stefan.wahren@i2se.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org> 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 E923660351 for <patchwork-linux-arm@patchwork.kernel.org>; Sat, 12 Aug 2017 10:22:29 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id D679C28B79 for <patchwork-linux-arm@patchwork.kernel.org>; Sat, 12 Aug 2017 10:22:29 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id CAA1528C7D; Sat, 12 Aug 2017 10:22:29 +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.6 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_LOW autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.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 6140128B79 for <patchwork-linux-arm@patchwork.kernel.org>; Sat, 12 Aug 2017 10:22:29 +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:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id: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=ZClS+/91G1zwgBtspeOzM2GNqu/QChEwHdPNQUSYbMA=; b=s9h6xHnp4ootctKUO4y/8AmRqC 1cZaf/+UpfqSk+Nb5k/ph/D3yDbYzj4v2ZDzGL4bp43Azr9T+GckpqAFEyEeiY+elqptLlHwzSUIF oRc5PMbErjEXCi/EROOlgp0kMvZqM4ezmH/qiXxLoMta+9xz0kjcnzi7SlioxOBlQu08JEpIpbU2w 9BL4XYivmk8mso9YIojWno0bP7azHSfq3NYFp8E6+9XLapXIbHxVjV/0ZEwujZWK23aOzJqL93M2a qhw1H20DsSI/dI2F8d/A1UgC5R+x/Ay2eMDVz+xfGviKLg5EILDMOIo2H/c3yLaMjIswpbXLTyaHf Qiq8D0bA==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1dgTXq-00037z-UB; Sat, 12 Aug 2017 10:21:26 +0000 Received: from mout.kundenserver.de ([217.72.192.73]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1dgTWr-0001Ce-OD; Sat, 12 Aug 2017 10:20:29 +0000 Received: from localhost.localdomain ([95.90.209.23]) by mrelayeu.kundenserver.de (mreue101 [212.227.15.183]) with ESMTPSA (Nemesis) id 0Md4aY-1dxS8t1GbK-00IEGW; Sat, 12 Aug 2017 12:19:57 +0200 From: Stefan Wahren <stefan.wahren@i2se.com> To: Thierry Reding <thierry.reding@gmail.com> Subject: [PATCH V2 2/2] pwm: bcm2835: Support for polarity setting via DT Date: Sat, 12 Aug 2017 12:19:44 +0200 Message-Id: <1502533184-15765-3-git-send-email-stefan.wahren@i2se.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1502533184-15765-1-git-send-email-stefan.wahren@i2se.com> References: <1502533184-15765-1-git-send-email-stefan.wahren@i2se.com> X-Provags-ID: V03:K0:esNhHNxczH2dvIYArLT2hVAeD7kjOzUwPN1tvbRiBs4MfaBW2pr I0dB9Fy9hFnoqAL4rCdBVFhl8AWxKH941IZ427VgGG39UIuQoIxngsijwSRnMUyipf+3OZu bsQFznZL9hCobxeWPPsEgcbSyeGL3pOT9o4OFmCG1LRcLQEZjfYofFrEbRUdnWqW0FUcHju 9bArAFUZcjRKtyyqWs6nQ== X-UI-Out-Filterresults: notjunk:1; V01:K0:0RJ1cBki0E0=:hsCO2wRlfYsHSP6CVdOX2P rIb5WCdw77FoJw4wFwt9hMeDLF4qgsKcij1KXaijs/GjpXWFBEg38Mx+YsMJorVYybOcXOvRd JinepKKiXlhi340WKXLSuYSCBvEY05d6IW8nW9vcnamiNpq/pV1orKvMBzP9Fhj0d3vTPxD87 teE4rpY7HiuFa4TlFJ39G6iGozT58l4I13NogL23LQVPhca2zfvS8FlzqTR5IF/uaCqGCzSM6 GANtooBzVuz4xbP/zgntSC9Hx+c2eScS14QUvfms2dOSe06Xcsm5z5udz195J2sTk5XB47o5b 4JN09S1N0WqEP5iM25H4Fm667wvFLe8MLgoSgNufKiu2e+sCm+/pWQOt9o13y9PJ7XU+rJMXe OAhkALjx2KHLO7j/OinUmmN8owiMEFTu98ei/m6OZxKpk/l6XVtnOzpYGO3KZzMnDYzfyL02d KpOaW2+Yl5f2MnnV1iJ6ToNl5wGABpvSFBwFJBjtZDsRb1/o4EDAFhaz1oZeHHYpMV/PFAOxS +TBvnfvwoEO7qvn7XDWnsnBvpUBQNl7ZT9NhFElqCXGevSfEGI+0BsjgZRsNJfWGj4lcUbxIy MX7ZIo1N4wqF0TjP4R3iWDLQB0ys5ruFnfd/ONruDFshEaraHwl3mNj94a7aP3GfvEiZAXwF2 lCiU5s3DhiDUW2zavqRGh36RFqpB//2STu2/S2OhgBdmMRcnpKM78yqQTiGZeaNBIUnTOMuFv dL8ybMqlmOXoL7/u58oVgi2hKYM/gnXjnwQ+Dg== X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170812_032026_206155_21BF538D X-CRM114-Status: UNSURE ( 8.04 ) 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: <linux-arm-kernel.lists.infradead.org> List-Unsubscribe: <http://lists.infradead.org/mailman/options/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=unsubscribe> List-Archive: <http://lists.infradead.org/pipermail/linux-arm-kernel/> List-Post: <mailto:linux-arm-kernel@lists.infradead.org> List-Help: <mailto:linux-arm-kernel-request@lists.infradead.org?subject=help> List-Subscribe: <http://lists.infradead.org/mailman/listinfo/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=subscribe> Cc: Mark Rutland <mark.rutland@arm.com>, devicetree@vger.kernel.org, linux-pwm@vger.kernel.org, Stefan Wahren <stefan.wahren@i2se.com>, Rob Herring <robh+dt@kernel.org>, linux-rpi-kernel@lists.infradead.org, linux-arm-kernel@lists.infradead.org MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" <linux-arm-kernel-bounces@lists.infradead.org> Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP |
diff --git a/drivers/pwm/pwm-bcm2835.c b/drivers/pwm/pwm-bcm2835.c index c5dbf16..db001cb 100644 --- a/drivers/pwm/pwm-bcm2835.c +++ b/drivers/pwm/pwm-bcm2835.c @@ -167,6 +167,8 @@ static int bcm2835_pwm_probe(struct platform_device *pdev) pc->chip.dev = &pdev->dev; pc->chip.ops = &bcm2835_pwm_ops; pc->chip.npwm = 2; + pc->chip.of_xlate = of_pwm_xlate_with_flags; + pc->chip.of_pwm_n_cells = 3; platform_set_drvdata(pdev, pc);