Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp5528061yba; Mon, 13 May 2019 12:27:05 -0700 (PDT) X-Google-Smtp-Source: APXvYqz8dQ+2n4/NHo+0T8H/KUpLRNQVOTvzyhv/vPaoDfsHiY7xupz0iZ5IWVFyJeajdgPWqraX X-Received: by 2002:a65:63d5:: with SMTP id n21mr33599729pgv.330.1557775625519; Mon, 13 May 2019 12:27:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1557775625; cv=none; d=google.com; s=arc-20160816; b=fUjMOTInOE11GipLfw8AEh34lWRbpFjTTD8Rv9goLtjVIbtzkMDXmrCLM1gcaqnJOa cVoGXHF6Es0o0uOk+yqQ8KyECp3EuAkmFnShAu8ZfpUkP4F+QGsuUierIpPLClECIgCK kRKtH7Uur4Kh4yPPMhOC8IaosO3YcEs2x52EoxauE4QmzMb7ss9SttNWIu1Mt9Hi66gl LFvYoL9gK2edbP8NnSI2SZJe+sdCoixlWrBzOHaOskBPTGIpnf7XfFWgMUa0tyxnQifc jO2v0Z/qEuBjt1gckSAffMskqoUKMImgLilGIkDB1FScRT+/afTprJzcDxHRdp9ScXFe gxtA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=9T1/4HKSA0NkK81OThOJXB5oP2sP9+83bG60ubpcyoY=; b=h4tDtHtzk+UHhEhTmRxVr6oVqeK5SBMqsab78thmJ0mxJGo3O3KjtsBUmJSJ6KnvPY oBbMuRteKhBsEiUn/R8R5b6pUs0pUUyBVIgqgxlggCHZXTrkLWiVkXtGX+f/Cl24k1Ph boYGBxjVxWQbm1mGugfEPkeOXMU2Hl9UPZVBPFiZeiBl7vRc00dXSokNfepRf8sZVLD/ e/helPVdVqKEjVaw70SddDl1hMdArleCD6HNK9kRV5Ro+BgJs+PITpxlqTzbLrmGNc9E qzTXyayEd3ae3WY2PDuoonTe41usaA9bt6ot0Y4ArbtnQMTnjcRK56jqemVyA+DIsHO1 5/QQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@baylibre-com.20150623.gappssmtp.com header.s=20150623 header.b=A16m6zAy; 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 v11si17599882plg.381.2019.05.13.12.26.47; Mon, 13 May 2019 12:27:05 -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; dkim=pass header.i=@baylibre-com.20150623.gappssmtp.com header.s=20150623 header.b=A16m6zAy; 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 S1731543AbfEMQKg (ORCPT + 99 others); Mon, 13 May 2019 12:10:36 -0400 Received: from mail-wm1-f67.google.com ([209.85.128.67]:39520 "EHLO mail-wm1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731517AbfEMQKe (ORCPT ); Mon, 13 May 2019 12:10:34 -0400 Received: by mail-wm1-f67.google.com with SMTP id n25so14224680wmk.4 for ; Mon, 13 May 2019 09:10:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=9T1/4HKSA0NkK81OThOJXB5oP2sP9+83bG60ubpcyoY=; b=A16m6zAywCB7IenvcKGu6S9Iw+7EoquUkBG+/LlWGZ1uw0hbH24gnIB+OIjjodrDrl 7p+xPvhKlK5rBUBsdKH/a10XroxKJoOtq+eXky7B3O/ndCh8pQDyF3Uko3zDkhaqjTfe J2jwPYQuJxQl+7rlLGTTp7EYvt7tgxeOITa0iQySaad3uNTcmj89WASace/bJLdaL13f UopTXIP4vQm/CG6791O8bLjL34Yrm5PuW18w/tqwbPiCEsLrz1tjmMmslj82uyxEb+bX bic7PIQPX32IaoIdVGJLbjDaH4KuLkGsnehClGfJFIvfyZtQ0VtwCJ0uXXvqHPgOFf2E EJcQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=9T1/4HKSA0NkK81OThOJXB5oP2sP9+83bG60ubpcyoY=; b=Pe9k4CGEdT+A3T0KI/SBy6hIqMN8lTFNrI7r3ShcjBm1g80oUyDjGU19u2MKHv5o3+ Lms7VIJZFnnEHoo1TmY8W5Nv8AjHoeJnwPKDIThteCwwqlAMVf+uWjeWSwVn+a/o+0KD 5TST8sntBgGdPw2UCrfWrmXsTEujggyGNSogGvTDMpU6vyH/C5pRp5fgDNRvj3D9pcdA mgkUolx5Z9H8YznlEe49by2pTWycRQNJ4fKErNVim+rNoyG6mT6Ud+yRbiaSkyFiOWMl SvK9+VQlVox0+92i2Xsxl/4KwCuVAoTftMaTHJJGtXG0PoWDCLQDzi+kLgQubzj8FCIj i84A== X-Gm-Message-State: APjAAAWrwd6EmFxjqKRqqUDqIIagCEd1LwxmWzhJqmFZ2hXsDDq/WjRZ I6eFu8hUaoZmWMSzsDNKUdEsdQ== X-Received: by 2002:a1c:be19:: with SMTP id o25mr7372825wmf.138.1557763832168; Mon, 13 May 2019 09:10:32 -0700 (PDT) Received: from localhost.localdomain (aputeaux-684-1-11-31.w90-86.abo.wanadoo.fr. [90.86.214.31]) by smtp.gmail.com with ESMTPSA id n2sm24439089wra.89.2019.05.13.09.10.30 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 13 May 2019 09:10:31 -0700 (PDT) From: Fabien Parent To: robh+dt@kernel.org, mark.rutland@arm.com, matthias.bgg@gmail.com Cc: devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, linux-kernel@vger.kernel.org, Fabien Parent Subject: [PATCH v2 1/5] dt-bindings: regulator: add support for MT6392 Date: Mon, 13 May 2019 18:10:22 +0200 Message-Id: <20190513161026.31308-2-fparent@baylibre.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190513161026.31308-1-fparent@baylibre.com> References: <20190513161026.31308-1-fparent@baylibre.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add binding documentation of the regulator for MT6392 SoCs. Signed-off-by: Fabien Parent --- v2: * Use 'pmic' as node name for the pmic. * Use 'regulators' as node name for the regulators * use dash instead of underscore for regulator's node names. --- .../bindings/regulator/mt6392-regulator.txt | 220 ++++++++++++++++++ 1 file changed, 220 insertions(+) create mode 100644 Documentation/devicetree/bindings/regulator/mt6392-regulator.txt diff --git a/Documentation/devicetree/bindings/regulator/mt6392-regulator.txt b/Documentation/devicetree/bindings/regulator/mt6392-regulator.txt new file mode 100644 index 000000000000..d03c0707fabc --- /dev/null +++ b/Documentation/devicetree/bindings/regulator/mt6392-regulator.txt @@ -0,0 +1,220 @@ +Mediatek MT6392 Regulator + +Required properties: +- compatible: "mediatek,mt6392-regulator" +- mt6392regulator: List of regulators provided by this controller. It is named + according to its regulator type, buck_ and ldo_. + The definition for each of these nodes is defined using the standard binding + for regulators at Documentation/devicetree/bindings/regulator/regulator.txt. + +The valid names for regulators are:: +BUCK: + buck_vproc, buck_vsys, buck_vcore +LDO: + ldo_vxo22, ldo_vaud22, ldo_vcama, ldo_vaud28, ldo_vadc18, ldo_vcn35, + ldo_vio28. ldo_vusb, ldo_vmc, ldo_vmch, ldo_vemc3v3, ldo_vgp1, ldo_vgp2, + ldo_vcn18, ldo_vcamaf, ldo_vm, ldo_vio18, ldo_vcamd, ldo_vcamio, ldo_vm25, + ldo_vefuse + +Example: + pmic { + compatible = "mediatek,mt6392", "mediatek,mt6323"; + mediatek,system-power-controller; + + regulator { + compatible = "mediatek,mt6392-regulator"; + + mt6392_vproc_reg: buck-vproc { + regulator-name = "buck_vproc"; + regulator-min-microvolt = < 700000>; + regulator-max-microvolt = <1350000>; + regulator-ramp-delay = <12500>; + regulator-always-on; + regulator-boot-on; + }; + + mt6392_vsys_reg: buck-vsys { + regulator-name = "buck_vsys"; + regulator-min-microvolt = <1400000>; + regulator-max-microvolt = <2987500>; + regulator-ramp-delay = <25000>; + regulator-always-on; + regulator-boot-on; + }; + + mt6392_vcore_reg: buck-vcore { + regulator-name = "buck_vcore"; + regulator-min-microvolt = < 700000>; + regulator-max-microvolt = <1350000>; + regulator-ramp-delay = <12500>; + regulator-always-on; + regulator-boot-on; + }; + + mt6392_vxo22_reg: ldo-vxo22 { + regulator-name = "ldo_vxo22"; + regulator-min-microvolt = <2200000>; + regulator-max-microvolt = <2200000>; + regulator-enable-ramp-delay = <110>; + regulator-always-on; + regulator-boot-on; + }; + + mt6392_vaud22_reg: ldo-vaud22 { + regulator-name = "ldo_vaud22"; + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <2200000>; + regulator-enable-ramp-delay = <264>; + regulator-always-on; + regulator-boot-on; + }; + + mt6392_vcama_reg: ldo-vcama { + regulator-name = "ldo_vcama"; + regulator-min-microvolt = <2800000>; + regulator-max-microvolt = <2800000>; + regulator-enable-ramp-delay = <264>; + }; + + mt6392_vaud28_reg: ldo-vaud28 { + regulator-name = "ldo_vaud28"; + regulator-min-microvolt = <2800000>; + regulator-max-microvolt = <2800000>; + regulator-enable-ramp-delay = <264>; + regulator-always-on; + regulator-boot-on; + }; + + mt6392_vadc18_reg: ldo-vadc18 { + regulator-name = "ldo_vadc18"; + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <1800000>; + regulator-enable-ramp-delay = <264>; + regulator-always-on; + regulator-boot-on; + }; + + mt6392_vcn35_reg: ldo-vcn35 { + regulator-name = "ldo_vcn35"; + regulator-min-microvolt = <3300000>; + regulator-max-microvolt = <3600000>; + regulator-enable-ramp-delay = <264>; + }; + + mt6392_vio28_reg: ldo-vio28 { + regulator-name = "ldo_vio28"; + regulator-min-microvolt = <2800000>; + regulator-max-microvolt = <2800000>; + regulator-enable-ramp-delay = <264>; + regulator-always-on; + regulator-boot-on; + }; + + mt6392_vusb_reg: ldo-vusb { + regulator-name = "ldo_vusb"; + regulator-min-microvolt = <3300000>; + regulator-max-microvolt = <3300000>; + regulator-enable-ramp-delay = <264>; + regulator-always-on; + regulator-boot-on; + }; + + mt6392_vmc_reg: ldo-vmc { + regulator-name = "ldo_vmc"; + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <3300000>; + regulator-enable-ramp-delay = <264>; + regulator-boot-on; + }; + + mt6392_vmch_reg: ldo-vmch { + regulator-name = "ldo_vmch"; + regulator-min-microvolt = <3000000>; + regulator-max-microvolt = <3300000>; + regulator-enable-ramp-delay = <264>; + regulator-boot-on; + }; + + mt6392_vemc3v3_reg: ldo-vemc3v3 { + regulator-name = "ldo_vemc3v3"; + regulator-min-microvolt = <3000000>; + regulator-max-microvolt = <3300000>; + regulator-enable-ramp-delay = <264>; + regulator-boot-on; + }; + + mt6392_vgp1_reg: ldo-vgp1 { + regulator-name = "ldo_vgp1"; + regulator-min-microvolt = <1200000>; + regulator-max-microvolt = <3300000>; + regulator-enable-ramp-delay = <264>; + }; + + mt6392_vgp2_reg: ldo-vgp2 { + regulator-name = "ldo_vgp2"; + regulator-min-microvolt = <1200000>; + regulator-max-microvolt = <3300000>; + regulator-enable-ramp-delay = <264>; + }; + + mt6392_vcn18_reg: ldo-vcn18 { + regulator-name = "ldo_vcn18"; + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <1800000>; + regulator-enable-ramp-delay = <264>; + }; + + mt6392_vcamaf_reg: ldo-vcamaf { + regulator-name = "ldo_vcamaf"; + regulator-min-microvolt = <1200000>; + regulator-max-microvolt = <3300000>; + regulator-enable-ramp-delay = <264>; + }; + + mt6392_vm_reg: ldo-vm { + regulator-name = "ldo_vm"; + regulator-min-microvolt = <1240000>; + regulator-max-microvolt = <1390000>; + regulator-enable-ramp-delay = <264>; + regulator-always-on; + regulator-boot-on; + }; + + mt6392_vio18_reg: ldo-vio18 { + regulator-name = "ldo_vio18"; + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <1800000>; + regulator-enable-ramp-delay = <264>; + regulator-always-on; + regulator-boot-on; + }; + + mt6392_vcamd_reg: ldo-vcamd { + regulator-name = "ldo_vcamd"; + regulator-min-microvolt = <1200000>; + regulator-max-microvolt = <1800000>; + regulator-enable-ramp-delay = <264>; + }; + + mt6392_vcamio_reg: ldo-vcamio { + regulator-name = "ldo_vcamio"; + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <1800000>; + regulator-enable-ramp-delay = <264>; + }; + + mt6392_vm25_reg: ldo-vm25 { + regulator-name = "ldo_vm25"; + regulator-min-microvolt = <2500000>; + regulator-max-microvolt = <2500000>; + regulator-enable-ramp-delay = <264>; + }; + + mt6392_vefuse_reg: ldo-vefuse { + regulator-name = "ldo_vefuse"; + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <2000000>; + regulator-enable-ramp-delay = <264>; + }; + }; + }; -- 2.20.1