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 A1828606A337 for ; Fri, 4 Dec 2026 04:22:11 +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=1nHC4oJ/; 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=lFzy+Cp9 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:In-Reply-To:To:From:Subject:References: Mime-Version:Message-Id:Date:Cc: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=Nf65JfClov+cCYwn29+qa1S0dVmIm5ohCBjntp+qAYQ=; b=1nHC4oJ/PctW04TTz5NuZ8iWP1 K+XHml67oM5EneI1xDeG0JavJwzgv433A9/jFKQC9mpie/L+P8s6mOMD7OK4KNw1dA4jqDpu6Pnl9 1Z5JZBdLP/FfikTrUaZUyPyUsp5Ub53IubYJ5TjM1KIX47UtTlJ2zdCCDnLKmkyuRWMgFkKhWpMZd fMB7mAOlm/ptLDgANO9Ws8FZKNHnPu1hzwjTmu7QLGgxR4joNhahtnQrA4U51p5uClEXdIqcf8GDc IaADZ40YXYkK2SlSqlR0CL+LWdVilgpMYzd9YGwpDpWx2pjvaUYKEB6Ne/qoJuKDpLqUNq9WDBPcG VnBqpxMQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.100.1 #2 (Red Hat Linux)) id 1xZKo4-0000000GbjK-2kLu; Fri, 04 Dec 2026 04:22:00 +0000 Received: from va-2-27.ptr.blmpb.com ([209.127.231.27]) by bombadil.infradead.org with esmtps (Exim 4.100.1 #2 (Red Hat Linux)) id 1xZKnf-0000000Gbdn-3ft7 for linux-riscv@lists.infradead.org; Fri, 04 Dec 2026 04:21:47 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; s=s1; d=deepcomputing-io.20200927.dkim.feishu.cn; t=1796358090; h=from:subject:mime-version:from:date:message-id:subject:to:cc: reply-to:content-type:mime-version:in-reply-to:message-id; bh=rQ3+wNJXyIjJehAQj8kqC0Lr0zVnDuJnR9iDbyUmLZw=; b=lFzy+Cp9SuxwpNmZyp/vojRTtzvmCx2IeuqFPXO/RpP7eDkUFRtuc2fSHaODvJSRH73nKI S2X1A4baWP9n9DzRwygVWASRIDk5Vk4RKguuub3vgKd1LA8Uoz+v8DKzpDiCY7CY1U1YmM vHja5H3UgglyVbp4eHoe8lgfDa8dm6eQ9/RpF8492fEM0mMkCneqwOWfovkuGVbXi4HPb4 2OpHMPLdWcJXixfDViEMVcdQcH2Vtk1n9mb+lCdCE0Tpie51MUEOQkQqwOk8GEoktMEHGB oBjgDqu/0hAFetRtHlb6yIGWUr90gBHhlSLAQIZ+MrtYNu64WndpQdFbtsmuIQ== X-Lms-Return-Path: Cc: "Rob Herring" , "Krzysztof Kozlowski" , "Conor Dooley" , "Benson Leung" , "Guenter Roeck" , "Yixun Lan" , "Troy Mitchell" , , , , Date: Fri, 4 Dec 2026 12:21:03 +0800 Message-Id: <20261204042112.2985112-6-yang.wang@deepcomputing.io> X-Archived-By: Mime-Version: 1.0 References: <20261204042112.2985112-1-yang.wang@deepcomputing.io> Subject: [PATCH v2 05/13] dt-bindings: embedded-controller: Add SpacemiT K3 EC window From: "Wang Yang" Received: from ubuntu.. ([183.23.101.24]) by smtp.feishu.cn with ESMTPS; Fri, 04 Dec 2026 12:21:28 +0800 To: X-Original-From: Wang Yang In-Reply-To: <20261204042112.2985112-1-yang.wang@deepcomputing.io> X-Mailer: git-send-email 2.43.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.9.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20261203_202136_583583_857DF5F1 X-CRM114-Status: UNSURE ( 9.12 ) X-CRM114-Notice: Please train this message. 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 K3 non-linear peripheral window before the controller binding references it. Reuse the existing keyboard and I2C tunnel schemas. Keep the Google EC binding unchanged. Prepared with OpenAI Codex assistance. Signed-off-by: Wang Yang --- .../spacemit,k3-cros-ec.yaml | 77 +++++++++++++++++++ 1 file changed, 77 insertions(+) create mode 100644 Documentation/devicetree/bindings/embedded-controller/spacemit,k3-cros-ec.yaml diff --git a/Documentation/devicetree/bindings/embedded-controller/spacemit,k3-cros-ec.yaml b/Documentation/devicetree/bindings/embedded-controller/spacemit,k3-cros-ec.yaml new file mode 100644 index 000000000000..fa9343e3ebf7 --- /dev/null +++ b/Documentation/devicetree/bindings/embedded-controller/spacemit,k3-cros-ec.yaml @@ -0,0 +1,77 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/embedded-controller/spacemit,k3-cros-ec.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: ChromeOS EC on the SpacemiT K3 peripheral window + +maintainers: + - Wang Yang + +description: | + The embedded controller implements ChromeOS EC host commands through the + memory-mapped peripheral window of the SpacemiT K3 eSPI controller. The + window uses a non-linear LPC register layout. Offset 0x00 provides host + command writes and status reads; offset 0x01 provides host data/results. + Protocol v2 arguments and parameters are at 0x10 and 0x18, protocol v3 + packets at 0x100, and the EC memory map at 0x200. This programming interface + is distinct from an EC connected to an ordinary SPI controller. Child + functions use the common ChromeOS EC host-command interface. Devices on + an EC-controlled I2C bus are described below an I2C tunnel child. + +properties: + compatible: + const: spacemit,k3-cros-ec + + reg: + maxItems: 1 + description: EC peripheral memory window, at least 0x300 bytes. + + interrupts: + maxItems: 1 + + wakeup-source: true + + keyboard-controller: + $ref: /schemas/input/google,cros-ec-keyb.yaml# + +patternProperties: + "^i2c-tunnel[0-9]*$": + type: object + $ref: /schemas/i2c/google,cros-ec-i2c-tunnel.yaml# + +required: + - compatible + - reg + - interrupts + +additionalProperties: false + +examples: + - | + #include + + bus { + #address-cells = <1>; + #size-cells = <1>; + + ec@0 { + compatible = "spacemit,k3-cros-ec"; + reg = <0x0 0x1000>; + interrupt-parent = <&gpio>; + interrupts = <1 11 IRQ_TYPE_EDGE_RISING>; + + i2c-tunnel { + compatible = "google,cros-ec-i2c-tunnel"; + #address-cells = <1>; + #size-cells = <0>; + google,remote-bus = <4>; + + battery@b { + compatible = "sbs,sbs-battery"; + reg = <0xb>; + }; + }; + }; + }; -- 2.43.0 _______________________________________________ linux-riscv mailing list linux-riscv@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-riscv