Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp4267599imm; Tue, 25 Sep 2018 14:27:28 -0700 (PDT) X-Google-Smtp-Source: ACcGV605h50BucjDxxFcJJpj4NTSXIeanQVjVz6bgrswzH+cvfFR4VHY/GgNsLrv/cyerO/PaD+t X-Received: by 2002:a63:5509:: with SMTP id j9-v6mr2682704pgb.208.1537910848415; Tue, 25 Sep 2018 14:27:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1537910848; cv=none; d=google.com; s=arc-20160816; b=eP98ou29VAaY/kCQJHINuyqf+wniRVVm8g3+VrWZdgJsM7uxxQnAVTh3R7LMZgcP4G wyrTLqLSrlm1so1wAmdDIZoQ0Fh+kNoTvIf3VtzWhLy02PhgEW8BGhP7RdjbpO+M1NIR WhkCpJfWnr3gOa8fyX18h/M9yRLWkPu/XPCiPnkg4XX981PVK4HEXdDWw7w/jm8rx4tJ +I0Jtsw4X2uj/PBHCCKliEChWKhOtnbU3U3oMSGZ4O+QEfM+3srMe5zv1AcWrzKxN8Mn PboMrxtQihvjFEFDuSF2uNXsMHX/1DF57tJ/tl73iOOGnHT84/16Gr3j+lj+d9fPDwT5 tvyA== 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=FHGRpJo4QtOEZnGBAR8gpBloSO0oGwlHeq3rF50nCUc=; b=VRWgi4ChbzpbhHO/0eIhFfoT75+mrdYVRqBnUk6cKqzWrqVzh02eXrptUo7pNolXPU J7ePO6EGh6fMdQBz0udbe/gLUlWP0Zb+OfpaSenEB4s8zgP6vM5VvJDzzIzQI5cwLiY6 r4ZKckG/l/reyiQBAY6cpK2KH9XhyrlEl0BS9HCb3XBlYiMmTvgLv3sO6pTYcrYk1Fnx S6etVfmMrNbuhmO/yzoBWMVL9i+rfMwfncs7GZ+ZkOQAq96t91JczBNoqb6mOurhP5/9 8CrahBnsIjY37nZl5rk5vL/shKo4tzn03OAkt2xb4XrZK1npfoLc4Rz5yXKSw80gAkOY TKRg== 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 x19-v6si3206604pgj.644.2018.09.25.14.27.12; Tue, 25 Sep 2018 14:27:28 -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 S1726596AbeIZDfG (ORCPT + 99 others); Tue, 25 Sep 2018 23:35:06 -0400 Received: from mail-oi1-f196.google.com ([209.85.167.196]:43134 "EHLO mail-oi1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726306AbeIZDfF (ORCPT ); Tue, 25 Sep 2018 23:35:05 -0400 Received: by mail-oi1-f196.google.com with SMTP id s69-v6so2753491oie.10; Tue, 25 Sep 2018 14:25:34 -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=FHGRpJo4QtOEZnGBAR8gpBloSO0oGwlHeq3rF50nCUc=; b=g5LxSmRo8vvTKIANEZc+G5ix64wsLjKS8g7yfP54PmcNV0jR/gwyfIOaNdsu28dpMu +cno05qZ2172s7VfF/5TxeVe0aUTProsA8IwOdhyC23eqzE+9slBob3ATCMVO5rNKfrE UyOx2XsioVa5p9GzxbOeoMXZK0OxeXmEw16GWNi0WW/Fz4xVDk8dQY4lKnPU5LCbLcI/ Lyy3ePCg4PtUWlf/1EbW8OmiT/1HL/uY4o2B1TDVmHsddgSSFwThcTD7fqbSVIQvjhnS EwEgd6BJRUh1LWcOrWvOKCCkO7dd2tNuyBEgSuQ8ZKcS9HrU16fVhTJYdxO7qXoi6bet 2ROg== X-Gm-Message-State: ABuFfog6KlOnrxd6873De9nQfp+/hGmrC/PrgPjEN0jr4RPJyHR78FhS +3RVu9GlMNH5ijSxr4wgvw== X-Received: by 2002:aca:ced5:: with SMTP id e204-v6mr12655oig.169.1537910733691; Tue, 25 Sep 2018 14:25:33 -0700 (PDT) Received: from localhost (24-155-109-49.dyn.grandenetworks.net. [24.155.109.49]) by smtp.gmail.com with ESMTPSA id r10-v6sm1158572oif.37.2018.09.25.14.25.32 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 25 Sep 2018 14:25:33 -0700 (PDT) Date: Tue, 25 Sep 2018 16:25:32 -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" Subject: Re: [PATCH V2 3/8] dt-bindings: regulator: document stpmic1 pmic regulators Message-ID: <20180925212532.GA23630@bogus> References: <1536325173-16617-1-git-send-email-p.paillet@st.com> <1536325173-16617-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: <1536325173-16617-4-git-send-email-p.paillet@st.com> User-Agent: Mutt/1.9.4 (2018-02-28) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Sep 07, 2018 at 12:59:44PM +0000, Pascal PAILLET-LME wrote: > From: pascal paillet > > 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 v2: > * the hardware component has been renamed from stpmu1 to stpmic1 ! > * replace _ with - in properties name > * remove deprecated regulator-compatible from the example > Rob, the st,mask_reset name is taken from the data-sheet. I have modified the > description. I hope there is no confusion with bit masking know. > > .../bindings/regulator/st,stpmic1-regulator.txt | 68 ++++++++++++++++++++++ > 1 file changed, 68 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..a3f4762 > --- /dev/null > +++ b/Documentation/devicetree/bindings/regulator/st,stpmic1-regulator.txt > @@ -0,0 +1,68 @@ > +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. State this is boolean. > +- 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 implied. And actually not needed as the parent node is an 'interrupt-controller'. > +- interrupts: index of current limit detection interrupt > +- -supply: phandle to the parent supply/regulator node > + each regulator supply can be described except vref_ddr. > + > +Example: > +regulators { > + compatible = "st,stpmic1-regulators"; > + > + ldo6-supply = <&v3v3>; > + > + vdd_core: buck1 { > + regulator-name = "vdd_core"; > + interrupts = ; > + interrupt-parent = <&pmic>; > + st,mask-reset; > + regulator-pull-down; > + regulator-min-microvolt = <700000>; > + regulator-max-microvolt = <1200000>; > + }; > + > + v3v3: buck4 { > + regulator-name = "v3v3"; > + interrupts = ; > + interrupt-parent = <&mypmic>; Different parent from buck1? > + > + 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