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: 805682 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 --- 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: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: 805681 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 --- 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: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: 805679 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";