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 6D59C606A33E for ; Fri, 4 Dec 2026 04:22:17 +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=pU6nmPRu; 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=JiE8YNBH 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:From:To:Subject:Cc:Date:Mime-Version: Message-Id:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Unsubscribe-Post:List-Owner; bh=5psYr+7V/Att1Y9YfBDQzqVFWF53I7U0icJ5lrZveOM=; b=pU6nmPRu9OQEqEdjhucYcsvfpk NelYp/1gVWH+IUHiXSGquONYTACmvs1r8FXBDAVQEyZAxAhWVWjbKUdA2mW2z15qN7rfbZ5QHUVz+ wMee0i0pITMN/T99X7JYw6iUzDoy/SQLPKNZYtPh/1zBNsRR9F88muf//EOjGvWFD5qvhMlFnFXnq axa7uBfqQsohyY6T3+rF+rTKBsUiptS3sYyF/QX/QyxrXQYbWupcVS9+zIesYwusANc7icrLFcBJo JP89fqb/n8PgA4HXV6+odG97/egc23Q9KZh2skjUZ8rq2Wp7vr+hsU8Soew2oez9GQKHCufvJ1T0S kf6KZoCQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.100.1 #2 (Red Hat Linux)) id 1xZKo4-0000000GbjE-2E2Y; Fri, 04 Dec 2026 04:22:00 +0000 Received: from va-2-30.ptr.blmpb.com ([209.127.231.30]) by bombadil.infradead.org with esmtps (Exim 4.100.1 #2 (Red Hat Linux)) id 1xZKnc-0000000GbcD-1hjR for linux-riscv@lists.infradead.org; Fri, 04 Dec 2026 04:21:59 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; s=s1; d=deepcomputing-io.20200927.dkim.feishu.cn; t=1796358082; h=from:subject:mime-version:from:date:message-id:subject:to:cc: reply-to:content-type:mime-version:in-reply-to:message-id; bh=QO8jrBMumX6pMCJzXkzva/9OO/fbPwoiRK/fHSrMccA=; b=JiE8YNBHA1F1TSTJNJH7ex40vyZfgqYHlRygM6Xw6rZJwJUQM8nI/bNFvF9XJnM1Qv8TcV Vzr6/20HkN8TfSkfwUYpu4Q9okBP2ewxBM0MSDDiP7LMvf+dipKcr4vC1heHrgaJKMUmRU FxFx8QTaNFmvOybvzD0/QGSdS64ARQmhC0+58OcFPXeEviv2LLigBv678q8Y0r7SC4OGzU hJKg9bWhSGIAQtSpGV5qOC7ZyUHcMXd/S/o6PfRinimO28UxRs3rO9RPqSXkOSN8ZkMjoY vwtsPhtUVjdzS17TxpGPc5Y5eYtrBZ/vufRXfRsmIsXdhbIvOKfsBazNAPksuw== Message-Id: <20261204042112.2985112-1-yang.wang@deepcomputing.io> X-Archived-By: Mime-Version: 1.0 Date: Fri, 4 Dec 2026 12:20:58 +0800 X-Lms-Return-Path: X-Original-From: Wang Yang Cc: "Benson Leung" , "Tzung-Bi Shih" , "Guenter Roeck" , , "Rob Herring" , "Krzysztof Kozlowski" , "Conor Dooley" , "Yixun Lan" , "Troy Mitchell" , , , , "Philipp Zabel" , "Paul Walmsley" , "Palmer Dabbelt" , "Albert Ou" , "Alexandre Ghiti" , "Aurelien Jarno" , "Conor Dooley" , "Krishnamoorthi M" , Subject: [PATCH v2 00/13] Add SpacemiT K3 FML13V05 EC keyboard support X-Mailer: git-send-email 2.43.0 To: Received: from ubuntu.. ([183.23.101.24]) by smtp.feishu.cn with ESMTPS; Fri, 04 Dec 2026 12:21:20 +0800 From: "Wang Yang" X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.9.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20261203_202132_579167_AD27F874 X-CRM114-Status: GOOD ( 12.32 ) 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=-12.3 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_EF,HEADER_FROM_DIFFERENT_DOMAINS, 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 This series enables the built-in keyboard on the DeepComputing FML13V05. The SpacemiT K3 host exposes the EC command window through the eSPI Peripheral Channel. The EC implements the Chrome EC host protocol, and the existing Chrome EC keyboard driver reports input events. Changes since v1: - Share LPC-style polling, protocol v2/v3 transfers and readmem between the LPC and K3 transports. Keep the K3 window mapping and recovery in the K3 transport. A command that times out is not replayed. - Let the EC core request the IRQ. Existing transports keep their low-level default and K3 uses the rising edge specified by the board. - Add the EC binding before the controller binding that references it. Derive the CPU window from ranges and specify the link frequency in Hz. The second peripheral base retains the vendor board value, 0xcac8c000. - Correct the pin pull settings, command status clearing and negotiated clock selection. Check packet bounds and EC readiness. On resume, check a pending recovery before enabling the EC event IRQ. - Order the five RISC-V configuration entries using savedefconfig. The AMD host RFC models chip-select targets and controller operations. K3 needs a CPU-mapped Peripheral Channel window and a way to recover the host link following a timeout. The Aspeed series covers the BMC side. On next-20261202, an earlier revision booted on FML13V05 from NVMe with test-only PCIe and DT additions. After a mainboard reset with the EC still powered, the EC reported FML13V05-V01.06. The built-in keyboard reported a left Shift press and release, and the EC IRQ count rose from zero to two. The change since that test is confined to the K3 EC transport's link check at probe and resume. OpenAI Codex assisted with refactoring, review of v1 feedback, commit messages and test preparation. v1: https://lore.kernel.org/all/20261118085742.1817536-1-yang.wang@deepcomputing.io/ AMD RFC: https://lore.kernel.org/all/20260804115259.4065638-1-krishnamoorthi.m@amd.com/ Aspeed: https://lore.kernel.org/all/20260313-upstream_espi-v1-0-9504428e1f43@aspeedtech.com/ Wang Yang (13): platform/chrome: Correct LPC EC readmem bounds platform/chrome: Extract LPC-style EC protocol helpers platform/chrome: Allow transport-specific LPC response timeouts platform/chrome: Allow transports to select EC IRQ flags dt-bindings: embedded-controller: Add SpacemiT K3 EC window dt-bindings: bus: Add SpacemiT K3 Intel eSPI controller bus: Add SpacemiT K3 eSPI controller support platform/chrome: Allow ChromeOS platform support on RISC-V platform/chrome: Add SpacemiT K3 eSPI EC transport riscv: dts: spacemit: Add K3 eSPI pin group riscv: dts: spacemit: Describe the K3 eSPI controller riscv: dts: spacemit: Enable the FML13V05 EC keyboard riscv: defconfig: Enable the FML13V05 EC keyboard modules .../bindings/bus/spacemit,k3-espi.yaml | 149 ++++ .../spacemit,k3-cros-ec.yaml | 77 ++ .../spacemit/k3-deepcomputing-fml13v05.dts | 137 +++ arch/riscv/boot/dts/spacemit/k3-pinctrl.dtsi | 24 + arch/riscv/boot/dts/spacemit/k3.dtsi | 30 + arch/riscv/configs/defconfig | 5 + drivers/bus/Kconfig | 10 + drivers/bus/Makefile | 1 + drivers/bus/spacemit-k3-espi.c | 799 ++++++++++++++++++ drivers/platform/chrome/Kconfig | 20 +- drivers/platform/chrome/Makefile | 4 +- drivers/platform/chrome/cros_ec.c | 3 +- .../platform/chrome/cros_ec_espi_spacemit.c | 568 +++++++++++++ drivers/platform/chrome/cros_ec_lpc.c | 239 +----- drivers/platform/chrome/cros_ec_lpc_proto.c | 246 ++++++ drivers/platform/chrome/cros_ec_lpc_proto.h | 36 + include/linux/platform_data/cros_ec_proto.h | 2 + include/linux/spacemit-k3-espi.h | 20 + 18 files changed, 2152 insertions(+), 218 deletions(-) create mode 100644 Documentation/devicetree/bindings/bus/spacemit,k3-espi.yaml create mode 100644 Documentation/devicetree/bindings/embedded-controller/spacemit,k3-cros-ec.yaml create mode 100644 drivers/bus/spacemit-k3-espi.c create mode 100644 drivers/platform/chrome/cros_ec_espi_spacemit.c create mode 100644 drivers/platform/chrome/cros_ec_lpc_proto.c create mode 100644 drivers/platform/chrome/cros_ec_lpc_proto.h create mode 100644 include/linux/spacemit-k3-espi.h base-commit: 799dd936553182df5770dde7f38d94c8337df75a -- 2.43.0 _______________________________________________ linux-riscv mailing list linux-riscv@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-riscv