From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-8.2 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_PATCH,MAILING_LIST_MULTI,SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS, URIBL_BLOCKED,USER_AGENT_SANE_1 autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id B7162ECE58E for ; Thu, 17 Oct 2019 09:57:19 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 8CD712089C for ; Thu, 17 Oct 2019 09:57:19 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2408708AbfJQJ5S (ORCPT ); Thu, 17 Oct 2019 05:57:18 -0400 Received: from mail-lf1-f68.google.com ([209.85.167.68]:32778 "EHLO mail-lf1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727873AbfJQJ5R (ORCPT ); Thu, 17 Oct 2019 05:57:17 -0400 Received: by mail-lf1-f68.google.com with SMTP id y127so1391816lfc.0; Thu, 17 Oct 2019 02:57:14 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=fxrh3VfweY/VOlzg8y3ruaAR2SY+6ZO2U5B2i1hYopQ=; b=BEC0zPdac9TSbvNJ6IJsTEr9QcyNWUo4X7HiY1HTOnO/KGGY4g/Q2/UbKli9/8KqGC f5Cfu01l5th0S0XcjFXu+sqZoMf2HVUdj1roOs5K/sIVATIBKTnoWE89cT7E387QC6nd nedoZhyaH9TcnB3F25LB7FzRVfMeEE/v9SC9rqBOfEV8XKyyc5bEXLOGbw4okU385pBr zljpAD6aNJ5Ouk/GeiTPrh6KSMiINOkwWP7KEvXunAN2oTDzjwbSs/fwuAfdmoN9xF8+ HWr0cOw9tmoKowsLZ5h+r2zsF2uLy0c/nvncXbcRIjWgbnC6cR8bT6DhVhbuY8VG3Trf xRlA== X-Gm-Message-State: APjAAAWJUGZzIrcUzLtuw1kOykQGvyvf08Uh3hXI7uh6sSfwtnkN7y59 h4NCOtp9r1iOKjzZKssGsvA= X-Google-Smtp-Source: APXvYqw+bcJB2igbukyiePXd5Dxh73+KoCskq6LH6L44L68fjx40J1kn4yowZBPcTh1TA3c+lxufjg== X-Received: by 2002:a19:3fcd:: with SMTP id m196mr8688lfa.118.1571306234015; Thu, 17 Oct 2019 02:57:14 -0700 (PDT) Received: from localhost.localdomain ([213.255.186.46]) by smtp.gmail.com with ESMTPSA id v203sm1084674lfa.25.2019.10.17.02.57.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 17 Oct 2019 02:57:13 -0700 (PDT) Date: Thu, 17 Oct 2019 12:57:00 +0300 From: Matti Vaittinen To: matti.vaittinen@fi.rohmeurope.com, mazziesaccount@gmail.com Cc: Lee Jones , Rob Herring , Mark Rutland , Liam Girdwood , Mark Brown , Michael Turquette , Stephen Boyd , Linus Walleij , Bartosz Golaszewski , Jacek Anaszewski , Pavel Machek , Dan Murphy , Alessandro Zummo , Alexandre Belloni , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-clk@vger.kernel.org, linux-gpio@vger.kernel.org, linux-leds@vger.kernel.org, linux-rtc@vger.kernel.org Subject: [RFC PATCH 13/13] dt-bindings: regulator: Document ROHM BD71282 regulator bindings Message-ID: <1c239d578ac853ed0dab9a43521f528b07cc24e1.1571302099.git.matti.vaittinen@fi.rohmeurope.com> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.12.1 (2019-06-15) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Document ROHM BD71828 PMIC regulator device tree bindings. Add binding document for regulators on ROHM BD71828 PMIC Signed-off-by: Matti Vaittinen --- .../regulator/rohm,bd71828-regulator.txt | 164 ++++++++++++++++++ 1 file changed, 164 insertions(+) create mode 100644 Documentation/devicetree/bindings/regulator/rohm,bd71828-regulator.txt diff --git a/Documentation/devicetree/bindings/regulator/rohm,bd71828-regulator.txt b/Documentation/devicetree/bindings/regulator/rohm,bd71828-regulator.txt new file mode 100644 index 000000000000..cf6a5123b98d --- /dev/null +++ b/Documentation/devicetree/bindings/regulator/rohm,bd71828-regulator.txt @@ -0,0 +1,164 @@ +ROHM BD71828 Power Management Integrated Circuit regulator bindings + +Required properties: + - regulator-name: should be "buck1", ..., "buck7", and "ldo1", ..., "ldo7" + +List of regulators provided by this controller. BD71828 regulators node +should be sub node of the BD71828 MFD node. See BD71828 MFD bindings at +Documentation/devicetree/bindings/mfd/rohm,bd71828-pmic.txt +Regulator nodes should be named to BUCK_ and LDO_. The +definition for each of these nodes is defined using the standard +binding for regulators at +Documentation/devicetree/bindings/regulator/regulator.txt. + +The valid names for BD71828 regulator nodes are: +BUCK1, BUCK2, BUCK3, BUCK4, BUCK5, BUCK6, BUCK7 +LDO1, LDO2, LDO3, LDO4, LDO5, LDO6, LDO7 + +Optional properties: +- rohm,dvs-run-voltage : PMIC default "RUN" state voltage in uV. + See below table for bucks which support this. +- rohm,dvs-idle-voltage : PMIC default "IDLE" state voltage in uV. + See below table for bucks which support this. +- rohm,dvs-suspend-voltage : PMIC default "SUSPEND" state voltage in uV. + See below table for bucks which support this. +- rohm,dvs-lpsr-voltage : PMIC default "LPSR" state voltage in uV. +- rohm,dvs-runlvl-ctrl : buck control is done based on run-level. + Regulator is not individually controllable. + See ../mfd/rohm,bd71828-pmic.txt for how to + specify run-level control mechanism. Only + bucks 1, 2, 6 and 7 support this. +- rohm,dvs-runlevel0-voltage : voltage for run-level 0. Microvolts. +- rohm,dvs-runlevel1-voltage : voltage for run-level 1. Microvolts. +- rohm,dvs-runlevel2-voltage : voltage for run-level 2. Microvolts. +- rohm,dvs-runlevel3-voltage : voltage for run-level 3. Microvolts. + +- Any optional property defined in bindings/regulator/regulator.txt + +Supported default DVS states: + +buck | run | idle | suspend | lpsr +----------------------------------------------------------------------------- +1, 2, 6, and 7 | supported | supported | supported (*) +---------------------------------------------------------------------------- +3, 4, and 5 | supported (**) +---------------------------------------------------------------------------- +(*) LPSR and SUSPEND states use same voltage but both states have own enable / + disable settings. Voltage 0 can be specified for a state to make regulator + disabled on that state. +(**) All states use same voltage but have own enable / disable settings. Voltage + 0 can be specified for a state to make regulator disabled on that state. + +Example: +regulators { + buck1: BUCK1 { + regulator-name = "buck1"; + regulator-min-microvolt = <500000>; + regulator-max-microvolt = <2000000>; + regulator-ramp-delay = <2500>; + rohm,dvs-runlvl-ctrl; + rohm,dvs-runlevel0-voltage = <500000>; + rohm,dvs-runlevel1-voltage = <506250>; + rohm,dvs-runlevel2-voltage = <512500>; + rohm,dvs-runlevel3-voltage = <518750>; + regulator-boot-on; + }; + buck2: BUCK2 { + regulator-name = "buck2"; + regulator-min-microvolt = <500000>; + regulator-max-microvolt = <2000000>; + regulator-ramp-delay = <2500>; + rohm,dvs-runlvl-ctrl; + rohm,dvs-runlevel0-voltage = <500000>; + rohm,dvs-runlevel1-voltage = <506250>; + rohm,dvs-runlevel2-voltage = <512500>; + rohm,dvs-runlevel3-voltage = <518750>; + regulator-boot-on; + }; + buck3: BUCK3 { + regulator-name = "buck3"; + regulator-min-microvolt = <1200000>; + regulator-max-microvolt = <2000000>; + regulator-boot-on; + }; + buck4: BUCK4 { + regulator-name = "buck4"; + regulator-min-microvolt = <1000000>; + regulator-max-microvolt = <1800000>; + regulator-boot-on; + }; + buck5: BUCK5 { + regulator-name = "buck5"; + regulator-min-microvolt = <2500000>; + regulator-max-microvolt = <3300000>; + regulator-boot-on; + }; + buck6: BUCK6 { + regulator-name = "buck6"; + regulator-min-microvolt = <500000>; + regulator-max-microvolt = <2000000>; + regulator-ramp-delay = <2500>; + rohm,dvs-runlvl-ctrl; + rohm,dvs-runlevel0-voltage = <500000>; + rohm,dvs-runlevel1-voltage = <506250>; + rohm,dvs-runlevel2-voltage = <512500>; + rohm,dvs-runlevel3-voltage = <518750>; + regulator-boot-on; + }; + buck7: BUCK7 { + regulator-name = "buck7"; + regulator-min-microvolt = <500000>; + regulator-max-microvolt = <2000000>; + regulator-ramp-delay = <2500>; + rohm,dvs-runlvl-ctrl; + rohm,dvs-runlevel0-voltage = <500000>; + rohm,dvs-runlevel1-voltage = <506250>; + rohm,dvs-runlevel2-voltage = <512500>; + rohm,dvs-runlevel3-voltage = <518750>; + regulator-boot-on; + }; + ldo1: LDO1 { + regulator-name = "ldo1"; + regulator-min-microvolt = <800000>; + regulator-max-microvolt = <3300000>; + regulator-boot-on; + }; + ldo2: LDO2 { + regulator-name = "ldo2"; + regulator-min-microvolt = <800000>; + regulator-max-microvolt = <3300000>; + regulator-boot-on; + }; + ldo3: LDO3 { + regulator-name = "ldo3"; + regulator-min-microvolt = <800000>; + regulator-max-microvolt = <3300000>; + regulator-boot-on; + }; + ldo4: LDO4 { + regulator-name = "ldo4"; + regulator-min-microvolt = <800000>; + regulator-max-microvolt = <3300000>; + regulator-boot-on; + }; + ldo5: LDO5 { + regulator-name = "ldo5"; + regulator-min-microvolt = <800000>; + regulator-max-microvolt = <3300000>; + regulator-boot-on; + }; + ldo6: LDO6 { + regulator-name = "ldo6"; + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <1800000>; + regulator-boot-on; + }; + ldo7_reg: LDO7 { + regulator-name = "ldo7"; + regulator-min-microvolt = <800000>; + regulator-max-microvolt = <3300000>; + regulator-boot-on; + }; +}; + + -- 2.21.0 -- Matti Vaittinen, Linux device drivers ROHM Semiconductors, Finland SWDC Kiviharjunlenkki 1E 90220 OULU FINLAND ~~~ "I don't think so," said Rene Descartes. Just then he vanished ~~~ Simon says - in Latin please. ~~~ "non cogito me" dixit Rene Descarte, deinde evanescavit ~~~ Thanks to Simon Glass for the translation =]