RE: [PATCH v1 1/2] dt-bindings: ipmi: Convert starfive,kcs-bmc to DT schema
From: Mason Huo
Date: Tue Nov 24 2026 - 20:08:06 EST
> From: Conor Dooley <conor@xxxxxxxxxx>
> Sent: 2026年11月19日 1:58
> To: Mason Huo <mason.huo@xxxxxxxxxxxxxxxx>
> Cc: Corey Minyard <corey@xxxxxxxxxxx>; Rob Herring <robh@xxxxxxxxxx>;
> Krzysztof Kozlowski <krzk+dt@xxxxxxxxxx>; Conor Dooley
> <conor+dt@xxxxxxxxxx>; linux-kernel@xxxxxxxxxxxxxxx;
> devicetree@xxxxxxxxxxxxxxx; openipmi-developer@xxxxxxxxxxxxxxxxxxxxx
> Subject: Re: [PATCH v1 1/2] dt-bindings: ipmi: Convert starfive,kcs-bmc to DT
> schema
>
> On Wed, Nov 18, 2026 at 02:25:25PM +0800, Mason Huo wrote:
> > Convert the starfive,kcs-bmc binding to DT schema format.
>
> This is not a conversion since you are not deleting anything?
>
Thanks for the correction, will update the commit message in v2.
> >
> > Signed-off-by: Mason Huo <mason.huo@xxxxxxxxxxxxxxxx>
> > ---
> > .../bindings/ipmi/starfive,kcs-bmc.yaml | 53 +++++++++++++++++++
> > 1 file changed, 53 insertions(+)
> > create mode 100644
> Documentation/devicetree/bindings/ipmi/starfive,kcs-bmc.yaml
> >
> > diff --git a/Documentation/devicetree/bindings/ipmi/starfive,kcs-
> bmc.yaml b/Documentation/devicetree/bindings/ipmi/starfive,kcs-
> bmc.yaml
> > new file mode 100644
> > index 000000000000..2cb91d321a32
> > --- /dev/null
> > +++ b/Documentation/devicetree/bindings/ipmi/starfive,kcs-bmc.yaml
> > @@ -0,0 +1,53 @@
> > +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
> > +%YAML 1.2
> > +---
> > +$id: http://devicetree.org/schemas/ipmi/starfive,kcs-bmc.yaml#
> > +$schema: http://devicetree.org/meta-schemas/core.yaml#
> > +
> > +title: StarFive BMC KCS Devices
> > +
> > +maintainers:
> > + - Mason Huo <mason.huo@xxxxxxxxxxxxxxxx>
> > +
> > +description:
> > + The StarFive BMC SoCs use Keyboard-Controller-Style (KCS) interfaces
> on
> > + the eSPI bus for in-band IPMI communication with their host. The KCS
> > + channels are part of a Super I/O (SIO) block and each channel occupies a
> > + 0x100 byte register window, starting at offset 0x200 of the SIO register
> > + space. A channel is identified by its register offset and the
> > + "starfive,sio-id" of the parent SIO node.
>
> Where is the binding for the parent SIO node? Hard to review this
> without that I think.
>
Sorry for missing the SIO node commit, will add it next version, and it looks like:
+ superio@10582000 {
+ compatible = "starfive,jhb100-sio", "simple-mfd", "syscon";
+ reg = <0x0 0x10582000 0x0 0x1000>;
+ #address-cells = <2>;
+ #size-cells = <2>;
+ ranges = <0x0 0x0 0x0 0x10582000 0x0 0x1000>;
+ starfive,sio-id = <0>;
+
+ kcs@200 {
+ compatible = "starfive,jhb100-kcs-bmc";
+ reg = <0x0 0x200 0x0 0x100>;
+ interrupts = <282>, <57>;
+ interrupt-names = "kcs", "espi_rst";
+ };
+ };
> > +
> > +properties:
> > + compatible:
> > + enum:
> > + - starfive,jhb100-kcs-bmc
> > +
> > + reg:
> > + maxItems: 1
> > +
> > + interrupts:
> > + items:
> > + - description: KCS channel interrupt
> > + - description: eSPI bus reset de-assertion interrupt
> > +
> > + interrupt-names:
> > + items:
> > + - const: kcs
> > + - const: espi_rst
>
> No need to have "rst" since this is a reset by nature ;)
>
OK, will remove it.
> > +
> > +required:
> > + - compatible
> > + - reg
> > + - interrupts
> > + - interrupt-names
> > +
> > +additionalProperties: false
> > +
> > +examples:
> > + - |
> > + kcs@200 {
>
> s/kcs/ipmi/?
>
Referred to the other kcs binding, and kcs is one of the system interfaces of ipmi protocol.
> > + compatible = "starfive,jhb100-kcs-bmc";
> > + reg = <0x200 0x100>;
> > + interrupts = <282>, <57>;
> > + interrupt-names = "kcs", "espi_rst";
> > + };
> > --
> > 2.50.1
> >