Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp52368imu; Tue, 27 Nov 2018 08:56:50 -0800 (PST) X-Google-Smtp-Source: AFSGD/XCkassvtx3sqOrrPt5vgkMryJEBIKo0o/lQL13r76+8VvphgJxgxUTLhnIFwkOhMbdZzWI X-Received: by 2002:a63:d949:: with SMTP id e9mr30118276pgj.24.1543337810871; Tue, 27 Nov 2018 08:56:50 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1543337810; cv=none; d=google.com; s=arc-20160816; b=ClsR/kvhJHCXFdP3Gr0vL2oyIS4/WZe9FK8gpGkUhak88XR9Tjkl6nhekTrsGcD5Xb XA2lBuM7eL03WKj2E7beoy7jAEDS7ZhgnI59HFWsSFxnAeoIE8bK9Bg4C+s7hKOcUnMy 1D75PUGUnVg8JWZaCaASgMaDSft4fugV5YbjnP0A8ZoT5stRe8J8xvYrswIIYmA6sJhL jiLQfeoZ0nwAbsEkqBq9qm6TTfSA5bngJxsnaISqXDhIR0ZrDSPnWpajYglsturlJUZ/ tAFhzS3kIuMz7Vcq2VwbfHmXVvzPIZ8n2Z9BRCXfWRT10yRY9noINBqqfbfhkbxn7rGC STxw== 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=PryyhypB0s2dTTXHwK560QzOel7I7R+8mcmCpHw7A5U=; b=wPmrY69M1ugZHbJYmppom5thC38YszWUZ1is8FPoBoSgVQSKcF3GDVXd5qOB6tk6e5 NxAYZf5qQjaIUJEHZvmulDKulZ5zrVL/mqOiuclZf7pu+BaU/l38yiXw0y9K44GYGt4A oE+NEDH5SeiywWxtvZdDBsGfdzu/sAaVkk7nxjpHZiJ/T4fP0u/sv7+whTDvLCw+56j3 ulZwiwmG5iUvOqYwiPLYujvTLSqgRqQ5VvXC3T730kms+JJjs/00D633r+GV9HOvJdBc l4FFapLsKiSh2RHFlMV7ddiKwILwP3jIfOtgueg4gFmwOG8dapX2uZbXxcOWdlMlK2JD e+NA== 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 q4si4747783pfq.56.2018.11.27.08.56.32; Tue, 27 Nov 2018 08:56:50 -0800 (PST) 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 S1731378AbeK1DvN convert rfc822-to-8bit (ORCPT + 99 others); Tue, 27 Nov 2018 22:51:13 -0500 Received: from mx07-00178001.pphosted.com ([62.209.51.94]:63810 "EHLO mx07-00178001.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726492AbeK1DvN (ORCPT ); Tue, 27 Nov 2018 22:51:13 -0500 Received: from pps.filterd (m0046668.ppops.net [127.0.0.1]) by mx07-.pphosted.com (8.16.0.21/8.16.0.21) with SMTP id wARGmpV9029029; Tue, 27 Nov 2018 17:52:16 +0100 Received: from beta.dmz-eu.st.com (beta.dmz-eu.st.com [164.129.1.35]) by mx07-00178001.pphosted.com with ESMTP id 2nxw02hg0r-1 (version=TLSv1 cipher=ECDHE-RSA-AES256-SHA bits=256 verify=NOT); Tue, 27 Nov 2018 17:52:16 +0100 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 05EDC34A; Tue, 27 Nov 2018 17:51:48 +0000 (GMT) Received: from Webmail-eu.st.com (sfhdag6node3.st.com [10.75.127.18]) by zeta.dmz-eu.st.com (STMicroelectronics) with ESMTP id BB2C2533F; Tue, 27 Nov 2018 16:52:15 +0000 (GMT) Received: from SFHDAG6NODE2.st.com (10.75.127.17) by SFHDAG6NODE3.st.com (10.75.127.18) with Microsoft SMTP Server (TLS) id 15.0.1347.2; Tue, 27 Nov 2018 17:52:15 +0100 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; Tue, 27 Nov 2018 17:52:15 +0100 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" , "axel.lin@ingics.com" CC: Pascal PAILLET-LME Subject: [PATCH v6 3/8] dt-bindings: regulator: document stpmic1 pmic regulators Thread-Topic: [PATCH v6 3/8] dt-bindings: regulator: document stpmic1 pmic regulators Thread-Index: AQHUhnGMXziu4rqWSUmQ9+/ALvBZeg== Date: Tue, 27 Nov 2018 16:52:15 +0000 Message-ID: <1543337529-22301-4-git-send-email-p.paillet@st.com> References: <1543337529-22301-1-git-send-email-p.paillet@st.com> In-Reply-To: <1543337529-22301-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.49] 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-11-27_14:,, signatures=0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 v6: * remove interrupt parent .../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,66 @@ +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. +- 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