From: Zichar Zhang <zichar.zhang@cixtech.com>
To: Krzysztof Kozlowski <krzk@kernel.org>
Cc: linusw@kernel.org, brgl@kernel.org, robh@kernel.org,
krzk+dt@kernel.org, conor+dt@kernel.org, peter.chen@cixtech.com,
fugang.duan@cixtech.com, jank@cadence.com,
cix-kernel-upstream@cixtech.com, linux-gpio@vger.kernel.org,
devicetree@vger.kernel.org, linux-kernel@vger.kernel.org,
linux-arm-kernel@lists.infradead.org
Subject: Re: [PATCH 2/2] arm64: dts: cix: add FCH(S0)/S5 GPIO controllers for sky1
Date: Wed, 11 Mar 2026 20:38:34 +0800 [thread overview]
Message-ID: <abFiSqo3AWUjj1pt@ZicharPC> (raw)
In-Reply-To: <20260307-efficient-fancy-gaur-db7df8@quoll>
On Sat, Mar 07, 2026 at 04:22:39PM +0100, Krzysztof Kozlowski wrote:
> EXTERNAL EMAIL
>
> On Fri, Mar 06, 2026 at 05:32:38PM +0800, Zichar Zhang wrote:
> > From: "Zichar.Zhang" <zichar.zhang@cixtech.com>
> >
> > Add Cadence GPIO controller nodes for Sky1 FCH(S0) and S5 domains in
> > sky1.dtsi, and enable those controllers on sky1-orion-o6.
> >
> > Signed-off-by: Zichar Zhang <zichar.zhang@cixtech.com>
> > ---
> > arch/arm64/boot/dts/cix/sky1-orion-o6.dts | 28 +++++
> > arch/arm64/boot/dts/cix/sky1.dtsi | 123 ++++++++++++++++++++++
> > 2 files changed, 151 insertions(+)
> >
> > diff --git a/arch/arm64/boot/dts/cix/sky1-orion-o6.dts b/arch/arm64/boot/dts/cix/sky1-orion-o6.dts
> > index 4dee8cd0b86d..4dc76e0135ee 100644
> > --- a/arch/arm64/boot/dts/cix/sky1-orion-o6.dts
> > +++ b/arch/arm64/boot/dts/cix/sky1-orion-o6.dts
> > @@ -89,3 +89,31 @@ &pcie_x1_1_rc {
> > &uart2 {
> > status = "okay";
> > };
> > +
> > +&s5_gpio0 {
>
> I already asked cixtech contributors to read DTS coding style. More than
> once. Does it mean I need to ask EACH contributor that? Maybe create
> internal guideline to avoid trivial mistakes?
Thanks, I’m working on the next revision of this patch.
I have reordered the s5_gpioX and fch_gpioX nodes alphabetically
in the next version of the patch.
>
> > + status = "okay";
> > +};
> > +
> > +&s5_gpio1 {
> > + status = "okay";
> > +};
> > +
> > +&s5_gpio2 {
> > + status = "okay";
> > +};
> > +
> > +&fch_gpio0 {
> > + status = "okay";
> > +};
> > +
> > +&fch_gpio1 {
> > + status = "okay";
> > +};
> > +
> > +&fch_gpio2 {
> > + status = "okay";
> > +};
> > +
> > +&fch_gpio3 {
> > + status = "okay";
> > +};
> > diff --git a/arch/arm64/boot/dts/cix/sky1.dtsi b/arch/arm64/boot/dts/cix/sky1.dtsi
> > index 72f3b195a927..9ceaf8f68e83 100644
> > --- a/arch/arm64/boot/dts/cix/sky1.dtsi
> > +++ b/arch/arm64/boot/dts/cix/sky1.dtsi
> > @@ -185,6 +185,13 @@ psci {
> > method = "smc";
> > };
> >
> > + s5_gpio_apb_clk: s5-gpio-apb-clk {
>
> Please use name for all fixed clocks which matches current format
> recommendation: 'clock-<freq>' (see also the pattern in the binding for
> any other options).
> https://web.git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/Documentation/devicetree/bindings/clock/fixed-clock.yaml
I have changed node name as "clock-100000000":
s5_gpio_apb_clk: clock-100000000 {
compatible = "fixed-clock";
#clock-cells = <0>;
clock-frequency = <100000000>;
clock-output-names = "s5_gpio_apb_clk";
}
>
> > + compatible = "fixed-clock";
> > + #clock-cells = <0>;
> > + clock-frequency = <100000000>;
> > + clock-output-names = "s5_gpio_apb_clk";
> > + };
> > +
> > soc@0 {
> > compatible = "simple-bus";
> > ranges = <0 0 0 0 0x20 0>;
> > @@ -354,6 +361,74 @@ syscon: syscon@4160000 {
> > #reset-cells = <1>;
> > };
> >
> > + fch_gpio0: gpio-controller@4120000 {
>
> Again, read DTS coding style.
>
> > + compatible = "cdns,gpio-r1p02";
> > + reg = <0x0 0x4120000 0x0 0x1000>;
> > + clocks = <&scmi_clk CLK_TREE_FCH_GPIO_APB>;
> > + clock-names = "fch_gpio_apb_clk";
>
> This is pointless name. GPIO block does not take some "fch" input. You
> just called the input clock based on clock output which is completely
> misunderstanding of the DTS.
Thanks, I will remove the property "clock-names" as well as the changes
in yaml file.
fch is a hardware "module" in the Sky1 chip. This module is powered down
when the system enters the S3 and S5 states. It contains several GPIO
controllers, so we refer to them as "fch_gpio". In contrast, "s5_gpio"
remains powered in the S5 state.
Based on the hierarchy, the clock input for fch_gpio on the APB bus is
named fch_gpio_apb_clk. By the same logic, the clock ID macro is named
CLK_TREE_FCH_GPIO_APB.
Best regards,
Zichar Zhang
next prev parent reply other threads:[~2026-03-11 12:38 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-03-06 9:32 [PATCH 1/2] dt-bindings: gpio: cdns: add clock-names property Zichar Zhang
2026-03-06 9:32 ` [PATCH 2/2] arm64: dts: cix: add FCH(S0)/S5 GPIO controllers for sky1 Zichar Zhang
2026-03-06 10:06 ` Linus Walleij
2026-03-07 15:22 ` Krzysztof Kozlowski
2026-03-11 12:38 ` Zichar Zhang [this message]
2026-03-06 10:10 ` [PATCH 1/2] dt-bindings: gpio: cdns: add clock-names property Linus Walleij
2026-03-07 15:20 ` Krzysztof Kozlowski
2026-03-11 12:08 ` Zichar Zhang
2026-03-11 13:05 ` Linus Walleij
2026-03-07 15:19 ` Krzysztof Kozlowski
2026-03-11 12:11 ` Zichar Zhang
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=abFiSqo3AWUjj1pt@ZicharPC \
--to=zichar.zhang@cixtech.com \
--cc=brgl@kernel.org \
--cc=cix-kernel-upstream@cixtech.com \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=fugang.duan@cixtech.com \
--cc=jank@cadence.com \
--cc=krzk+dt@kernel.org \
--cc=krzk@kernel.org \
--cc=linusw@kernel.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-gpio@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=peter.chen@cixtech.com \
--cc=robh@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox