From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 1AF4C606A33D for ; Fri, 4 Dec 2026 04:22:22 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.a=rsa-sha256 header.s=bombadil.20210309 header.b=bZOwMiDe; dkim=fail reason="signature verification failed" (2048-bit key) header.d=deepcomputing-io.20200927.dkim.feishu.cn header.i=@deepcomputing-io.20200927.dkim.feishu.cn header.a=rsa-sha256 header.s=s1 header.b=E1zcCZuD DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:Cc:References:Message-Id:Date:Subject: To:From:In-Reply-To:Mime-Version:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Unsubscribe-Post:List-Owner; bh=3FBBeTLLsU0v0LvtA3XdM3L1cWk4EV7E+FK77I32CkM=; b=bZOwMiDeKeJTTDjNUNzAESTKOI 8WiPrEwAeYPW7XEM4oc+WDbJzRZ4EKApgktuxJ6e+gnEDcSGU+gjkVCJT84RrwLuNyiu3mmSV8pS9 Qu/jp9/qIzkFCkR1dLs/kog2mZyVi79tITCPFhG3MIdfstm39P1wx/8s+lWa3uwexlWQVQbMePfSo ncLtdT+vcE88amU2aQ/G5dKalLCzA0nQ93gancpE950RiikMJbt3Dn1BSUQ3tqB5xGOpB/GDXr4QN 1V8o/+XOFkcVJd6HABUUExbnd1TDIVW1/NgsTDWkGfFg6ztr8cNC2Zh93yGqLCF17CSjtzq2KqVjP CIgzgP9w==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.100.1 #2 (Red Hat Linux)) id 1xZKoL-0000000GbpM-1vca; Fri, 04 Dec 2026 04:22:17 +0000 Received: from va-2-37.ptr.blmpb.com ([209.127.231.37]) by bombadil.infradead.org with esmtps (Exim 4.100.1 #2 (Red Hat Linux)) id 1xZKnj-0000000Gbe6-1ogs for linux-riscv@lists.infradead.org; Fri, 04 Dec 2026 04:22:01 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; s=s1; d=deepcomputing-io.20200927.dkim.feishu.cn; t=1796358092; h=from:subject:mime-version:from:date:message-id:subject:to:cc: reply-to:content-type:mime-version:in-reply-to:message-id; bh=6w/q8HFyQSQ9hvsowOufTuHX28K6cUOrvlYh7Ayldvk=; b=E1zcCZuDQte07a9XHo468DxeYiW0BKFzokz7LADXzHggYLsGQo3D1c8oXKS1FgtDCW8wET cxzVnq0VQs7HTvfMhrYom3miVSUVZTxCxk0xREKkUoA4M9c6ou+Yb61Z97iD2cO/0VtOl1 KnIdDkIGkOvAFggpdfCMgvRnjGMq7CqdERl2VOTbgf3zuWC3/esHTeZQwkKW1mUh74Eq11 zNq/0CEehJtyfRKtYJHasSFSPtA6Gdk/fw7bhoOoKGfZSvZ6GYV0Y05p9HDJLXZ46MMzc5 01HgYU7RMBFPoe0lMJFmIWfi0WUpKkFZSuPNVxdkL54cEZicaF7F6Df1/W3/tg== X-Archived-By: Mime-Version: 1.0 X-Mailer: git-send-email 2.43.0 In-Reply-To: <20261204042112.2985112-1-yang.wang@deepcomputing.io> From: "Wang Yang" X-Lms-Return-Path: To: Subject: [PATCH v2 06/13] dt-bindings: bus: Add SpacemiT K3 Intel eSPI controller Date: Fri, 4 Dec 2026 12:21:04 +0800 Message-Id: <20261204042112.2985112-7-yang.wang@deepcomputing.io> References: <20261204042112.2985112-1-yang.wang@deepcomputing.io> Cc: "Rob Herring" , "Krzysztof Kozlowski" , "Conor Dooley" , "Yixun Lan" , "Troy Mitchell" , , , Received: from ubuntu.. ([183.23.101.24]) by smtp.feishu.cn with ESMTPS; Fri, 04 Dec 2026 12:21:29 +0800 X-Original-From: Wang Yang X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.9.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20261203_202158_305144_EBFD1D1B X-CRM114-Status: GOOD ( 11.17 ) X-Spam-Score: -1.9 (-) X-BeenThere: linux-riscv@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-riscv" X-Spam-Status: No, score=-17.3 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_EF,HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_CR_TRAILER,INCLUDES_PATCH,MAILING_LIST_MULTI, MSGID_FROM_MTA_HEADER,SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=4.0.1 X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-26) on aws-us-west-2-korg-listserv-alma10-1 Describe the Intel eSPI protocol replacing LPC and its CPU-accessible peripheral window. Reference the already-added K3 EC schema from the first commit. Use vendor properties and frequency units in Hz. Prepared with OpenAI Codex assistance. Signed-off-by: Wang Yang --- .../bindings/bus/spacemit,k3-espi.yaml | 149 ++++++++++++++++++ 1 file changed, 149 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 000000000000..4bd13cc33c90 --- /dev/null +++ b/Documentation/devicetree/bindings/bus/spacemit,k3-espi.yaml @@ -0,0 +1,149 @@ +# 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 + +maintainers: + - Yixun Lan + +description: | + The K3 controller implements the Intel Enhanced Serial Peripheral Interface + (eSPI), which replaces LPC. This is a different protocol from the ordinary + SPI bus implemented by the Freescale/NXP controller called eSPI. + + The controller connects the application processor to an embedded controller. + It exposes a CPU-accessible peripheral-channel window, translated by ranges. + EC clients access command, response and memory-map registers through this + window. The controller manages clocks, resets, channel negotiation and 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 + + spacemit,pr-mem-base1: + $ref: /schemas/types.yaml#/definitions/uint32 + description: Base address programmed into the controller's second peripheral-channel memory base register. + + max-frequency: + $ref: /schemas/types.yaml#/definitions/uint32 + description: Maximum eSPI serial clock frequency in Hz. + enum: [20000000, 25000000, 33333333, 50000000, 66666666] + default: 20000000 + + spacemit,io-mode: + $ref: /schemas/types.yaml#/definitions/string + description: Requested number of eSPI data lines. + enum: [single, dual, quad] + default: single + + spacemit,alert-mode: + $ref: /schemas/types.yaml#/definitions/string + description: Use the shared IO1 line or the dedicated alert pin. + enum: [io1, pin] + default: io1 + + spacemit,alert-type: + $ref: /schemas/types.yaml#/definitions/string + description: Electrical mode of the dedicated alert pin. + enum: [open-drain, push-pull] + default: open-drain + + spacemit,watchdog-timeout: + $ref: /schemas/types.yaml#/definitions/uint32 + description: Controller watchdog counter value. + maximum: 65535 + default: 65535 + + spacemit,crc-enable: + type: boolean + description: Enable link CRC checking. + + spacemit,auto-gating-enable: + type: boolean + description: Enable automatic controller clock gating. + + spacemit,peripheral-channel-enable: + type: boolean + description: Enable the peripheral channel. Required for an enabled EC child. + + spacemit,vwire-channel-enable: + type: boolean + description: Enable the virtual-wire channel. + + spacemit,oob-channel-enable: + type: boolean + description: Enable the out-of-band channel. + + spacemit,flash-channel-enable: + type: boolean + description: Enable the flash access channel. + +patternProperties: + '^ec@[0-9a-f]+$': + $ref: /schemas/embedded-controller/spacemit,k3-cros-ec.yaml# + +required: + - compatible + - reg + - '#address-cells' + - '#size-cells' + - ranges + - clocks + - clock-names + - resets + - spacemit,pr-mem-base1 + +additionalProperties: false + +examples: + - | + #include + #include + + espi@cac8c000 { + compatible = "spacemit,k3-espi"; + reg = <0xcac8c000 0x1000>; + 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>; + #address-cells = <1>; + #size-cells = <1>; + spacemit,pr-mem-base1 = <0xcac8c000>; + }; -- 2.43.0 _______________________________________________ linux-riscv mailing list linux-riscv@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-riscv