* [PATCH] arm64: dts: cix: Add scmi powerdomain nodes for sky1
@ 2026-03-06 9:06 Gary Yang
2026-03-07 15:23 ` Krzysztof Kozlowski
0 siblings, 1 reply; 4+ messages in thread
From: Gary Yang @ 2026-03-06 9:06 UTC (permalink / raw)
To: peter.chen, fugang.duan, robh, krzk+dt, conor+dt
Cc: linux-arm-kernel, devicetree, linux-kernel, cix-kernel-upstream,
Gary Yang
Add a second SCMI channel using SMC transport to communicate with TF-A
for power domain management on the Sky1 SoC.
Signed-off-by: Gary Yang <gary.yang@cixtech.com>
---
arch/arm64/boot/dts/cix/sky1-power.h | 34 ++++++++++++++++++++++++++++
arch/arm64/boot/dts/cix/sky1.dtsi | 19 ++++++++++++++++
2 files changed, 53 insertions(+)
create mode 100644 arch/arm64/boot/dts/cix/sky1-power.h
diff --git a/arch/arm64/boot/dts/cix/sky1-power.h b/arch/arm64/boot/dts/cix/sky1-power.h
new file mode 100644
index 000000000000..743c0e5558ee
--- /dev/null
+++ b/arch/arm64/boot/dts/cix/sky1-power.h
@@ -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
diff --git a/arch/arm64/boot/dts/cix/sky1.dtsi b/arch/arm64/boot/dts/cix/sky1.dtsi
index 64b76905cbff..d37ab16ad9b6 100644
--- a/arch/arm64/boot/dts/cix/sky1.dtsi
+++ b/arch/arm64/boot/dts/cix/sky1.dtsi
@@ -168,6 +168,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 {
@@ -572,6 +585,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 {
--
2.49.0
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH] arm64: dts: cix: Add scmi powerdomain nodes for sky1
2026-03-06 9:06 [PATCH] arm64: dts: cix: Add scmi powerdomain nodes for sky1 Gary Yang
@ 2026-03-07 15:23 ` Krzysztof Kozlowski
2026-03-09 1:56 ` 回复: " Gary Yang
0 siblings, 1 reply; 4+ messages in thread
From: Krzysztof Kozlowski @ 2026-03-07 15:23 UTC (permalink / raw)
To: Gary Yang, peter.chen, fugang.duan, robh, krzk+dt, conor+dt
Cc: linux-arm-kernel, devicetree, linux-kernel, cix-kernel-upstream
On 06/03/2026 10:06, Gary Yang wrote:
> Add a second SCMI channel using SMC transport to communicate with TF-A
> for power domain management on the Sky1 SoC.
>
> Signed-off-by: Gary Yang <gary.yang@cixtech.com>
> ---
> arch/arm64/boot/dts/cix/sky1-power.h | 34 ++++++++++++++++++++++++++++
Why do you add dead code?
Best regards,
Krzysztof
^ permalink raw reply [flat|nested] 4+ messages in thread
* 回复: [PATCH] arm64: dts: cix: Add scmi powerdomain nodes for sky1
2026-03-07 15:23 ` Krzysztof Kozlowski
@ 2026-03-09 1:56 ` Gary Yang
2026-03-09 7:11 ` Krzysztof Kozlowski
0 siblings, 1 reply; 4+ messages in thread
From: Gary Yang @ 2026-03-09 1:56 UTC (permalink / raw)
To: Krzysztof Kozlowski, Peter Chen, Fugang Duan, robh@kernel.org,
krzk+dt@kernel.org, conor+dt@kernel.org
Cc: linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org,
linux-kernel@vger.kernel.org, cix-kernel-upstream
Hi Krzysztof:
Thanks for your comments
> EXTERNAL EMAIL
>
> On 06/03/2026 10:06, Gary Yang wrote:
> > Add a second SCMI channel using SMC transport to communicate with TF-A
> > for power domain management on the Sky1 SoC.
> >
> > Signed-off-by: Gary Yang <gary.yang@cixtech.com>
> > ---
> > arch/arm64/boot/dts/cix/sky1-power.h | 34
> > ++++++++++++++++++++++++++++
>
> Why do you add dead code?
>
The power domain serves as the foundation for serval modules with independent power domains.
For example, you will see GPU patch based on this patch soon. SKY1_PD_GPU is used in its dts node.
If take any mistakes or miss any information, please let us know.
Best Regards
Gary
> Best regards,
> Krzysztof
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: 回复: [PATCH] arm64: dts: cix: Add scmi powerdomain nodes for sky1
2026-03-09 1:56 ` 回复: " Gary Yang
@ 2026-03-09 7:11 ` Krzysztof Kozlowski
0 siblings, 0 replies; 4+ messages in thread
From: Krzysztof Kozlowski @ 2026-03-09 7:11 UTC (permalink / raw)
To: Gary Yang, Peter Chen, Fugang Duan, robh@kernel.org,
krzk+dt@kernel.org, conor+dt@kernel.org
Cc: linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org,
linux-kernel@vger.kernel.org, cix-kernel-upstream
On 09/03/2026 02:56, Gary Yang wrote:
> Hi Krzysztof:
>
> Thanks for your comments
>
>> EXTERNAL EMAIL
>>
>> On 06/03/2026 10:06, Gary Yang wrote:
>>> Add a second SCMI channel using SMC transport to communicate with TF-A
>>> for power domain management on the Sky1 SoC.
>>>
>>> Signed-off-by: Gary Yang <gary.yang@cixtech.com>
>>> ---
>>> arch/arm64/boot/dts/cix/sky1-power.h | 34
>>> ++++++++++++++++++++++++++++
>>
>> Why do you add dead code?
>>
>
> The power domain serves as the foundation for serval modules with independent power domains.
So you add dead code because power domains are foundation? No. Dead code
is still dead code.
> For example, you will see GPU patch based on this patch soon. SKY1_PD_GPU is used in its dts node.
There is no such patch.
>
> If take any mistakes or miss any information, please let us know.
Don't ever add dead code.
>
Best regards,
Krzysztof
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2026-03-09 7:11 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-03-06 9:06 [PATCH] arm64: dts: cix: Add scmi powerdomain nodes for sky1 Gary Yang
2026-03-07 15:23 ` Krzysztof Kozlowski
2026-03-09 1:56 ` 回复: " Gary Yang
2026-03-09 7:11 ` Krzysztof Kozlowski
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox