Received: by 2002:ab2:6857:0:b0:1ef:ffd0:ce49 with SMTP id l23csp2833878lqp; Mon, 25 Mar 2024 10:27:15 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXEQO5KDKlPJheXRVf39GW2rofrML/8QdL0jAUW+gWCBUfENJ5akI46QY6svjWLu4lwMlpoEfwxosOeKJiWOgFdmo7n2R93WQsax0767Q== X-Google-Smtp-Source: AGHT+IEdiwmPRa/ugguomd2eFOpsyT7fWt3mAceToLJpJNDTVimq+oKhdVYxqvTN0FamYLZr5xIZ X-Received: by 2002:a17:906:2dc1:b0:a47:1d58:e528 with SMTP id h1-20020a1709062dc100b00a471d58e528mr5561153eji.16.1711387635639; Mon, 25 Mar 2024 10:27:15 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711387635; cv=pass; d=google.com; s=arc-20160816; b=xHF5e22TV244oQaJ3LlQvoAHW3Di/jnAw1scGD82Vj52T27kAn4J2T6w5ceUwI2Hrq c+kMofRy5j/g9VbBpIPxo/a8ZGmYMmML9G2RnlG2XUOV4JRJdejF2DEfxweEvJbReiua 5tBFkpTVYGQTVmshaRKxY9klk1kv2+wOcnpgNU41Hyy5rxf3zzd9PKn9JJgSo34FPHv4 iecHblA9uXXVjczCM0KIK/W8f5U6fnYXnyhrMA5X80OEySA/ViJeWZG/HvUGNOw8Pm1y kzRGaZIl0iTFHLPPvZA2EuP82CInRiE+EL9CyxhKB5SG+OX84APkHkNpUQ1OHlbhvvH8 yjWg== 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:message-id:date:subject:cc:to :dkim-signature:from; bh=eeOca0jbpn3vxiTcP6H4it2Gf901TrwEixbj2YXQxJc=; fh=JiHoWuRn9vsrAdMLKEP9rPEKX/2QjJC1jNimtv9tmyA=; b=TjUtWuDi0sZlzaEcmsAGLsD3noGmhGjXYyqkLL56/zzuSuX9bw7m5jnbRMpZ27YCqJ ZhPgjVH1xVToOlJnbensgQn0oserSBLeAjq4kfhk3g3nWCofUdFyP5Nhc763dMjPDyKU 0eK3LoQ0059BOEY1VKIjRT0bSfb6VfWuo2vorT0+iL569IV17XJDISUhNta9EMD5w7CU 4Ss6yMO5WmIZpIm+BQXcO/gP/U5Hgjr2ug+beX8g/3A2ye/TAXxTvqxf5p3QTjer6zKc GtVE5U/lKQYl6h/caQYUharuD9Vmc2DwmB6FVAfqzqUTv4TL5O1oc8t0TRZZ8/IfUQrN P11w==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@manjaro.org header.s=2021 header.b=usN4vTLw; arc=pass (i=1 spf=pass spfdomain=manjaro.org dkim=pass dkdomain=manjaro.org dmarc=pass fromdomain=manjaro.org); spf=pass (google.com: domain of linux-kernel+bounces-117448-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-117448-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=manjaro.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id gn40-20020a1709070d2800b00a4b7986e829si557780ejc.822.2024.03.25.10.27.15 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 25 Mar 2024 10:27:15 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-117448-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@manjaro.org header.s=2021 header.b=usN4vTLw; arc=pass (i=1 spf=pass spfdomain=manjaro.org dkim=pass dkdomain=manjaro.org dmarc=pass fromdomain=manjaro.org); spf=pass (google.com: domain of linux-kernel+bounces-117448-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-117448-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=manjaro.org 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 am.mirrors.kernel.org (Postfix) with ESMTPS id 0B3151F62652 for ; Mon, 25 Mar 2024 17:25:46 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 6C09F129A83; Mon, 25 Mar 2024 16:19:19 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=manjaro.org header.i=@manjaro.org header.b="usN4vTLw" Received: from mail.manjaro.org (mail.manjaro.org [116.203.91.91]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id C312912C54F; Mon, 25 Mar 2024 16:19:13 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=116.203.91.91 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711383558; cv=none; b=aAJQEwY5aOBxl5iA2X9t3SJ3PyYnbbAi2XsKqvmpB+/O2o6RZPn0a4O66xCnRzc38EUnu3tF3+xcLdJJcU0CAteCUJvdE1T7We4IRkTvq/QT9wblNqBMPQqOWfgE4c6+s94lJJ7JVpcwMIkz0aPwY6SwZzfECLQDDO6N6sMesBk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711383558; c=relaxed/simple; bh=IwzaoHW/HagSH6BZIf0SV6u2TapiSTBNzgHXVGJRXNs=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version; b=b7BRf+xaU45tHjdjs4Fpw9LoDMONb/rDifOp9K4TjQ7Jsbt8fkiD6Jxd25II8otbly1OZ3i21lbrv6LqWBTMoStQtfrEhkqbpuz7ELkGy019APbi91QF67kSuxtfKjQUuopidmKuaxUFXngNFUiAvbmwFbnrnNAZP5rTmXh7KXU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=manjaro.org; spf=pass smtp.mailfrom=manjaro.org; dkim=pass (2048-bit key) header.d=manjaro.org header.i=@manjaro.org header.b=usN4vTLw; arc=none smtp.client-ip=116.203.91.91 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=manjaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=manjaro.org From: Dragan Simic DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=manjaro.org; s=2021; t=1711383550; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=eeOca0jbpn3vxiTcP6H4it2Gf901TrwEixbj2YXQxJc=; b=usN4vTLw2BTrm1ZtUsYd9bMu8sefjTpAeJQxdnBsko2UADgccF2naLIgLbsHe/sx/pY5Sf aFhOhb/fgrWjEiEhhi9d7PdhjtFpWi50o4dmgS5XE8SNwSrkhCdyKs6dLOt/XEYoX7A8CR UgyD1T6d3HsvPK9S6eD1KNYNNbDoM6qq3HmN8bG4GHTYukr8aO8YCXScC0bpbqM87D0yCg n6QJOqEwGGkcdF92uy8qsQGXw/Tm5590pjAKU/t2FgECrkXxTfTG1FkVPZOGro7sw1kkH6 SLF3EoI0XnRcTS8CZjkjRCKqUj+hn4YDFKb0gfiYJzwObEejr/q+xitu2sr/xA== To: linux-rockchip@lists.infradead.org Cc: heiko@sntech.de, linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org, boris.brezillon@collabora.com, linux-kernel@vger.kernel.org, kernel@collabora.com, sebastian.reichel@collabora.com Subject: [PATCH] arm64: dts: rockchip: quartzpro64: Enable the GPU Date: Mon, 25 Mar 2024 17:19:04 +0100 Message-Id: <0f3759ee390f245dac447bbee038445ddfecbec0.1711383286.git.dsimic@manjaro.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Authentication-Results: ORIGINATING; auth=pass smtp.auth=dsimic@manjaro.org smtp.mailfrom=dsimic@manjaro.org Following the approach used to enable the Mali GPU on the rk3588-evb1, [1] do the same for the Pine64 QuartzPro64, which uses nearly identical hardware design as the RK3588 EVB1. The slight disadvantage is that the regulator coupling logic requires the regulators to be always on, which is also noted in the comments. This is obviously something to be improved at some point in the future, but should be fine for now, especially because the QuartzPro64 isn't a battery-powered board, so low power consumption isn't paramount. [1] https://lore.kernel.org/linux-rockchip/20240325153850.189128-5-sebastian.reichel@collabora.com/ Signed-off-by: Dragan Simic --- .../arm64/boot/dts/rockchip/rk3588-quartzpro64.dts | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/arch/arm64/boot/dts/rockchip/rk3588-quartzpro64.dts b/arch/arm64/boot/dts/rockchip/rk3588-quartzpro64.dts index 67414d72e2b6..68d432c61ea5 100644 --- a/arch/arm64/boot/dts/rockchip/rk3588-quartzpro64.dts +++ b/arch/arm64/boot/dts/rockchip/rk3588-quartzpro64.dts @@ -285,6 +285,12 @@ &gmac0_rgmii_clk status = "okay"; }; +&gpu { + mali-supply = <&vdd_gpu_s0>; + sram-supply = <&vdd_gpu_mem_s0>; + status = "okay"; +}; + &i2c2 { status = "okay"; @@ -491,11 +497,15 @@ rk806_dvs3_null: dvs3-null-pins { regulators { vdd_gpu_s0: dcdc-reg1 { regulator-name = "vdd_gpu_s0"; + /* regulator coupling requires always-on */ + regulator-always-on; regulator-boot-on; regulator-enable-ramp-delay = <400>; regulator-min-microvolt = <550000>; regulator-max-microvolt = <950000>; regulator-ramp-delay = <12500>; + regulator-coupled-with = <&vdd_gpu_mem_s0>; + regulator-coupled-max-spread = <10000>; regulator-state-mem { regulator-off-in-suspend; @@ -545,11 +555,15 @@ regulator-state-mem { vdd_gpu_mem_s0: dcdc-reg5 { regulator-name = "vdd_gpu_mem_s0"; + /* regulator coupling requires always-on */ + regulator-always-on; regulator-boot-on; regulator-enable-ramp-delay = <400>; regulator-min-microvolt = <675000>; regulator-max-microvolt = <950000>; regulator-ramp-delay = <12500>; + regulator-coupled-with = <&vdd_gpu_s0>; + regulator-coupled-max-spread = <10000>; regulator-state-mem { regulator-off-in-suspend;