* [PATCH 1/8] dt-bindings: soc: qcom: smd-rpm: Add MSM8909
2022-07-05 14:35 [PATCH 0/8] soc: qcom: Add compatibles for MSM8909 Stephan Gerhold
@ 2022-07-05 14:35 ` Stephan Gerhold
2022-07-05 18:08 ` Krzysztof Kozlowski
2022-07-05 14:35 ` [PATCH 2/8] soc: qcom: smd-rpm: Add compatible for MSM8909 Stephan Gerhold
` (7 subsequent siblings)
8 siblings, 1 reply; 15+ messages in thread
From: Stephan Gerhold @ 2022-07-05 14:35 UTC (permalink / raw)
To: Bjorn Andersson
Cc: Andy Gross, Krzysztof Kozlowski, Rob Herring, linux-arm-msm,
devicetree, linux-arm-kernel, Stephan Gerhold, Stephan Gerhold
Document the "qcom,rpm-msm8909" compatible to describe the interface to
the Resource Power Manager (RPM) on the MSM8909 SoC.
Signed-off-by: Stephan Gerhold <stephan.gerhold@kernkonzept.com>
---
Documentation/devicetree/bindings/soc/qcom/qcom,smd-rpm.yaml | 1 +
1 file changed, 1 insertion(+)
diff --git a/Documentation/devicetree/bindings/soc/qcom/qcom,smd-rpm.yaml b/Documentation/devicetree/bindings/soc/qcom/qcom,smd-rpm.yaml
index f0f1bf06aea6..32b89147909d 100644
--- a/Documentation/devicetree/bindings/soc/qcom/qcom,smd-rpm.yaml
+++ b/Documentation/devicetree/bindings/soc/qcom/qcom,smd-rpm.yaml
@@ -34,6 +34,7 @@ properties:
- qcom,rpm-apq8084
- qcom,rpm-ipq6018
- qcom,rpm-msm8226
+ - qcom,rpm-msm8909
- qcom,rpm-msm8916
- qcom,rpm-msm8936
- qcom,rpm-msm8953
--
2.30.2
^ permalink raw reply related [flat|nested] 15+ messages in thread* Re: [PATCH 1/8] dt-bindings: soc: qcom: smd-rpm: Add MSM8909
2022-07-05 14:35 ` [PATCH 1/8] dt-bindings: soc: qcom: smd-rpm: Add MSM8909 Stephan Gerhold
@ 2022-07-05 18:08 ` Krzysztof Kozlowski
0 siblings, 0 replies; 15+ messages in thread
From: Krzysztof Kozlowski @ 2022-07-05 18:08 UTC (permalink / raw)
To: Stephan Gerhold, Bjorn Andersson
Cc: Andy Gross, Krzysztof Kozlowski, Rob Herring, linux-arm-msm,
devicetree, linux-arm-kernel, Stephan Gerhold
On 05/07/2022 16:35, Stephan Gerhold wrote:
> Document the "qcom,rpm-msm8909" compatible to describe the interface to
> the Resource Power Manager (RPM) on the MSM8909 SoC.
>
> Signed-off-by: Stephan Gerhold <stephan.gerhold@kernkonzept.com>
> ---
> Documentation/devicetree/bindings/soc/qcom/qcom,smd-rpm.yaml | 1 +
> 1 file changed, 1 insertion(+)
Acked-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Best regards,
Krzysztof
^ permalink raw reply [flat|nested] 15+ messages in thread
* [PATCH 2/8] soc: qcom: smd-rpm: Add compatible for MSM8909
2022-07-05 14:35 [PATCH 0/8] soc: qcom: Add compatibles for MSM8909 Stephan Gerhold
2022-07-05 14:35 ` [PATCH 1/8] dt-bindings: soc: qcom: smd-rpm: Add MSM8909 Stephan Gerhold
@ 2022-07-05 14:35 ` Stephan Gerhold
2022-07-05 14:35 ` [PATCH 3/8] dt-bindings: power: qcom-rpmpd: Add MSM8909 power domains Stephan Gerhold
` (6 subsequent siblings)
8 siblings, 0 replies; 15+ messages in thread
From: Stephan Gerhold @ 2022-07-05 14:35 UTC (permalink / raw)
To: Bjorn Andersson
Cc: Andy Gross, Krzysztof Kozlowski, Rob Herring, linux-arm-msm,
devicetree, linux-arm-kernel, Stephan Gerhold, Stephan Gerhold
Add the new "qcom,rpm-msm8909" compatible to the driver so the interface
to the Resource Power Manager (RPM) is initialized correctly on MSM8909.
Signed-off-by: Stephan Gerhold <stephan.gerhold@kernkonzept.com>
---
drivers/soc/qcom/smd-rpm.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/soc/qcom/smd-rpm.c b/drivers/soc/qcom/smd-rpm.c
index 30dda1af63c8..413f9f4ae9cd 100644
--- a/drivers/soc/qcom/smd-rpm.c
+++ b/drivers/soc/qcom/smd-rpm.c
@@ -234,6 +234,7 @@ static const struct of_device_id qcom_smd_rpm_of_match[] = {
{ .compatible = "qcom,rpm-apq8084" },
{ .compatible = "qcom,rpm-ipq6018" },
{ .compatible = "qcom,rpm-msm8226" },
+ { .compatible = "qcom,rpm-msm8909" },
{ .compatible = "qcom,rpm-msm8916" },
{ .compatible = "qcom,rpm-msm8936" },
{ .compatible = "qcom,rpm-msm8953" },
--
2.30.2
^ permalink raw reply related [flat|nested] 15+ messages in thread* [PATCH 3/8] dt-bindings: power: qcom-rpmpd: Add MSM8909 power domains
2022-07-05 14:35 [PATCH 0/8] soc: qcom: Add compatibles for MSM8909 Stephan Gerhold
2022-07-05 14:35 ` [PATCH 1/8] dt-bindings: soc: qcom: smd-rpm: Add MSM8909 Stephan Gerhold
2022-07-05 14:35 ` [PATCH 2/8] soc: qcom: smd-rpm: Add compatible for MSM8909 Stephan Gerhold
@ 2022-07-05 14:35 ` Stephan Gerhold
2022-07-05 18:08 ` Krzysztof Kozlowski
2022-07-05 14:35 ` [PATCH 4/8] soc: qcom: rpmpd: Add compatible for MSM8909 Stephan Gerhold
` (5 subsequent siblings)
8 siblings, 1 reply; 15+ messages in thread
From: Stephan Gerhold @ 2022-07-05 14:35 UTC (permalink / raw)
To: Bjorn Andersson
Cc: Andy Gross, Krzysztof Kozlowski, Rob Herring, linux-arm-msm,
devicetree, linux-arm-kernel, Stephan Gerhold, Stephan Gerhold
MSM8909 has the same power domains as MSM8916 so just define them
as aliases for the existing definitions.
Signed-off-by: Stephan Gerhold <stephan.gerhold@kernkonzept.com>
---
Documentation/devicetree/bindings/power/qcom,rpmpd.yaml | 1 +
include/dt-bindings/power/qcom-rpmpd.h | 7 +++++++
2 files changed, 8 insertions(+)
diff --git a/Documentation/devicetree/bindings/power/qcom,rpmpd.yaml b/Documentation/devicetree/bindings/power/qcom,rpmpd.yaml
index ad77a6380f38..0ccca493251a 100644
--- a/Documentation/devicetree/bindings/power/qcom,rpmpd.yaml
+++ b/Documentation/devicetree/bindings/power/qcom,rpmpd.yaml
@@ -18,6 +18,7 @@ properties:
enum:
- qcom,mdm9607-rpmpd
- qcom,msm8226-rpmpd
+ - qcom,msm8909-rpmpd
- qcom,msm8916-rpmpd
- qcom,msm8939-rpmpd
- qcom,msm8953-rpmpd
diff --git a/include/dt-bindings/power/qcom-rpmpd.h b/include/dt-bindings/power/qcom-rpmpd.h
index 6cce5b7aa940..d81de63ae31c 100644
--- a/include/dt-bindings/power/qcom-rpmpd.h
+++ b/include/dt-bindings/power/qcom-rpmpd.h
@@ -187,6 +187,13 @@
#define MSM8916_VDDMX 3
#define MSM8916_VDDMX_AO 4
+/* MSM8909 Power Domain Indexes */
+#define MSM8909_VDDCX MSM8916_VDDCX
+#define MSM8909_VDDCX_AO MSM8916_VDDCX_AO
+#define MSM8909_VDDCX_VFC MSM8916_VDDCX_VFC
+#define MSM8909_VDDMX MSM8916_VDDMX
+#define MSM8909_VDDMX_AO MSM8916_VDDMX_AO
+
/* MSM8953 Power Domain Indexes */
#define MSM8953_VDDMD 0
#define MSM8953_VDDMD_AO 1
--
2.30.2
^ permalink raw reply related [flat|nested] 15+ messages in thread* Re: [PATCH 3/8] dt-bindings: power: qcom-rpmpd: Add MSM8909 power domains
2022-07-05 14:35 ` [PATCH 3/8] dt-bindings: power: qcom-rpmpd: Add MSM8909 power domains Stephan Gerhold
@ 2022-07-05 18:08 ` Krzysztof Kozlowski
0 siblings, 0 replies; 15+ messages in thread
From: Krzysztof Kozlowski @ 2022-07-05 18:08 UTC (permalink / raw)
To: Stephan Gerhold, Bjorn Andersson
Cc: Andy Gross, Krzysztof Kozlowski, Rob Herring, linux-arm-msm,
devicetree, linux-arm-kernel, Stephan Gerhold
On 05/07/2022 16:35, Stephan Gerhold wrote:
> MSM8909 has the same power domains as MSM8916 so just define them
> as aliases for the existing definitions.
>
> Signed-off-by: Stephan Gerhold <stephan.gerhold@kernkonzept.com>
> ---
> Documentation/devicetree/bindings/power/qcom,rpmpd.yaml | 1 +
> include/dt-bindings/power/qcom-rpmpd.h | 7 +++++++
> 2 files changed, 8 insertions(+)
Acked-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Best regards,
Krzysztof
^ permalink raw reply [flat|nested] 15+ messages in thread
* [PATCH 4/8] soc: qcom: rpmpd: Add compatible for MSM8909
2022-07-05 14:35 [PATCH 0/8] soc: qcom: Add compatibles for MSM8909 Stephan Gerhold
` (2 preceding siblings ...)
2022-07-05 14:35 ` [PATCH 3/8] dt-bindings: power: qcom-rpmpd: Add MSM8909 power domains Stephan Gerhold
@ 2022-07-05 14:35 ` Stephan Gerhold
2022-07-05 14:35 ` [PATCH 5/8] dt-bindings: soc: qcom: spm: Add MSM8909 CPU compatible Stephan Gerhold
` (4 subsequent siblings)
8 siblings, 0 replies; 15+ messages in thread
From: Stephan Gerhold @ 2022-07-05 14:35 UTC (permalink / raw)
To: Bjorn Andersson
Cc: Andy Gross, Krzysztof Kozlowski, Rob Herring, linux-arm-msm,
devicetree, linux-arm-kernel, Stephan Gerhold, Stephan Gerhold
MSM8909 has the same power domains as MSM8916, so just define another
compatible for the existing definition.
Signed-off-by: Stephan Gerhold <stephan.gerhold@kernkonzept.com>
---
drivers/soc/qcom/rpmpd.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/soc/qcom/rpmpd.c b/drivers/soc/qcom/rpmpd.c
index 3b5b91621532..5803038c744e 100644
--- a/drivers/soc/qcom/rpmpd.c
+++ b/drivers/soc/qcom/rpmpd.c
@@ -453,6 +453,7 @@ static const struct rpmpd_desc qcm2290_desc = {
static const struct of_device_id rpmpd_match_table[] = {
{ .compatible = "qcom,mdm9607-rpmpd", .data = &mdm9607_desc },
{ .compatible = "qcom,msm8226-rpmpd", .data = &msm8226_desc },
+ { .compatible = "qcom,msm8909-rpmpd", .data = &msm8916_desc },
{ .compatible = "qcom,msm8916-rpmpd", .data = &msm8916_desc },
{ .compatible = "qcom,msm8939-rpmpd", .data = &msm8939_desc },
{ .compatible = "qcom,msm8953-rpmpd", .data = &msm8953_desc },
--
2.30.2
^ permalink raw reply related [flat|nested] 15+ messages in thread* [PATCH 5/8] dt-bindings: soc: qcom: spm: Add MSM8909 CPU compatible
2022-07-05 14:35 [PATCH 0/8] soc: qcom: Add compatibles for MSM8909 Stephan Gerhold
` (3 preceding siblings ...)
2022-07-05 14:35 ` [PATCH 4/8] soc: qcom: rpmpd: Add compatible for MSM8909 Stephan Gerhold
@ 2022-07-05 14:35 ` Stephan Gerhold
2022-07-05 18:08 ` Krzysztof Kozlowski
2022-07-05 14:35 ` [PATCH 6/8] soc: qcom: spm: Add CPU data for MSM8909 Stephan Gerhold
` (3 subsequent siblings)
8 siblings, 1 reply; 15+ messages in thread
From: Stephan Gerhold @ 2022-07-05 14:35 UTC (permalink / raw)
To: Bjorn Andersson
Cc: Andy Gross, Krzysztof Kozlowski, Rob Herring, linux-arm-msm,
devicetree, linux-arm-kernel, Stephan Gerhold, Stephan Gerhold
Document the "qcom,msm8909-saw2-v3.0-cpu" compatible for the CPU
Subsystem Power Manager (SPM) on the MSM8909 SoC. This is necessary
for CPU idle since this is a fairly old 32-bit SoC without support
for PSCI.
Signed-off-by: Stephan Gerhold <stephan.gerhold@kernkonzept.com>
---
Documentation/devicetree/bindings/soc/qcom/qcom,spm.yaml | 1 +
1 file changed, 1 insertion(+)
diff --git a/Documentation/devicetree/bindings/soc/qcom/qcom,spm.yaml b/Documentation/devicetree/bindings/soc/qcom/qcom,spm.yaml
index 07d2d5398345..f433e6e0a19f 100644
--- a/Documentation/devicetree/bindings/soc/qcom/qcom,spm.yaml
+++ b/Documentation/devicetree/bindings/soc/qcom/qcom,spm.yaml
@@ -22,6 +22,7 @@ properties:
- qcom,sdm660-silver-saw2-v4.1-l2
- qcom,msm8998-gold-saw2-v4.1-l2
- qcom,msm8998-silver-saw2-v4.1-l2
+ - qcom,msm8909-saw2-v3.0-cpu
- qcom,msm8916-saw2-v3.0-cpu
- qcom,msm8226-saw2-v2.1-cpu
- qcom,msm8974-saw2-v2.1-cpu
--
2.30.2
^ permalink raw reply related [flat|nested] 15+ messages in thread* Re: [PATCH 5/8] dt-bindings: soc: qcom: spm: Add MSM8909 CPU compatible
2022-07-05 14:35 ` [PATCH 5/8] dt-bindings: soc: qcom: spm: Add MSM8909 CPU compatible Stephan Gerhold
@ 2022-07-05 18:08 ` Krzysztof Kozlowski
0 siblings, 0 replies; 15+ messages in thread
From: Krzysztof Kozlowski @ 2022-07-05 18:08 UTC (permalink / raw)
To: Stephan Gerhold, Bjorn Andersson
Cc: Andy Gross, Krzysztof Kozlowski, Rob Herring, linux-arm-msm,
devicetree, linux-arm-kernel, Stephan Gerhold
On 05/07/2022 16:35, Stephan Gerhold wrote:
> Document the "qcom,msm8909-saw2-v3.0-cpu" compatible for the CPU
> Subsystem Power Manager (SPM) on the MSM8909 SoC. This is necessary
> for CPU idle since this is a fairly old 32-bit SoC without support
> for PSCI.
>
> Signed-off-by: Stephan Gerhold <stephan.gerhold@kernkonzept.com>
Acked-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Best regards,
Krzysztof
^ permalink raw reply [flat|nested] 15+ messages in thread
* [PATCH 6/8] soc: qcom: spm: Add CPU data for MSM8909
2022-07-05 14:35 [PATCH 0/8] soc: qcom: Add compatibles for MSM8909 Stephan Gerhold
` (4 preceding siblings ...)
2022-07-05 14:35 ` [PATCH 5/8] dt-bindings: soc: qcom: spm: Add MSM8909 CPU compatible Stephan Gerhold
@ 2022-07-05 14:35 ` Stephan Gerhold
2022-07-05 14:35 ` [PATCH 7/8] dt-bindings: arm: cpus: Document "qcom,msm8909-smp" enable-method Stephan Gerhold
` (2 subsequent siblings)
8 siblings, 0 replies; 15+ messages in thread
From: Stephan Gerhold @ 2022-07-05 14:35 UTC (permalink / raw)
To: Bjorn Andersson
Cc: Andy Gross, Krzysztof Kozlowski, Rob Herring, linux-arm-msm,
devicetree, linux-arm-kernel, Stephan Gerhold, Stephan Gerhold
Given the lack of public documentation for the SPM, the configuration
data is taken without modification from Qualcomm's msm-3.10 release [1].
It is pretty much identical to the one for MSM8916, except that 0x3B is
missing in the sequence for standalone power collapse for some reason.
[1]: https://git.codelinaro.org/clo/la/kernel/msm-3.10/-/blob/LA.BR.1.2.3-00910-8x09.0/arch/arm/boot/dts/qcom/msm8909-pm8909-pm.dtsi
Signed-off-by: Stephan Gerhold <stephan.gerhold@kernkonzept.com>
---
drivers/soc/qcom/spm.c | 14 ++++++++++++++
1 file changed, 14 insertions(+)
diff --git a/drivers/soc/qcom/spm.c b/drivers/soc/qcom/spm.c
index f831420b7fd4..484b42b7454e 100644
--- a/drivers/soc/qcom/spm.c
+++ b/drivers/soc/qcom/spm.c
@@ -74,6 +74,18 @@ static const u16 spm_reg_offset_v3_0[SPM_REG_NR] = {
[SPM_REG_SEQ_ENTRY] = 0x400,
};
+/* SPM register data for 8909 */
+static const struct spm_reg_data spm_reg_8909_cpu = {
+ .reg_offset = spm_reg_offset_v3_0,
+ .spm_cfg = 0x1,
+ .spm_dly = 0x3C102800,
+ .seq = { 0x60, 0x03, 0x60, 0x0B, 0x0F, 0x20, 0x10, 0x80, 0x30, 0x90,
+ 0x5B, 0x60, 0x03, 0x60, 0x76, 0x76, 0x0B, 0x94, 0x5B, 0x80,
+ 0x10, 0x26, 0x30, 0x0F },
+ .start_index[PM_SLEEP_MODE_STBY] = 0,
+ .start_index[PM_SLEEP_MODE_SPC] = 5,
+};
+
/* SPM register data for 8916 */
static const struct spm_reg_data spm_reg_8916_cpu = {
.reg_offset = spm_reg_offset_v3_0,
@@ -195,6 +207,8 @@ static const struct of_device_id spm_match_table[] = {
.data = &spm_reg_660_silver_l2 },
{ .compatible = "qcom,msm8226-saw2-v2.1-cpu",
.data = &spm_reg_8226_cpu },
+ { .compatible = "qcom,msm8909-saw2-v3.0-cpu",
+ .data = &spm_reg_8909_cpu },
{ .compatible = "qcom,msm8916-saw2-v3.0-cpu",
.data = &spm_reg_8916_cpu },
{ .compatible = "qcom,msm8974-saw2-v2.1-cpu",
--
2.30.2
^ permalink raw reply related [flat|nested] 15+ messages in thread* [PATCH 7/8] dt-bindings: arm: cpus: Document "qcom,msm8909-smp" enable-method
2022-07-05 14:35 [PATCH 0/8] soc: qcom: Add compatibles for MSM8909 Stephan Gerhold
` (5 preceding siblings ...)
2022-07-05 14:35 ` [PATCH 6/8] soc: qcom: spm: Add CPU data for MSM8909 Stephan Gerhold
@ 2022-07-05 14:35 ` Stephan Gerhold
2022-07-05 18:09 ` Krzysztof Kozlowski
2022-07-05 14:35 ` [PATCH 8/8] ARM: mach-qcom: Add support for MSM8909 Stephan Gerhold
2022-07-19 4:48 ` (subset) [PATCH 0/8] soc: qcom: Add compatibles " Bjorn Andersson
8 siblings, 1 reply; 15+ messages in thread
From: Stephan Gerhold @ 2022-07-05 14:35 UTC (permalink / raw)
To: Bjorn Andersson
Cc: Andy Gross, Krzysztof Kozlowski, Rob Herring, linux-arm-msm,
devicetree, linux-arm-kernel, Stephan Gerhold, Stephan Gerhold
MSM8909 is a fairly old 32-bit SoC without PSCI support, so the
additional CPU cores need to be initialized with a custom enable-method.
Fortunately it works just like on MSM8226 and MSM8916 so just add
an additional compatible as alias to the DT schema.
Signed-off-by: Stephan Gerhold <stephan.gerhold@kernkonzept.com>
---
Documentation/devicetree/bindings/arm/cpus.yaml | 1 +
1 file changed, 1 insertion(+)
diff --git a/Documentation/devicetree/bindings/arm/cpus.yaml b/Documentation/devicetree/bindings/arm/cpus.yaml
index ed04650291a8..5c2e3a5f3789 100644
--- a/Documentation/devicetree/bindings/arm/cpus.yaml
+++ b/Documentation/devicetree/bindings/arm/cpus.yaml
@@ -221,6 +221,7 @@ properties:
- qcom,kpss-acc-v1
- qcom,kpss-acc-v2
- qcom,msm8226-smp
+ - qcom,msm8909-smp
# Only valid on ARM 32-bit, see above for ARM v8 64-bit
- qcom,msm8916-smp
- renesas,apmu
--
2.30.2
^ permalink raw reply related [flat|nested] 15+ messages in thread* Re: [PATCH 7/8] dt-bindings: arm: cpus: Document "qcom,msm8909-smp" enable-method
2022-07-05 14:35 ` [PATCH 7/8] dt-bindings: arm: cpus: Document "qcom,msm8909-smp" enable-method Stephan Gerhold
@ 2022-07-05 18:09 ` Krzysztof Kozlowski
0 siblings, 0 replies; 15+ messages in thread
From: Krzysztof Kozlowski @ 2022-07-05 18:09 UTC (permalink / raw)
To: Stephan Gerhold, Bjorn Andersson
Cc: Andy Gross, Krzysztof Kozlowski, Rob Herring, linux-arm-msm,
devicetree, linux-arm-kernel, Stephan Gerhold
On 05/07/2022 16:35, Stephan Gerhold wrote:
> MSM8909 is a fairly old 32-bit SoC without PSCI support, so the
> additional CPU cores need to be initialized with a custom enable-method.
> Fortunately it works just like on MSM8226 and MSM8916 so just add
> an additional compatible as alias to the DT schema.
>
Acked-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Best regards,
Krzysztof
^ permalink raw reply [flat|nested] 15+ messages in thread
* [PATCH 8/8] ARM: mach-qcom: Add support for MSM8909
2022-07-05 14:35 [PATCH 0/8] soc: qcom: Add compatibles for MSM8909 Stephan Gerhold
` (6 preceding siblings ...)
2022-07-05 14:35 ` [PATCH 7/8] dt-bindings: arm: cpus: Document "qcom,msm8909-smp" enable-method Stephan Gerhold
@ 2022-07-05 14:35 ` Stephan Gerhold
2022-07-06 13:39 ` Konrad Dybcio
2022-07-19 4:48 ` (subset) [PATCH 0/8] soc: qcom: Add compatibles " Bjorn Andersson
8 siblings, 1 reply; 15+ messages in thread
From: Stephan Gerhold @ 2022-07-05 14:35 UTC (permalink / raw)
To: Bjorn Andersson
Cc: Andy Gross, Krzysztof Kozlowski, Rob Herring, linux-arm-msm,
devicetree, linux-arm-kernel, Stephan Gerhold, Stephan Gerhold
Add a Kconfig entry for MSM8909 and the "qcom,msm8909-smp" CPU
enable-method. The ARM Cortex-A7 cores are booted just like on MSM8226.
Signed-off-by: Stephan Gerhold <stephan.gerhold@kernkonzept.com>
---
arch/arm/mach-qcom/Kconfig | 4 ++++
arch/arm/mach-qcom/platsmp.c | 1 +
2 files changed, 5 insertions(+)
diff --git a/arch/arm/mach-qcom/Kconfig b/arch/arm/mach-qcom/Kconfig
index 109e126f7271..12a812e61c16 100644
--- a/arch/arm/mach-qcom/Kconfig
+++ b/arch/arm/mach-qcom/Kconfig
@@ -20,6 +20,10 @@ config ARCH_MSM8X60
bool "Enable support for MSM8X60"
select CLKSRC_QCOM
+config ARCH_MSM8909
+ bool "Enable support for MSM8909"
+ select HAVE_ARM_ARCH_TIMER
+
config ARCH_MSM8916
bool "Enable support for MSM8916"
select HAVE_ARM_ARCH_TIMER
diff --git a/arch/arm/mach-qcom/platsmp.c b/arch/arm/mach-qcom/platsmp.c
index 65a0d5ce2bb3..5d2f386a46d8 100644
--- a/arch/arm/mach-qcom/platsmp.c
+++ b/arch/arm/mach-qcom/platsmp.c
@@ -384,6 +384,7 @@ static const struct smp_operations qcom_smp_cortex_a7_ops __initconst = {
#endif
};
CPU_METHOD_OF_DECLARE(qcom_smp_msm8226, "qcom,msm8226-smp", &qcom_smp_cortex_a7_ops);
+CPU_METHOD_OF_DECLARE(qcom_smp_msm8909, "qcom,msm8909-smp", &qcom_smp_cortex_a7_ops);
CPU_METHOD_OF_DECLARE(qcom_smp_msm8916, "qcom,msm8916-smp", &qcom_smp_cortex_a7_ops);
static const struct smp_operations qcom_smp_kpssv1_ops __initconst = {
--
2.30.2
^ permalink raw reply related [flat|nested] 15+ messages in thread* Re: [PATCH 8/8] ARM: mach-qcom: Add support for MSM8909
2022-07-05 14:35 ` [PATCH 8/8] ARM: mach-qcom: Add support for MSM8909 Stephan Gerhold
@ 2022-07-06 13:39 ` Konrad Dybcio
0 siblings, 0 replies; 15+ messages in thread
From: Konrad Dybcio @ 2022-07-06 13:39 UTC (permalink / raw)
To: Stephan Gerhold, Bjorn Andersson
Cc: Andy Gross, Krzysztof Kozlowski, Rob Herring, linux-arm-msm,
devicetree, linux-arm-kernel, Stephan Gerhold
On 5.07.2022 16:35, Stephan Gerhold wrote:
> Add a Kconfig entry for MSM8909 and the "qcom,msm8909-smp" CPU
> enable-method. The ARM Cortex-A7 cores are booted just like on MSM8226.
>
> Signed-off-by: Stephan Gerhold <stephan.gerhold@kernkonzept.com>
> ---
Reviewed-by: Konrad Dybcio <konrad.dybcio@somainline.org>
Konrad
> arch/arm/mach-qcom/Kconfig | 4 ++++
> arch/arm/mach-qcom/platsmp.c | 1 +
> 2 files changed, 5 insertions(+)
>
> diff --git a/arch/arm/mach-qcom/Kconfig b/arch/arm/mach-qcom/Kconfig
> index 109e126f7271..12a812e61c16 100644
> --- a/arch/arm/mach-qcom/Kconfig
> +++ b/arch/arm/mach-qcom/Kconfig
> @@ -20,6 +20,10 @@ config ARCH_MSM8X60
> bool "Enable support for MSM8X60"
> select CLKSRC_QCOM
>
> +config ARCH_MSM8909
> + bool "Enable support for MSM8909"
> + select HAVE_ARM_ARCH_TIMER
> +
> config ARCH_MSM8916
> bool "Enable support for MSM8916"
> select HAVE_ARM_ARCH_TIMER
> diff --git a/arch/arm/mach-qcom/platsmp.c b/arch/arm/mach-qcom/platsmp.c
> index 65a0d5ce2bb3..5d2f386a46d8 100644
> --- a/arch/arm/mach-qcom/platsmp.c
> +++ b/arch/arm/mach-qcom/platsmp.c
> @@ -384,6 +384,7 @@ static const struct smp_operations qcom_smp_cortex_a7_ops __initconst = {
> #endif
> };
> CPU_METHOD_OF_DECLARE(qcom_smp_msm8226, "qcom,msm8226-smp", &qcom_smp_cortex_a7_ops);
> +CPU_METHOD_OF_DECLARE(qcom_smp_msm8909, "qcom,msm8909-smp", &qcom_smp_cortex_a7_ops);
> CPU_METHOD_OF_DECLARE(qcom_smp_msm8916, "qcom,msm8916-smp", &qcom_smp_cortex_a7_ops);
>
> static const struct smp_operations qcom_smp_kpssv1_ops __initconst = {
>
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: (subset) [PATCH 0/8] soc: qcom: Add compatibles for MSM8909
2022-07-05 14:35 [PATCH 0/8] soc: qcom: Add compatibles for MSM8909 Stephan Gerhold
` (7 preceding siblings ...)
2022-07-05 14:35 ` [PATCH 8/8] ARM: mach-qcom: Add support for MSM8909 Stephan Gerhold
@ 2022-07-19 4:48 ` Bjorn Andersson
8 siblings, 0 replies; 15+ messages in thread
From: Bjorn Andersson @ 2022-07-19 4:48 UTC (permalink / raw)
To: stephan.gerhold
Cc: robh+dt, linux-arm-msm, linux-arm-kernel, stephan, Andy Gross,
devicetree, krzysztof.kozlowski+dt
On Tue, 5 Jul 2022 16:35:15 +0200, Stephan Gerhold wrote:
> A set of tiny patches adding compatibles for MSM8909 in Qualcomm SoC
> drivers. Most of them are even just aliases for existing code (usually
> MSM8916 since it is very similar).
>
> Stephan Gerhold (8):
> dt-bindings: soc: qcom: smd-rpm: Add MSM8909
> soc: qcom: smd-rpm: Add compatible for MSM8909
> dt-bindings: power: qcom-rpmpd: Add MSM8909 power domains
> soc: qcom: rpmpd: Add compatible for MSM8909
> dt-bindings: soc: qcom: spm: Add MSM8909 CPU compatible
> soc: qcom: spm: Add CPU data for MSM8909
> dt-bindings: arm: cpus: Document "qcom,msm8909-smp" enable-method
> ARM: mach-qcom: Add support for MSM8909
>
> [...]
Applied, thanks!
[7/8] dt-bindings: arm: cpus: Document "qcom,msm8909-smp" enable-method
commit: df71736be882fbe5317014348791123984b352f9
[8/8] ARM: mach-qcom: Add support for MSM8909
commit: 2bc7d3e08ec76f5ea88c552ae72ed8ea9bbdcc01
Best regards,
--
Bjorn Andersson <bjorn.andersson@linaro.org>
^ permalink raw reply [flat|nested] 15+ messages in thread