mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Conor Dooley <conor@kernel.org>
To: Mason Huo <mason.huo@starfivetech.com>
Cc: Corey Minyard <corey@minyard.net>, Rob Herring <robh@kernel.org>,
	Krzysztof Kozlowski <krzk+dt@kernel.org>,
	Conor Dooley <conor+dt@kernel.org>,
	"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
	"devicetree@vger.kernel.org" <devicetree@vger.kernel.org>,
	"openipmi-developer@lists.sourceforge.net"
	<openipmi-developer@lists.sourceforge.net>
Subject: Re: [PATCH v1 1/2] dt-bindings: ipmi: Convert starfive,kcs-bmc to DT schema
Date: Thu, 26 Nov 2026 18:18:28 +0000	[thread overview]
Message-ID: <20261126-exclude-roundish-2cf1cf4874a9@spud> (raw)
In-Reply-To: <BJSPR01MB05775189EDBFDD5307F1003585422@BJSPR01MB0577.CHNPR01.prod.partner.outlook.cn>

[-- Attachment #1: Type: text/plain, Size: 4423 bytes --]

On Thu, Nov 26, 2026 at 12:39:02AM +0000, Mason Huo wrote:
> > From: Conor Dooley <conor@kernel.org>
> > Sent: 2026年11月26日 2:06
> > To: Mason Huo <mason.huo@starfivetech.com>
> > Cc: Corey Minyard <corey@minyard.net>; Rob Herring <robh@kernel.org>;
> > Krzysztof Kozlowski <krzk+dt@kernel.org>; Conor Dooley
> > <conor+dt@kernel.org>; linux-kernel@vger.kernel.org;
> > devicetree@vger.kernel.org; openipmi-developer@lists.sourceforge.net
> > Subject: Re: [PATCH v1 1/2] dt-bindings: ipmi: Convert starfive,kcs-bmc to DT
> > schema
> > 
> > On Wed, Nov 25, 2026 at 01:07:46AM +0000, Mason Huo wrote:
> > > > From: Conor Dooley <conor@kernel.org>
> > > > Sent: 2026年11月19日 1:58
> > > > To: Mason Huo <mason.huo@starfivetech.com>
> > > > Cc: Corey Minyard <corey@minyard.net>; Rob Herring
> > <robh@kernel.org>;
> > > > Krzysztof Kozlowski <krzk+dt@kernel.org>; Conor Dooley
> > > > <conor+dt@kernel.org>; linux-kernel@vger.kernel.org;
> > > > devicetree@vger.kernel.org; openipmi-developer@lists.sourceforge.net
> > > > 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@starfivetech.com>
> > > > > ---
> > > > >  .../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@starfivetech.com>
> > > > > +
> > > > > +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";
> > > +            };
> > > +        };
> > 
> > Why can this ipmi device not just be part of the parent node?
> 
> Including kcs, there are 5 kinds of super-io devices(kcs, bt ...) with different drivers
> in JHB100 SoC. For each super-io device, has its own 0x100 register window
> and dedicated Interrupt line.

I don't see how that is a blocker to simply having the parent node.
A driver for the parent node could register all of the children?

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 228 bytes --]

  reply	other threads:[~2026-11-26 18:18 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-18  6:25 [PATCH 0/2] ipmi: Add StarFive JHB100 KCS BMC driver Mason Huo
2026-11-18  6:25 ` [PATCH vV 1/2] dt-bindings: ipmi: Convert starfive,kcs-bmc to DT schema Mason Huo
2026-11-18 17:57   ` Conor Dooley
2026-11-25  1:07     ` [PATCH v1 " Mason Huo
2026-11-25 18:06       ` Conor Dooley
2026-11-26  0:39         ` Mason Huo
2026-11-26 18:18           ` Conor Dooley [this message]
2026-11-18  6:25 ` [PATCH vV 2/2] ipmi: add StarFive KCS BMC driver Mason Huo
2026-11-18 14:00   ` Corey Minyard
2026-11-25  2:40     ` [PATCH v1 " Mason Huo

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=20261126-exclude-roundish-2cf1cf4874a9@spud \
    --to=conor@kernel.org \
    --cc=conor+dt@kernel.org \
    --cc=corey@minyard.net \
    --cc=devicetree@vger.kernel.org \
    --cc=krzk+dt@kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mason.huo@starfivetech.com \
    --cc=openipmi-developer@lists.sourceforge.net \
    --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

all inboxes | Powered by JetHome®