mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Mason Huo <mason.huo@starfivetech.com>
To: Corey Minyard <corey@minyard.net>, Rob Herring <robh@kernel.org>,
	Krzysztof Kozlowski <krzk+dt@kernel.org>,
	Conor Dooley <conor+dt@kernel.org>
Cc: linux-kernel@vger.kernel.org, devicetree@vger.kernel.org,
	openipmi-developer@lists.sourceforge.net,
	Mason Huo <mason.huo@starfivetech.com>
Subject: [PATCH 0/2] ipmi: Add StarFive JHB100 KCS BMC driver
Date: Wed, 18 Nov 2026 14:25:24 +0800	[thread overview]
Message-ID: <20261118062526.1436893-1-mason.huo@starfivetech.com> (raw)

This series adds support for the KCS (Keyboard Controller Style) interface
of the StarFive JHB100 SoC, a RISC-V SoC used as a BMC on server boards.
KCS is used for in-band IPMI communication between the host and the BMC.

The KCS channels are functions of a Super I/O (SIO) block which the host
accesses over the eSPI bus. The driver is a backend for the existing KCS
BMC core, like the ASPEED and Nuvoton drivers.

Notes for review:
- The channel number is not described in the devicetree. It is derived
  from the register offset of the channel and the "starfive,sio-id"
  property of the parent SIO node.

- The hardware has an IBF interrupt only, there is no OBE interrupt.

- The "espi_rst" interrupt fires when the host de-asserts the eSPI bus
  reset. The reset clears the KCS interrupt enable register, so the
  driver restores it from a shadow copy.

Mason Huo (2):
  dt-bindings: ipmi: Convert starfive,kcs-bmc to DT schema
  ipmi: add a StarFive KCS BMC driver

 .../bindings/ipmi/starfive,kcs-bmc.yaml       |  53 +++
 MAINTAINERS                                   |   6 +
 drivers/char/ipmi/Kconfig                     |  15 +
 drivers/char/ipmi/Makefile                    |   1 +
 drivers/char/ipmi/kcs_bmc_starfive.c          | 311 ++++++++++++++++++
 5 files changed, 386 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/ipmi/starfive,kcs-bmc.yaml
 create mode 100644 drivers/char/ipmi/kcs_bmc_starfive.c

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

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-18  6:25 Mason Huo [this message]
2026-11-18  6:25 ` [PATCH vV 1/2] dt-bindings: ipmi: Convert starfive,kcs-bmc to DT schema Mason Huo
2026-11-18  6:25 ` [PATCH vV 2/2] ipmi: add StarFive KCS BMC driver 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=20261118062526.1436893-1-mason.huo@starfivetech.com \
    --to=mason.huo@starfivetech.com \
    --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=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®