From nobody Fri Apr 3 17:33:20 2026 Received: from TWMBX01.aspeed.com (mail.aspeedtech.com [211.20.114.72]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 00F20389445; Tue, 24 Mar 2026 03:06:39 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=211.20.114.72 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1774321600; cv=none; b=D7LyEhN2xoB39Km9TH2NkNAhiOnFpODY/o8CP8TDYESEBJNM3iLIKeathaKX5ghxXB7CF2eFgnyQJpwylKifnuI0WxTPRkS+dclMPyXrI9zNN56oPufy1VcwUirBbkvMc/6S+44m4/FlpYQcaBF/C+77PScALoH5+nfuJtGyWuQ= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1774321600; c=relaxed/simple; bh=j6iiCZ6NtY6WSfhbc1aYsPcrOaYpNW/B3+ibpEA+lx4=; h=From:Date:Subject:MIME-Version:Content-Type:Message-ID:References: In-Reply-To:To:CC; b=O0/1fieXRinw1mKu69TEKFHGvsxQwRC8kRmWf0Zauz60K9GCZvLVOCBGTtH+063l0+WGn09b4d7nd5hVyPj4KzsB0ZcwIh0E4oGbt5/pPfQyCCrq7bvRXLp3dScCmeVso5ZPUdTvc7bSzR/v8i192iJrVRHaQYK+qB4rbhO9MIM= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=aspeedtech.com; spf=pass smtp.mailfrom=aspeedtech.com; arc=none smtp.client-ip=211.20.114.72 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=aspeedtech.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=aspeedtech.com Received: from TWMBX01.aspeed.com (192.168.0.62) by TWMBX01.aspeed.com (192.168.0.62) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1748.10; Tue, 24 Mar 2026 11:06:26 +0800 Received: from [127.0.1.1] (192.168.10.13) by TWMBX01.aspeed.com (192.168.0.62) with Microsoft SMTP Server id 15.2.1748.10 via Frontend Transport; Tue, 24 Mar 2026 11:06:26 +0800 From: Ryan Chen Date: Tue, 24 Mar 2026 11:06:27 +0800 Subject: [PATCH v27 2/4] dt-bindings: i2c: ast2600-i2c.yaml: Add global-regs and transfer-mode properties Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-ID: <20260324-upstream_i2c-v27-2-f19b511c8c28@aspeedtech.com> References: <20260324-upstream_i2c-v27-0-f19b511c8c28@aspeedtech.com> In-Reply-To: <20260324-upstream_i2c-v27-0-f19b511c8c28@aspeedtech.com> To: , , Andi Shyti , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Joel Stanley , Andrew Jeffery , "Benjamin Herrenschmidt" , Rayn Chen , Philipp Zabel CC: , , , , , , Ryan Chen X-Mailer: b4 0.14.3 X-Developer-Signature: v=1; a=ed25519-sha256; t=1774321586; l=2054; i=ryan_chen@aspeedtech.com; s=20251126; h=from:subject:message-id; bh=j6iiCZ6NtY6WSfhbc1aYsPcrOaYpNW/B3+ibpEA+lx4=; b=4KxVSsac4MIz68nC2Lhh6d4zQSCBHVUIVkcCZ4AF/trsBU69F3s2wAW80OuWAOSaVSBla93wn RBvM5zwjHWtAyS2+IQO7p/zIREPDCS0eHl0zBnTaSXrAYLm21Byxqk+ X-Developer-Key: i=ryan_chen@aspeedtech.com; a=ed25519; pk=Xe73xY6tcnkuRjjbVAB/oU30KdB3FvG4nuJuILj7ZVc= The AST2600 I2C controller supports three transfer modes (byte, buffer, DMA). Add "aspeed,transfer-mode" so DT can select the preferred transfer method per controller instance. Also add the "aspeed,global-regs" phandle to reference the AST2600 global registers syscon/regmap used by the controller. These properties apply only to the AST2600 binding and are not part of the legacy binding, which uses a mixed controller/target register layout and does not have the split register blocks or these new configuration registers. Legacy DTs remain unchanged. Signed-off-by: Ryan Chen --- Changes in v27: - change aspeed,transfer-mode to aspeed,enable-dma. --- .../devicetree/bindings/i2c/aspeed,ast2600-i2c.yaml | 17 +++++++++++++= ++++ 1 file changed, 17 insertions(+) diff --git a/Documentation/devicetree/bindings/i2c/aspeed,ast2600-i2c.yaml = b/Documentation/devicetree/bindings/i2c/aspeed,ast2600-i2c.yaml index de2c359037da..38da6fc6424f 100644 --- a/Documentation/devicetree/bindings/i2c/aspeed,ast2600-i2c.yaml +++ b/Documentation/devicetree/bindings/i2c/aspeed,ast2600-i2c.yaml @@ -37,6 +37,21 @@ properties: resets: maxItems: 1 =20 + aspeed,enable-dma: + type: boolean + description: | + I2C bus enable dma mode transfer. + + ASPEED ast2600 platform equipped with 16 I2C controllers that share a + single DMA engine. DTS files can specify the data transfer mode to/f= rom + the device, either DMA or programmed I/O. + + aspeed,global-regs: + $ref: /schemas/types.yaml#/definitions/phandle + description: + Phandle reference to the i2c global syscon node, containing the + SoC-common i2c register set. + required: - reg - compatible @@ -59,4 +74,6 @@ examples: resets =3D <&syscon ASPEED_RESET_I2C>; clock-frequency =3D <100000>; interrupts =3D ; + aspeed,global-regs =3D <&i2c_global>; + aspeed,transfer-mode =3D "buffer"; }; --=20 2.34.1