From patchwork Wed Jun 19 21:02:45 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Luca Weiss X-Patchwork-Id: 13704565 Received: from ahti.lucaweiss.eu (ahti.lucaweiss.eu [128.199.32.197]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 5891115A845; Wed, 19 Jun 2024 21:03:07 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=128.199.32.197 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718830989; cv=none; b=FINZdNVJI4Hr++x7BaiO0wshThBpJv7GK51g+TJkTTklnC7L+YnP9F69pIUYKtKTB+fGgjrkLKKFlhmCuJFUOl9gX1j8LYs0ADIBnjQLetR/RHemsc13UCq62YBPOvXWF+frdUcSt0HigHWIQ6xTTjSqVIouFHs+bcbkAoQW3fs= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718830989; c=relaxed/simple; bh=yQBW8z4axysHiGN+e7i8nXPi1UBkcEmQK0mdRQbQ40Q=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=gIPDSelBvVKF+zozRu60vA7zd0JTCuK4/mq2SH+s7ua+oNs3/1ZYw82k7q8I2VofYKtP/ZUZrihaIXnh4RiGTDu+tPTvFxQuY/AXVoyTX4KX2QvqOqWhSXbNerI//QPmzdxMeB1b37HPzO8ayMXxPlQdvYSamkftz5xauRCk2os= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=lucaweiss.eu; spf=pass smtp.mailfrom=lucaweiss.eu; dkim=pass (1024-bit key) header.d=lucaweiss.eu header.i=@lucaweiss.eu header.b=VO0W1bOY; arc=none smtp.client-ip=128.199.32.197 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=lucaweiss.eu Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=lucaweiss.eu Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=lucaweiss.eu header.i=@lucaweiss.eu header.b="VO0W1bOY" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=lucaweiss.eu; s=s1; t=1718830985; bh=yQBW8z4axysHiGN+e7i8nXPi1UBkcEmQK0mdRQbQ40Q=; h=From:Date:Subject:References:In-Reply-To:To:Cc; b=VO0W1bOYD4LKSXAnWaxjnNtauATSOP6y4Nhuk45OsHAXKWxoTWGIGsh4iM7ri4x6A Z8K46knseGue4T498sGUiRW2jdt13F+IGi/7tRTAa3W6gNsKl4oZsuSvbE33cX5rRN aRO6IkhXunAHob6gTm8iblN9DWzkICM/MHQHDVcU= From: Luca Weiss Date: Wed, 19 Jun 2024 23:02:45 +0200 Subject: [PATCH 1/7] dt-bindings: mailbox: qcom: add compatible for MSM8226 SoC Precedence: bulk X-Mailing-List: linux-arm-msm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20240619-msm8226-cpufreq-v1-1-85143f5291d1@lucaweiss.eu> References: <20240619-msm8226-cpufreq-v1-0-85143f5291d1@lucaweiss.eu> In-Reply-To: <20240619-msm8226-cpufreq-v1-0-85143f5291d1@lucaweiss.eu> To: ~postmarketos/upstreaming@lists.sr.ht, phone-devel@vger.kernel.org, Jassi Brar , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Bjorn Andersson , Michael Turquette , Stephen Boyd , Konrad Dybcio Cc: linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, linux-clk@vger.kernel.org, Luca Weiss X-Mailer: b4 0.14.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=866; i=luca@lucaweiss.eu; h=from:subject:message-id; bh=yQBW8z4axysHiGN+e7i8nXPi1UBkcEmQK0mdRQbQ40Q=; b=owEBbQKS/ZANAwAIAXLYQ7idTddWAcsmYgBmc0eCyg0B9hONg1K6PiEtWtpKJoZsDpD7XEbtb d1l08wZ8K+JAjMEAAEIAB0WIQQ5utIvCCzakboVj/py2EO4nU3XVgUCZnNHggAKCRBy2EO4nU3X Vq40D/9fnWO1r3tYievE0u6euDNtlgexLtRgFSxWJ2hDxy/uurgYUjeQaXml5MvTuulLBhGh4vN Jt+wh4Py3cexJO5YZbBeVLiGU341CR8Nb8Ik2Gn8VONx9mfX1sRLFR5PKw+e0eIqQsRsrkB0REm YuesaHcN4CDXgdkK1tCMyiHfG58tsWTxJDatJ2tRCtlxy78oLD/WwOtmkGkHYztJ3YVU/Hly8C9 6vqQpyqlXq/Kjs0zCdHw87ohx/Q0IANDgNLFSU4ZgdMqC5GMNQa9oajM1WZR9SzGSP+4OxPpPAq Wa49RVYaM0PTC1ZfFM5PIYx9q0m/6DdAkW/OB7xcHONqrpBMxIwFpNksICslafDCkWf1vO4pIbv MqiiJrUMs9+8xRnuiLvAif2E6xzlu5jtlFRuhXhA8sLOxhaPr21a/EcDvCTOtXunnzrY/Z8ygLR 8BwpCUNzkh/yhMcpm3ks0bTtIrOYJGdNtv6NtP7dB7PjPc/K4M56kGELQTu7dSZ2vS8++AVxtYC 2CD9pC3RVpm/KOmxkR1f4LefltepFPY6klgo4G6+9dvk0aWy5NJH9u3B3Fu3JRUACcdbI57YM9W GbJ94bE2RDu8M4xgvub5eCYb+bdTCcm5f+bUAM1jdXb06tXJMa4vu721eRCSSYsoeJB5kzjEr4u sVYHxCDw12nGNFQ== X-Developer-Key: i=luca@lucaweiss.eu; a=openpgp; fpr=BD04DA24C971B8D587B2B8D7FAF69CF6CD2D02CD Add the mailbox compatible for MSM8226 SoC. Signed-off-by: Luca Weiss Acked-by: Krzysztof Kozlowski --- Documentation/devicetree/bindings/mailbox/qcom,apcs-kpss-global.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/mailbox/qcom,apcs-kpss-global.yaml b/Documentation/devicetree/bindings/mailbox/qcom,apcs-kpss-global.yaml index 982c741e6225..dc75ea2383f1 100644 --- a/Documentation/devicetree/bindings/mailbox/qcom,apcs-kpss-global.yaml +++ b/Documentation/devicetree/bindings/mailbox/qcom,apcs-kpss-global.yaml @@ -25,6 +25,7 @@ properties: - const: qcom,ipq6018-apcs-apps-global - items: - enum: + - qcom,msm8226-apcs-kpss-global - qcom,qcs404-apcs-apps-global - const: qcom,msm8916-apcs-kpss-global - const: syscon From patchwork Wed Jun 19 21:02:46 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Luca Weiss X-Patchwork-Id: 13704566 Received: from ahti.lucaweiss.eu (ahti.lucaweiss.eu [128.199.32.197]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 9900815A846; Wed, 19 Jun 2024 21:03:07 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=128.199.32.197 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718830989; cv=none; b=sEH5NnMttpRMWRoKZOYTjhD6lb+jTfQCts8w+jNMG9yyBtwolls8YIs4w0TE6sTBlTbnBNsAeI7d4FRNG2v+lbsmCUcCxs+kzjmwiucMxUHHdGqWSj1l9qCTRZQECjC8S/3CWwSdKOuoJqzLNsU0zyIyYdrQocrwYQxWRJiNPDI= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718830989; c=relaxed/simple; bh=WO1VtNkBXXRa9Y6O24OZqkllBD/OcgL5EnKk2t+/i2o=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=AXOeF4lJrDpXDA098HnlhlZBqlmmcwB0NQ3dgugZPWoIVvSAmMxV2/aBvqmLLwK9zzwUPE++8lvPM52p3fUJo+jDXQjr1uOheXhWUgZ9qyj4FfvLfU0gw0ePMZFKrW5O/BpDeFB1aLAs5YKW777VZjuMQm7bgNP+2D6AFhiCQuM= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=lucaweiss.eu; spf=pass smtp.mailfrom=lucaweiss.eu; dkim=pass (1024-bit key) header.d=lucaweiss.eu header.i=@lucaweiss.eu header.b=BURZkqFX; arc=none smtp.client-ip=128.199.32.197 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=lucaweiss.eu Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=lucaweiss.eu Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=lucaweiss.eu header.i=@lucaweiss.eu header.b="BURZkqFX" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=lucaweiss.eu; s=s1; t=1718830985; bh=WO1VtNkBXXRa9Y6O24OZqkllBD/OcgL5EnKk2t+/i2o=; h=From:Date:Subject:References:In-Reply-To:To:Cc; b=BURZkqFXjSUGX1XWc/Db9KW7MMgiMJ4eyRgvPSHOFFgLbKSVcmjDamv0CMjA7IKRx SegZnJzIzcGyNjK7oOAgN4+g84Kpq86vIQkG5+vEl5ZWXqYpYeSMHgzGnAGxsqAFg6 WXG8RMlkMHWu3oMr89bwF2LAbcV2GeVevz0LTXf0= From: Luca Weiss Date: Wed, 19 Jun 2024 23:02:46 +0200 Subject: [PATCH 2/7] dt-bindings: clock: qcom,a53pll: Allow opp-table subnode Precedence: bulk X-Mailing-List: linux-arm-msm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20240619-msm8226-cpufreq-v1-2-85143f5291d1@lucaweiss.eu> References: <20240619-msm8226-cpufreq-v1-0-85143f5291d1@lucaweiss.eu> In-Reply-To: <20240619-msm8226-cpufreq-v1-0-85143f5291d1@lucaweiss.eu> To: ~postmarketos/upstreaming@lists.sr.ht, phone-devel@vger.kernel.org, Jassi Brar , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Bjorn Andersson , Michael Turquette , Stephen Boyd , Konrad Dybcio Cc: linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, linux-clk@vger.kernel.org, Luca Weiss X-Mailer: b4 0.14.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=747; i=luca@lucaweiss.eu; h=from:subject:message-id; bh=WO1VtNkBXXRa9Y6O24OZqkllBD/OcgL5EnKk2t+/i2o=; b=owEBbQKS/ZANAwAIAXLYQ7idTddWAcsmYgBmc0eD9srpR3VzmWqPqkGh706sVpVcGPdwajhOy wSHvuGOzO+JAjMEAAEIAB0WIQQ5utIvCCzakboVj/py2EO4nU3XVgUCZnNHgwAKCRBy2EO4nU3X VlNeD/9snKtdFCLijgys71cVjFpDCkbgH/urqYWWOUZwJsbaK1BQ9hEQPxZL8V1K+gLTwxupxTo tmZ4Uzih7bWkVk5hWr/1MSoOseVETQp+zxoZOigCAkpuG1e6iEuExCZVYYlgOt7SogdG/Fl1uFr ppWMaYnXPpxaa2LKVMV4I2lAIygFYi+QD3f3ArnWmBUxLrFwwcrEGjoxlY7t0xK4dbCgiIwyJCm k0eDJyMvWvpv6eGXKsGCWExCVJlItnSVT683grVN5FcQ6jsgokMB2Py7sEHYDtqq5epaEMEEfOu tX0Tt/v5lBqwyxd+3aQK3o157Tb+swGtQaVRByheTXpJo4/6lQ1IeUrpMCDOAjo4S7avahQ3FJc bJrAZxh+E9zkMyA3u4fqKM17nyctMafPkb9BO7AVYYvsWpP1lc/l5fKoXvdpVejUPyyWV04k/JC 9WDqziQTz6S38rBCoST2IB8Ok3bZpQktU4mDYBvLJV6yjN85hbgbEWPITvN0UH5UQkgHJl6hVZm 1XC06pVNVTxzscza9dNgINZRdCS2ltBUiLuGUFJjrsVCR9wry2YPutwfqCd1zs4ih05fyGmoDhj wFFMUdM3Ni6uM4eJPd43pfMEixFC5xFQYr3GkYmXzHsSX6lXvLRtOcPLMU+slxcHcIqC55lFVMd jnRmw/xFUt+nmLw== X-Developer-Key: i=luca@lucaweiss.eu; a=openpgp; fpr=BD04DA24C971B8D587B2B8D7FAF69CF6CD2D02CD Allow placing an opp-table as a subnode that can be assigned using operating-points-v2 to specify the frequency table for the PLL. Signed-off-by: Luca Weiss Reviewed-by: Krzysztof Kozlowski --- Documentation/devicetree/bindings/clock/qcom,a53pll.yaml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Documentation/devicetree/bindings/clock/qcom,a53pll.yaml b/Documentation/devicetree/bindings/clock/qcom,a53pll.yaml index 5ca927a8b1d5..8cd73a623ef5 100644 --- a/Documentation/devicetree/bindings/clock/qcom,a53pll.yaml +++ b/Documentation/devicetree/bindings/clock/qcom,a53pll.yaml @@ -40,6 +40,9 @@ properties: operating-points-v2: true + opp-table: + type: object + required: - compatible - reg From patchwork Wed Jun 19 21:02:47 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Luca Weiss X-Patchwork-Id: 13704567 Received: from ahti.lucaweiss.eu (ahti.lucaweiss.eu [128.199.32.197]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 98E9215A847; Wed, 19 Jun 2024 21:03:07 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=128.199.32.197 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718830989; cv=none; b=niv6n1qFF/g6pA6BMs4vFb4xK1zHX/KSY2egwRwERY7zQ0GYKHhpnRyhuWLzS5CmAiKQ8C4X/qMOy83g8U1knZ8N9G9UCnkaoG/ZuwsDPqeTLcVlf6bhvpHa4I9C7RmUBDCzEaZvV8sedXwFdHpRKjE7Xb2mOqshmwNmSWRS3jg= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718830989; c=relaxed/simple; bh=Rv7J16jrk32Z3j6CaqeK641utIIgQWQRQjogcpwAMIw=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=Sq97i7EXGCUwejulCZ9tWPl2FebQVu7Yhh6/o8mZADSA8Y1vST3xjLw/G1Uu/O6TYRqDy1GheV3F7JFrPwOIVvGgSV2YBiF1a9KFbg6IGYKm2MxhSldeCMOAOxnsVOFYw4lcjxcwNI5aE93kV53TzEys63ojBkhmJBo1l3JdkhM= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=lucaweiss.eu; spf=pass smtp.mailfrom=lucaweiss.eu; dkim=pass (1024-bit key) header.d=lucaweiss.eu header.i=@lucaweiss.eu header.b=OGKSxOpY; arc=none smtp.client-ip=128.199.32.197 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=lucaweiss.eu Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=lucaweiss.eu Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=lucaweiss.eu header.i=@lucaweiss.eu header.b="OGKSxOpY" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=lucaweiss.eu; s=s1; t=1718830986; bh=Rv7J16jrk32Z3j6CaqeK641utIIgQWQRQjogcpwAMIw=; h=From:Date:Subject:References:In-Reply-To:To:Cc; b=OGKSxOpYUqQbe1IS7QvQIMoUr+HQdkjO75e9kmiZdrqoQwQTJWCjZiMlGdBIi86mg Uals8VueqTZufxSUSrSUoBdLRlxAOP/qWaJvBluCtlFVKBYzR4AeglnEZOqSvuYVJ/ sxuCwU91UCkkFX5mR8b7c499mb170dH51YWp5wtQ= From: Luca Weiss Date: Wed, 19 Jun 2024 23:02:47 +0200 Subject: [PATCH 3/7] dt-bindings: clock: qcom,a53pll: Add msm8226-a7pll compatible Precedence: bulk X-Mailing-List: linux-arm-msm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20240619-msm8226-cpufreq-v1-3-85143f5291d1@lucaweiss.eu> References: <20240619-msm8226-cpufreq-v1-0-85143f5291d1@lucaweiss.eu> In-Reply-To: <20240619-msm8226-cpufreq-v1-0-85143f5291d1@lucaweiss.eu> To: ~postmarketos/upstreaming@lists.sr.ht, phone-devel@vger.kernel.org, Jassi Brar , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Bjorn Andersson , Michael Turquette , Stephen Boyd , Konrad Dybcio Cc: linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, linux-clk@vger.kernel.org, Luca Weiss X-Mailer: b4 0.14.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=738; i=luca@lucaweiss.eu; h=from:subject:message-id; bh=Rv7J16jrk32Z3j6CaqeK641utIIgQWQRQjogcpwAMIw=; b=owEBbQKS/ZANAwAIAXLYQ7idTddWAcsmYgBmc0eEPLCOjXDZiFvPYrV0BXhlYxojOhbh8Q7Xm pHoqh1k4nWJAjMEAAEIAB0WIQQ5utIvCCzakboVj/py2EO4nU3XVgUCZnNHhAAKCRBy2EO4nU3X VpKxEACoVdW0tjGjFMfgTxxEQ4Rksdk3RUOLRWeFr5uIddusza9IqfSwgraSBFARR8/UAhkp5Ef oQQpfX5+WmPANeFcdCVyRzRdPpb5b14bWJW+6QT0lBh/B20gMyvBSEJjlZ9hxyPwKe+ebbpC5Fo CAUevpjJFqAcmzD378+o4ynJIn0R18ms7fDuLDD7CzDSkd1WCCNhGQ4b7FqEj2nE6zhu0LjKLNO FWuukZ1aYH6FBpPfYV7kHgCvSpY7lZ4R62a3j3CQmivF9D+z0hUfgOlybYyS9f5kelzdHRljCPF NNIsXxOJbYYvqRHsErlm+6+rBqR82aZTfrPXdeTRf2dW8rIQwrdCmda1nIqklID6sJSYIwLHOei s4+E7ufsvoEjfItkEynToKqOP8sCjbPLUmqFIpPaI/q4Ie06gsqPInMW2PIl3GGTl0F4MX1w0WJ Gzd2FaQWGh2YXJeZc1ecoU1ZwyNX+49uRhdm2BvHNMNK9XZIZKbNr2HJCry2C09+zQ7X561N3YJ 0XXDBe+QKGEqdKuou5kUxIA2ob8rEkZwfXIj0vFYKCXzd3SmjhEyzaQZZfl02s+eu736/qv2XSe FJIuSjmzFJkZ4Jx0w8ZTvzzzCiDbTXiTaBkUyet7LFZYYu57wbKtwT/vKMRigV9pkXDW29/+S6u GFgWT9+uCLzXmew== X-Developer-Key: i=luca@lucaweiss.eu; a=openpgp; fpr=BD04DA24C971B8D587B2B8D7FAF69CF6CD2D02CD Add the compatible for the A7PLL found in MSM8226 SoCs. Signed-off-by: Luca Weiss Acked-by: Krzysztof Kozlowski --- Documentation/devicetree/bindings/clock/qcom,a53pll.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/clock/qcom,a53pll.yaml b/Documentation/devicetree/bindings/clock/qcom,a53pll.yaml index 8cd73a623ef5..47ceab641a4c 100644 --- a/Documentation/devicetree/bindings/clock/qcom,a53pll.yaml +++ b/Documentation/devicetree/bindings/clock/qcom,a53pll.yaml @@ -21,6 +21,7 @@ properties: - qcom,ipq6018-a53pll - qcom,ipq8074-a53pll - qcom,ipq9574-a73pll + - qcom,msm8226-a7pll - qcom,msm8916-a53pll - qcom,msm8939-a53pll From patchwork Wed Jun 19 21:02:48 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Luca Weiss X-Patchwork-Id: 13704568 Received: from ahti.lucaweiss.eu (ahti.lucaweiss.eu [128.199.32.197]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id D992315A86E; Wed, 19 Jun 2024 21:03:07 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=128.199.32.197 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718830989; cv=none; b=naDOQNa+ejPuKYmWXMjjk/ahJy3sSWpuNTcJrqKs5LEcMfEWgAAxG2eikvmb9YSMdkoJjD6MWFu4/lBJPTy0/Xwx3pRCyKXzGPHeAO2xPBravlEPleYftChrYcTb4GhCcwaTkJ6cl7aoqzhK3SySKQsKEDZiAsQ+jjUyerVwhMU= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718830989; c=relaxed/simple; bh=HHYOe1tNbi46oASusGfJKqUh6zTbC3KoPVXrtUPA63I=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=TAwL+zlnB0/YtEo+PZzghHpdT7Zcdr5XDrzbLR2iGtXXHgDqklTiELPfrnt7lTB6XRSv4qblSlzNaaqxoafxzPwrzMVR+iT49QcV4rIJp6LBmAQ1CFPJTiHUPFZC/1oyvNpEyXeEBMdJzbtCw/PqMoZeUZN7uHr+yyb9taML/EA= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=lucaweiss.eu; spf=pass smtp.mailfrom=lucaweiss.eu; dkim=pass (1024-bit key) header.d=lucaweiss.eu header.i=@lucaweiss.eu header.b=RthVQZTD; arc=none smtp.client-ip=128.199.32.197 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=lucaweiss.eu Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=lucaweiss.eu Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=lucaweiss.eu header.i=@lucaweiss.eu header.b="RthVQZTD" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=lucaweiss.eu; s=s1; t=1718830986; bh=HHYOe1tNbi46oASusGfJKqUh6zTbC3KoPVXrtUPA63I=; h=From:Date:Subject:References:In-Reply-To:To:Cc; b=RthVQZTD6pZSjqiRXZSrWYU3mbmeb/ejHFIHIR42U8+L9164uFHtY6qVBvZQgGsyz XW2mhj85Ul7Wp80zPYht3TywnXTKYrW3v4lBc5jqaRrgCx569EJ2ZjsZ0vvyg5oSkr f0tZxN6CknbMHhipr0ckdFfSW+g7h5+p2/m0nRhw= From: Luca Weiss Date: Wed, 19 Jun 2024 23:02:48 +0200 Subject: [PATCH 4/7] clk: qcom: a53-pll: Add MSM8226 a7pll support Precedence: bulk X-Mailing-List: linux-arm-msm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20240619-msm8226-cpufreq-v1-4-85143f5291d1@lucaweiss.eu> References: <20240619-msm8226-cpufreq-v1-0-85143f5291d1@lucaweiss.eu> In-Reply-To: <20240619-msm8226-cpufreq-v1-0-85143f5291d1@lucaweiss.eu> To: ~postmarketos/upstreaming@lists.sr.ht, phone-devel@vger.kernel.org, Jassi Brar , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Bjorn Andersson , Michael Turquette , Stephen Boyd , Konrad Dybcio Cc: linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, linux-clk@vger.kernel.org, Luca Weiss X-Mailer: b4 0.14.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=708; i=luca@lucaweiss.eu; h=from:subject:message-id; bh=HHYOe1tNbi46oASusGfJKqUh6zTbC3KoPVXrtUPA63I=; b=owEBbAKT/ZANAwAIAXLYQ7idTddWAcsmYgBmc0eFV6Lj77id0y5BxGy+VrfvUTm0TyOJl7z/8 xreIDDwmJ2JAjIEAAEIAB0WIQQ5utIvCCzakboVj/py2EO4nU3XVgUCZnNHhQAKCRBy2EO4nU3X VpZ6D/j9ctasA4NsUCd4PtAoAW0nXg9/aHUGMa9Qh7AF1rrY3Ep3AaHP84n6Ma7b05LRUsPEyGz 8VFSzmSa0ATLqIY1+qeq47aUYiOxSql2RZRDKVVHdQn2ktVd0amnLtmKQvzd5izV+jnPtagF1xk HVtP4cJB5FbO98oaEHX4uJHuq5zhiDIiYb+M5pa8F0AaSpEbe94Jr6IJWfp489Z7XlWnICmTo3p NCW6zB6aUhSwlRdtsN2sI0XVC0Zzh6SYwp/Er/JS+PJ36kK0Q9Jlbe7tHOViaEidT43fj8277wc s5EZqjiLKrwI7Gx5tuVs07kwQwC2CMsnZbjEN94vCS6xmPX+H+dXYR1IQ339/EFmJohOqzBeCzP 1o2wk6C6Ubd6w/ts4t7CfaIARfgI/MfH2Maz3b6CWBMoIMnv0ssZLaAO4GDwstTx/XEWtWxTakz M82sOEWoB8XRyf0a2ndPjQacLYRO42uLwzEcmyzeJwSAOVAJft4i2sf+ovJIP3XBE9KXP/2qs3X UCTXaw61+4j3mci+gp/uUXJQ0xpm90QGxGbn9nd3L+pgJlz/0tAMRGHlYAAZ1Zdh8cqKPZKFZHs fi1Blz7JQbHXdS/f0NWY5HxI1b0j4VoiJq68FbU1Ag3FCHx9yxnBCged7bwSiDm340dOqvj1Lo+ SiczF2+ZFrXWZ X-Developer-Key: i=luca@lucaweiss.eu; a=openpgp; fpr=BD04DA24C971B8D587B2B8D7FAF69CF6CD2D02CD The MSM8226 has one PLL for its Cortex-A7 cores. The frequencies will be specified in devicetree. Signed-off-by: Luca Weiss --- drivers/clk/qcom/a53-pll.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/clk/qcom/a53-pll.c b/drivers/clk/qcom/a53-pll.c index f9c5e296dba2..f43d455ab4b8 100644 --- a/drivers/clk/qcom/a53-pll.c +++ b/drivers/clk/qcom/a53-pll.c @@ -151,6 +151,7 @@ static int qcom_a53pll_probe(struct platform_device *pdev) } static const struct of_device_id qcom_a53pll_match_table[] = { + { .compatible = "qcom,msm8226-a7pll" }, { .compatible = "qcom,msm8916-a53pll" }, { .compatible = "qcom,msm8939-a53pll" }, { } From patchwork Wed Jun 19 21:02:49 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Luca Weiss X-Patchwork-Id: 13704571 Received: from ahti.lucaweiss.eu (ahti.lucaweiss.eu [128.199.32.197]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 884E515CD6A; Wed, 19 Jun 2024 21:03:10 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=128.199.32.197 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718830992; cv=none; b=DHCFAytKLz2ZIPZGHaQkAPfecu/TE2bGo75/jN0uaw/bxOrRP5zy4YcezauiyCQqOT5YyZ0QXXhm0J2Af6FRrpbAK5rFRWIBYqI6Ij/MkL46MHLkIQSLzSZSCNcRje0ySqbKiOKdPuh7M3vtDKL1Kh4I6VsFz/9HkKG3mRq/Th4= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718830992; c=relaxed/simple; bh=dUwcd84l+RYpW49/qEw1x1mOaB4uDAc7T83NkO3zsws=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=l60UCgIl/GeJQI+d0dLP+fA5AbEXRdjw5WJfYecuuGdMXb1AVHwFOlSXLRgNkqqUuqvHmznmG8YE8mEEQNEWCA5XgwrqPqIzGRVRRoHv58XWyFu1ICvpScO+2Tkk1PoCH8jbuL3H0Z992ZW7bRgfqL2T8/MC/uiDVG7gM+HPk10= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=lucaweiss.eu; spf=pass smtp.mailfrom=lucaweiss.eu; dkim=pass (1024-bit key) header.d=lucaweiss.eu header.i=@lucaweiss.eu header.b=K90oZqlr; arc=none smtp.client-ip=128.199.32.197 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=lucaweiss.eu Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=lucaweiss.eu Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=lucaweiss.eu header.i=@lucaweiss.eu header.b="K90oZqlr" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=lucaweiss.eu; s=s1; t=1718830986; bh=dUwcd84l+RYpW49/qEw1x1mOaB4uDAc7T83NkO3zsws=; h=From:Date:Subject:References:In-Reply-To:To:Cc; b=K90oZqlrjkf1IIwNjfglDGJ+QiHXe7GsPljp5ZxsTlh1kPNwqQ7IdnoFV2xC4NBsF RGhOBwDvZ/T77cNmy8ilSyI5t7RQmMWe9ZJEXIOAA2Y3LFeYZL4AuY1cU3S/VDtkyp Nk++2/VpcUnREhcfR9bDinJ+pdlsdCcnHhg60QAg= From: Luca Weiss Date: Wed, 19 Jun 2024 23:02:49 +0200 Subject: [PATCH 5/7] ARM: dts: qcom: msm8226: Add CPU frequency scaling support Precedence: bulk X-Mailing-List: linux-arm-msm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20240619-msm8226-cpufreq-v1-5-85143f5291d1@lucaweiss.eu> References: <20240619-msm8226-cpufreq-v1-0-85143f5291d1@lucaweiss.eu> In-Reply-To: <20240619-msm8226-cpufreq-v1-0-85143f5291d1@lucaweiss.eu> To: ~postmarketos/upstreaming@lists.sr.ht, phone-devel@vger.kernel.org, Jassi Brar , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Bjorn Andersson , Michael Turquette , Stephen Boyd , Konrad Dybcio Cc: linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, linux-clk@vger.kernel.org, Luca Weiss X-Mailer: b4 0.14.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=4286; i=luca@lucaweiss.eu; h=from:subject:message-id; bh=dUwcd84l+RYpW49/qEw1x1mOaB4uDAc7T83NkO3zsws=; b=owEBbQKS/ZANAwAIAXLYQ7idTddWAcsmYgBmc0eGLqcNJbh1wVnue6IdO/aqiu05W3jAATm7r MAr3WyAkceJAjMEAAEIAB0WIQQ5utIvCCzakboVj/py2EO4nU3XVgUCZnNHhgAKCRBy2EO4nU3X VisTD/9M2iuFtpZOilOG47G5cwe9w7HrSMw49i29PsV2LuLrO2tcKvond0g3NsF9CDQAeGd9N8X Md7J+EgqiFn8D+yUUu3speZNN87cWbOmYFvIsAJPo1lyQbLOfdfbZG4C28YBWmko1VJET/iStsk krhq/M6smaDGB2Q9qg+CnbtCymRUCqvWA9IoMUc3waaTWyJYXZOVl1Wem29opLbGjIng0UqVlXL uBmk+ILhn4UfKyqqtCC28KwJFnjHu2rupZl/OhXx50wn3At7f5m4FBpBp3WYlscxpvwGkRjNNuD 7pXEPWRkwRGrF8Q4i/RNI/uNp8ASEdrgEP4EUtA/KtYpPjhtuX2VpharsS+eZdJ+H1HoLSWD31P QC/udtViSlGyrXZrslJhIvooPoHlDvsZ2nWjAIsyrdT35g3/tBS0BjUXTL5ZemtRLxBfl3VETo/ HCTNxARhYWtLK50OEN6wx9t943zKiBuM8CKBvy4UpzcvV/RrECzdUEfChxyIs/PCVSQc9rtDHu9 0IWG1xW+/K01r8WbeX5mM2IYB2Ys0YsUgsvmqPk9JRol0l51+ntGbLyApGOJSEZfcmiSMJ/QcDO wsdDEpA6ZMxB7sH/nKACiG9baznHG9b5BJomXEpG6gFjY7gzrXvpproBWxqg84ZjN6RcHT954pb E4ymBKZYrIOc30A== X-Developer-Key: i=luca@lucaweiss.eu; a=openpgp; fpr=BD04DA24C971B8D587B2B8D7FAF69CF6CD2D02CD Add a node for the a7pll with its frequencies. With this we can use the apcs-kpss-global driver for the apcs node and use the apcs to scale the CPU frequency according to the opp-table. At the same time unfortunately we need to provide the gcc node xo_board instead of the XO via rpmcc since otherwise we'll have a circular dependency between apcs, gcc and the rpm. Signed-off-by: Luca Weiss --- arch/arm/boot/dts/qcom/qcom-msm8226.dtsi | 103 ++++++++++++++++++++++++++++++- 1 file changed, 100 insertions(+), 3 deletions(-) diff --git a/arch/arm/boot/dts/qcom/qcom-msm8226.dtsi b/arch/arm/boot/dts/qcom/qcom-msm8226.dtsi index 270973e85625..6e9fbe2e7223 100644 --- a/arch/arm/boot/dts/qcom/qcom-msm8226.dtsi +++ b/arch/arm/boot/dts/qcom/qcom-msm8226.dtsi @@ -44,6 +44,8 @@ CPU0: cpu@0 { device_type = "cpu"; reg = <0>; next-level-cache = <&L2>; + clocks = <&apcs>; + operating-points-v2 = <&cpu_opp_table>; qcom,acc = <&acc0>; qcom,saw = <&saw0>; }; @@ -54,6 +56,8 @@ CPU1: cpu@1 { device_type = "cpu"; reg = <1>; next-level-cache = <&L2>; + clocks = <&apcs>; + operating-points-v2 = <&cpu_opp_table>; qcom,acc = <&acc1>; qcom,saw = <&saw1>; }; @@ -64,6 +68,8 @@ CPU2: cpu@2 { device_type = "cpu"; reg = <2>; next-level-cache = <&L2>; + clocks = <&apcs>; + operating-points-v2 = <&cpu_opp_table>; qcom,acc = <&acc2>; qcom,saw = <&saw2>; }; @@ -74,6 +80,8 @@ CPU3: cpu@3 { device_type = "cpu"; reg = <3>; next-level-cache = <&L2>; + clocks = <&apcs>; + operating-points-v2 = <&cpu_opp_table>; qcom,acc = <&acc3>; qcom,saw = <&saw3>; }; @@ -98,6 +106,29 @@ memory@0 { reg = <0x0 0x0>; }; + cpu_opp_table: opp-table-cpu { + compatible = "operating-points-v2"; + opp-shared; + + opp-300000000 { + opp-hz = /bits/ 64 <300000000>; + }; + + opp-384000000 { + opp-hz = /bits/ 64 <384000000>; + }; + + opp-600000000 { + opp-hz = /bits/ 64 <600000000>; + }; + + opp-787200000 { + opp-hz = /bits/ 64 <787200000>; + }; + + /* Higher CPU frequencies need speedbin support */ + }; + pmu { compatible = "arm,cortex-a7-pmu"; interrupts = ; }; - apcs: syscon@f9011000 { - compatible = "syscon"; + apcs: mailbox@f9011000 { + compatible = "qcom,msm8226-apcs-kpss-global", + "qcom,msm8916-apcs-kpss-global", "syscon"; reg = <0xf9011000 0x1000>; + #mbox-cells = <1>; + clocks = <&a7pll>, <&gcc GPLL0_VOTE>; + clock-names = "pll", "aux"; + #clock-cells = <0>; + }; + + a7pll: clock@f9016000 { + compatible = "qcom,msm8226-a7pll"; + reg = <0xf9016000 0x40>; + #clock-cells = <0>; + clocks = <&xo_board>; + clock-names = "xo"; + operating-points-v2 = <&a7pll_opp_table>; + + a7pll_opp_table: opp-table { + compatible = "operating-points-v2"; + + opp-768000000 { + opp-hz = /bits/ 64 <768000000>; + }; + + opp-787200000 { + opp-hz = /bits/ 64 <787200000>; + }; + + opp-998400000 { + opp-hz = /bits/ 64 <998400000>; + }; + + opp-1094400000 { + opp-hz = /bits/ 64 <1094400000>; + }; + + opp-1190400000 { + opp-hz = /bits/ 64 <1190400000>; + }; + + opp-1305600000 { + opp-hz = /bits/ 64 <1305600000>; + }; + + opp-1344000000 { + opp-hz = /bits/ 64 <1344000000>; + }; + + opp-1401600000 { + opp-hz = /bits/ 64 <1401600000>; + }; + + opp-1497600000 { + opp-hz = /bits/ 64 <1497600000>; + }; + + opp-1593600000 { + opp-hz = /bits/ 64 <1593600000>; + }; + + opp-1689600000 { + opp-hz = /bits/ 64 <1689600000>; + }; + + opp-1785600000 { + opp-hz = /bits/ 64 <1785600000>; + }; + }; }; saw_l2: power-manager@f9012000 { @@ -571,7 +668,7 @@ gcc: clock-controller@fc400000 { #reset-cells = <1>; #power-domain-cells = <1>; - clocks = <&rpmcc RPM_SMD_XO_CLK_SRC>, + clocks = <&xo_board>, <&sleep_clk>; clock-names = "xo", "sleep_clk"; From patchwork Wed Jun 19 21:02:50 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Luca Weiss X-Patchwork-Id: 13704570 Received: from ahti.lucaweiss.eu (ahti.lucaweiss.eu [128.199.32.197]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 4CA4D15B988; Wed, 19 Jun 2024 21:03:10 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=128.199.32.197 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718830991; cv=none; b=qbQXEmvkiOIf614LxfTJbL5edLToFBXZn8QHe6eKmap4I1/7ZxOiK5DQuBES3iB2dPznznC7ycuNcbRbgpv12b4weqJyuOq8sLRGKotiRs9CH1m7cVsgTlLoeEjFPS6QmYIJC5Bf/a1gZjgqMJ0XJ0aOltZLEDgNeB3ZbLtl5J8= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718830991; c=relaxed/simple; bh=U4dGGEGpOOkzWqH8OuKBSW4honG4SMlwLIHbWnr5h9U=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=KUI6GiZKJzDlq7mnb1Z8jW1wrIWwe/Er4dmtmzv23rxoy71CyZkE+QDhFd9HrWwocM2B5uJ9b6Ps1k5yWP4wqJN5PAbd/A0/YBgv6pbAqpE7jh6XTraMNmTcXSs41s4kF579o97n8BJk6jo2ceb4g0LhYcr1arUZh96g65+3Qj8= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=lucaweiss.eu; spf=pass smtp.mailfrom=lucaweiss.eu; dkim=pass (1024-bit key) header.d=lucaweiss.eu header.i=@lucaweiss.eu header.b=oolKjNSe; arc=none smtp.client-ip=128.199.32.197 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=lucaweiss.eu Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=lucaweiss.eu Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=lucaweiss.eu header.i=@lucaweiss.eu header.b="oolKjNSe" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=lucaweiss.eu; s=s1; t=1718830986; bh=U4dGGEGpOOkzWqH8OuKBSW4honG4SMlwLIHbWnr5h9U=; h=From:Date:Subject:References:In-Reply-To:To:Cc; b=oolKjNSebElawBsh7OAlqEmfXluFhJe5GlHAShc108UluEOcA+ZjzXaCiFzNc83f5 V2Kjy8OT/B8QYBC1f2X0QCrLTLsOdlgUodyQmnmdggvCzrCz3UIzi7+zog2ESUgnM4 tzvI8p3PdCZvPN7wO6yWZmjSfuI4nwpMPGyeSz/k= From: Luca Weiss Date: Wed, 19 Jun 2024 23:02:50 +0200 Subject: [PATCH 6/7] ARM: dts: qcom: msm8226: Hook up CPU cooling Precedence: bulk X-Mailing-List: linux-arm-msm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20240619-msm8226-cpufreq-v1-6-85143f5291d1@lucaweiss.eu> References: <20240619-msm8226-cpufreq-v1-0-85143f5291d1@lucaweiss.eu> In-Reply-To: <20240619-msm8226-cpufreq-v1-0-85143f5291d1@lucaweiss.eu> To: ~postmarketos/upstreaming@lists.sr.ht, phone-devel@vger.kernel.org, Jassi Brar , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Bjorn Andersson , Michael Turquette , Stephen Boyd , Konrad Dybcio Cc: linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, linux-clk@vger.kernel.org, Luca Weiss X-Mailer: b4 0.14.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=2415; i=luca@lucaweiss.eu; h=from:subject:message-id; bh=U4dGGEGpOOkzWqH8OuKBSW4honG4SMlwLIHbWnr5h9U=; b=owEBbQKS/ZANAwAIAXLYQ7idTddWAcsmYgBmc0eH/VSYmnEAuPFnCi8s5pSvqXOFphEFVJYZd xE0/IbhiCaJAjMEAAEIAB0WIQQ5utIvCCzakboVj/py2EO4nU3XVgUCZnNHhwAKCRBy2EO4nU3X VofcEACv1O36gtN/ndklBVQLJvXq7HkMWQffN6xpjveK+UqyMZx/Ql90KVjk8isYjE195qqV38z S4o0Kysx55z7yGRoF5WH1xZ98rlaCxWlA/5lhECH1kcoLCLG865IfLyarJexxQM0Q4flTHgBp38 NfXu/82MaTdM3UrNhXPur1KTiMazVu97lSxCqh+9g37n0ZEuXmZkbC/GR62K3Uq62sTvg25gCmu pyCuhGssvX7BnyUPYTV5tnxjyeB7+oXrNFSKb2FbU8v4Y3VYcgzSn7qGkp9/uHAhmvciqgU3XJH cd2vH+IX+hEPVd97fxONBx9z3a2jUcjG5xeOnrHmsAs/VNd26ovYRK/bV34nBDOmqoN0j2xikGa Msh9ac+LO3N1dAO9FHkfUS29U6YKtnQFEUYj8dxJYCEAbWB4eDFiV54k0I7lNMHuL2ETp36OxqJ vgBbstiX/sFuoVOzPC16/g1jlltsW3WD0a9j/TuZCe5I+MYwQ1Ebi9TSwESGr1d9sTPudirz13h 6osYA8Njhal0PRfLKdF2m6MILoFwAyUy0U6ZTN6FzC5XjWQru4obWa7srHvAnguX3FdTGgqFAJO 9muFnMIltnSThnohibc1/soKZ+VsHcS0jct70cGeegU5zer1bvmUFf5FNbWOh/9FHXwhIYmDR36 vWIbLmNA1tomkMg== X-Developer-Key: i=luca@lucaweiss.eu; a=openpgp; fpr=BD04DA24C971B8D587B2B8D7FAF69CF6CD2D02CD Add cooling-maps for the CPU thermal zones so the driver can actually do something when the CPU temperature rises too much. Signed-off-by: Luca Weiss Reviewed-by: Dmitry Baryshkov Reviewed-by: Konrad Dybcio --- arch/arm/boot/dts/qcom/qcom-msm8226.dtsi | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/arch/arm/boot/dts/qcom/qcom-msm8226.dtsi b/arch/arm/boot/dts/qcom/qcom-msm8226.dtsi index 6e9fbe2e7223..9deee34fc5ca 100644 --- a/arch/arm/boot/dts/qcom/qcom-msm8226.dtsi +++ b/arch/arm/boot/dts/qcom/qcom-msm8226.dtsi @@ -12,6 +12,7 @@ #include #include #include +#include / { #address-cells = <1>; @@ -48,6 +49,7 @@ CPU0: cpu@0 { operating-points-v2 = <&cpu_opp_table>; qcom,acc = <&acc0>; qcom,saw = <&saw0>; + #cooling-cells = <2>; }; CPU1: cpu@1 { @@ -60,6 +62,7 @@ CPU1: cpu@1 { operating-points-v2 = <&cpu_opp_table>; qcom,acc = <&acc1>; qcom,saw = <&saw1>; + #cooling-cells = <2>; }; CPU2: cpu@2 { @@ -72,6 +75,7 @@ CPU2: cpu@2 { operating-points-v2 = <&cpu_opp_table>; qcom,acc = <&acc2>; qcom,saw = <&saw2>; + #cooling-cells = <2>; }; CPU3: cpu@3 { @@ -84,6 +88,7 @@ CPU3: cpu@3 { operating-points-v2 = <&cpu_opp_table>; qcom,acc = <&acc3>; qcom,saw = <&saw3>; + #cooling-cells = <2>; }; L2: l2-cache { @@ -1256,6 +1261,16 @@ cpu0-thermal { thermal-sensors = <&tsens 5>; + cooling-maps { + map0 { + trip = <&cpu_alert0>; + cooling-device = <&CPU0 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>, + <&CPU1 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>, + <&CPU2 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>, + <&CPU3 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>; + }; + }; + trips { cpu_alert0: trip0 { temperature = <75000>; @@ -1277,6 +1292,16 @@ cpu1-thermal { thermal-sensors = <&tsens 2>; + cooling-maps { + map0 { + trip = <&cpu_alert1>; + cooling-device = <&CPU0 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>, + <&CPU1 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>, + <&CPU2 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>, + <&CPU3 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>; + }; + }; + trips { cpu_alert1: trip0 { temperature = <75000>; From patchwork Wed Jun 19 21:02:51 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Luca Weiss X-Patchwork-Id: 13704572 Received: from ahti.lucaweiss.eu (ahti.lucaweiss.eu [128.199.32.197]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id AE0D315CD77; Wed, 19 Jun 2024 21:03:10 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=128.199.32.197 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718830992; cv=none; b=CQtBceq2NYUw4Th4nWEOnx7zIf/fgjgyMLb/5krKZjfdPGzS5r57sp0eKS60i8rY57SQb3f83BGrL8uC5GIx7LmkdYRMSXECkneyuHEx3UBIz3fhEnSBacqIhgbfRygcyA7/mTHho7FHHRIKmVlv3XoHp6fFvhvwEmInWEBHOY8= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718830992; c=relaxed/simple; bh=QWyXpCDytX4xqVrRXmt0Xo2P70w0iAdxTSeodVhUvG4=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=H9Fb3YWccA2i+WJkNSkOMUGHFXVcLtDDgRe+loZBV537s7JK8Mvl29vl8Xrf15Vdv7emokqUJxI0COGU8VTHXNy0KCioUXHbB/Ya0wPM+o1OSrap3a5uh7C/iq/Zd8Zir8uv9OTJ2vGTiX3ELnRx6w5Esy6seeoCa+ismfbotl8= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=lucaweiss.eu; spf=pass smtp.mailfrom=lucaweiss.eu; dkim=pass (1024-bit key) header.d=lucaweiss.eu header.i=@lucaweiss.eu header.b=ZqGAiD7+; arc=none smtp.client-ip=128.199.32.197 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=lucaweiss.eu Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=lucaweiss.eu Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=lucaweiss.eu header.i=@lucaweiss.eu header.b="ZqGAiD7+" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=lucaweiss.eu; s=s1; t=1718830987; bh=QWyXpCDytX4xqVrRXmt0Xo2P70w0iAdxTSeodVhUvG4=; h=From:Date:Subject:References:In-Reply-To:To:Cc; b=ZqGAiD7+wLxqoKOocyonnzsQBQjVYYpbVWEh7eTV15N2MS6mfVlezhxMJyxuFwPyP 9LR8pZZL1RbJuAJPg9DtkssoYpIE+9aaNEIqriRNdeO0dfmXabJjEbtr15iWonIJzE TwPLEoSklldP0wJ22Zgr21g7JTIvFNAif/gb+8lI= From: Luca Weiss Date: Wed, 19 Jun 2024 23:02:51 +0200 Subject: [PATCH 7/7] ARM: dts: qcom: msm8226: Convert APCS usages to mbox interface Precedence: bulk X-Mailing-List: linux-arm-msm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20240619-msm8226-cpufreq-v1-7-85143f5291d1@lucaweiss.eu> References: <20240619-msm8226-cpufreq-v1-0-85143f5291d1@lucaweiss.eu> In-Reply-To: <20240619-msm8226-cpufreq-v1-0-85143f5291d1@lucaweiss.eu> To: ~postmarketos/upstreaming@lists.sr.ht, phone-devel@vger.kernel.org, Jassi Brar , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Bjorn Andersson , Michael Turquette , Stephen Boyd , Konrad Dybcio Cc: linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, linux-clk@vger.kernel.org, Luca Weiss X-Mailer: b4 0.14.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=1217; i=luca@lucaweiss.eu; h=from:subject:message-id; bh=QWyXpCDytX4xqVrRXmt0Xo2P70w0iAdxTSeodVhUvG4=; b=owEBbQKS/ZANAwAIAXLYQ7idTddWAcsmYgBmc0eH/A+cTeCKbuN2F/m0lto1DGSCF9uaeDnV3 Un/rUvRLbOJAjMEAAEIAB0WIQQ5utIvCCzakboVj/py2EO4nU3XVgUCZnNHhwAKCRBy2EO4nU3X VoLXD/9AP7duQM9JB397TIT24WwGlwFSyqkmoLTejECN0M6AnlBw4XpWpQeozxo1dTDaa7pkB6S bCY1rvt7t8mokSZU5st6OhXbuipuZ+J5ejFCYooLCCWkrhs1U/w0+iE93lftQgdGRNfA9LhIWSV XKGyPc54c0EIT4HNA5bsz4CSa+L974CDSyifoenBndahUrBu2ZgQEzdlkJwjqD1fkyJRHd9CSw7 jU/PD035nI3jnL/QO4AF7IHBeK7kiNiChdjaLnVa7KBHge4Xg5oPlxAKh85AAUsXx1lW7kK1O2f P/YZfNKrQVkzzrOa3IqQ9eJk1ORjgxrHRAwyrGLvJyJ1OVeGXyHJo599fMTvH/lfUwfp+OeI9v1 wXcyLmHrPpeQi2m9uQvCuqchC1Bmur5tUnAEFfVVkUCfosspWVJrhfjrXKESkJBx+zw7gAdf/KQ WY1vhyNy/Pube3NYkkRjSKI+8azOwSdGvLQ+Pj8aD8kOqSqwVq9U2g+30+SlsLniOlTW+hoUwGm QZEVbWTEAOpXPVHbVCMcsxuhno7zqocu8R8dOYU6TluZjm8xlz25Kw6k3gSqDHAdfyuZZkFpz1n r6uw5Wd5kdTvvGO0VUsY9xRVKis8f6rqKvSKJFGTjUm13ieuSDVPSsQ9QiM3korawPjcob+kKKB g10h5Lx5eJJ9oWg== X-Developer-Key: i=luca@lucaweiss.eu; a=openpgp; fpr=BD04DA24C971B8D587B2B8D7FAF69CF6CD2D02CD Since we now have the apcs set up as a mailbox provider, let's use the interface for all drivers where possible. Signed-off-by: Luca Weiss Reviewed-by: Dmitry Baryshkov Reviewed-by: Konrad Dybcio --- arch/arm/boot/dts/qcom/qcom-msm8226.dtsi | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/arch/arm/boot/dts/qcom/qcom-msm8226.dtsi b/arch/arm/boot/dts/qcom/qcom-msm8226.dtsi index 9deee34fc5ca..5c1122f93054 100644 --- a/arch/arm/boot/dts/qcom/qcom-msm8226.dtsi +++ b/arch/arm/boot/dts/qcom/qcom-msm8226.dtsi @@ -157,7 +157,7 @@ master-stats { smd-edge { interrupts = ; - qcom,ipc = <&apcs 8 0>; + mboxes = <&apcs 0>; qcom,smd-edge = <15>; rpm_requests: rpm-requests { @@ -235,7 +235,7 @@ smp2p-adsp { interrupt-parent = <&intc>; interrupts = ; - qcom,ipc = <&apcs 8 10>; + mboxes = <&apcs 10>; qcom,local-pid = <0>; qcom,remote-pid = <2>; @@ -1232,7 +1232,7 @@ adsp: remoteproc@fe200000 { smd-edge { interrupts = ; - qcom,ipc = <&apcs 8 8>; + mboxes = <&apcs 8>; qcom,smd-edge = <1>; label = "lpass";