Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp567807yba; Wed, 15 May 2019 06:19:43 -0700 (PDT) X-Google-Smtp-Source: APXvYqyJt98XWmg1c85/Fo3+AURSCVLCeP9zA6dLk4NcagvS3mHBt/rUdsix3C7EnYhP3BtaCyJl X-Received: by 2002:a17:902:bc83:: with SMTP id bb3mr41324796plb.303.1557926382963; Wed, 15 May 2019 06:19:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1557926382; cv=none; d=google.com; s=arc-20160816; b=HkPGAGChZdSCTnCyEvjv52t4dL1SWX4ihD2yEk7nMLqp5bRyqghqTLOdAB31VjDedI NdtwaUb/azKhycyd5a/auDLWWgBJ/1JUf3DPCQ3ytXf+7ARgVkpuCXMsrxw24otbqBj5 JBRy6PSUZYw57CfHbkJEGvFWjpYYelzDNhzwCBp2AHuBTJ2L+eoRQa2hBubLzEPyABtS pCg7FeREaczDD9KV0/0de9SaNWlsqCQn0doWMy3tTryye0mdL6J9mF6FPNdYLD7tcXTA +PMDP7ECbkffRz5tG3eoWFT8WDqpq/2ZyjP1rN9K/IRbbyfAKdTMjQfa3CGqO1eQ5MxE PlYQ== 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=4AbJuL7DLbMiNCZxiGphbSwxqBE0yrF1YFxApDtpYA0=; b=l+Pxb8ppACWxg+2ApBk9lzEwlGxpxugn9XCgacAs7YSFu7YO5MVBszyWF7IKIEFQsB CdeF0nd8eu/RbV5ejvbKfQChembwYHc7dhf+6PESzlctCsJF67BQLLRmsGe5AgUBjiq5 RpM68wYLH4VkMEdDvWnxT9oiSahlNJUKzZVgR926QEysKw1+D5Stp4AXAd4av3oFsMjB VvfpbbTDpDOzZ+rSNt77EvYBjWSof+O/mie9O/r/11N+IbOYgt037g7mrzmJbggA2H/3 YWUBevl5P+OY0SS4uxH0EbN+0/t/2DY6c0DKwMRcg0xyKmuAh3sZO5KbpQmH/qP4+VCq OCIA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@baylibre-com.20150623.gappssmtp.com header.s=20150623 header.b=ms73o6fV; 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 p3si1795138plo.170.2019.05.15.06.19.27; Wed, 15 May 2019 06:19:42 -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=ms73o6fV; 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 S1727567AbfEONRt (ORCPT + 99 others); Wed, 15 May 2019 09:17:49 -0400 Received: from mail-wr1-f68.google.com ([209.85.221.68]:40340 "EHLO mail-wr1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727057AbfEONRs (ORCPT ); Wed, 15 May 2019 09:17:48 -0400 Received: by mail-wr1-f68.google.com with SMTP id h4so2645708wre.7 for ; Wed, 15 May 2019 06:17:46 -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=4AbJuL7DLbMiNCZxiGphbSwxqBE0yrF1YFxApDtpYA0=; b=ms73o6fVLPnyx9CkWon2rcLXpP5g1dufK3e/6yabC41eY2N64LQniNetQH4yW/gntE rbAkMTKVQinm7jyoyY/FbevyO3OwfUhISkJVRkRkL3AfJQVFUui2QeX61eVTKqpBOJ4+ RYCoZhVk12MMxJvxXUnpBWJKLvExFHH+YcDQVQ8tt8nnamVeaVYl4u9u4JG36bWziIao sToM19dSSs+201GkNqg/vt4nQg7g+q5Y30ITFFQ/4DiI2d86E9HHdymmVBnPRr2oSKIA VvB8lEel3X0qK5hWLgiJ7JoNcx5xZHh/u0LJWqxRDNvu4fQC3qfw08bZyScpVilPYGAd g1Uw== 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=4AbJuL7DLbMiNCZxiGphbSwxqBE0yrF1YFxApDtpYA0=; b=n0bX+3gTuhm1Psw2no+UgeBVklmz2w7rPuQPFbTkq7uGzu3t/Vm9T5+unmKFpLNHZr hdIrpXXN8UgzyhtLjZPe8Q3JAmPZNevz3E8Tv+8CPqm+Q69HmFDYd4ZWNPYOMguZTnoE brqtUoable2CoddClHx1BIf8jWFXQv/w2pp1XC/btugqpWoBe6xgck2udo9xHfgLjGFh 9k9MRY0QNB11Mfbhkv2ZR6Jabe6k9Qg9vkz7zog+kFdfmqLV44IYVG9JAWE94E5xb2tz 7JM2KcuZbnF5egVppBU+tuAEEiENAKBh/FBa6UhDoAv+lMbRaifBLfcvnzd7c0iC+Kn1 COfA== X-Gm-Message-State: APjAAAWPMNsxfX9ZEamWG23O1Rmvn/8WYd4F62ZsAw6jNrf/CAwieFx3 90rQAk5FttZdKxMS1+LjmK93+A== X-Received: by 2002:adf:f349:: with SMTP id e9mr17254329wrp.133.1557926265400; Wed, 15 May 2019 06:17:45 -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 f10sm3268583wrg.24.2019.05.15.06.17.44 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Wed, 15 May 2019 06:17:44 -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 , Rob Herring Subject: [PATCH v3 1/5] dt-bindings: regulator: add support for MT6392 Date: Wed, 15 May 2019 15:17:37 +0200 Message-Id: <20190515131741.17294-2-fparent@baylibre.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190515131741.17294-1-fparent@baylibre.com> References: <20190515131741.17294-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 Reviewed-by: Rob Herring --- v3: * No change 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..abf4c7dcad8b --- /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