Skip to contentSkip to conversation

Add scmi powerdomain for sky1

PATCH Superseded Gary Yang 2 participants 6 messages Mar 13

Subsystems (5)

v3 of 4 Superseded Latest is v4 →

lore
Share & tools
lore

Gary Yang

author maintainer
#0 lore raw

v3 cover Add scmi powerdomain for sky1

v3 changes:
- Pass dts build check with below commands:
make O=$OUTKNL dt_binding_check
make O=$OUTKNL dt_binding_check DT_SCHEMA_FILES=cix,sky1-pcie-host.yaml make O=$OUTKNL CHECK_DTBS=y W=1 cix/sky1-orion-o6.dtb scripts/checkpatch.pl 000*.patch
- refine dt-bindings

v2 changes:
- Pass dts build check with below commands:
make O=$OUTKNL dt_binding_check
make O=$OUTKNL dt_binding_check DT_SCHEMA_FILES=cix,sky1-pcie-host.yaml make O=$OUTKNL CHECK_DTBS=y W=1 cix/sky1-orion-o6.dtb scripts/checkpatch.pl 000*.patch
- update dt-bindings

Gary Yang (2):
dt-bindings: PCI: cix,sky1-pcie-host: Add power-domains
arm64: dts: cix: Add scmi powerdomain nodes for sky1

 .../bindings/pci/cix,sky1-pcie-host.yaml      |  6 ++++
 arch/arm64/boot/dts/cix/sky1-power.h          | 34 +++++++++++++++++++
 arch/arm64/boot/dts/cix/sky1.dtsi             | 21 ++++++++++++
 3 files changed, 61 insertions(+)
 create mode 100644 arch/arm64/boot/dts/cix/sky1-power.h
Signature · 1 line
2.49.0
author maintainer
#1 lore raw

PATCH v3 1/2 dt-bindings: PCI: cix,sky1-pcie-host: Add power-domains

add power-domains and power-domain-names property

---
 .../devicetree/bindings/pci/cix,sky1-pcie-host.yaml         | 6 ++++++
 1 file changed, 6 insertions(+)
Documentation/devicetree/bindings/pci/cix,sky1-pcie-host.yaml +6 -0
index b910a42e0843..6f194319be52 100644
@@ -38,6 +38,12 @@ properties:
   ranges:
     maxItems: 3
 
+  power-domains:
+    maxItems: 1
+
+  power-domain-names:
+    maxItems: 1
+
 required:
   - compatible
   - ranges
Signature · 1 line
2.49.0
#2 lore raw

Re: [PATCH v3 1/2] dt-bindings: PCI: cix,sky1-pcie-host: Add power-domains

Quoted 1 line · Gary Yang

add power-domains and power-domain-names property

Nothing improved.

<form letter>
This is a friendly reminder during the review process.

It seems my or other reviewer's previous comments were not fully addressed. Maybe the feedback got lost between the quotes, maybe you just forgot to apply it. Please go back to the previous discussion and either implement all requested changes or keep discussing them.

Thank you.
</form letter>

Best regards,
Krzysztof

author maintainer
#3 lore raw

回复: [PATCH v3 1/2] dt-bindings: PCI: cix,sky1-pcie-host: Add power-domains

Hi Krzysztof:

Thanks for your comments

Quoted 10 lines

EXTERNAL EMAIL

Quoted 1 line · Gary Yang

add power-domains and power-domain-names property

Nothing improved.

<form letter>
This is a friendly reminder during the review process.

Quoted 8 lines

It seems my or other reviewer's previous comments were not fully addressed. Maybe the feedback got lost between the quotes, maybe you just forgot to apply it. Please go back to the previous discussion and either implement all requested changes or keep discussing them.

Thank you.
</form letter>

Sorry, we only delete power-domain-names property in dts file.

We also delete it in yaml file on V4. Like this, All right?

power-domains:
maxItems: 1

Best Regards
Gary

Quoted 2 lines

Best regards,
Krzysztof

#4 lore raw

Re: 回复: [PATCH v3 1/2] dt-bindings: PCI: cix,sky1-pcie-host: Add power-domains

Quoted 19 lines · Gary Yang

Hi Krzysztof:

Thanks for your comments

Quoted 15 lines

EXTERNAL EMAIL

Quoted 1 line · Gary Yang

add power-domains and power-domain-names property

Nothing improved.

<form letter>
This is a friendly reminder during the review process.

It seems my or other reviewer's previous comments were not fully addressed. Maybe the feedback got lost between the quotes, maybe you just forgot to apply it. Please go back to the previous discussion and either implement all requested changes or keep discussing them.

Quoted 7 lines
Quoted 3 lines

Thank you.
</form letter>

Sorry, we only delete power-domain-names property in dts file.

We also delete it in yaml file on V4. Like this, All right?

"Please go back to the previous discussion..."

Best regards,
Krzysztof

author maintainer
#5 lore raw

PATCH v3 2/2 arm64: dts: cix: Add scmi powerdomain nodes for sky1

In reply to Gary Yang

Add a second SCMI channel using SMC transport to communicate with TF-A for power domain management on the Sky1 SoC.

---
 arch/arm64/boot/dts/cix/sky1-power.h | 34 ++++++++++++++++++++++++++++
 arch/arm64/boot/dts/cix/sky1.dtsi    | 21 +++++++++++++++++
 2 files changed, 55 insertions(+)
 create mode 100644 arch/arm64/boot/dts/cix/sky1-power.h
arch/arm64/boot/dts/cix/sky1-power.h new file +34 -0
new file mode 100644
index 000000000000..743c0e5558ee
@@ -0,0 +1,34 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
+/*
+ * Copyright 2026 Cix Technology Group Co., Ltd.
+ */
+
+#ifndef __SKY1_POWER_H__
+#define __SKY1_POWER_H__
+
+/* The Rich OS need flow the macro */
+#define SKY1_PD_AUDIO		0
+#define SKY1_PD_PCIE_CTRL0	1
+#define SKY1_PD_PCIE_DUMMY	2
+#define SKY1_PD_PCIEHUB		3
+#define SKY1_PD_MMHUB		4
+#define SKY1_PD_MMHUB_SMMU	5
+#define SKY1_PD_DPU0		6
+#define SKY1_PD_DPU1		7
+#define SKY1_PD_DPU2		8
+#define SKY1_PD_DPU3		9
+#define SKY1_PD_DPU4		10
+#define SKY1_PD_VPU_TOP		11
+#define SKY1_PD_VPU_CORE0	12
+#define SKY1_PD_VPU_CORE1	13
+#define SKY1_PD_VPU_CORE2	14
+#define SKY1_PD_VPU_CORE3	15
+#define SKY1_PD_NPU_CORE0	16
+#define SKY1_PD_NPU_CORE1	17
+#define SKY1_PD_NPU_CORE2	18
+#define SKY1_PD_NPU_TOP		19
+#define SKY1_PD_ISP0		20
+#define SKY1_PD_GPU		21
+#define SKY1_PD_MAX		22
+
+#endif
arch/arm64/boot/dts/cix/sky1.dtsi +21 -0
index 64b76905cbff..495ea91a63f5 100644
@@ -6,6 +6,7 @@
 
 #include <dt-bindings/interrupt-controller/arm-gic.h>
 #include <dt-bindings/clock/cix,sky1.h>
+#include "sky1-power.h"
 
 / {
 	interrupt-parent = <&gic>;
@@ -168,6 +169,19 @@ scmi_clk: protocol@14 {
 				#clock-cells = <1>;
 			};
 		};
+
+		ap_to_tfa_scmi: scmi-1 {
+			compatible = "arm,scmi-smc";
+			arm,smc-id = <0xc2000001>;
+			#address-cells = <1>;
+			#size-cells = <0>;
+			shmem = <&ap_tfa_scmi_mem>;
+
+			smc_devpd: protocol@11 {
+				reg = <0x11>;
+				#power-domain-cells = <1>;
+			};
+		};
 	};
 
 	pmu-a520 {
@@ -428,6 +442,7 @@ pcie_x8_rc: pcie@a010000 {
 			#size-cells = <2>;
 			bus-range = <0xc0 0xff>;
 			device_type = "pci";
+			power-domains = <&smc_devpd SKY1_PD_PCIE_CTRL0>;
 			#interrupt-cells = <1>;
 			interrupt-map-mask = <0 0 0 0x7>;
 			interrupt-map = <0 0 0 1 &gic 0 0 GIC_SPI 407 IRQ_TYPE_LEVEL_HIGH 0>,
@@ -572,6 +587,12 @@ iomuxc_s5: pinctrl@16007000 {
 			compatible = "cix,sky1-pinctrl-s5";
 			reg = <0x0 0x16007000 0x0 0x1000>;
 		};
+
+		ap_tfa_scmi_mem: shmem@84380000 {
+			compatible = "arm,scmi-shmem";
+			reg = <0x0 0x84380000 0x0 0x80>;
+			reg-io-width = <4>;
+		};
 	};
 
 	timer {
Signature · 1 line
2.49.0