Devicetree
 help / color / mirror / Atom feed
From: Mason Huo <mason.huo@starfivetech.com>
To: Lee Jones <lee@kernel.org>, Corey Minyard <corey@minyard.net>,
	Rob Herring <robh@kernel.org>,
	Krzysztof Kozlowski <krzk+dt@kernel.org>,
	Conor Dooley <conor+dt@kernel.org>
Cc: mfd@lists.linux.dev, linux-kernel@vger.kernel.org,
	devicetree@vger.kernel.org,
	openipmi-developer@lists.sourceforge.net,
	Mason Huo <mason.huo@starfivetech.com>
Subject: [PATCH v2 1/3] dt-bindings: mfd: Add StarFive JHB100 SuperIO
Date: Fri,  4 Dec 2026 14:06:21 +0800	[thread overview]
Message-ID: <20261204060623.2994008-2-mason.huo@starfivetech.com> (raw)
In-Reply-To: <20261204060623.2994008-1-mason.huo@starfivetech.com>

The StarFive JHB100 BMC SoC has one SuperIO (SIO) block per eSPI
controller, which the host accesses over the eSPI bus. Each block
provides two IPMI Block Transfer (BT) channels, four IPMI Keyboard
Controller Style (KCS) channels, a mailbox, a Post Code Capture (PCC)
unit and a watchdog interface in a single register window. Every
function has its own interrupt, and one more interrupt signals the
de-assertion of the eSPI bus reset.

The layout of the block is fixed, so describe it as a single node. Its
driver instantiates the functions.

Signed-off-by: Mason Huo <mason.huo@starfivetech.com>
---
 .../bindings/mfd/starfive,jhb100-sio.yaml     | 75 +++++++++++++++++++
 1 file changed, 75 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/mfd/starfive,jhb100-sio.yaml

diff --git a/Documentation/devicetree/bindings/mfd/starfive,jhb100-sio.yaml b/Documentation/devicetree/bindings/mfd/starfive,jhb100-sio.yaml
new file mode 100644
index 000000000000..dd618206bfe2
--- /dev/null
+++ b/Documentation/devicetree/bindings/mfd/starfive,jhb100-sio.yaml
@@ -0,0 +1,75 @@
+# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/mfd/starfive,jhb100-sio.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: StarFive JHB100 SuperIO Controller
+
+maintainers:
+  - Mason Huo <mason.huo@starfivetech.com>
+
+description:
+  The JHB100 BMC SoC has one SuperIO (SIO) block per eSPI controller, which
+  the host accesses over the eSPI bus. Each block provides several host
+  facing functions in a single register window, two IPMI Block Transfer (BT)
+  channels, four IPMI Keyboard Controller Style (KCS) channels, a mailbox, a
+  Post Code Capture (PCC) unit, which snoops the writes of the host to I/O
+  port 0x80, and a watchdog interface, each with its own interrupt.
+
+properties:
+  compatible:
+    const: starfive,jhb100-sio
+
+  reg:
+    maxItems: 1
+
+  interrupts:
+    items:
+      - description: BT channel 0 interrupt
+      - description: BT channel 1 interrupt
+      - description: KCS channel 0 interrupt
+      - description: KCS channel 1 interrupt
+      - description: KCS channel 2 interrupt
+      - description: KCS channel 3 interrupt
+      - description: Mailbox interrupt
+      - description: Post Code Capture interrupt
+      - description: Watchdog interface interrupt
+      - description: eSPI bus reset de-assertion interrupt
+
+  interrupt-names:
+    items:
+      - const: bt0
+      - const: bt1
+      - const: kcs0
+      - const: kcs1
+      - const: kcs2
+      - const: kcs3
+      - const: mbox
+      - const: pcc
+      - const: wdi
+      - const: espi
+
+required:
+  - compatible
+  - reg
+  - interrupts
+  - interrupt-names
+
+additionalProperties: false
+
+examples:
+  - |
+    soc {
+        #address-cells = <2>;
+        #size-cells = <2>;
+
+        superio@10582000 {
+            compatible = "starfive,jhb100-sio";
+            reg = <0x0 0x10582000 0x0 0x1000>;
+            interrupts = <280>, <281>, <282>, <283>, <284>, <285>, <286>,
+                         <287>, <288>, <57>;
+            interrupt-names = "bt0", "bt1", "kcs0", "kcs1", "kcs2", "kcs3",
+                              "mbox", "pcc", "wdi", "espi";
+        };
+    };
-- 
2.50.1


  reply	other threads:[~2026-12-04  6:06 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-12-04  6:06 [PATCH v2 0/3] Add StarFive JHB100 SuperIO and KCS BMC drivers Mason Huo
2026-12-04  6:06 ` Mason Huo [this message]
2026-12-04  6:06 ` [PATCH v2 2/3] mfd: Add StarFive JHB100 SuperIO driver Mason Huo
2026-12-04  6:06 ` [PATCH v2 3/3] 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=20261204060623.2994008-2-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=lee@kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mfd@lists.linux.dev \
    --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