From patchwork Tue Aug 16 09:35:08 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 659573 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 3sD6gS0xllz9t23 for ; Tue, 16 Aug 2016 19:36:20 +1000 (AEST) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=linaro.org header.i=@linaro.org header.b=FMQkE3RA; dkim-atps=neutral Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932342AbcHPJgA (ORCPT ); Tue, 16 Aug 2016 05:36:00 -0400 Received: from mail-wm0-f53.google.com ([74.125.82.53]:37591 "EHLO mail-wm0-f53.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753669AbcHPJf4 (ORCPT ); Tue, 16 Aug 2016 05:35:56 -0400 Received: by mail-wm0-f53.google.com with SMTP id i5so154560404wmg.0 for ; Tue, 16 Aug 2016 02:35:55 -0700 (PDT) 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=pTO4JY/z0covp5DvUeuXd/D8JMxD/f8jh9Ln4CVN9LU=; b=FMQkE3RAexPvn8H5faZ9A3Nq0QhwMZk/2+bhYJVGFi7cGupkz0xoaGBxA9Slt8Dxdq qe4DhTU8IfCDchOH4uGEUtcsQrr/blLfeC5zWSI6lT8bk1IQI5KwUm857572GLfTWGiJ YoAAP+G2pnKyVxFvg6MrSFt8bJj42vTljmorE= 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=pTO4JY/z0covp5DvUeuXd/D8JMxD/f8jh9Ln4CVN9LU=; b=AzM0PSWXQO4KwCNdIcen0ZEGHVvhpJCssZbrhKOdUVHs+X9nytTeMtQV/KaKOWyJCI xq5aiJ3swgrX++RAZL5IVvdmV0uTV1htho+m0Ut2KRV5T1Ll9YYWBI+UeEOZf/7YIoe8 TOVUMjHk7V2THRl1s1rYZemAePL+EssfoRPG5JMzln7oyAWH/gv7x36g6PxXz1u1RKSL /WRfF9c40kZ5GINIjQpPeCbW7Sm9/TNp8GGWzm57gCbgydP7d6eQbOrD9FTj3Cqu1WcO AR/1K7Pbm0FSQR2uIwqqp7SJ9rJvjBsKqx6Rg1dGdobzSxn5GAMBPUo3S5eRtrVR+PB6 iUuA== X-Gm-Message-State: AEkoousPMCCy4ZFIlZtZsMH4jL1ZV2qC0ljIca/F04CXUiSuo++H9MoqnjQQGM/Jnkjn4L/z X-Received: by 10.28.37.67 with SMTP id l64mr5564267wml.105.1471340154669; Tue, 16 Aug 2016 02:35:54 -0700 (PDT) Received: from localhost.localdomain (host81-129-169-93.range81-129.btcentralplus.com. [81.129.169.93]) by smtp.gmail.com with ESMTPSA id g1sm16614889wjy.5.2016.08.16.02.35.53 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 16 Aug 2016 02:35:54 -0700 (PDT) From: Lee Jones To: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Cc: kernel@stlinux.com, patrice.chotard@st.com, thierry.reding@gmail.com, linux-pwm@vger.kernel.org, devicetree@vger.kernel.org, Lee Jones Subject: [PATCH v4 17/17] dt-bindings: pwm: sti: Update DT bindings with recent changes Date: Tue, 16 Aug 2016 10:35:08 +0100 Message-Id: <20160816093508.28307-18-lee.jones@linaro.org> X-Mailer: git-send-email 2.9.0 In-Reply-To: <20160816093508.28307-1-lee.jones@linaro.org> References: <20160816093508.28307-1-lee.jones@linaro.org> Sender: linux-pwm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pwm@vger.kernel.org We're renaming the 'st,pwm-num-chan' binding to 'st,pwm-num-devs' to be more inline with the naming conventions of the subsystem. Where we used to treat each line as a channel, the PWM convention is to describe them as devices. The second documentation adaption entails adding support for PWM capture devices. A new clock is required as well as an IRQ line. We're also adding a new property similar to the one described above, but for capture channels. Typically, there will be less capture channels than PWM-out, since all channels have the latter capability, but only some have capture support. Signed-off-by: Lee Jones Acked-by: Rob Herring --- Documentation/devicetree/bindings/pwm/pwm-st.txt | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/Documentation/devicetree/bindings/pwm/pwm-st.txt b/Documentation/devicetree/bindings/pwm/pwm-st.txt index 84d2fb8..19fce77 100644 --- a/Documentation/devicetree/bindings/pwm/pwm-st.txt +++ b/Documentation/devicetree/bindings/pwm/pwm-st.txt @@ -13,13 +13,14 @@ Required parameters: - pinctrl-0: List of phandles pointing to pin configuration nodes for PWM module. For Pinctrl properties, please refer to [1]. -- clock-names: Set to "pwm". +- clock-names: Valid entries are "pwm" and/or "capture". - clocks: phandle of the clock used by the PWM module. For Clk properties, please refer to [2]. +- interrupts: IRQ for the Capture device Optional properties: -- st,pwm-num-chan: Number of available channels. If not passed, the driver - will consider single channel by default. +- st,pwm-num-chan: Number of available PWM channels. Default is 0. +- st,capture-num-chan: Number of available Capture channels. Default is 0. [1] Documentation/devicetree/bindings/pinctrl/pinctrl-bindings.txt [2] Documentation/devicetree/bindings/clock/clock-bindings.txt @@ -38,4 +39,5 @@ pwm1: pwm@fe510000 { clocks = <&clk_sysin>; clock-names = "pwm"; st,pwm-num-chan = <4>; + st,capture-num-chan = <2>; };