From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=209.127.231.39 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796358101; b=xDqTOiW0jysUJ6qI0Z9mow5yCOsdtI8mSZ4gx/Gg4tGJswfRuwuAkgRKkpfxyHRTu9Mo NBB1hMz7bo6/rv3ITbm4yJw8nyRgx9u+YSr1vwa7EsUscLQ4FGvJA4Klt30JXSz1LvwTA rapL0ODH0d3qxhhfYnycZyu3VaoKmgmG15NcxSSKLQjLgKhMfJOCNoq29LdHFHJ9mygXN GJYB/iIcJhKyzibDVJh4mUfDkIaLkB/UnpqNpKhYGn5jdpoBxzAjmIBZE2Nhi9d4UZxUp xYkR5ecqbn+3j/I9Ghuzz9ykfhN0GJc/8pCs9qrp31ntPU8F1GkVBZuf5Al8OFui6Mw== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796358101; h=DMARC-Filter:DKIM-Signature:X-Mailer:Date:Received: Content-Transfer-Encoding:X-Original-From:References:To:From:Subject: X-Lms-Return-Path:In-Reply-To:Content-Type:Cc:Mime-Version: Message-Id; bh=6w/q8HFyQSQ9hvsowOufTuHX28K6cUOrvlYh7Ayldvk=; b=FswflLqGurPaTHa1VrMKM12dQNNDo25Lit0UowE2tlsUbfoEv8AAbuuuiIxu71io/Fr+ NyFxnKvNFsyi37s5fijumH4HNwghi7WPJHVrWa0Myq+Pc1VA0DRl32ZS+ghHeW+06lGq7 DtqOvwxgej5CQTNmhx+DI+oTB0wHme0LdP/pfl6T8BuzlzxXpMrM5Q2ZRwqjvL9p8wdhb 1nfz1QDsZeRuOUGk7ER93Ix7nK9a0xJ0NaohNKeLF9+cbl7rp+3EFU+Jdb/tmPm74BC26 S4XimV8bu1YRQpiiN3RrdHSrXMs2oAEM8bPEsBl/u8DiZixDdejsM2xx87Wb7AZCMeA== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=deepcomputing.io; spf=pass smtp.mailfrom=deepcomputing.io; dkim=pass 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; arc=none smtp.remote-ip=209.127.231.39 Received: from va-2-39.ptr.blmpb.com (va-2-39.ptr.blmpb.com [209.127.231.39]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id B0AEF606A32F for ; Fri, 4 Dec 2026 04:21:36 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org B0AEF606A32F Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=deepcomputing.io Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=deepcomputing.io Authentication-Results: smtp.subspace.kernel.org; dkim=pass (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; 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-Mailer: git-send-email 2.43.0 Date: Fri, 4 Dec 2026 12:21:04 +0800 Received: from ubuntu.. ([183.23.101.24]) by smtp.feishu.cn with ESMTPS; Fri, 04 Dec 2026 12:21:29 +0800 Content-Transfer-Encoding: 7bit X-Original-From: Wang Yang References: <20261204042112.2985112-1-yang.wang@deepcomputing.io> To: From: "Wang Yang" Subject: [PATCH v2 06/13] dt-bindings: bus: Add SpacemiT K3 Intel eSPI controller X-Lms-Return-Path: In-Reply-To: <20261204042112.2985112-1-yang.wang@deepcomputing.io> Content-Type: text/plain; charset=UTF-8 Cc: "Rob Herring" , "Krzysztof Kozlowski" , "Conor Dooley" , "Yixun Lan" , "Troy Mitchell" , , , X-Mailing-List: devicetree@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list Mime-Version: 1.0 Message-Id: <20261204042112.2985112-7-yang.wang@deepcomputing.io> 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