From patchwork Tue Nov 22 16:13:23 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Benjamin Gaignard X-Patchwork-Id: 9441479 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 D7F6860237 for ; Tue, 22 Nov 2016 16:17:17 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id C927827F81 for ; Tue, 22 Nov 2016 16:17:17 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id BB026285CA; Tue, 22 Nov 2016 16:17:17 +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=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 C0CC427F81 for ; Tue, 22 Nov 2016 16:17:15 +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 1c9Dir-0007Kt-BB; Tue, 22 Nov 2016 16:15:05 +0000 Received: from mail-wm0-x229.google.com ([2a00:1450:400c:c09::229]) by bombadil.infradead.org with esmtps (Exim 4.85_2 #1 (Red Hat Linux)) id 1c9Di6-00074q-Nh for linux-arm-kernel@lists.infradead.org; Tue, 22 Nov 2016 16:14:20 +0000 Received: by mail-wm0-x229.google.com with SMTP id g23so33109256wme.1 for ; Tue, 22 Nov 2016 08:13:58 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=feDf1c+CNPF4v/BfS7RgfPeabpQv2BPPQTs9YZe5jOk=; b=bcTE14ZpH1kejjedLpu5Ed84+7IWozmq3Omqc1O4YLV7XEWpPoFVn63js4oX64HmKj bDB1FTOpNi2SjCSF+bM/uMZeoAL63Dq3bg7/myn5H6vKYw4ow0RWdmNclimuQkqJQIFJ /rfQZk64737nt3NcbrSz2khRYepZ8nyquDfCI= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=feDf1c+CNPF4v/BfS7RgfPeabpQv2BPPQTs9YZe5jOk=; b=kEmHB8h0IMy26ktFSSW/OlbDNF70rXVarnpvmfuKyqibOf4hbWkuaad90wWzKADej+ I+dClFPHEC1/pfQ+6twHm/WOgJQUkC+339GcydSHbtjnRAZSqKKNla4hUNTKhuY7Q9Zm 1AMWP72xpXQfmvEKbpACzk62NJXy3N52WUxySRAg0EUitFhlya/ByyDJN2NYITz0383U D9BJZOXsuu89iPWSqNzK82CG+5HgLCRL5v+MAV/X6KeTUzflrKFpbM0+kTdi4ueWGXKB BfPfI1SLg9jCbpukzGrhK53Dj94cbpJSuIYe/sTXZ7qY8BoPxe/oHkjw5eCs9WW4nUxe TMHQ== X-Gm-Message-State: AKaTC00WIH3yGRNAWIqEFw2TD3W68r5C6H24iwVyvZ2XaV6tc/KxOsZGo0yUOQ4omoRHvi3b X-Received: by 10.194.85.107 with SMTP id g11mr14990587wjz.82.1479831236742; Tue, 22 Nov 2016 08:13:56 -0800 (PST) Received: from lmenx321.st.com. ([80.215.80.240]) by smtp.gmail.com with ESMTPSA id v202sm3729369wmv.8.2016.11.22.08.13.54 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 22 Nov 2016 08:13:56 -0800 (PST) From: Benjamin Gaignard X-Google-Original-From: Benjamin Gaignard To: lee.jones@linaro.org, robh+dt@kernel.org, mark.rutland@arm.com, alexandre.torgue@st.com, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, thierry.reding@gmail.com, linux-pwm@vger.kernel.org, jic23@kernel.org, knaack.h@gmx.de, lars@metafoo.de, pmeerw@pmeerw.net, linux-iio@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: [PATCH 3/7] add pwm-stm32 DT bindings Date: Tue, 22 Nov 2016 17:13:23 +0100 Message-Id: <1479831207-32699-4-git-send-email-benjamin.gaignard@st.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1479831207-32699-1-git-send-email-benjamin.gaignard@st.com> References: <1479831207-32699-1-git-send-email-benjamin.gaignard@st.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20161122_081419_003233_2F8AE69F X-CRM114-Status: GOOD ( 11.93 ) 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: linaro-kernel@lists.linaro.org, Benjamin Gaignard , linus.walleij@linaro.org, arnaud.pouliquen@st.com, gerald.baeza@st.com, fabrice.gasnier@st.com MIME-Version: 1.0 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 Define binding for pwm-stm32 Signed-off-by: Benjamin Gaignard --- .../devicetree/bindings/pwm/pwm-stm32.txt | 43 ++++++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 Documentation/devicetree/bindings/pwm/pwm-stm32.txt diff --git a/Documentation/devicetree/bindings/pwm/pwm-stm32.txt b/Documentation/devicetree/bindings/pwm/pwm-stm32.txt new file mode 100644 index 0000000..819e024 --- /dev/null +++ b/Documentation/devicetree/bindings/pwm/pwm-stm32.txt @@ -0,0 +1,43 @@ +STMicroelectronics PWM driver bindings for STM32 +-------------------------------------- + +Must be a child of STM32 multifunctions timer driver + +Required parameters: +- compatible : "st,stm32-pwm1" + "st,stm32-pwm2" + "st,stm32-pwm3" + "st,stm32-pwm4" + "st,stm32-pwm5" + "st,stm32-pwm8" + "st,stm32-pwm9" + "st,stm32-pwm10" + "st,stm32-pwm11" + "st,stm32-pwm12" + "st,stm32-pwm13" + "st,stm32-pwm14" +- pinctrl-names: Set to "default". +- pinctrl-0: List of phandles pointing to pin configuration nodes + for PWM module. + For Pinctrl properties, please refer to [1]. + +Optional parameters: +- st,breakinput-polarity if set enable break input feature. + The value define the active polarity: + - 0 (active LOW) + - 1 (active HIGH) + +[1] Documentation/devicetree/bindings/pinctrl/pinctrl-bindings.txt + +Example: + mfd_timer1: mfdtimer1@40010000 { + compatible = "st,stm32-mfd-timer1"; + reg = <0x40010000 0x400>; + clocks = <&rcc 0 160>; + clock-names = "mfd_timer_clk"; + interrupts = <27>; + + pwm1: pwm1@40010000 { + compatible = "st,stm32-pwm1"; + }; + };