Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp1668565imm; Thu, 18 Oct 2018 02:04:29 -0700 (PDT) X-Google-Smtp-Source: ACcGV630lp97aQZPI9EqWiql0TMJj8ttfT7cYDIVodPOs+bf3JyM8d71zPGqvvIBiP9wFp54YdJc X-Received: by 2002:a63:745e:: with SMTP id e30-v6mr27863432pgn.446.1539853469530; Thu, 18 Oct 2018 02:04:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1539853469; cv=none; d=google.com; s=arc-20160816; b=Ej285GLWArVu5tMD3MyA4VuPXjzjT6NFyaR9w5M5kDfHIv8ltclHf5+HsFwtthwz2b E/MAHxbto/JbD2Yj7JIrQz3KwJZQZ4j4pBydevk77gqQKy15okcqPZG5ncIiksHfrEXV NpqMrqc8njejaoEjwh/Y4Gwg9rGf+4H5/1PvrQIjYOmjIvIc0pn/eS8UM+40RALgwj+1 eEUf2WRTCn4pH3cLKRogaLjwKLD2ZfZrx8/eVTEv/Cd+9whk/mh1RfGFHdWCi9x8x9WW iehSe4F2n5tyA0hr8xdhr7oBRwVAtXAaSLElm3fYPuYNv3Z1tss4H+UW2mhXENGHY2Hq FwUA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :content-language:accept-language:in-reply-to:references:message-id :date:thread-index:thread-topic:subject:cc:to:from; bh=EAkMEg08kSR2tV7VsHQiLe/9HpWeKrT9LJNFnkSyGvo=; b=iuyeFkBsECB5W4T2/P4LQII8AtLryDmbxaFk/Rqy30BSjo590RPV9K9VyGFmtiS3sP hoNPzuGw18kHFJzckr5w3Z5kyHrGm+bzzkIM2NFLEgugln+EFQYZWqmRPqRhl9FP80cf ARLRGhiY1+AB8kX3PkWgVv+9DhWwnb9UQuRxjB4m0nPt/v8mKXavM0I7mWxsGLrNoFvl /2kMOhJcc2GAzlj+GekZr0VuXSG97NaLbkTLIYsTAP57HdVKFf9G2nscLyEZwx0+WMnm t2B0seOyNPAfkLlARck75jwzPeOJMSRORZ7hrLOL2kOnARr3NP6oGtrOW1WrD4qaAZ6g QAtA== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id c191-v6si20969338pga.402.2018.10.18.02.04.12; Thu, 18 Oct 2018 02:04:29 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727844AbeJRRCm convert rfc822-to-8bit (ORCPT + 99 others); Thu, 18 Oct 2018 13:02:42 -0400 Received: from mx08-00178001.pphosted.com ([91.207.212.93]:55259 "EHLO mx07-00178001.pphosted.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727455AbeJRRCl (ORCPT ); Thu, 18 Oct 2018 13:02:41 -0400 Received: from pps.filterd (m0046661.ppops.net [127.0.0.1]) by mx08-.pphosted.com (8.16.0.21/8.16.0.21) with SMTP id w9I8xHrD027462; Thu, 18 Oct 2018 11:02:13 +0200 Received: from beta.dmz-eu.st.com (beta.dmz-eu.st.com [164.129.1.35]) by mx08-00178001.pphosted.com with ESMTP id 2n37kfy3pm-1 (version=TLSv1 cipher=ECDHE-RSA-AES256-SHA bits=256 verify=NOT); Thu, 18 Oct 2018 11:02:13 +0200 Received: from zeta.dmz-eu.st.com (zeta.dmz-eu.st.com [164.129.230.9]) by beta.dmz-eu.st.com (STMicroelectronics) with ESMTP id CA33D41; Thu, 18 Oct 2018 09:02:12 +0000 (GMT) Received: from Webmail-eu.st.com (sfhdag6node1.st.com [10.75.127.16]) by zeta.dmz-eu.st.com (STMicroelectronics) with ESMTP id 98C1A2765; Thu, 18 Oct 2018 09:02:12 +0000 (GMT) Received: from SFHDAG6NODE2.st.com (10.75.127.17) by SFHDAG6NODE1.st.com (10.75.127.16) with Microsoft SMTP Server (TLS) id 15.0.1347.2; Thu, 18 Oct 2018 11:02:12 +0200 Received: from SFHDAG6NODE2.st.com ([fe80::a56f:c186:bab7:13d6]) by SFHDAG6NODE2.st.com ([fe80::a56f:c186:bab7:13d6%20]) with mapi id 15.00.1347.000; Thu, 18 Oct 2018 11:02:12 +0200 From: Pascal PAILLET-LME To: "dmitry.torokhov@gmail.com" , "robh+dt@kernel.org" , "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" CC: Pascal PAILLET-LME Subject: [PATCH v4 3/8] dt-bindings: regulator: document stpmic1 pmic regulators Thread-Topic: [PATCH v4 3/8] dt-bindings: regulator: document stpmic1 pmic regulators Thread-Index: AQHUZsFBpqmNKnidOU+Y0N/W/DD/lA== Date: Thu, 18 Oct 2018 09:02:12 +0000 Message-ID: <1539853324-29051-4-git-send-email-p.paillet@st.com> References: <1539853324-29051-1-git-send-email-p.paillet@st.com> In-Reply-To: <1539853324-29051-1-git-send-email-p.paillet@st.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ms-exchange-messagesentrepresentingtype: 1 x-ms-exchange-transport-fromentityheader: Hosted x-originating-ip: [10.75.127.50] Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 8BIT MIME-Version: 1.0 X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:,, definitions=2018-10-17_15:,, signatures=0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 Reviewed-by: Rob Herring --- changes in v4: nothing .../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. +- 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 +- 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>; + + 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