Received: by 2002:a05:6a10:6744:0:0:0:0 with SMTP id w4csp1509248pxu; Sat, 24 Oct 2020 13:06:47 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy2yxO4lBElhcfN6WvE9NmnBvdz+6gDG2VC6GJCI/7dxNu+QuOu/aMi7L2vlVgr45MGMEI9 X-Received: by 2002:a17:906:30c8:: with SMTP id b8mr8760135ejb.77.1603570007508; Sat, 24 Oct 2020 13:06:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1603570007; cv=none; d=google.com; s=arc-20160816; b=t7yGrHpd34i4INvXAv0t18BMU2HeuiUQkUDXeyBbauElhSx00lafSNsDSyYCicY5ey XuWI3yl9lE3JzwRWnDBekhNAgnpxr5RT2IwCRp+a7y195c0DJHnI1jNtA53SYM2aT91I R2fPWCnsxxSl+aXT+ry0F+3TrQoo0B+0p8x8sQC4d9OYbI9f6/uukCQo7xS4e96ep9xU LumbFV3wPPr+I3Kdztcfij/6Wn0fzSIW27VhI0e4jnX73JFdV1hute3y/A2ZOBGEFx8F OxkkV4U+P5YgAyOeogDIapITL1ZyMvAjEOiQiJldruF0aCVAdFK8dwp+Ah4UNO6RHYMv wDPw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=ykbWFrF4DLoLSFHlYjKaVhZVh2Azih5ulLgw1xBdGTk=; b=X9vGVruvAYzq4opnYkI5WzYWnKJy1CqyFEyBJC4Os/pg3w7Qwk3GPuRS1F1NAZkinB z19wzlmwpKD7LV7b7xjMszhjNL+n9sr2UasHqA4FwQ81Ht3GNOlanQjVQuCOldBP1oAB PIw5O6yYddWQDw4ZqZkvOqBRNbsWt9B7CPhIJaFuks1fKwCMXkWEbzHtLbECMB9Kps1e 7NHApMCCXHe9yb0bX+bMlL4fV65iDkf23Q+6lL1nnBtZh43+2c+yTLp/4CisBxuuzG7a 9QdoB4xuK9gjVM2I5syvVar5kgW/1vmaYP+rO43Fyv6z1GUJD87pwd18/NAQ1XwAg2mf RMtQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@baylibre-com.20150623.gappssmtp.com header.s=20150623 header.b="f/th5z/N"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id ay17si4495815ejb.281.2020.10.24.13.06.24; Sat, 24 Oct 2020 13:06:47 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@baylibre-com.20150623.gappssmtp.com header.s=20150623 header.b="f/th5z/N"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1764088AbgJXUDL (ORCPT + 99 others); Sat, 24 Oct 2020 16:03:11 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47920 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1764079AbgJXUDK (ORCPT ); Sat, 24 Oct 2020 16:03:10 -0400 Received: from mail-wm1-x344.google.com (mail-wm1-x344.google.com [IPv6:2a00:1450:4864:20::344]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E63F9C0613D2 for ; Sat, 24 Oct 2020 13:03:09 -0700 (PDT) Received: by mail-wm1-x344.google.com with SMTP id c194so6203420wme.2 for ; Sat, 24 Oct 2020 13:03:09 -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:mime-version :content-transfer-encoding; bh=ykbWFrF4DLoLSFHlYjKaVhZVh2Azih5ulLgw1xBdGTk=; b=f/th5z/NtzzTdGYC5io7O8vnGVy/XLnUYRkmFTzv+dpVZmij+8dq6P1BafNn1mlnml pea9J9jay9+663rTHY2ftfK8JIYN4EftFobuXdr9gymCSNYXqiEiu33Epd1GMsVykS/z fBg7yhRdFOjX7BaQs1hpIjhcTD5T8NDbVqC2f71KfhaJ0n+4JL/o60XC73o6y+wnX2HS LQYl181Isk9Jj4iiJqaclEJHE6A55DdJDsunBm7CWGOw3pkbbx0Wq4O+21l+1k5IOPix Sylim7g+yHlGGNX22vYT8YoDSpQejDd8iPn05n5mJKWbbwTCiqmup0+kTUwizJf0Wzef NMMg== 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:mime-version :content-transfer-encoding; bh=ykbWFrF4DLoLSFHlYjKaVhZVh2Azih5ulLgw1xBdGTk=; b=HYhUk8uuwgNC9R2ij1ESvfX+iNlXtfqECWJJWbog2Wb6H6hh+zW4NynC+H2N0u6FoJ dwl7wpSiLedklt6KzD4qp6ueAU2O1eyfPSjp6jAUL8YL6qKpuqMgSExmIFkVnJJdsA2s ZmCnl3gHT8Ha8HakCMYd+x80FxT/PFPOgyH0Hu9pY7YHeDlNDA4OxJ2l+W4FFcNTfEYw wGPDyB/aYRzXwuipJGZKnMJN9ajcahJPTlB3vGUacL/VPgUh6jxzbK6N4p1LPi6MCKCe 6WzSEpzBMqjQOi3Lf9im2rhtYTE2bkrJKakgJzWVUyu8i3pBFOFMeo5VMJY+Whv+j9Xv 3itw== X-Gm-Message-State: AOAM533D3TzhvjcsBkdX+A8yycETxThCxqFSnaiateyrlxtZqTgjD2j0 E/ZFpr3grHblvD4o0kyhngJSgA== X-Received: by 2002:a1c:c912:: with SMTP id f18mr8535466wmb.150.1603569788433; Sat, 24 Oct 2020 13:03:08 -0700 (PDT) Received: from localhost.localdomain (34.169.185.81.rev.sfr.net. [81.185.169.34]) by smtp.gmail.com with ESMTPSA id j7sm14106305wrn.81.2020.10.24.13.03.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 24 Oct 2020 13:03:07 -0700 (PDT) From: Fabien Parent To: linux-mediatek@lists.infradead.org, linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Cc: matthias.bgg@gmail.com, robh+dt@kernel.org, broonie@kernel.org, lgirdwood@gmail.com, Fabien Parent , Rob Herring Subject: [PATCH v5 1/2] dt-bindings: regulator: add support for MT6392 Date: Sat, 24 Oct 2020 22:03:03 +0200 Message-Id: <20201024200304.1427864-1-fparent@baylibre.com> X-Mailer: git-send-email 2.28.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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 --- v5: * No change v4: * No change 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..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.28.0