From: Conor Dooley <conor@kernel.org>
To: Wang Yang <yang.wang@deepcomputing.io>
Cc: Yixun Lan <dlan@kernel.org>, Benson Leung <bleung@chromium.org>,
Troy Mitchell <troy.mitchell@linux.spacemit.com>,
Tzung-Bi Shih <tzungbi@kernel.org>,
Guenter Roeck <groeck@chromium.org>,
Rob Herring <robh@kernel.org>,
Krzysztof Kozlowski <krzk+dt@kernel.org>,
Conor Dooley <conor+dt@kernel.org>,
Paul Walmsley <pjw@kernel.org>,
Palmer Dabbelt <palmer@dabbelt.com>,
Albert Ou <aou@eecs.berkeley.edu>,
Alexandre Ghiti <alex@ghiti.fr>,
Sandie Cao <sandie.cao@deepcomputing.io>,
devicetree@vger.kernel.org, chrome-platform@lists.linux.dev,
linux-riscv@lists.infradead.org, spacemit@lists.linux.dev,
linux-kernel@vger.kernel.org, linux-spi@vger.kernel.org,
broonie@kernel.org
Subject: Re: [PATCH 1/9] dt-bindings: bus: Add SpacemiT K3 eSPI controller
Date: Wed, 18 Nov 2026 17:51:22 +0000 [thread overview]
Message-ID: <20261118-backdrop-scrap-1bee34e06336@spud> (raw)
In-Reply-To: <20261118085742.1817536-2-yang.wang@deepcomputing.io>
[-- Attachment #1: Type: text/plain, Size: 5410 bytes --]
+CC Mark, spi,
On Wed, Nov 18, 2026 at 04:57:34PM +0800, Wang Yang wrote:
> window, clocks, resets and link configuration. The EC uses this memory
> window rather than the ordinary SPI transfer interface.
>
> The controller implementation is carried as a separate prerequisite so
> that the hardware vendor can review it independently.
>
> Prepared with Codex assistance from the existing DC-linux EC support.
>
> Signed-off-by: Wang Yang <yang.wang@deepcomputing.io>
> ---
> .../bindings/bus/spacemit,k3-espi.yaml | 146 ++++++++++++++++++
> 1 file changed, 146 insertions(+)
> create mode 100644 Documentation/devicetree/bindings/bus/spacemit,k3-espi.yaml
>
> diff --git a/Documentation/devicetree/bindings/bus/spacemit,k3-espi.yaml b/Documentation/devicetree/bindings/bus/spacemit,k3-espi.yaml
> new file mode 100644
> index 000000000..30985ee0a
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/bus/spacemit,k3-espi.yaml
> @@ -0,0 +1,146 @@
> +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
> +%YAML 1.2
> +---
> +$id: http://devicetree.org/schemas/bus/spacemit,k3-espi.yaml#
> +$schema: http://devicetree.org/meta-schemas/core.yaml#
> +
> +title: SpacemiT K3 eSPI controller
How is this "eSPI" different to the eSPI described in fsl,espi.yaml and
implemented by a driver in drivers/spi?
Cheers,
Conor.
> +
> +maintainers:
> + - Yixun Lan <dlan@kernel.org>
> +
> +description: |
> + The K3 eSPI controller connects the application processor to an embedded
> + controller. Child registers are accessed through a peripheral shared-memory
> + window, translated by ranges. The controller manages clocks, resets and
> + channel negotiation, including link recovery after an EC reboot.
> +
> +properties:
> + compatible:
> + const: spacemit,k3-espi
> +
> + reg:
> + maxItems: 1
> +
> + '#address-cells':
> + const: 1
> +
> + '#size-cells':
> + const: 1
> +
> + ranges:
> + maxItems: 1
> +
> + clocks:
> + items:
> + - description: Serial clock source
> + - description: Serial clock
> + - description: Bus clock
> +
> + clock-names:
> + items:
> + - const: sclk_src
> + - const: sclk
> + - const: mclk
> +
> + resets:
> + items:
> + - description: Bus reset
> + - description: Serial clock reset
> +
> + pr-mem-base0:
> + $ref: /schemas/types.yaml#/definitions/uint32
> + description: First peripheral memory translation base.
> +
> + pr-mem-base1:
> + $ref: /schemas/types.yaml#/definitions/uint32
> + description: Second peripheral memory translation base.
> +
> + operating-frequency:
> + $ref: /schemas/types.yaml#/definitions/uint32
> + description: Requested link clock frequency in MHz.
> + enum: [20, 25, 33, 50, 66]
> + default: 20
> +
> + io-mode:
> + $ref: /schemas/types.yaml#/definitions/string
> + description: Requested number of eSPI data lines.
> + enum: [single, dual, quad]
> + default: single
> +
> + alert-mode:
> + $ref: /schemas/types.yaml#/definitions/string
> + description: Use the shared IO1 line or the dedicated alert pin.
> + enum: [io1, pin]
> + default: io1
> +
> + alert-type:
> + $ref: /schemas/types.yaml#/definitions/string
> + description: Electrical mode of the dedicated alert pin.
> + enum: [open-drain, push-pull]
> + default: open-drain
> +
> + watchdog-timeout:
> + $ref: /schemas/types.yaml#/definitions/uint32
> + description: Controller watchdog counter value.
> + maximum: 65535
> + default: 65535
> +
> + crc-enable:
> + type: boolean
> + description: Enable link CRC checking.
> +
> + auto-gating-enable:
> + type: boolean
> + description: Enable automatic controller clock gating.
> +
> + peripheral-channel-enable:
> + type: boolean
> + description: Enable the peripheral channel.
> +
> + vwire-channel-enable:
> + type: boolean
> + description: Enable the virtual-wire channel.
> +
> + oob-channel-enable:
> + type: boolean
> + description: Enable the out-of-band channel.
> +
> + flash-channel-enable:
> + type: boolean
> + description: Enable the flash access channel.
> +
> +patternProperties:
> + '^ec@[0-9a-f]+$':
> + $ref: /schemas/embedded-controller/google,cros-ec.yaml#
> +
> +required:
> + - compatible
> + - reg
> + - '#address-cells'
> + - '#size-cells'
> + - ranges
> + - clocks
> + - clock-names
> + - resets
> +
> +additionalProperties: false
> +
> +examples:
> + - |
> + #include <dt-bindings/clock/spacemit,k3-clocks.h>
> + #include <dt-bindings/reset/spacemit,k3-resets.h>
> +
> + espi@cac8c000 {
> + compatible = "spacemit,k3-espi";
> + reg = <0xcac8c000 0x1000>;
> + #address-cells = <1>;
> + #size-cells = <1>;
> + ranges = <0 0x84000000 0x1000>;
> + clocks = <&syscon_apmu CLK_APMU_ESPI_SCLK_SRC>,
> + <&syscon_apmu CLK_APMU_ESPI_SCLK>,
> + <&syscon_apmu CLK_APMU_ESPI_MCLK>;
> + clock-names = "sclk_src", "sclk", "mclk";
> + resets = <&syscon_apmu RESET_APMU_ESPI_MCLK>,
> + <&syscon_apmu RESET_APMU_ESPI_SCLK>;
> + };
>
> base-commit: 749a4de370409464cf8501ec5b2451df45c84eb4
> --
> 2.43.0
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 228 bytes --]
next prev parent reply other threads:[~2026-11-18 17:51 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-18 8:57 [PATCH 0/9] Add SpacemiT K3 FML13V05 EC keyboard support Wang Yang
2026-11-18 8:57 ` [PATCH 1/9] dt-bindings: bus: Add SpacemiT K3 eSPI controller Wang Yang
2026-11-18 9:18 ` sashiko-bot
2026-11-18 17:51 ` Conor Dooley [this message]
2026-11-18 8:57 ` [PATCH 2/9] dt-bindings: embedded-controller: Add SpacemiT K3 EC window Wang Yang
2026-11-18 8:57 ` [PATCH 3/9] bus: Add SpacemiT K3 eSPI controller support Wang Yang
2026-11-18 9:23 ` sashiko-bot
2026-11-18 8:57 ` [PATCH 4/9] platform/chrome: Allow ChromeOS platform support on RISC-V Wang Yang
2026-11-18 8:57 ` [PATCH 5/9] platform/chrome: Add SpacemiT K3 eSPI EC transport Wang Yang
2026-11-18 9:33 ` sashiko-bot
2026-11-18 8:57 ` [PATCH 6/9] riscv: dts: spacemit: Add K3 eSPI pin group Wang Yang
2026-11-18 9:08 ` sashiko-bot
2026-11-18 8:57 ` [PATCH 7/9] riscv: dts: spacemit: Describe the K3 eSPI controller Wang Yang
2026-11-18 9:25 ` sashiko-bot
2026-11-18 8:57 ` [PATCH 8/9] riscv: dts: spacemit: Enable the FML13V05 EC keyboard Wang Yang
2026-11-18 9:20 ` sashiko-bot
2026-11-18 8:57 ` [PATCH 9/9] riscv: defconfig: Enable the FML13V05 EC keyboard modules Wang Yang
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=20261118-backdrop-scrap-1bee34e06336@spud \
--to=conor@kernel.org \
--cc=alex@ghiti.fr \
--cc=aou@eecs.berkeley.edu \
--cc=bleung@chromium.org \
--cc=broonie@kernel.org \
--cc=chrome-platform@lists.linux.dev \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=dlan@kernel.org \
--cc=groeck@chromium.org \
--cc=krzk+dt@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-riscv@lists.infradead.org \
--cc=linux-spi@vger.kernel.org \
--cc=palmer@dabbelt.com \
--cc=pjw@kernel.org \
--cc=robh@kernel.org \
--cc=sandie.cao@deepcomputing.io \
--cc=spacemit@lists.linux.dev \
--cc=troy.mitchell@linux.spacemit.com \
--cc=tzungbi@kernel.org \
--cc=yang.wang@deepcomputing.io \
/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