From patchwork Sat Nov 16 11:31:17 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Konrad Dybcio X-Patchwork-Id: 843831 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 3CC4D22338; Sat, 16 Nov 2024 11:31:26 +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=1731756687; cv=none; b=K+nI/P60PU5OLogQsjbbkBmNTiQsBX9UdU+C8UydZrY0uqrGC1m34wTuT4yHFT+rC4jeiDg+wQ0zNuM5v0dXJEuL1L4c1cdf1Wj0KOV6tS8m1E+xcHUr8HlGW1f9T5Lo0TLFRgimfn6U6VE1jVPPNrZngVNyJ6faZtDApedX5iE= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1731756687; c=relaxed/simple; bh=8GcodKB88++Kr94XKflhS+lzQOpD3Fcjty+zEZyc4Eo=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=eLBfp9A+o6/7Rvu9jxbd5ktIqUfOW4D+G337dSeXGj2XuRGbu0vZSlYj01yPULqRzc3mMyFHfVrtr9sug7WXqTpUZIl9GKMP23kC4J9tRJCn1OhBxFMcLgsiJPjeoiYY5AuvsB8VG5kKyn0xqNcPGt+FQts3Bq/94Ij7BF4HsgQ= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=TwpfYpLP; 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="TwpfYpLP" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 4D97FC4CED9; Sat, 16 Nov 2024 11:31:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1731756686; bh=8GcodKB88++Kr94XKflhS+lzQOpD3Fcjty+zEZyc4Eo=; h=From:Date:Subject:References:In-Reply-To:To:Cc:From; b=TwpfYpLPVwpaWuK3bVCmluDriUaKrl/PoYVN3Z1GojGjQ+Skhbov71Rg5/x5xeGXa A1LMyFpgIIDsjX7VefIAVnMs0S952zOo4+En+8xkR5Luqj9iM/ZKNm2Ag7UhcCn81u +1m2P7wGBwdrlTEkuUYxnuLMRyZ8yQsqO3z+3fUrh7zDVYYeJSoFysXPRpyFzi6Avc gstE9rJf2X3Rove02k2vBZb/N7BvTP2cHdXV7zdXcHOTNzw8O9rsk/AIO77q9F5FeX 7MHDnZs+GJ/+cKhLwvuPSgnRR0Q9wVAsEZ6MwywlLna2sEds4rfRFAt2r3Wht9hWyU ObGqT0U0PaZcQ== From: Konrad Dybcio Date: Sat, 16 Nov 2024 12:31:17 +0100 Subject: [PATCH 1/2] dt-bindings: cpufreq: cpufreq-qcom-hw: Add SC8180X compatible Precedence: bulk X-Mailing-List: linux-arm-msm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20241116-topic-sc8180x_cpufreq_bindings-v1-1-e7db627da99c@oss.qualcomm.com> References: <20241116-topic-sc8180x_cpufreq_bindings-v1-0-e7db627da99c@oss.qualcomm.com> In-Reply-To: <20241116-topic-sc8180x_cpufreq_bindings-v1-0-e7db627da99c@oss.qualcomm.com> To: "Rafael J. Wysocki" , Viresh Kumar , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Manivannan Sadhasivam , Bjorn Andersson , Konrad Dybcio , Vinod Koul Cc: Marijn Suijten , linux-pm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, Konrad Dybcio X-Mailer: b4 0.14.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1731756678; l=1298; i=konrad.dybcio@oss.qualcomm.com; s=20230215; h=from:subject:message-id; bh=UJAqeQny8c13BwkHDfrGF6OfhjTo040lRi9YpokJKFM=; b=XerdUPOqLSqZuuadnP6PRbh1qP09duhQj5siAAIIyGF/K/6ARqS/KN1uTThsq4LmlYmv+T7SP ZHHiZRjXOmaBMxjtc9Kz8txngF3+NkhrME+6zJmJdbO8D40stjGc4L6 X-Developer-Key: i=konrad.dybcio@oss.qualcomm.com; a=ed25519; pk=iclgkYvtl2w05SSXO5EjjSYlhFKsJ+5OSZBjOkQuEms= From: Konrad Dybcio Add a SoC-specific compatible for SC8180X. It has 2 domains and uses the older, non-EPSS hardware. Signed-off-by: Konrad Dybcio --- Documentation/devicetree/bindings/cpufreq/cpufreq-qcom-hw.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Documentation/devicetree/bindings/cpufreq/cpufreq-qcom-hw.yaml b/Documentation/devicetree/bindings/cpufreq/cpufreq-qcom-hw.yaml index 729f68c1f81d32e54e170879c4f7dd91c0d7c80a..e937eb7355e7fb74c0aeafb4cb9f5ed80d96e6c3 100644 --- a/Documentation/devicetree/bindings/cpufreq/cpufreq-qcom-hw.yaml +++ b/Documentation/devicetree/bindings/cpufreq/cpufreq-qcom-hw.yaml @@ -23,6 +23,7 @@ properties: - enum: - qcom,qcm2290-cpufreq-hw - qcom,sc7180-cpufreq-hw + - qcom,sc8180x-cpufreq-hw - qcom,sdm670-cpufreq-hw - qcom,sdm845-cpufreq-hw - qcom,sm6115-cpufreq-hw @@ -135,6 +136,7 @@ allOf: - qcom,qdu1000-cpufreq-epss - qcom,sa8255p-cpufreq-epss - qcom,sc7180-cpufreq-hw + - qcom,sc8180x-cpufreq-hw - qcom,sc8280xp-cpufreq-epss - qcom,sdm670-cpufreq-hw - qcom,sdm845-cpufreq-hw From patchwork Sat Nov 16 11:31:18 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Konrad Dybcio X-Patchwork-Id: 843986 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 7166422338; Sat, 16 Nov 2024 11:31:31 +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=1731756691; cv=none; b=JdyIGhH4jU4UwUA44V5AmhvpxKm/vYvOX4ep+EVtj+Z98xFtOnJg3K1GzbQHYoBENCkkvCByU5FDIrLWko1rBseVrILkFBLSpuYDBNZvRFYvzY2UEQnjzffW+OoajIKRp1X38Yqgf6kbBueJm9ipx8fgbN5aUQ6Ao3JS3KKtg2s= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1731756691; c=relaxed/simple; bh=6FtOTp2L33sndUrL9nlXHnk0jTq9STErg2JadJb+OKk=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=lcKqmKPZKasHnJJsxTy4EbhJy+kdBhZOmspWQCg5Av0vIbjQlfnyGMEtMkMlzD5TVUzRw9TIkJ98/9QFfQ6SZeBeikd5WXBZ+iXgaARP8IGQAgiwPk/2UHXzCM7XTEXFLAwN3xGnENGuhYFvnP5OlvOjY+OV6wtNKrbVQIOzHro= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=ZxPiKG2E; 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="ZxPiKG2E" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 44312C4CEC3; Sat, 16 Nov 2024 11:31:26 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1731756690; bh=6FtOTp2L33sndUrL9nlXHnk0jTq9STErg2JadJb+OKk=; h=From:Date:Subject:References:In-Reply-To:To:Cc:From; b=ZxPiKG2EO9LNH47zhy9ZWhD+Ch7FUKd1oLFzbvR+Gg3T6gGUTms+GKIdOxbyQQe2L 1XZg4O9gqTx+6RY+2LQmpJ22pJNqxRt4l05cadYhPoPrBn+y+52HJmH7X1gJEqt+zk 0g7v9dQ8xMnNQ9GM8ivYe37xrigynU0hmM1BTvkSrMSFJnSUTz4SFTmv1tFYQPJ+Pe VAN7IWHUVN5sVMOmc+XmEXudLgxm9BX//UcvACa0RjxZkNuAQtA8he/IGzeaTay99j RxCTl0tJJpWigaEdOhK4r7iHDfFMETIE5WAec4FihiFdNrkNT5mSP2uTOSQNBWQ+Mu XiqNu6HIhdD6g== From: Konrad Dybcio Date: Sat, 16 Nov 2024 12:31:18 +0100 Subject: [PATCH 2/2] arm64: dts: qcom: sc8180x: Add a SoC-specific compatible to cpufreq-hw Precedence: bulk X-Mailing-List: linux-arm-msm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20241116-topic-sc8180x_cpufreq_bindings-v1-2-e7db627da99c@oss.qualcomm.com> References: <20241116-topic-sc8180x_cpufreq_bindings-v1-0-e7db627da99c@oss.qualcomm.com> In-Reply-To: <20241116-topic-sc8180x_cpufreq_bindings-v1-0-e7db627da99c@oss.qualcomm.com> To: "Rafael J. Wysocki" , Viresh Kumar , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Manivannan Sadhasivam , Bjorn Andersson , Konrad Dybcio , Vinod Koul Cc: Marijn Suijten , linux-pm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, Konrad Dybcio X-Mailer: b4 0.14.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1731756678; l=1018; i=konrad.dybcio@oss.qualcomm.com; s=20230215; h=from:subject:message-id; bh=rDzXnBO2BTwNVQR9ieAv61yGPCGBlgCfXDXJN72WymA=; b=QQB9FzhVW8PFMgl8/iQ6qvPpyZYaSA0ByQhAkXXKGd5AJPAIWAifaroNrwMjS7Bj/kGhHZuk2 EcrF+0cD4vVBLGG53XAxSZKvCAxD0Nix+8FZSxfTLa3fdHq1d56VCBJ X-Developer-Key: i=konrad.dybcio@oss.qualcomm.com; a=ed25519; pk=iclgkYvtl2w05SSXO5EjjSYlhFKsJ+5OSZBjOkQuEms= From: Konrad Dybcio Comply with bindings guidelines and get rid of errors such as: cpufreq@18323000: compatible: 'oneOf' conditional failed, one must be fixed: ['qcom,cpufreq-hw'] is too short Fixes: 8575f197b077 ("arm64: dts: qcom: Introduce the SC8180x platform") Signed-off-by: Konrad Dybcio --- arch/arm64/boot/dts/qcom/sc8180x.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm64/boot/dts/qcom/sc8180x.dtsi b/arch/arm64/boot/dts/qcom/sc8180x.dtsi index 717ec4ad63f3035b839d85fb1dd375fac9b0a2b7..745a7d0b8381046dda40dc31e61df905824d6388 100644 --- a/arch/arm64/boot/dts/qcom/sc8180x.dtsi +++ b/arch/arm64/boot/dts/qcom/sc8180x.dtsi @@ -3889,7 +3889,7 @@ lmh@18358800 { }; cpufreq_hw: cpufreq@18323000 { - compatible = "qcom,cpufreq-hw"; + compatible = "qcom,sc8180x-cpufreq-hw", "qcom,cpufreq-hw"; reg = <0 0x18323000 0 0x1400>, <0 0x18325800 0 0x1400>; reg-names = "freq-domain0", "freq-domain1";