From patchwork Fri Oct 18 09:42:34 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Albert_Jakie=C5=82a?= X-Patchwork-Id: 13841478 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 47D19D2FFE1 for ; Fri, 18 Oct 2024 09:44:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Transfer-Encoding: Content-Type:Cc:To:From:Subject:Message-ID:Mime-Version:Date:Reply-To: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Owner; bh=ZLLeXqOR+j4J5K80kKtmagY5cg9UQK6bpjzIEEsrbRk=; b=se71N2OnRjcqnoiIRXHpCSOfVO ZLniImNVZxLggb1ErGKaqGHhRAF0jirHs2LN3SswdND2TkwlPMqe/sAGX646Zn0B5cUtjggqI0kRT Hn76rmdym7n63NWE73zeUNcDGN22ynoCXRR4tbHcGgMwUcFpqgFZbHY25g3UpnArD9djdPTFJHizr MoRgyXb1Bvd6c5hhSvbBsk7Pn6iyZyEmKGj555szELh+MA6qpML3BceLt+PZLiQLIvhuUtOFpxuDP R3IgwzQZ4GVRNAIxjxV05xy/cjqq2h6xEAA/vgZINHyaU15l5aEt36kryNgrnKXV9zdkLqZ96m1TR tNiWfAqg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1t1jXD-00000000EWY-3EV1; Fri, 18 Oct 2024 09:44:39 +0000 Received: from mail-yb1-xb49.google.com ([2607:f8b0:4864:20::b49]) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1t1jVW-00000000E46-2f2R for linux-arm-kernel@lists.infradead.org; Fri, 18 Oct 2024 09:42:55 +0000 Received: by mail-yb1-xb49.google.com with SMTP id 3f1490d57ef6-e293150c2c6so4118921276.1 for ; Fri, 18 Oct 2024 02:42:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1729244572; x=1729849372; darn=lists.infradead.org; h=content-transfer-encoding:cc:to:from:subject:message-id :mime-version:date:from:to:cc:subject:date:message-id:reply-to; bh=ZLLeXqOR+j4J5K80kKtmagY5cg9UQK6bpjzIEEsrbRk=; b=U7SCxtFVxqUNgECwmgCYF1Q1J2y/NqQ1Rvw6TbgH1N+pIrM7i1N16gRm91aFHYpF5s YYQvV+KIS6LqH+JD/ZU6KX2wv8idi8wCaT8dezKSmCfmW/1x/ZviDUnHJVnQrGpQeZPd XLZ7fGWhjtr6Tx1WtjvWxc5K0W3WvIntsvKli976/zBz4LhNqoi9M81qTkpMhoZUOGdV 1R3EYMr4HKAxSQ+5MLkYwZsKdpuuUe55EL5xAEO2fWE9LAa7LysAxSBkuzH01ezs9AW5 Dz/hnf9eY8Ubwoj16SyGCfslRtL8EtNoZKPLSuy4hTxr98FXoGaAMD8PZ5VCfzu/daaO pykQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1729244572; x=1729849372; h=content-transfer-encoding:cc:to:from:subject:message-id :mime-version:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=ZLLeXqOR+j4J5K80kKtmagY5cg9UQK6bpjzIEEsrbRk=; b=hrLRvJk9FGyI8f0oQvefqMiwEllAIWw9ePzjlZsngdbLuGAar2CfEphaZSNexOtviN Xt+TREeUJYYEt8LfweI9OO9PX4PZvS6MZJZ9BIbYDu6fQMRTHEitHscKrjdfCuYUWo9Q 6frMCwHxU+jgXFQghPzPhHR/XbiabyR/OeQtcXL8RbpaBj0C3Fbsa6ToeZd3habwV4tJ yhfBji73EAz0bfPze9fMod/IAPGBaZSVhxNhIHTgGxReOxWfywj4sd8SuzKrzc90lleo YZLAJPV6A3755x/EQuXjMolxGfABYAzE6z0PoVS5L+f1lF3Ywo5K69CUMZAcahGsvgA0 RvCA== X-Forwarded-Encrypted: i=1; AJvYcCUelC/UgvSlg8WgoxYyFm3yZkCU1LpwRycyzmLNBYJbJ++f/Y6urSiwZr7OKkh+fbRSjyKBSeEtG9AdX2KLurFI@lists.infradead.org X-Gm-Message-State: AOJu0YznsPQjmWPqr+5k0gJwQVcG+ChNLO9zpo6GTz+ga6ahMUMf6zd5 TH4iKg8rfCisGGBJ8YslDphwG3aqgZjw4oAkKfPOzdvImJxF3lgrAmPMpDcKnTMVBGHvNqMM7v9 Okbq7GA== X-Google-Smtp-Source: AGHT+IGSb0cw0pG+y/p+bObtKjZ2/Bbc3rekx20QPwcvKWAaCsQSzG1nltOqjouiHxq2r34MIkLGayvZUvNB X-Received: from malysz.c.googlers.com ([fda3:e722:ac3:cc00:cb:de80:ac1c:6aa9]) (user=jakiela job=sendgmr) by 2002:a5b:702:0:b0:e0e:8b26:484e with SMTP id 3f1490d57ef6-e2bb1699b0fmr1108276.8.1729244572306; Fri, 18 Oct 2024 02:42:52 -0700 (PDT) Date: Fri, 18 Oct 2024 09:42:34 +0000 Mime-Version: 1.0 X-Mailer: git-send-email 2.47.0.rc1.288.g06298d1525-goog Message-ID: <20241018094234.2633366-1-jakiela@google.com> Subject: [PATCH] arm64: dts: mt8186: Update regulators voltages From: " =?utf-8?q?Albert_Jakie=C5=82a?= " To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Matthias Brugger , AngeloGioacchino Del Regno Cc: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, " =?utf-8?q?Albert_Jakie=C5=82a?= " X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20241018_024254_740905_988DBB25 X-CRM114-Status: GOOD ( 11.00 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Update minimum and maximum voltages and add missing regulators. Signed-off-by: Albert Jakieła --- .../boot/dts/mediatek/mt8186-corsola.dtsi | 107 +++++++++++------- 1 file changed, 63 insertions(+), 44 deletions(-) diff --git a/arch/arm64/boot/dts/mediatek/mt8186-corsola.dtsi b/arch/arm64/boot/dts/mediatek/mt8186-corsola.dtsi index 682c6ad2574d..62158eac45d0 100644 --- a/arch/arm64/boot/dts/mediatek/mt8186-corsola.dtsi +++ b/arch/arm64/boot/dts/mediatek/mt8186-corsola.dtsi @@ -1302,8 +1302,8 @@ mt6366_regulators: regulators { vcore { regulator-name = "pp0750_dvdd_core"; - regulator-min-microvolt = <550000>; - regulator-max-microvolt = <800000>; + regulator-min-microvolt = <500000>; + regulator-max-microvolt = <1293750>; regulator-ramp-delay = <6250>; regulator-enable-ramp-delay = <200>; regulator-allowed-modes = ; - regulator-max-microvolt = <1125000>; + regulator-min-microvolt = <500000>; + regulator-max-microvolt = <2087500>; regulator-ramp-delay = <12500>; regulator-enable-ramp-delay = <0>; regulator-allowed-modes = ; + regulator-max-microvolt = <3650000>; + regulator-ramp-delay = <50000>; + regulator-enable-ramp-delay = <250>; + regulator-allowed-modes = ; + }; + mt6366_vgpu_reg: vgpu { /* * Called "ppvar_dvdd_gpu" in the schematic. @@ -1330,19 +1340,17 @@ mt6366_vgpu_reg: vgpu { */ regulator-name = "ppvar_dvdd_vgpu"; regulator-min-microvolt = <500000>; - regulator-max-microvolt = <950000>; + regulator-max-microvolt = <1293750>; regulator-ramp-delay = <6250>; regulator-enable-ramp-delay = <200>; regulator-allowed-modes = ; - regulator-coupled-with = <&mt6366_vsram_gpu_reg>; - regulator-coupled-max-spread = <10000>; }; mt6366_vproc11_reg: vproc11 { regulator-name = "ppvar_dvdd_proc_bc_mt6366"; - regulator-min-microvolt = <600000>; - regulator-max-microvolt = <1200000>; + regulator-min-microvolt = <500000>; + regulator-max-microvolt = <1293750>; regulator-ramp-delay = <6250>; regulator-enable-ramp-delay = <200>; regulator-allowed-modes = ; - regulator-max-microvolt = <1200000>; + regulator-min-microvolt = <500000>; + regulator-max-microvolt = <1293750>; regulator-ramp-delay = <6250>; regulator-enable-ramp-delay = <200>; regulator-allowed-modes = ; + regulator-max-microvolt = <1293750>; + regulator-ramp-delay = <6250>; + regulator-enable-ramp-delay = <900>; + regulator-allowed-modes = ; + regulator-always-on; + }; + mt6366_vs1_reg: vs1 { regulator-name = "pp2000_vs1"; - regulator-min-microvolt = <2000000>; - regulator-max-microvolt = <2000000>; + regulator-min-microvolt = <1000000>; + regulator-max-microvolt = <2587500>; regulator-ramp-delay = <12500>; regulator-enable-ramp-delay = <0>; regulator-always-on; @@ -1372,8 +1391,8 @@ mt6366_vs1_reg: vs1 { mt6366_vs2_reg: vs2 { regulator-name = "pp1350_vs2"; - regulator-min-microvolt = <1350000>; - regulator-max-microvolt = <1350000>; + regulator-min-microvolt = <500000>; + regulator-max-microvolt = <2087500>; regulator-ramp-delay = <12500>; regulator-enable-ramp-delay = <0>; regulator-always-on; @@ -1397,7 +1416,7 @@ mt6366_vaud28_reg: vaud28 { mt6366_vaux18_reg: vaux18 { regulator-name = "pp1840_vaux18"; regulator-min-microvolt = <1800000>; - regulator-max-microvolt = <1840000>; + regulator-max-microvolt = <1800000>; regulator-enable-ramp-delay = <270>; }; @@ -1410,8 +1429,8 @@ mt6366_vbif28_reg: vbif28 { mt6366_vcn18_reg: vcn18 { regulator-name = "pp1800_vcn18_x"; - regulator-min-microvolt = <1800000>; - regulator-max-microvolt = <1800000>; + regulator-min-microvolt = <600000>; + regulator-max-microvolt = <2100000>; regulator-enable-ramp-delay = <270>; }; @@ -1424,8 +1443,8 @@ mt6366_vcn28_reg: vcn28 { mt6366_vefuse_reg: vefuse { regulator-name = "pp1800_vefuse"; - regulator-min-microvolt = <1800000>; - regulator-max-microvolt = <1800000>; + regulator-min-microvolt = <1700000>; + regulator-max-microvolt = <1900000>; regulator-enable-ramp-delay = <270>; }; @@ -1438,15 +1457,15 @@ mt6366_vfe28_reg: vfe28 { mt6366_vemc_reg: vemc { regulator-name = "pp3000_vemc"; - regulator-min-microvolt = <3000000>; - regulator-max-microvolt = <3000000>; + regulator-min-microvolt = <2900000>; + regulator-max-microvolt = <3300000>; regulator-enable-ramp-delay = <60>; }; mt6366_vibr_reg: vibr { regulator-name = "pp2800_vibr_x"; - regulator-min-microvolt = <2800000>; - regulator-max-microvolt = <2800000>; + regulator-min-microvolt = <1200000>; + regulator-max-microvolt = <3300000>; regulator-enable-ramp-delay = <60>; }; @@ -1482,30 +1501,30 @@ mt6366_vmc_reg: vmc { mt6366_vmddr_reg: vmddr { regulator-name = "pm0750_emi_vmddr"; - regulator-min-microvolt = <700000>; - regulator-max-microvolt = <750000>; + regulator-min-microvolt = <600000>; + regulator-max-microvolt = <2100000>; regulator-enable-ramp-delay = <325>; regulator-always-on; }; mt6366_vmch_reg: vmch { regulator-name = "pp3000_vmch"; - regulator-min-microvolt = <3000000>; - regulator-max-microvolt = <3000000>; + regulator-min-microvolt = <2900000>; + regulator-max-microvolt = <3300000>; regulator-enable-ramp-delay = <60>; }; mt6366_vcn33_reg: vcn33 { regulator-name = "pp3300_vcn33_x"; regulator-min-microvolt = <3300000>; - regulator-max-microvolt = <3300000>; + regulator-max-microvolt = <3500000>; regulator-enable-ramp-delay = <270>; }; vdram2 { regulator-name = "pp0600_emi_vddq"; regulator-min-microvolt = <600000>; - regulator-max-microvolt = <600000>; + regulator-max-microvolt = <1800000>; regulator-enable-ramp-delay = <3300>; regulator-always-on; }; @@ -1518,6 +1537,7 @@ mt6366_vrf12_reg: vrf12 { }; mt6366_vrf18_reg: vrf18 { + compatible = "regulator-fixed"; regulator-name = "pp1800_vrf18_x"; regulator-min-microvolt = <1800000>; regulator-max-microvolt = <1800000>; @@ -1526,8 +1546,8 @@ mt6366_vrf18_reg: vrf18 { vsim1 { regulator-name = "pp1860_vsim1_x"; - regulator-min-microvolt = <1800000>; - regulator-max-microvolt = <1860000>; + regulator-min-microvolt = <1700000>; + regulator-max-microvolt = <3100000>; regulator-enable-ramp-delay = <540>; }; @@ -1540,18 +1560,17 @@ mt6366_vsim2_reg: vsim2 { mt6366_vsram_gpu_reg: vsram-gpu { regulator-name = "pp0900_dvdd_sram_gpu"; - regulator-min-microvolt = <850000>; - regulator-max-microvolt = <1050000>; + regulator-min-microvolt = <500000>; + regulator-max-microvolt = <1293750>; regulator-ramp-delay = <6250>; regulator-enable-ramp-delay = <240>; - regulator-coupled-with = <&mt6366_vgpu_reg>; - regulator-coupled-max-spread = <10000>; + regulator-always-on; }; mt6366_vsram_others_reg: vsram-others { regulator-name = "pp0900_dvdd_sram_core"; - regulator-min-microvolt = <900000>; - regulator-max-microvolt = <900000>; + regulator-min-microvolt = <500000>; + regulator-max-microvolt = <1293750>; regulator-ramp-delay = <6250>; regulator-enable-ramp-delay = <240>; regulator-always-on; @@ -1559,8 +1578,8 @@ mt6366_vsram_others_reg: vsram-others { mt6366_vsram_proc11_reg: vsram-proc11 { regulator-name = "pp0900_dvdd_sram_bc"; - regulator-min-microvolt = <850000>; - regulator-max-microvolt = <1120000>; + regulator-min-microvolt = <500000>; + regulator-max-microvolt = <1293750>; regulator-ramp-delay = <6250>; regulator-enable-ramp-delay = <240>; regulator-always-on; @@ -1568,8 +1587,8 @@ mt6366_vsram_proc11_reg: vsram-proc11 { mt6366_vsram_proc12_reg: vsram-proc12 { regulator-name = "pp0900_dvdd_sram_lc"; - regulator-min-microvolt = <850000>; - regulator-max-microvolt = <1120000>; + regulator-min-microvolt = <500000>; + regulator-max-microvolt = <1293750>; regulator-ramp-delay = <6250>; regulator-enable-ramp-delay = <240>; regulator-always-on; @@ -1578,7 +1597,7 @@ mt6366_vsram_proc12_reg: vsram-proc12 { vusb { regulator-name = "pp3070_vusb"; regulator-min-microvolt = <3000000>; - regulator-max-microvolt = <3070000>; + regulator-max-microvolt = <3100000>; regulator-enable-ramp-delay = <270>; regulator-always-on; }; @@ -1586,7 +1605,7 @@ vusb { vxo22 { regulator-name = "pp2240_vxo22"; regulator-min-microvolt = <2200000>; - regulator-max-microvolt = <2240000>; + regulator-max-microvolt = <2200000>; regulator-enable-ramp-delay = <120>; /* Feeds DCXO internally */ regulator-always-on;