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: 73967 Delivered-To: patch@linaro.org Received: by 10.140.29.52 with SMTP id a49csp1896198qga; Tue, 16 Aug 2016 02:36:09 -0700 (PDT) X-Received: by 10.98.103.70 with SMTP id b67mr62616080pfc.30.1471340169143; Tue, 16 Aug 2016 02:36:09 -0700 (PDT) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id v187si31422030pfb.258.2016.08.16.02.36.08; Tue, 16 Aug 2016 02:36:09 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932392AbcHPJgB (ORCPT + 27 others); Tue, 16 Aug 2016 05:36:01 -0400 Received: from mail-wm0-f46.google.com ([74.125.82.46]:38429 "EHLO mail-wm0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753665AbcHPJf4 (ORCPT ); Tue, 16 Aug 2016 05:35:56 -0400 Received: by mail-wm0-f46.google.com with SMTP id o80so154621774wme.1 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=SGYztsXax3BUc5J7zQzQobACAJ2H0SYcghCKlJuZKR4S8fOrARt/1K+hOCAGUK+Fbq 0X/wKPbLVJursV2u9OHfT1vHJ2FQKbz/2uD2bEbHHTFH5UEh5/z/cFyREGEmNglfj7il FkmB1NLww+ezmRjhEvvvojHw7m1YPfS8ZlfL8Rqqxf5pvZ9Krc1BICS4Y0sg5wpJ7rN8 /dn1imEQZAtQqcplFYFEOL5/r4BfdSvNiIm9jivAywIsHV2ZWOEGYzfUUfm3YPp0ZgcO eAasbm0e8QH47C7owrWKIpa3Gw7xSBmU2Sy6DxvQIeFZST4DCcQ/0i/x7zEVdWOAMoq/ q9RQ== X-Gm-Message-State: AEkoousqjyKhDV6yuAW3+Dj7PLAzaXbm/3jC3qJ7zT1apypaR2zaUGZTWjICpQ0oD+PXvwNh 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-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@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 --- Documentation/devicetree/bindings/pwm/pwm-st.txt | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) -- 2.9.0 Acked-by: Rob Herring 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>; };