Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp625038yba; Wed, 15 May 2019 07:15:54 -0700 (PDT) X-Google-Smtp-Source: APXvYqzsXJbgVPoRvS0vXt0ZLKP5Orxr6V5Ar1gRepj0NhDCtmLdBM8sJHZhSScVdaQeG9/MXYXH X-Received: by 2002:a17:902:4481:: with SMTP id l1mr30615549pld.121.1557929754788; Wed, 15 May 2019 07:15:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1557929754; cv=none; d=google.com; s=arc-20160816; b=nLfCCq+izp+ixUonV4bNSQf/eO94QYKeeUOdxSKiyoMmzYbJQJm/my6MXh+d/ZeR77 YmVHUFAZjLQERuYzItegXphgw0jhKIfW+5Aiuozjn+ymmNPA25Q3QxcC1D5ne+ChBC5+ Wpha3mfYaH4WOpjqCuxL8BE/nRZWoUszpce61sWVxgzw9j0k52JaBDx/JvPudZfTxQkl e83lhFVkMA55sUobcFnwffszyak6lHvhHvfyQkispwmiAE1JAQIQVkQgSoKEYzg5X6vl S7EUMOWUPj9qhmZl0ry67aXQ7ZShudRhGridtMh1cNlXTeYPtuKfYmIOwYCj+iMYwIz3 XbnQ== 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=3nPwxijYzUSn3tCLVItFDtpETqdKC0544kYngMirnWk=; b=z0bjTV8EW+mEWhlP4VL7Rl2A9VBY29Kllm8wnF5MDUCClnAXx7m2pW/EfLoKW/+6AY xQmu9gFFJr3GCRt2D3SOgs2ISqUxPoss4Tdnij8OoNg0U9A8ZG/fwz6lOEvVR6vaU20A MHUXHMECO/b4g0AjUSq4eH/h+nd6+xL1HkG2/ufd8N2JhEVzJlc85SE+T9/PK8dCUbUx EomCMe+hbxYVAwXnQgmD+uYh0Hduvxd78/az9SuKkP4KbETsYK9gFfRfPBuYNjUpV+Ax rsBGZ8hmxSIB5HP6bdzfAK7lOgoPrBgzPfPAAJs7D/h/ZLJcaljqPmfbZvPCBXfpNtRW 0Bgg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@baylibre-com.20150623.gappssmtp.com header.s=20150623 header.b=QyZ4QdQe; 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 k12si1808199pls.436.2019.05.15.07.15.39; Wed, 15 May 2019 07:15:54 -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=QyZ4QdQe; 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 S1727698AbfEONRx (ORCPT + 99 others); Wed, 15 May 2019 09:17:53 -0400 Received: from mail-wm1-f68.google.com ([209.85.128.68]:35301 "EHLO mail-wm1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726752AbfEONRv (ORCPT ); Wed, 15 May 2019 09:17:51 -0400 Received: by mail-wm1-f68.google.com with SMTP id q15so22747wmj.0 for ; Wed, 15 May 2019 06:17:50 -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=3nPwxijYzUSn3tCLVItFDtpETqdKC0544kYngMirnWk=; b=QyZ4QdQeRN8UlfPr6E+wgj0jrZ2veOsEoLlNkvD4Ofsv4z7K9tqmCbGXsH2Af6j9gY Q4CJK36dKMFXJcCanoleIjcn7agv3DcpjyfVC9iuEDC3thtwZdUITfCqBLcO9uYqoAbU 4zCp/jgyXfxMHE81pg4DrK+06iqgAi9ByLfvvM+nchyzw2m6zvpRIQ2YOq1L+vWb4yEX IknNZ6TnpXCscmPLLIczS2GsTARcvyutLRvHTS0ji6wDuICs0/w6GV5eTjDI/9yyVZRh MD/hxwKa1SBs+lC1pGxY4lLPPbqRQ9Zd9b1rRmO78opmI1gxTHRQ+yzyT/KAtImxbs48 /AcA== 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=3nPwxijYzUSn3tCLVItFDtpETqdKC0544kYngMirnWk=; b=qBmQaFNvAEwf3A0fispvdXa+IkGSl2vTuSPgoMcuF8PddCIbHYbMgZsTo55hH1QC5c +Ud/scxGEiLEotNrCU1O2btWe88AQtxf9A5zqNtZI8BFypt0ZtSUXoK9WilSAAHWoOzp eBLB8qB/5N4+SHHNF6J4gLTV+ZRn+pYnd/f7+s3DFmaK9VRn14dE2SjTJaaoTqKA/ulb oKdztEDOEEPpLwjK+FxzGmQMH9Wol9RNBcG87Z0ukwUQW5HxvxT06z1ubtiqMTIWjuXv qZbTDIFnvHVOL+gDENhMYAqLrM+GcuocJgnc/WZboQeGuwB/OAcMhY7BlwOlEhO0osvA sVAQ== X-Gm-Message-State: APjAAAVnMm+UQj3fr/P2GpW/VXmtBmEc1k5iyPKNoMsk3uiTmltGM3TA EG6mz7BKFTi4PFLTIeL5rAKutA== X-Received: by 2002:a1c:e3c3:: with SMTP id a186mr318808wmh.5.1557926269684; Wed, 15 May 2019 06:17:49 -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.48 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Wed, 15 May 2019 06:17:49 -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 v3 5/5] arm64: dts: mt6392: Add PMIC mt6392 dtsi Date: Wed, 15 May 2019 15:17:41 +0200 Message-Id: <20190515131741.17294-6-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 the regulator nodes for the MT6392 PMIC. Signed-off-by: Fabien Parent --- 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. --- arch/arm64/boot/dts/mediatek/mt6392.dtsi | 208 +++++++++++++++++++++++ 1 file changed, 208 insertions(+) create mode 100644 arch/arm64/boot/dts/mediatek/mt6392.dtsi diff --git a/arch/arm64/boot/dts/mediatek/mt6392.dtsi b/arch/arm64/boot/dts/mediatek/mt6392.dtsi new file mode 100644 index 000000000000..ff2d83026bbb --- /dev/null +++ b/arch/arm64/boot/dts/mediatek/mt6392.dtsi @@ -0,0 +1,208 @@ +// SPDX-License-Identifier: GPL-2.0 +/* + * Copyright (c) 2019 MediaTek Inc. + */ + +&pwrap { + mt6392_pmic: pmic { + compatible = "mediatek,mt6392", "mediatek,mt6323"; + mediatek,system-power-controller; + + regulators { + 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