From patchwork Thu Sep 18 07:31:45 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Chris Zhong X-Patchwork-Id: 390661 Return-Path: X-Original-To: incoming-dt@patchwork.ozlabs.org Delivered-To: patchwork-incoming-dt@bilbo.ozlabs.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 20214140078 for ; Thu, 18 Sep 2014 17:32:44 +1000 (EST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756588AbaIRHcV (ORCPT ); Thu, 18 Sep 2014 03:32:21 -0400 Received: from mail-pd0-f178.google.com ([209.85.192.178]:50891 "EHLO mail-pd0-f178.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755978AbaIRHcS (ORCPT ); Thu, 18 Sep 2014 03:32:18 -0400 Received: by mail-pd0-f178.google.com with SMTP id p10so841155pdj.37 for ; Thu, 18 Sep 2014 00:32:17 -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=FORJtDTErIeInCHZuXA8bg7mA4trD0s9VDfz4e0Jpc0=; b=R/TTOccfmZOUa92m9Cfindj0gfOZa9WS3v8tA1KSJJk+qp0IeYm5MPVNwFAIEYJmNn 0/Sidn66yYWGijhKGWxgED6w7nXB0T4+cWQkXU+zmaInzXWb6KV2PiXi5IshPsu3pO+J 1sN3mNJcvBynn2qFJ6TiZdFl3C16RpFhSHNZ78SMQZfr5V5CTz/7+ByAmQI9xEvcoLcV 8VkrswKubyo6SJAEH+hW2PYJplqiuXbPsMrwr1P+NwCA3hE+a/++peQYDjOyRiuY5kqi DpVOaB6lCnPDqZVnO63eWkS9qwhQVAPEnVe+8tZo1r7NcCqI7qzOJATn0n3NpXt87QYO rRIQ== X-Received: by 10.70.89.132 with SMTP id bo4mr2649390pdb.35.1411025537795; Thu, 18 Sep 2014 00:32:17 -0700 (PDT) Received: from localhost.localdomain ([69.176.84.147]) by mx.google.com with ESMTPSA id n15sm9724454pdj.34.2014.09.18.00.32.11 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 18 Sep 2014 00:32:16 -0700 (PDT) From: Chris Zhong To: dianders@chromium.org, heiko@sntech.de Cc: huangtao@rock-chips.com, cf@rock-chips.com, zhangqing@rock-chips.com, lee.jones@linaro.org, broonie@kernel.org, Chris Zhong , Rob Herring , Pawel Moll , Mark Rutland , Ian Campbell , Kumar Gala , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v2 2/2] dt-bindings: add devicetree bindings for st-pwm regulator Date: Thu, 18 Sep 2014 15:31:45 +0800 Message-Id: <1411025505-21628-3-git-send-email-zyw@rock-chips.com> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1411025505-21628-1-git-send-email-zyw@rock-chips.com> References: <1411025505-21628-1-git-send-email-zyw@rock-chips.com> Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org Document the st-pwm regulator Signed-off-by: Chris Zhong --- 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..7c62a30 --- /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 1000000 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"; + };