From patchwork Fri Sep 19 08:02:19 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Chris Zhong X-Patchwork-Id: 4936291 Return-Path: X-Original-To: patchwork-linux-rockchip@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 886ACBEEA5 for ; Fri, 19 Sep 2014 08:03:16 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 5A621201CD for ; Fri, 19 Sep 2014 08:03:15 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id ADE82201B4 for ; Fri, 19 Sep 2014 08:03:10 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1XUt9q-0000AA-E6; Fri, 19 Sep 2014 08:03:10 +0000 Received: from mail-pa0-f47.google.com ([209.85.220.47]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1XUt9o-00005k-Oq for linux-rockchip@lists.infradead.org; Fri, 19 Sep 2014 08:03:09 +0000 Received: by mail-pa0-f47.google.com with SMTP id kx10so840994pab.6 for ; Fri, 19 Sep 2014 01:02:49 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=a5P92/C11GW5TBp7qMF+jqhNPx3Y/NaHEiKtAi2i2Wg=; b=e+X9vdud+NJxfdCEtR8WNfKTWBUJo5m3aRJ8gUhO+VwFG7kkSokMdisJjeM1kUE5g5 LqRXXFL6nV3/cyAirIxYmCyB2I8KfZPGNIDrseWfJTCOckV7dkYrFaP3FYXcSHCgIwl6 9BeBDi2+RM8HM6tvmRWnzX1+Y7cJldgt9Away+ZuMxdxiqdO4CUIXgxzpTPv72GwGIXA fsDfHus8ew3p6DK5UEZNxk0BLgni0t/uScX0bU+l45uDihSOkCICTIFoLiR6otnipIx3 U7itngzuYUNGRJuLH4+fx0v6MGFfq+VFiz7EsoNpN8u3dq3fyd2bix9jABrPvxQ+wOwO uDIQ== X-Received: by 10.70.92.9 with SMTP id ci9mr14963414pdb.106.1411113769114; Fri, 19 Sep 2014 01:02:49 -0700 (PDT) Received: from localhost.localdomain ([69.176.84.147]) by mx.google.com with ESMTPSA id k11sm1069291pbq.64.2014.09.19.01.02.43 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 19 Sep 2014 01:02:48 -0700 (PDT) From: Chris Zhong To: dianders@chromium.org, heiko@sntech.de Subject: [PATCH v3 2/2] dt-bindings: add devicetree bindings for st-pwm regulator Date: Fri, 19 Sep 2014 16:02:19 +0800 Message-Id: <1411113739-1934-3-git-send-email-zyw@rock-chips.com> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1411113739-1934-1-git-send-email-zyw@rock-chips.com> References: <1411113739-1934-1-git-send-email-zyw@rock-chips.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20140919_010308_828870_8D3003B5 X-CRM114-Status: GOOD ( 10.06 ) X-Spam-Score: -0.7 (/) Cc: Mark Rutland , devicetree@vger.kernel.org, Pawel Moll , Ian Campbell , linux-kernel@vger.kernel.org, Rob Herring , linux-rockchip@lists.infradead.org, broonie@kernel.org, Kumar Gala , Chris Zhong , lee.jones@linaro.org X-BeenThere: linux-rockchip@lists.infradead.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Upstream kernel work for Rockchip platforms List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: "Linux-rockchip" Errors-To: linux-rockchip-bounces+patchwork-linux-rockchip=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_NONE, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Document the st-pwm regulator Signed-off-by: Chris Zhong Reviewed-by: Doug Anderson --- Changes in v3: Adviced by Doug Anderson - update the Example Changes in v2: Adviced by Lee Jones - rename the documentation Adviced by Doug Anderson - update the example Adviced by Mark Rutland - remove pwm-reg-period .../bindings/regulator/pwm-regulator.txt | 29 ++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 Documentation/devicetree/bindings/regulator/pwm-regulator.txt diff --git a/Documentation/devicetree/bindings/regulator/pwm-regulator.txt b/Documentation/devicetree/bindings/regulator/pwm-regulator.txt new file mode 100644 index 0000000..eb46f7b --- /dev/null +++ b/Documentation/devicetree/bindings/regulator/pwm-regulator.txt @@ -0,0 +1,29 @@ +pwm regulator bindings + +Required properties: +- compatible: Should be "pwm-regulator" +- pwms: OF device-tree PWM specification (see PWM binding pwm.txt) +- voltage-table: voltage and duty table, include 2 merbers in each set of + brackets, first one is voltage(unit: uv), the next is duty(unit: percent) + +Any property defined as part of the core regulator binding defined in +regulator.txt can also be used. + +Example: + pwm_regulator { + compatible = "pwm-regulator; + pwms = <&pwm1 0 8448 0>; + + voltage-table = <1114000 0>, + <1095000 10>, + <1076000 20>, + <1056000 30>, + <1036000 40>, + <1016000 50>; + + regulator-always-on; + regulator-boot-on; + regulator-min-microvolt = <1016000>; + regulator-max-microvolt = <1114000>; + regulator-name = "vdd_logic"; + };