Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp2837951imm; Mon, 16 Jul 2018 15:22:21 -0700 (PDT) X-Google-Smtp-Source: AAOMgpdSchN9cztZnwgNlzKqQ8fZdQnxrAOCkkdsZ/e1vb4ppKV7DsxomoARYdXOqKHuHsFKRzCS X-Received: by 2002:a63:91c8:: with SMTP id l191-v6mr16600283pge.180.1531779741028; Mon, 16 Jul 2018 15:22:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1531779741; cv=none; d=google.com; s=arc-20160816; b=xMGiMaHri+oEBIb+zPF2q7Ch8lF25iC/iykD1RNcb+riVUrVKZfWLB0JwDBSTqDUqE Mp0NWNmW9LF011a9sjXK9Pr+3324rFYduRoDXR3CV8D3Aw47lke0X0l//Hf1IMM9wL5U SVktQCJ/4r+acqRPSBtFkHTJq+lsgmF0VP5KMLF4ykpqdgNt92C32S/65Tnhyswnutr3 9Dv+nv4O5u8lbU7eO/QZBUKf+4qXvFBNwocufPdlhuLLvc90QUFjYcez+h9P6Q7i5DjS 5QcaclwCMbHuoZ7miAPqbBEzrK08dS9cNaapKIAEtOeH3ucQ3NUz18EnkSx5xcACcUYc Jvaw== 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:arc-authentication-results; bh=plz8JUgavK+cpxpdrscMLD4IVHJlod6yGJVaAUuFbgs=; b=tz8rdVZPE9gEHGff+99tOajFIS7v5iBRC7lXWKw1ugCM3SNthCDyq7EVfSzH+xWiYI aYyumBtBxNAHzd4y654BJmjDhhXU7aQR1KBgQAARDIW9P6PoiY//J958dmVhwNvzi1qT HNJKd62dn5JzXqJwOLGNfng0X/MD4Q3Lz5+c7fCNmpnCwA4/2P/FpPCwKKmg6fWOvt1G gADZ2n77grfDRMoSwQbVggi+3XviTiCFNm7dw2RxUo02nhF5S6hcopbRt+6SVLAQ5ivH eEuhE+KOrScVv7XIatlUKuSOkY5MvxDF/jHA63TmEHKdLUGdY1fooeEVIM0UdY8k5KvR F/8g== 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 l10-v6si31825106pgb.510.2018.07.16.15.22.05; Mon, 16 Jul 2018 15:22:20 -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 S1729828AbeGPWu5 (ORCPT + 99 others); Mon, 16 Jul 2018 18:50:57 -0400 Received: from mail-oi0-f66.google.com ([209.85.218.66]:43550 "EHLO mail-oi0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728784AbeGPWu5 (ORCPT ); Mon, 16 Jul 2018 18:50:57 -0400 Received: by mail-oi0-f66.google.com with SMTP id b15-v6so77795643oib.10; Mon, 16 Jul 2018 15:21:31 -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=plz8JUgavK+cpxpdrscMLD4IVHJlod6yGJVaAUuFbgs=; b=O9uZ9jjqfvdhCTBH7bNMqgyA96F6MbfQbdr5oUbXgA0R+4/CtoNJhFMLQ3rkXICD6s tL8DjfWZOG1Z2ulq9ySY1scagjRESX+xs3KHBffP5JNYMRR+v8PG9BzPPFmySpA/pbNw x8asmV0HtZut3gBmvHIsqb/zXTEpHQwqZSg6b8O9fGaFxQ4WPzXMUYSlen97YbL6UIhk jAhs4Yt0DBk9oFaV4j+HVBE5h23bUV/FOf38LHYMSYT72iCxiBbAYrHQj0W9/GXWqKcL FDVHfY7wZrfpG1TvjGsLFCxT8MUwlLd7AlNdNVLhnsCrovWpBZLVNlNtvCkYr1FFIZOu pDjA== X-Gm-Message-State: AOUpUlGOoNZIJju5Y1y6tyRQD+P2jJHdr5+yUI1NsoR3Ut7TWOUN+VfJ TChOtGEGSYdcQNtHqx72QA== X-Received: by 2002:aca:3954:: with SMTP id g81-v6mr1339786oia.215.1531779690647; Mon, 16 Jul 2018 15:21:30 -0700 (PDT) Received: from localhost (24-223-123-72.static.usa-companies.net. [24.223.123.72]) by smtp.gmail.com with ESMTPSA id f75-v6sm6899908oig.53.2018.07.16.15.21.29 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 16 Jul 2018 15:21:29 -0700 (PDT) Date: Mon, 16 Jul 2018 16:21:28 -0600 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" Subject: Re: [PATCH 3/8] dt-bindings: regulator: document stpmu1 pmic regulators Message-ID: <20180716222128.GA4766@rob-hp-laptop> References: <1530803657-17684-1-git-send-email-p.paillet@st.com> <1530803657-17684-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: <1530803657-17684-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 Thu, Jul 05, 2018 at 03:14:23PM +0000, Pascal PAILLET-LME wrote: > From: pascal paillet > > The STPMU1 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 > --- > .../bindings/regulator/st,stpmu1-regulator.txt | 72 ++++++++++++++++++++++ > 1 file changed, 72 insertions(+) > create mode 100644 Documentation/devicetree/bindings/regulator/st,stpmu1-regulator.txt > > diff --git a/Documentation/devicetree/bindings/regulator/st,stpmu1-regulator.txt b/Documentation/devicetree/bindings/regulator/st,stpmu1-regulator.txt > new file mode 100644 > index 0000000..888e759 > --- /dev/null > +++ b/Documentation/devicetree/bindings/regulator/st,stpmu1-regulator.txt > @@ -0,0 +1,72 @@ > +STMicroelectronics STPMU1 Voltage regulators > + > +Regulator Nodes are optional depending on needs. > + > +Available Regulators in STPMU1 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: stay on during Reset for particular regulator s/_/-/ What's the type? 'mask' in the name makes it sound like a bitmask. > +- 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 send an over-current event. > +- interrupt-parent: phandle to the parent 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,stpmu1-regulators"; > + > + ldo6-supply = <&v3v3>; > + > + vdd_core: regulator@0 { Drop the unit address. > + regulator-compatible = "buck1"; > + regulator-name = "vdd_core"; I think you have the names backwards here. Plus, regulator-compatible is not generally used. > + interrupts = ; > + interrupt-parent = <&pmic>; > + st,mask_reset; > + regulator-pull-down; > + st,pulldown_config = <2>; > + regulator-min-microvolt = <700000>; > + regulator-max-microvolt = <1200000>; > + }; > + > + v3v3: buck4 { > + regulator-compatible = "buck4"; > + regulator-name = "v3v3"; > + interrupts = ; > + interrupt-parent = <&mypmic>; > + > + regulator-min-microvolt = <3300000>; > + regulator-max-microvolt = <3300000>; > + }; > + > + v1v8: ldo6 { > + regulator-compatible = "ldo6"; > + regulator-name = "v1v8"; > + regulator-min-microvolt = <1800000>; > + regulator-max-microvolt = <1800000>; > + regulator-over-current-protection; > + }; > + > +}; > -- > 1.9.1