From patchwork Tue Mar 26 14:01:04 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Johan Hovold X-Patchwork-Id: 782736 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 101FE74C0B; Tue, 26 Mar 2024 14:01:32 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711461693; cv=none; b=ObGC9Siezth9Z/iTu+qrWY2yWhq46/Brl1f9aA4XR/NFE7VsHWK/vXsAql0kGdjdZRMnrW7YlyMPlt5H6vg02hP5CZl00wjmEcv27ADtj0YV7T73A9iQkCmj0pyGk8oeCCLWLq7szNZx4o5IMvCquUy/I1FjXLTYLbD5nkqpV/U= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711461693; c=relaxed/simple; bh=mSAR/ds6sNoK+caG9qPwIX3WHSQBTErTxeDXv/sxkCY=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=rz/IviagompFJOPP/+kfN4AL3BIslvwMnwjlgMdneWsCd1EdRGO8svQ2BrG/XfitOUjD2aiTaq/fw4LZr0psr/sXtK6y5L4E//pZ43IYkBv9XZxwUolV/iQB32Zzu7BGNn+CgaVtb9StLMhmVbdnVRzBLARq9aqMI0WqgRRLej4= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=pyWCR6rB; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="pyWCR6rB" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 95F84C433F1; Tue, 26 Mar 2024 14:01:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1711461692; bh=mSAR/ds6sNoK+caG9qPwIX3WHSQBTErTxeDXv/sxkCY=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=pyWCR6rBVaxhyy3gtY2q/5fsuIadAnK7pf/x0bZfKqvCGfKwq+jbgeURiklGKsSWP MGwa31t2xVfbOiDESji2/FZhKhSys8WDdCopOCWJPWW/Ae9XxCFPnPGHsK0TCmsld9 /cKMMJZFdVg/DJfw3C9sGkYFASlW4Bq0HvuxBLUT5p86AzHbZhlBS5D52ZQc+WITXH fwRRb9uRejd5BKsuBF1jMr7KeHkzzRdes2aWMHn4aWMBdYjfHowWx4MLjdZlFrIT+7 rK08Ll/nRqB7yEHCxWpM9ia+kqUSPg+8ujiK0LjhC8kTo0qkoKMBrEUq4fJP8qpITY rbH1TGqg/sLYg== Received: from johan by xi.lan with local (Exim 4.97.1) (envelope-from ) id 1rp7My-000000005Yp-37IP; Tue, 26 Mar 2024 15:01:40 +0100 From: Johan Hovold To: Bjorn Andersson Cc: Konrad Dybcio , Michael Turquette , Stephen Boyd , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Mark Brown , Dmitry Baryshkov , linux-arm-msm@vger.kernel.org, linux-clk@vger.kernel.org, linux-kernel@vger.kernel.org, Johan Hovold Subject: [PATCH 1/5] dt-bindings: clock: qcom: add SA8540P gpucc Date: Tue, 26 Mar 2024 15:01:04 +0100 Message-ID: <20240326140108.21307-2-johan+linaro@kernel.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240326140108.21307-1-johan+linaro@kernel.org> References: <20240326140108.21307-1-johan+linaro@kernel.org> Precedence: bulk X-Mailing-List: linux-arm-msm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 The SA8540P platform is closely related to SC8280XP but differs in that it uses an external supply for the GX power domain. Add a new compatible string for the SA8540P GPU clock controller so that the OS can determine which resources to look for. Fixes: e60b95d2b687 ("dt-bindings: clock: qcom: Allow VDD_GFX supply to GX") Signed-off-by: Johan Hovold --- Documentation/devicetree/bindings/clock/qcom,gpucc.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/clock/qcom,gpucc.yaml b/Documentation/devicetree/bindings/clock/qcom,gpucc.yaml index f57aceddac6b..5b385e4976b6 100644 --- a/Documentation/devicetree/bindings/clock/qcom,gpucc.yaml +++ b/Documentation/devicetree/bindings/clock/qcom,gpucc.yaml @@ -28,6 +28,7 @@ properties: compatible: enum: - qcom,sdm845-gpucc + - qcom,sa8540p-gpucc - qcom,sa8775p-gpucc - qcom,sc7180-gpucc - qcom,sc7280-gpucc From patchwork Tue Mar 26 14:01:06 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Johan Hovold X-Patchwork-Id: 782735 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 1027C757FD; Tue, 26 Mar 2024 14:01:32 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711461693; cv=none; b=bHs1hWYhhHF9C39TlcPTN2Unht1JKH50SS688jwXp2dtllEj9eIY4Fvo3CzJH4NTpOSUtd7MZmN6BiqbZsejBhDBkmumVsbdR8tpYk5lVK7HAh/GRaib+XH3NGpNwcqpbV9hfFDx80tEy/GoHHKKOb6MZhBeHGf5hVeW8iykOzM= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711461693; c=relaxed/simple; bh=sshlJawg659jSJfqUQ6B4XGmjcjFXGGOIn2jUhaVb9U=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=WRUJX+BegCfF1lcxXDbx5jloShuszyi9gbB6Dw3zUNzwuIWooDacBqQb+UKauIrtea7uxVXAr1UiiceBPtZQ+mdNcES4rOaFg6r0MsE7p7ZlB+VM1fadlSKPsSyJBoDYQ/+w8qdsem6G69Y6PfroRJWwdm7/NjScKZsyMIC/DPw= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=rKVoACsQ; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="rKVoACsQ" Received: by smtp.kernel.org (Postfix) with ESMTPSA id A7B8BC433A6; Tue, 26 Mar 2024 14:01:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1711461692; bh=sshlJawg659jSJfqUQ6B4XGmjcjFXGGOIn2jUhaVb9U=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=rKVoACsQNc8saXiMROuxFyNJiPoe+4lapP5s6rohMVryogcSykeied/MZMn4lTjAy xGmUFXVigXSJwQoLZPR+7NLHcJ0Y2IVdEiUGt4tnrSSqdTi/kgarFjpIxjnHOkt6NP m3q5Xmq0sGpbr+ljYdR0bzUSrrWSgFEYPtndnKooQmHAj9EbfqjNuppmHgvvNZugGj vjCA+R+OJkgj0IpKMGmAtv09fcYaUds9Phi6ttscTbN2AFCYnAazff54S/Q+dDgcbY gunLiHCOaWHABdrAGB3gw0zc/ZJFyHl98X1B+XDAkcJkOGw5SAtKgGSlHPIUc6f8id iXlK71+UD2jDA== Received: from johan by xi.lan with local (Exim 4.97.1) (envelope-from ) id 1rp7My-000000005Yt-3rXx; Tue, 26 Mar 2024 15:01:40 +0100 From: Johan Hovold To: Bjorn Andersson Cc: Konrad Dybcio , Michael Turquette , Stephen Boyd , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Mark Brown , Dmitry Baryshkov , linux-arm-msm@vger.kernel.org, linux-clk@vger.kernel.org, linux-kernel@vger.kernel.org, Johan Hovold Subject: [PATCH 3/5] clk: qcom: gpucc-sc8280xp: make cc descriptor const Date: Tue, 26 Mar 2024 15:01:06 +0100 Message-ID: <20240326140108.21307-4-johan+linaro@kernel.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240326140108.21307-1-johan+linaro@kernel.org> References: <20240326140108.21307-1-johan+linaro@kernel.org> Precedence: bulk X-Mailing-List: linux-arm-msm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Add the missing 'const' keyword to mark the Qualcomm clock controller descriptor data as constant. Signed-off-by: Johan Hovold --- drivers/clk/qcom/gpucc-sc8280xp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/clk/qcom/gpucc-sc8280xp.c b/drivers/clk/qcom/gpucc-sc8280xp.c index 3611d2d1823d..df6b01768767 100644 --- a/drivers/clk/qcom/gpucc-sc8280xp.c +++ b/drivers/clk/qcom/gpucc-sc8280xp.c @@ -415,7 +415,7 @@ static const struct regmap_config gpu_cc_sc8280xp_regmap_config = { .fast_io = true, }; -static struct qcom_cc_desc gpu_cc_sc8280xp_desc = { +static const struct qcom_cc_desc gpu_cc_sc8280xp_desc = { .config = &gpu_cc_sc8280xp_regmap_config, .clks = gpu_cc_sc8280xp_clocks, .num_clks = ARRAY_SIZE(gpu_cc_sc8280xp_clocks), From patchwork Tue Mar 26 14:01:08 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Johan Hovold X-Patchwork-Id: 782734 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 41D627603B; Tue, 26 Mar 2024 14:01:33 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711461693; cv=none; b=FieJZKgVH7oQQBbCVTzCQUJWxf8H1nWEAudmPIilySFGyxYj3xayS3TCgu9IkWudVEXR0Y53T/YAYDIUo/3Gma+7wv1BbcYjz6+rjgIuzJkwi3FGc+0p8J9lQPSzrUwSvbou+KamMpmJprAx+uhKZX6VWfX2D2tRFxrnXt1OKi4= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711461693; c=relaxed/simple; bh=3YqcMcSeQrAJhFxyehRFqJm+kpoklrIhOsCDq/mQiJg=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=EwaiPwxWS4U9TU1aByluLFZhohTV8KO4SLMUGOy2OHeH52eVjfcF1eNOOAsfAXJB0du7ltT1h+qwq/x3Z7wxgmMy5cr49JZwpsGExrEe9sms2ADlXmJ8rXiLIw9LXB/Hby+4yI6icCznLX5uYeWLfLVZMzZCD1PGu46sZw5NI+w= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=KrcqGyo3; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="KrcqGyo3" Received: by smtp.kernel.org (Postfix) with ESMTPSA id B044BC433B1; Tue, 26 Mar 2024 14:01:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1711461692; bh=3YqcMcSeQrAJhFxyehRFqJm+kpoklrIhOsCDq/mQiJg=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=KrcqGyo3X5Uw4H9MVaz14s65PrNgYiJli1b8J62iU0vPDWMQcRje0CDGMRNJHcv/L zDEC97fo3KmH/yjcsCSlFreXdYXLNiqqcYmg8nBCS0i2oA6dfBQ2xKlztsyDscfCQi Mqg1aa7v92THqN8Io6Z3B/TlAEH9savCoiEvQDJ6ihrnF4V8j4Qe2oN0v8YlmCc3aa /YhFQhX9iPucFsKjCPeQITVgYWyFObwRuGaElK5+uZr5fBN2hfXmPx76Y5zlRJdydO VYoj0Z/+hPjD1VRBcRa9+iIwmQu9z1fg6dLZLMHR8LOAsvYYdHgYWSFgNHHI3N40xC Iihi8D3wLsp1w== Received: from johan by xi.lan with local (Exim 4.97.1) (envelope-from ) id 1rp7Mz-000000005Yx-0NM3; Tue, 26 Mar 2024 15:01:41 +0100 From: Johan Hovold To: Bjorn Andersson Cc: Konrad Dybcio , Michael Turquette , Stephen Boyd , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Mark Brown , Dmitry Baryshkov , linux-arm-msm@vger.kernel.org, linux-clk@vger.kernel.org, linux-kernel@vger.kernel.org, Johan Hovold Subject: [PATCH 5/5] arm64: dts: qcom: sa8540p: drop fallback gpucc compatible Date: Tue, 26 Mar 2024 15:01:08 +0100 Message-ID: <20240326140108.21307-6-johan+linaro@kernel.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240326140108.21307-1-johan+linaro@kernel.org> References: <20240326140108.21307-1-johan+linaro@kernel.org> Precedence: bulk X-Mailing-List: linux-arm-msm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Drop the fallback SC8280XP GPU clock controller compatible that was added temporarily to handle the transition to the new SA8540P compatible. Signed-off-by: Johan Hovold --- arch/arm64/boot/dts/qcom/sa8540p.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm64/boot/dts/qcom/sa8540p.dtsi b/arch/arm64/boot/dts/qcom/sa8540p.dtsi index 3b31a9ea3492..9c2e99d30d08 100644 --- a/arch/arm64/boot/dts/qcom/sa8540p.dtsi +++ b/arch/arm64/boot/dts/qcom/sa8540p.dtsi @@ -168,7 +168,7 @@ opp-2592000000 { }; &gpucc { - compatible = "qcom,sa8540p-gpucc", "qcom,sc8280xp-gpucc"; + compatible = "qcom,sa8540p-gpucc"; /* SA8295P and SA8540P doesn't provide gfx.lvl */ /delete-property/ power-domains;