From patchwork Fri Mar 15 11:16:02 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Pin-yen Lin X-Patchwork-Id: 13593311 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 97FFBC54E67 for ; Fri, 15 Mar 2024 11:16:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-ID:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=FaQRUh4wSS4TEI5MPPi0DMNe/+OK4Q+Tfi30OaeWZsA=; b=IOs+s6ce4TePlu iGvR8KrO0D00NkvsUBG9pVtL4mMQc7hzcnUE82A0y0C2Hs27KEkd6QQ0ZWdfz2tLDqj7ClruSrbTO VCUpCQHJN+3NOaXxAWrYZM21fH1VxJGIt09jpmTW/y4gtTh4eUTbTQPHtWVgPcA3q3CsSPF33oH6E DdwiXp27bLtE1OWSkPtqDlyIn5syYQJir8XQqXUnndg0oCt9+92rj9cZjuSXb0Q/NMw6qglGHf2Ii OWYpQDL6nOVuZy+hB7iWvPm5PnlajIbyj+81hHf8NdOsfRJub+kNfqfJvi3GATo3hq/374M0RMvhp NIaFCWPDaRQuSHGy76AA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1rl5YG-0000000HaRa-13VO; Fri, 15 Mar 2024 11:16:40 +0000 Received: from mail-pf1-x431.google.com ([2607:f8b0:4864:20::431]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1rl5Y7-0000000HaLR-2Pwk for linux-arm-kernel@lists.infradead.org; Fri, 15 Mar 2024 11:16:33 +0000 Received: by mail-pf1-x431.google.com with SMTP id d2e1a72fcca58-6e6f6825102so684163b3a.1 for ; Fri, 15 Mar 2024 04:16:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1710501389; x=1711106189; darn=lists.infradead.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=T5JNiRjaunQauoZyRAKchrBIX3whGa58HwzCcAYhjAQ=; b=Xj7SKLoMFd8KB71/NlZaEW32GJpWispb0lM8zFH7yf/x6gYSePccEqG1N0uUaz9eMd VehjIPzXxSu8SLtBkfqJEHQtOCjWnS1BJdz2NOK6qbTRDFKV5bO4F+H46G+tjN8JOZQ6 uTGPHn7LzYrwCNty+Nu4uo9aK3sHSqrijUXAI= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1710501389; x=1711106189; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=T5JNiRjaunQauoZyRAKchrBIX3whGa58HwzCcAYhjAQ=; b=I8twZjrS66ybs4/fE4FqUbbtsMMwV+iDxFVvUhSBUxX0Dmk293Uj40Fl+YmJBGRcop ZrE6AIIbeUJONRWpcdZaZRCmDPpUGIxjAWHSOj5y7tbkSuo9QD/BubCRzMFT4gbHjBvY /5pWuUXbip2wLout/apMqW7L5m3SHY0IHnzG5MzNckIuxtl0g8KhUeWTDgnW9xSpiSQn JkFFfKmxadAKvPvjz2bWGavwIhIywLVgnudEm7QxSsMZHndMkPAzlbY2Qo6ZNT5L5aRi jfu1n6nQlwEACASMKofu15U1utgDwrRw3+4Axs/ergqWDUo3c7CviDQhj617YX/rH4jD 8Efw== X-Gm-Message-State: AOJu0Ywd2pyUkHFYtIg+Qz/LQ7h2bD7RWb1Nx8/K4KKGRioOF4iXO74i 8+lcxPi4eU42IhFLRIjzDhxPlNDalQ71+lOO58End5edulNzpQRx9I8fG7xG2w== X-Google-Smtp-Source: AGHT+IFRpeh/WVEnweWX4MTzDUNDWzLUpB5GIhy5sqcAsiRnOjZL5HQfDQh6rz45tKF+tXg2LIwk0Q== X-Received: by 2002:a05:6a20:2445:b0:1a3:5015:ec93 with SMTP id t5-20020a056a20244500b001a35015ec93mr1101499pzc.26.1710501389194; Fri, 15 Mar 2024 04:16:29 -0700 (PDT) Received: from treapking.tpe.corp.google.com ([2401:fa00:1:10:2f9c:c00a:bf1f:e53c]) by smtp.gmail.com with ESMTPSA id c11-20020a62e80b000000b006e6aee6807dsm3122683pfi.22.2024.03.15.04.16.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 15 Mar 2024 04:16:29 -0700 (PDT) From: Pin-yen Lin To: Matthias Brugger , AngeloGioacchino Del Regno Cc: linux-arm-kernel@lists.infradead.org, Chen-Yu Tsai , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, =?utf-8?q?N=C3=AD?= =?utf-8?q?colas_F_=2E_R_=2E_A_=2E_Prado?= , linux-mediatek@lists.infradead.org, Pin-yen Lin Subject: [PATCH v2 1/4] arm64: dts: mediatek: mt8192-asurada: Update min voltage constraint for MT6315 Date: Fri, 15 Mar 2024 19:16:02 +0800 Message-ID: <20240315111621.2263159-2-treapking@chromium.org> X-Mailer: git-send-email 2.44.0.291.gc1ea87d7ee-goog In-Reply-To: <20240315111621.2263159-1-treapking@chromium.org> References: <20240315111621.2263159-1-treapking@chromium.org> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240315_041631_643159_41A32870 X-CRM114-Status: GOOD ( 12.93 ) 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 the minimum voltage from 300000 uV to 400000 uV so it matches the MT6315 datasheet. Also update the minimum voltage for Vgpu regulator from 606250 uV to 400000 uV because the requested voltage could be lower than the minimum voltage on the GPU OPP table when the MTK Smart Voltage Scaling (SVS) driver is enabled. Fixes: 3183cb62b033 ("arm64: dts: mediatek: asurada: Add SPMI regulators") Signed-off-by: Pin-yen Lin Reviewed-by: AngeloGioacchino Del Regno --- Changes in v2: - Change the value to 400000 and update other mt6315 usages arch/arm64/boot/dts/mediatek/mt8192-asurada.dtsi | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/arch/arm64/boot/dts/mediatek/mt8192-asurada.dtsi b/arch/arm64/boot/dts/mediatek/mt8192-asurada.dtsi index 43d80334610a..2eafe66fbb8a 100644 --- a/arch/arm64/boot/dts/mediatek/mt8192-asurada.dtsi +++ b/arch/arm64/boot/dts/mediatek/mt8192-asurada.dtsi @@ -1421,7 +1421,7 @@ regulators { mt6315_6_vbuck1: vbuck1 { regulator-compatible = "vbuck1"; regulator-name = "Vbcpu"; - regulator-min-microvolt = <300000>; + regulator-min-microvolt = <400000>; regulator-max-microvolt = <1193750>; regulator-enable-ramp-delay = <256>; regulator-allowed-modes = <0 1 2>; @@ -1431,7 +1431,7 @@ mt6315_6_vbuck1: vbuck1 { mt6315_6_vbuck3: vbuck3 { regulator-compatible = "vbuck3"; regulator-name = "Vlcpu"; - regulator-min-microvolt = <300000>; + regulator-min-microvolt = <400000>; regulator-max-microvolt = <1193750>; regulator-enable-ramp-delay = <256>; regulator-allowed-modes = <0 1 2>; @@ -1448,7 +1448,7 @@ regulators { mt6315_7_vbuck1: vbuck1 { regulator-compatible = "vbuck1"; regulator-name = "Vgpu"; - regulator-min-microvolt = <606250>; + regulator-min-microvolt = <400000>; regulator-max-microvolt = <800000>; regulator-enable-ramp-delay = <256>; regulator-allowed-modes = <0 1 2>; From patchwork Fri Mar 15 11:16:03 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Pin-yen Lin X-Patchwork-Id: 13593312 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 42F18C54E69 for ; Fri, 15 Mar 2024 11:16:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-ID:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=44O2bGPuu6E+nD2+J8b1ov958jVZVwqbNP9QOb3hQno=; b=t7mUWxfe00VjhF ROAqQkULeqotG9Z6/vy4Zzy3gygpUZ5HDRM7yylsn8zXhF03GtSaW1ATW25uE8Kd+h2LMK8n4Ph+G AfdPtmtXhwOMiz6pdEoTEtDwhRBqg7PglpW0ZkHDcjDzpw1uMKdbJu8k9Nh9ZnRs4rvgF8+XMYXex LzLLjZH8Za55aib9BX5eBe3mfmPmhgYvu2dzIvZM6RQ7mQ+TfFeqMvH5uL3d7ALkGHawD4Agm4DBc zTjy8r2Q4CzAi8qpjcflPwn2ESjzCZ/TjnEW3jOkw1jCFQbkxa+ZvkrlueZh5ZB0DqOccJ+5LA0Nr 2a+IcieRthPYNMPRe2uQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1rl5YH-0000000HaSN-1sON; Fri, 15 Mar 2024 11:16:41 +0000 Received: from mail-pf1-x42a.google.com ([2607:f8b0:4864:20::42a]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1rl5Y7-0000000HaLz-33jr for linux-arm-kernel@lists.infradead.org; Fri, 15 Mar 2024 11:16:33 +0000 Received: by mail-pf1-x42a.google.com with SMTP id d2e1a72fcca58-6e6b5831bc8so1964693b3a.0 for ; Fri, 15 Mar 2024 04:16:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1710501391; x=1711106191; darn=lists.infradead.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=NEdbatcTx+BMxUcwyJodaDR0wXY8zMTqnjTsuA4PhA8=; b=oKq72gHnw/4jOu5reL74rmx6xTW5h795hPJpNRGYX2uGvuOl15X1ha/vBrp/Hc/dDd xktfYCzaCE7e9djh2kJe9sb7ac5eSR4X42/YUfEIblHVD1suDrE9ee9n42FdAMVD0Y2d Ef5CFtaHN54BsHELjZTx1Hf/A8ZpbvtygUsBU= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1710501391; x=1711106191; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=NEdbatcTx+BMxUcwyJodaDR0wXY8zMTqnjTsuA4PhA8=; b=VOFiAIhipcv9Lsshbxn57H3lBhCfey5zmTfJlSgL25nZc9NU311EsmQzBegYhKvtRb vIe+w6tTuNiURDNLcgBkzGmTF14qqlFjU7+LBO1GAp7kuGMzU5ZnzsT2knPcM+cd6wE6 rtEpOzmJVMYOn6kHCt/ieQBoLnJHM8J3pd6Dhlm88stlWDXPN3xApvLbda1yEIqau+t3 3Ewqg5lpPklJEqJabZnCO1Gj1f8QDmcUR87eEqbBzlErbr4NuMoIwV17v9iLLWT9zvrj LnABdoHKgkDHEMpREQD76c28JroGRuUwEqxNu3VjiAhYrEmJ+ASPXucmLY2kCpYb5cZh v4nA== X-Gm-Message-State: AOJu0Yxzp9OEndY/8fWq+mBhwdx1OU7glIibN9hkH9jfPQhaCfTPNuE1 uyKvuWmm0yuoH8WjfkCTvLURFBqTPT8FmI+3jo2GlMnR3impYC9hPnbqzcI3Ng== X-Google-Smtp-Source: AGHT+IHuQe/cYmMUFny33NXapxQXc5X930DvksjS95oNx3L58qkOtWxPwKplUrudaUT4vxUuMbsZMw== X-Received: by 2002:a05:6a20:8f24:b0:1a3:502d:bea with SMTP id b36-20020a056a208f2400b001a3502d0beamr975715pzk.14.1710501391194; Fri, 15 Mar 2024 04:16:31 -0700 (PDT) Received: from treapking.tpe.corp.google.com ([2401:fa00:1:10:2f9c:c00a:bf1f:e53c]) by smtp.gmail.com with ESMTPSA id c11-20020a62e80b000000b006e6aee6807dsm3122683pfi.22.2024.03.15.04.16.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 15 Mar 2024 04:16:31 -0700 (PDT) From: Pin-yen Lin To: Matthias Brugger , AngeloGioacchino Del Regno Cc: linux-arm-kernel@lists.infradead.org, Chen-Yu Tsai , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, =?utf-8?q?N=C3=AD?= =?utf-8?q?colas_F_=2E_R_=2E_A_=2E_Prado?= , linux-mediatek@lists.infradead.org, Pin-yen Lin Subject: [PATCH v2 2/4] arm64: dts: mediatek: mt8195-cherry: Update min voltage constraint for MT6315 Date: Fri, 15 Mar 2024 19:16:03 +0800 Message-ID: <20240315111621.2263159-3-treapking@chromium.org> X-Mailer: git-send-email 2.44.0.291.gc1ea87d7ee-goog In-Reply-To: <20240315111621.2263159-1-treapking@chromium.org> References: <20240315111621.2263159-1-treapking@chromium.org> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240315_041631_894791_1FA25264 X-CRM114-Status: GOOD ( 13.18 ) 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 the minimum voltage from 300000 uV to 400000 uV so it matches the MT6315 datasheet. Also update the minimum voltage for Vgpu regulator from 625000 uV to 400000 uV because the requested voltage could be lower than the minimum voltage on the GPU OPP table when the MTK Smart Voltage Scaling (SVS) driver is enabled. Fixes: 260c04d425eb ("arm64: dts: mediatek: cherry: Enable MT6315 regulators on SPMI bus") Signed-off-by: Pin-yen Lin Reviewed-by: AngeloGioacchino Del Regno --- Changes in v2: - New in v2 arch/arm64/boot/dts/mediatek/mt8195-cherry.dtsi | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/arm64/boot/dts/mediatek/mt8195-cherry.dtsi b/arch/arm64/boot/dts/mediatek/mt8195-cherry.dtsi index f94c07f8b933..c0223f84b45b 100644 --- a/arch/arm64/boot/dts/mediatek/mt8195-cherry.dtsi +++ b/arch/arm64/boot/dts/mediatek/mt8195-cherry.dtsi @@ -1214,7 +1214,7 @@ regulators { mt6315_6_vbuck1: vbuck1 { regulator-compatible = "vbuck1"; regulator-name = "Vbcpu"; - regulator-min-microvolt = <300000>; + regulator-min-microvolt = <400000>; regulator-max-microvolt = <1193750>; regulator-enable-ramp-delay = <256>; regulator-ramp-delay = <6250>; @@ -1232,7 +1232,7 @@ regulators { mt6315_7_vbuck1: vbuck1 { regulator-compatible = "vbuck1"; regulator-name = "Vgpu"; - regulator-min-microvolt = <625000>; + regulator-min-microvolt = <400000>; regulator-max-microvolt = <1193750>; regulator-enable-ramp-delay = <256>; regulator-ramp-delay = <6250>; From patchwork Fri Mar 15 11:16:04 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Pin-yen Lin X-Patchwork-Id: 13593313 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 D606DC54E58 for ; Fri, 15 Mar 2024 11:16:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-ID:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=tiWeVe69Eix1D1dQQTXcgqB1j6qNjzvNrauXhwikTC8=; b=aVb1K0/Mw/5lj+ 5xHeYbvaMVGJumvtl9WX3VrhmLKhhihKyBcEgS9SJs8WbR7YYW14dP0itksHBsd1u+zpbI5iZWIRQ 2gL4KpsS6rJBffP1H1UDnDjrM13xeOfHJC9CwtlHYiM5x+ByVluBu67MpQP9TsgF9U2jHUVak/3Cz PX4xW8TmCwDIlIZIyNx7oJkdBwP9TYhcuIbAUIEZxBljvGvIdsjbjoJit1pKqRKWiMCmpaJldx13I 6CHOD1LdNqbdvc4PnkrYX5uHe28qO4ctgXG50xnPthXtlTJFOxTHQ5oYLosCBAGBlEr6ZC52P0/0j zLrjs9fXXgDUYdlh1THw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1rl5YI-0000000HaTU-3VuQ; Fri, 15 Mar 2024 11:16:42 +0000 Received: from mail-pf1-x429.google.com ([2607:f8b0:4864:20::429]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1rl5YB-0000000HaNv-1cZk for linux-arm-kernel@lists.infradead.org; Fri, 15 Mar 2024 11:16:36 +0000 Received: by mail-pf1-x429.google.com with SMTP id d2e1a72fcca58-6e6fb9a494aso271360b3a.0 for ; Fri, 15 Mar 2024 04:16:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1710501393; x=1711106193; darn=lists.infradead.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=ViN1BNw9ywWRFA76/0dzsoN+2iKy9AGYS37opt3AHyU=; b=CyjkWIx+KWks3OQxj25DQsdQJ+KMEW7+UpRKEjwgSl2YokrFEApIvsLYmpe21CtOr4 t4ufjbTcrDnTgK7pM2pZrcBGSJZ/8HDmyPVr2eLO3UKUgOyOmyKH1gPhUD8YEObs+f04 hsPGvoY0xlAUkYNydbm9OOaCkTpIDCKZ6JVrQ= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1710501393; x=1711106193; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=ViN1BNw9ywWRFA76/0dzsoN+2iKy9AGYS37opt3AHyU=; b=Y/ergatLECwLaPPq3EsRTBV37niIugkwEM5X4wIySLe2dWxy+GRdCmJIC2+2IeipWc ahx32jid6//lRt/MXN+t2Ef4GxGbSvQXDMgEhqzt5TZMex/ONcvw2WpbkZwLvB+pPx+U aip3dKTnJBmZ2+WzHg7idrAIDWuPotAPfyxdbA8OSasuDL7OXoApc5dPoxjAYJlsybbZ 5TZ8Lq7z5ya0te2vTHY+WAQRLwit2qWDQx1/VkLvi0klSAS3wEvCOapLfvny4JO/2sS4 u6tvUKaVq/+NzWLWEDDLi2lI/xLKDCDxHN55yCpOMVTsSd9JzMzVZYzVQ1HJ6BtZyGAG EYvA== X-Gm-Message-State: AOJu0Yx0dgkTdaYM/XzvmsQva+bg2pH1U8zFQeZr1o6QhDIrRpUy0Tgt nVeO9YfRGvm8B3ezIFmdWTySKVP9tMsu53HtnzwVURZGhdzklcfxUT+y0piMoA== X-Google-Smtp-Source: AGHT+IE8Jnmp6iXr1KlhSQhcrwZ95AW4suNiCVQyzgxcTB5US5FAQdRs628m8tj5JI5n2G9MZ0ieiQ== X-Received: by 2002:aa7:88c5:0:b0:6e6:af7e:ccf8 with SMTP id k5-20020aa788c5000000b006e6af7eccf8mr3240803pff.6.1710501393278; Fri, 15 Mar 2024 04:16:33 -0700 (PDT) Received: from treapking.tpe.corp.google.com ([2401:fa00:1:10:2f9c:c00a:bf1f:e53c]) by smtp.gmail.com with ESMTPSA id c11-20020a62e80b000000b006e6aee6807dsm3122683pfi.22.2024.03.15.04.16.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 15 Mar 2024 04:16:33 -0700 (PDT) From: Pin-yen Lin To: Matthias Brugger , AngeloGioacchino Del Regno Cc: linux-arm-kernel@lists.infradead.org, Chen-Yu Tsai , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, =?utf-8?q?N=C3=AD?= =?utf-8?q?colas_F_=2E_R_=2E_A_=2E_Prado?= , linux-mediatek@lists.infradead.org, Pin-yen Lin Subject: [PATCH v2 3/4] arm64: dts: mediatek: mt8183-kukui: Use default min voltage for MT6358 Date: Fri, 15 Mar 2024 19:16:04 +0800 Message-ID: <20240315111621.2263159-4-treapking@chromium.org> X-Mailer: git-send-email 2.44.0.291.gc1ea87d7ee-goog In-Reply-To: <20240315111621.2263159-1-treapking@chromium.org> References: <20240315111621.2263159-1-treapking@chromium.org> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240315_041635_467955_374989FF X-CRM114-Status: GOOD ( 11.89 ) 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 The requested voltage could be lower than the minimum voltage on the GPU OPP table when the MTK Smart Voltage Scaling (SVS) driver is enabled, so removing the definition in mt8183-kukui to use the default minimum voltage (500000 uV) defined in mt6358.dtsi. Fixes: 31c6732da9d5 ("arm64: dts: mediatek: mt8183-kukui: Override vgpu/vsram_gpu constraints") Signed-off-by: Pin-yen Lin Reviewed-by: AngeloGioacchino Del Regno --- Changes in v2: - New in v2 arch/arm64/boot/dts/mediatek/mt8183-kukui.dtsi | 1 - 1 file changed, 1 deletion(-) diff --git a/arch/arm64/boot/dts/mediatek/mt8183-kukui.dtsi b/arch/arm64/boot/dts/mediatek/mt8183-kukui.dtsi index 3830daf7ea85..a64d06adf796 100644 --- a/arch/arm64/boot/dts/mediatek/mt8183-kukui.dtsi +++ b/arch/arm64/boot/dts/mediatek/mt8183-kukui.dtsi @@ -433,7 +433,6 @@ &mt6358regulator { }; &mt6358_vgpu_reg { - regulator-min-microvolt = <625000>; regulator-max-microvolt = <900000>; regulator-coupled-with = <&mt6358_vsram_gpu_reg>; From patchwork Fri Mar 15 11:16:05 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Pin-yen Lin X-Patchwork-Id: 13593314 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 2BC55C54E58 for ; Fri, 15 Mar 2024 11:17:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-ID:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=hIH/WQNzrn1VpzL3DMGXU1yvDPHwjz8VbevbMQ+kp4g=; b=v+lMHZjYGhAHfX 0vns6+wXaAE0C1wFjJBeAgAVeSAmZVbZUYQNf14QkkGz0LFcNyUBAtgLmVwx4QyHznDmQ5rcM/oaE qFgi9EK3hZ0MRmaLPkpvXA9Ij8fU24pEshrjFxRyTYyRfo//BBCshScWILPVGtrRNP6hXpEex1426 ZgE/sn6Jgy/fPHVEzzMJWik8i12nL4OYMUMkx02H+PHOeKGFCxqq+eZhySuUPZ6qnhZs+NPpfcXVl iV+PAeRA7LHtznfaN2pckwVv/oWjJWc7uJqNHoETzf6GdFfnaE7gQfwK7CWmQoixQSjOEigwiTEwj Tj85c2DjT/J5tx7VN35g==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1rl5YL-0000000HaVJ-0Ol9; Fri, 15 Mar 2024 11:16:45 +0000 Received: from mail-pf1-x433.google.com ([2607:f8b0:4864:20::433]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1rl5YC-0000000HaP9-2YzR for linux-arm-kernel@lists.infradead.org; Fri, 15 Mar 2024 11:16:38 +0000 Received: by mail-pf1-x433.google.com with SMTP id d2e1a72fcca58-6e6f4ad4c57so850313b3a.2 for ; Fri, 15 Mar 2024 04:16:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1710501395; x=1711106195; darn=lists.infradead.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=al0RWiU4gJElSS4Z7Unyt/qe+1B4tsgOmYSta+HjBpc=; b=SvnOj6Wvf1yYvJFmCQpugdR3lLiieqWWItK+gye24/Q6Zs16z5Lh4zXuaJ2mm3kj6z 8jGX22N2nNTLafTQkrZ0rNggfssbLx900PTycpr8LvEELohefa/eSxE4oLDcnDsld2jb p4lbL+LjJXknUbIfY/QU/AKJUe9nuLsu81nI8= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1710501395; x=1711106195; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=al0RWiU4gJElSS4Z7Unyt/qe+1B4tsgOmYSta+HjBpc=; b=rRnku7KAzukpLbK3YuZPDq7ElQP4alDHXZXRs9696+9auuPIMzGJsjkMKJwjx3CIGY Qyah/xUTFDA0n68pc4VOa9kzxqo0UWwaQ18y95LaITjl8MR20ZD+jBmSFOw4vryv38YE Dk6A2Y43FOlfw293PI9tTmAyjeEvE30FkArPy5r3dCC8NxF9quaF2xiwmmQqd0jI7InH xlXQTqKIR0dwmSImbMNCavq66SfFzgkOInZneAq/Jm25kKjehSlUKY9Fx0IsPJ+bwugQ nhAsPSxP0d/fmE/cWn85rLsbkI2OjeTwYSFytH7eJOvQLnbRy8eryps1k0UV/hX8eftK JdrA== X-Gm-Message-State: AOJu0YwihSownQWwuzKzhftm4ShkEBXnBPIUsqQL3EIKeHfeBI3cXrx2 JwCM/VGtmXbgTUhF48F2rdlwIswqFvfFFVKrwi2JOSqndWAPpQPFUS8NUg+q5g== X-Google-Smtp-Source: AGHT+IEAdPZ814mOPF422g9xOunYnTCRZxGPQITS45msqmivfaAABFu1iB7POKJ4pYGf6WbFacC8iQ== X-Received: by 2002:a05:6a00:2389:b0:6e6:5374:411a with SMTP id f9-20020a056a00238900b006e65374411amr4806672pfc.18.1710501395445; Fri, 15 Mar 2024 04:16:35 -0700 (PDT) Received: from treapking.tpe.corp.google.com ([2401:fa00:1:10:2f9c:c00a:bf1f:e53c]) by smtp.gmail.com with ESMTPSA id c11-20020a62e80b000000b006e6aee6807dsm3122683pfi.22.2024.03.15.04.16.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 15 Mar 2024 04:16:35 -0700 (PDT) From: Pin-yen Lin To: Matthias Brugger , AngeloGioacchino Del Regno Cc: linux-arm-kernel@lists.infradead.org, Chen-Yu Tsai , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, =?utf-8?q?N=C3=AD?= =?utf-8?q?colas_F_=2E_R_=2E_A_=2E_Prado?= , linux-mediatek@lists.infradead.org, Pin-yen Lin Subject: [PATCH v2 4/4] arm64: dts: mediatek: mt8186-corsola: Update min voltage constraint for Vgpu Date: Fri, 15 Mar 2024 19:16:05 +0800 Message-ID: <20240315111621.2263159-5-treapking@chromium.org> X-Mailer: git-send-email 2.44.0.291.gc1ea87d7ee-goog In-Reply-To: <20240315111621.2263159-1-treapking@chromium.org> References: <20240315111621.2263159-1-treapking@chromium.org> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240315_041636_707876_52A7070F X-CRM114-Status: GOOD ( 13.02 ) 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 The requested voltage could be lower than the minimum voltage on the GPU OPP table when the MTK Smart Voltage Scaling (SVS) driver is enabled, so update the minimum voltage constraint from 600000 uV to 500000 uV as listed on the mt6366 datasheet. Fixes: 8855d01fb81f ("arm64: dts: mediatek: Add MT8186 Krabby platform based Tentacruel / Tentacool") Signed-off-by: Pin-yen Lin Reviewed-by: AngeloGioacchino Del Regno --- Changes in v2: - New in v2 arch/arm64/boot/dts/mediatek/mt8186-corsola.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm64/boot/dts/mediatek/mt8186-corsola.dtsi b/arch/arm64/boot/dts/mediatek/mt8186-corsola.dtsi index 3dea28f1d806..1807e9d6cb0e 100644 --- a/arch/arm64/boot/dts/mediatek/mt8186-corsola.dtsi +++ b/arch/arm64/boot/dts/mediatek/mt8186-corsola.dtsi @@ -1296,7 +1296,7 @@ mt6366_vgpu_reg: vgpu { * regulator coupling requirements. */ regulator-name = "ppvar_dvdd_vgpu"; - regulator-min-microvolt = <600000>; + regulator-min-microvolt = <500000>; regulator-max-microvolt = <950000>; regulator-ramp-delay = <6250>; regulator-enable-ramp-delay = <200>;