Received: by 2002:ab2:3350:0:b0:1f4:6588:b3a7 with SMTP id o16csp1919159lqe; Tue, 9 Apr 2024 04:47:23 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUJ+nwkYrQuPwgEbqGXSGhzFieN2sP7IEPeBqBlNorRJVV5ZTIS/ZESN1SsLOOgYr2MmVlaM6mj1B9j2VoZG/HWF24jdDnzJ8G2PEOUBg== X-Google-Smtp-Source: AGHT+IFFzHK9+7AGtrDHl553miVqGkXPcN01ZEixq9EGv8wfXzooukTOJrjmLiFwcruPbdfMX0Qq X-Received: by 2002:a05:6a00:130c:b0:6ec:ef1c:4dcd with SMTP id j12-20020a056a00130c00b006ecef1c4dcdmr3010675pfu.6.1712663243144; Tue, 09 Apr 2024 04:47:23 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712663243; cv=pass; d=google.com; s=arc-20160816; b=ElGx/nQz8lMTTkHzEIK2ZRSxGwUAdGc1G35KAZIGETQhrGNfYfbK2Y5VnB0kRen7Sa yJgJ+uX+TIFAMH65PKQnZTN+eEer3q++MvSKftCPUD2LNG27R4X5x9JDyUyYHsvbkpdK 86y9jkBuBCqey7P1Cm9IoOy46wMY2EEQIEpM4mmaumGRmZojA32fyFRdQ5bLF/8gdN6r plhHLDYMGgi9kj3u7ffkAylItbENNdWKsrHBpnMd0OlPWAyjAqEwTokrJwxI5k/O/y/J GcnMHj/IWZHiHSTYKAZuMMqHfPqow9UeMExqCe5IQs7f/qC7vxOVKNpF/5WxE77osBik frqA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=+kI7a0RuILMPScmkILKeGMrOruhi9aXjtkHQ1/wVVqM=; fh=X0EN0SaE7jgJGoPlLblapAtwt7fvPDz5YRrvBmtAdxY=; b=FKjOPNs5EWXbM7j3Z8yz6Wi9TZO+VpFRFF6lKOsB0PcMdL1pXqLZAFn2IUseI8eaGX KBjhdGj9tUcuy4VVJ+1cwterB4utniDkteoLJiLxz/I5t5DeUrJVAQiWfETdWx3KM/d8 1wXyVbJYV4Za7pqETkgciAJ4fo4Qa1KrWn4eR4f0l3mrNmHAJaZO6eckoUO2Z7XXYif3 b3YBcjd/BXMuUOhim1y+Xvz3VTyJhQAHdGjGbZy+MyWzRMnt/+ezwfJKSMHkq3hamKP6 z10fxrR9aj/TItGQ5pAvJ9X02nmvQ4G3fooJjXMBToAw5h9CkshftWG5Eho5ZZonLq2u rglw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=r+nxKpPe; arc=pass (i=1 spf=pass spfdomain=collabora.com dkim=pass dkdomain=collabora.com dmarc=pass fromdomain=collabora.com); spf=pass (google.com: domain of linux-kernel+bounces-136802-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-136802-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id v21-20020a056a00149500b006e7356c25d4si1540738pfu.183.2024.04.09.04.47.22 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 09 Apr 2024 04:47:23 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-136802-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=r+nxKpPe; arc=pass (i=1 spf=pass spfdomain=collabora.com dkim=pass dkdomain=collabora.com dmarc=pass fromdomain=collabora.com); spf=pass (google.com: domain of linux-kernel+bounces-136802-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-136802-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 6E78D28B55A for ; Tue, 9 Apr 2024 11:43:23 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id E474712E1E3; Tue, 9 Apr 2024 11:42:33 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=collabora.com header.i=@collabora.com header.b="r+nxKpPe" Received: from madrid.collaboradmins.com (madrid.collaboradmins.com [46.235.227.194]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 8735912BF2D; Tue, 9 Apr 2024 11:42:31 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=46.235.227.194 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712662953; cv=none; b=QZ39bTz+Bpr4AYv708RYW6LQzVG9AzHvWaOotnr78ASS8opN+OYhaXULgjU27N1pwphodqH+7Qy0d+QO7WsSAGZtJ45/5UCzEZxboCghouOTkkdUBmjWr7wl0uy/UyS/WYLtB5BL0ghKgeiZR8bgxwzsRYaT/xzoT3bqQ1pUX2E= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712662953; c=relaxed/simple; bh=1IKHkg+bFOK+XIFwPPhCXS2tjDgeASO3rycSgHf2rZg=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=GlqsDbvYuBLwGfS/DOTTgXqaLNqMQiolQ6iCyjkJSivryVFFA+t0cO58qNgfjM2dHfbArr83sdWtf6+Dwguv9aRw9i6BX8fDyFPCM4GT5gVkqBREleM9ODOpgGzj7BAZGgq88hMLp6uWJUwu6f3/4v9uBSUb8Q9bbOxaTTW1NQU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=collabora.com; spf=pass smtp.mailfrom=collabora.com; dkim=pass (2048-bit key) header.d=collabora.com header.i=@collabora.com header.b=r+nxKpPe; arc=none smtp.client-ip=46.235.227.194 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=collabora.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=collabora.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1712662950; bh=1IKHkg+bFOK+XIFwPPhCXS2tjDgeASO3rycSgHf2rZg=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=r+nxKpPevPYF5KeaMrPZbMUBWhwIroSMLfrTCJAyZ2z7biBlV7Itac+bNYWXqg9AX x9wnbrJnbg1v/wRm9okRoXB/1y97SMuMIOJk/BzdVYBTIMDJACi2M91C3+Db5aN46G w82qJMCOha7zlg+40XhKJIEJ/P/nYP9AeR4jWR7qkPYMxOSupgAQlx28Y4P19FbU5p 5c9e7DVeJsBlD05j1N39auPKoot74PRZjF5/qGT5m4cANizhQH+lkaYXaJ3keqv8pn wJXxnr/dggeGXAdfslqaJxkLvB51wpJdFO1p0r28+YVn3m1Lo5WWZyMnq9E+ox/J8y cmG4JeFVEh+5Q== Received: from IcarusMOD.eternityproject.eu (cola.collaboradmins.com [195.201.22.229]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: kholk11) by madrid.collaboradmins.com (Postfix) with ESMTPSA id 5D3133782127; Tue, 9 Apr 2024 11:42:29 +0000 (UTC) From: AngeloGioacchino Del Regno To: linux-mediatek@lists.infradead.org Cc: robh@kernel.org, krzk+dt@kernel.org, conor+dt@kernel.org, matthias.bgg@gmail.com, angelogioacchino.delregno@collabora.com, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, kernel@collabora.com Subject: [PATCH 5/5] arm64: dts: mediatek: mt8395-nio-12l: Add power supplies for CPU/GPU scaling Date: Tue, 9 Apr 2024 13:42:11 +0200 Message-ID: <20240409114211.310462-6-angelogioacchino.delregno@collabora.com> X-Mailer: git-send-email 2.44.0 In-Reply-To: <20240409114211.310462-1-angelogioacchino.delregno@collabora.com> References: <20240409114211.310462-1-angelogioacchino.delregno@collabora.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Add the necessary power supplies to safely enable CPU and GPU frequency scaling. Signed-off-by: AngeloGioacchino Del Regno --- .../dts/mediatek/mt8395-radxa-nio-12l.dts | 40 +++++++++++++++++++ 1 file changed, 40 insertions(+) diff --git a/arch/arm64/boot/dts/mediatek/mt8395-radxa-nio-12l.dts b/arch/arm64/boot/dts/mediatek/mt8395-radxa-nio-12l.dts index 5cbe969da425..bf6b539e6c06 100644 --- a/arch/arm64/boot/dts/mediatek/mt8395-radxa-nio-12l.dts +++ b/arch/arm64/boot/dts/mediatek/mt8395-radxa-nio-12l.dts @@ -140,6 +140,38 @@ apu_mem: memory@62000000 { }; }; +&cpu0 { + cpu-supply = <&mt6359_vcore_buck_reg>; +}; + +&cpu1 { + cpu-supply = <&mt6359_vcore_buck_reg>; +}; + +&cpu2 { + cpu-supply = <&mt6359_vcore_buck_reg>; +}; + +&cpu3 { + cpu-supply = <&mt6359_vcore_buck_reg>; +}; + +&cpu4 { + cpu-supply = <&mt6315_6_vbuck1>; +}; + +&cpu5 { + cpu-supply = <&mt6315_6_vbuck1>; +}; + +&cpu6 { + cpu-supply = <&mt6315_6_vbuck1>; +}; + +&cpu7 { + cpu-supply = <&mt6315_6_vbuck1>; +}; + ð { phy-mode = "rgmii-rxid"; phy-handle = <&rgmii_phy>; @@ -343,6 +375,14 @@ typec_con_mux: endpoint { }; }; +&mfg0 { + domain-supply = <&mt6315_7_vbuck1>; +}; + +&mfg1 { + domain-supply = <&mt6359_vsram_others_ldo_reg>; +}; + /* MMC0 Controller: eMMC (HS400). Power lines are shared with UFS! */ &mmc0 { pinctrl-names = "default", "state_uhs"; -- 2.44.0