Received: by 2002:ac0:98c7:0:0:0:0:0 with SMTP id g7-v6csp5141934imd; Tue, 30 Oct 2018 12:37:10 -0700 (PDT) X-Google-Smtp-Source: AJdET5cMvlq0iXyEQEpWKuEHpyPIQwIHhvse155C4X3O4BYA9EWcVdIPRVNKQSs2FMN58kFnJv3b X-Received: by 2002:a63:6984:: with SMTP id e126mr36332pgc.143.1540928230367; Tue, 30 Oct 2018 12:37:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1540928230; cv=none; d=google.com; s=arc-20160816; b=m590tkdtX0EBv2xDJ3jg4tAZUdfPlnP/EOclHclW8Jo0SJm857rvto3ghsoj3W9Tur nGMBgSnAR8XN4JuZMbYaPZemrrUselrxg5EuOWjjsNVVJ7aw24oimanid+keFUjMWzY+ iv4hbXULiMGdaUCY3chMb4vsuf6WCf6TVDozhiNj3RQFU+875aZWT4ai9KxDsXcSsIEc MK3bmZfFKk6elIkLkLBYFckqv6fFSbBHyTRimD5ryYa+TVtNwGoXMb12GrJqXMgsNIsS 3OdqrT65T2zf/2OTNXENyme2b3/bZ8EkjbYfeMxsTT5/bJlWwYEi0jeOpmmouJ5N+oKP hwvQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=lx0nhDHpummCatYTboeVxzUaTU8JZHfv3IjPGt83rYg=; b=VqrT2mQ8wAWpHXk1uPZ6vk2oelPgDjwzsZh5JHm9sIboEunwZQgqGNEcWsxQS1jMsj Lw2wmCFXrXqAKhGvJb8iAHnSQLyg+zmM5RAUoEN2efjBBqIOd8p0mCNhRr2AYooXw8xH TaPPAI0BFMHmLtkjsneyu+Rrw5fXe0gY0KQd4tJb2YVsdtI7nwL9Y5xFTr1U+DjF5H61 YVp/H6iqOJjisvHaxraGwWNKAujH1nWUBO7K8NZbQDC7nvyavho9ORtFUDybAZALYhf2 zeMbh9fmLiH43zMpS1Zw4Pf81uh7TB1aXUCcVDH/MfS13KRJtWbDpe94C0qKvy93ZQ+b 8gmQ== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b68-v6si12123320pfe.168.2018.10.30.12.36.54; Tue, 30 Oct 2018 12:37:10 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726750AbeJaE31 (ORCPT + 99 others); Wed, 31 Oct 2018 00:29:27 -0400 Received: from mail-ot1-f68.google.com ([209.85.210.68]:42108 "EHLO mail-ot1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725765AbeJaE31 (ORCPT ); Wed, 31 Oct 2018 00:29:27 -0400 Received: by mail-ot1-f68.google.com with SMTP id j3so6480945otl.9; Tue, 30 Oct 2018 12:34:38 -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=lx0nhDHpummCatYTboeVxzUaTU8JZHfv3IjPGt83rYg=; b=KiLpYnX2Gx4j1sxIyfq+LghGukRAh4xlEqjmfe6/vNETQy9GwpJJFHVEwN/OYYVPMF NqMegFxlD7k1m93aOGDS8PTvo1+eIr2L1zHLemXgMiyOo2khzez+BucTCD1Whr1sGEII gqutAaWtA18aIWUyhxwGGn/hYvebsba23OEo2WZVdIhI+dzvjZaol0E+Fu0gP8QCFOX0 xzcdVkjZh6YXsERDNcULiSJLqs5RA1EfnyFsEatNKGWqfB8qAL9e53sPMD4/G+IJCdEc boH0n0+2GOqSZzQuH0mHYJeVL4LW1PtySXnfMOVJVWKNW2UhpOKnMP7d5UD4YNLy2SL6 +pDw== X-Gm-Message-State: AGRZ1gIxfIsSKiXBsVu2X1oUb3pDlRXjvKT0hQL8CKX6T8XSPInx/7iN zqH786zwNNvxNxE6ICtTEQ== X-Received: by 2002:a9d:c63:: with SMTP id 90mr32578otr.328.1540928078119; Tue, 30 Oct 2018 12:34:38 -0700 (PDT) Received: from localhost (24-155-109-49.dyn.grandenetworks.net. [24.155.109.49]) by smtp.gmail.com with ESMTPSA id a75-v6sm635360oih.28.2018.10.30.12.34.37 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 30 Oct 2018 12:34:37 -0700 (PDT) Date: Tue, 30 Oct 2018 14:34:36 -0500 From: Rob Herring To: Pascal PAILLET-LME Cc: "dmitry.torokhov@gmail.com" , "mark.rutland@arm.com" , "lee.jones@linaro.org" , "lgirdwood@gmail.com" , "broonie@kernel.org" , "wim@linux-watchdog.org" , "linux@roeck-us.net" , "linux-input@vger.kernel.org" , "devicetree@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "linux-watchdog@vger.kernel.org" , "benjamin.gaignard@linaro.org" , "eballetbo@gmail.com" , "axel.lin@ingics.com" Subject: Re: [PATCH v5 3/8] dt-bindings: regulator: document stpmic1 pmic regulators Message-ID: <20181030193436.GA29710@bogus> References: <1540830122-2577-1-git-send-email-p.paillet@st.com> <1540830122-2577-4-git-send-email-p.paillet@st.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1540830122-2577-4-git-send-email-p.paillet@st.com> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Oct 29, 2018 at 04:22:05PM +0000, Pascal PAILLET-LME wrote: > The STPMIC1 regulators supply power to the application processor as well as > to the external system peripherals such as DDR, Flash memories and system > devices. > > Signed-off-by: Pascal Paillet > --- > changes in v5: > * describe regulator-active-discharge is available for power switches > * remove interrupt parents > > .../bindings/regulator/st,stpmic1-regulator.txt | 67 ++++++++++++++++++++++ > 1 file changed, 67 insertions(+) > create mode 100644 Documentation/devicetree/bindings/regulator/st,stpmic1-regulator.txt > > diff --git a/Documentation/devicetree/bindings/regulator/st,stpmic1-regulator.txt b/Documentation/devicetree/bindings/regulator/st,stpmic1-regulator.txt > new file mode 100644 > index 0000000..5adc938 > --- /dev/null > +++ b/Documentation/devicetree/bindings/regulator/st,stpmic1-regulator.txt > @@ -0,0 +1,67 @@ > +STMicroelectronics STPMIC1 Voltage regulators > + > +Regulator Nodes are optional depending on needs. > + > +Available Regulators in STPMIC1 device are: > + - buck1 for Buck BUCK1 > + - buck2 for Buck BUCK2 > + - buck3 for Buck BUCK3 > + - buck4 for Buck BUCK4 > + - ldo1 for LDO LDO1 > + - ldo2 for LDO LDO2 > + - ldo3 for LDO LDO3 > + - ldo4 for LDO LDO4 > + - ldo5 for LDO LDO5 > + - ldo6 for LDO LDO6 > + - vref_ddr for LDO Vref DDR > + - boost for Buck BOOST > + - pwr_sw1 for VBUS_OTG switch > + - pwr_sw2 for SW_OUT switch > + > +Switches are fixed voltage regulators with only enable/disable capability. > + > +Optional properties: > +- st,mask-reset: mask reset for this regulator: the regulator configuration > + is maintained during pmic reset. > +- regulator-pull-down: enable high pull down > + if not specified light pull down is used > +- regulator-over-current-protection: > + if set, all regulators are switched off in case of over-current detection > + on this regulator, > + if not set, the driver only sends an over-current event. > +- interrupt-parent: phandle to the parent interrupt controller This is not needed as the parent is a parent node with 'interrupt-controller' property. Otherwise, Reviewed-by: Rob Herring > +- interrupts: index of current limit detection interrupt > +- -supply: phandle to the parent supply/regulator node > + each regulator supply can be described except vref_ddr. > +- regulator-active-discharge: can be used on pwr_sw1 and pwr_sw2. > + > +Example: > +regulators { > + compatible = "st,stpmic1-regulators"; > + > + ldo6-supply = <&v3v3>; > + > + vdd_core: buck1 { > + regulator-name = "vdd_core"; > + interrupts = ; > + st,mask-reset; > + regulator-pull-down; > + regulator-min-microvolt = <700000>; > + regulator-max-microvolt = <1200000>; > + }; > + > + v3v3: buck4 { > + regulator-name = "v3v3"; > + interrupts = ; > + > + regulator-min-microvolt = <3300000>; > + regulator-max-microvolt = <3300000>; > + }; > + > + v1v8: ldo6 { > + regulator-name = "v1v8"; > + regulator-min-microvolt = <1800000>; > + regulator-max-microvolt = <1800000>; > + regulator-over-current-protection; > + }; > +}; > -- > 1.9.1