From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from lists.ozlabs.org (lists.ozlabs.org [112.213.38.117]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 72E53EF36E7 for ; Mon, 9 Mar 2026 06:54:49 +0000 (UTC) Received: from boromir.ozlabs.org (localhost [127.0.0.1]) by lists.ozlabs.org (Postfix) with ESMTP id 4fTnmh6zCSz3cC6; Mon, 09 Mar 2026 17:54:12 +1100 (AEDT) Authentication-Results: lists.ozlabs.org; arc=none smtp.remote-ip=211.20.114.72 ARC-Seal: i=1; a=rsa-sha256; d=lists.ozlabs.org; s=201707; t=1773039252; cv=none; b=IfIi8sX0O24rEobH8W0JgqJSCqOW+L81kyWBuAtL0wbahFF5K4pQ9wsotNj38gm/lnsK3lZhTvmZ0tzEQ/Uz4Uoefg0Pkud5bGKFma6sloJPVs2oPyyPe3650ZzlEHvxW/A/EPQu1oSOetzR3fKoTtNvS52wFC51eWMVBCJ+h15BNEf4QhtE1Pa8rvwXfh6eJXmqIXXEB/JdsEvRFQ8RmxfWwnmSdo3hb2Sm6gWyH/OnAEyGJjaGWJiVP6w0tESZVLFs4vvYByTFtEZpFpM5GAfgAbv7U5b4EmPIUw2ewMdPosYzykPSE8uHW+0l7ql4zxKd2Gp4AOPD3ryBLdGfDg== ARC-Message-Signature: i=1; a=rsa-sha256; d=lists.ozlabs.org; s=201707; t=1773039252; c=relaxed/relaxed; bh=CTl7LFm29tMK7hJoHkXE+zLw5bUiMG/UnqgDuJwDl5Y=; h=From:Date:Subject:MIME-Version:Content-Type:Message-ID:References: In-Reply-To:To:CC; b=Jj0srshZZqXyE1eqmxE4ZgBGFKTS2ZS/t6jCR7bbAWw2Uho+bu/hsmdZKk2qol2P5EDPAlCblcrpfNU1PFUHCX6aIhM12e9d9V91qhtpdynDlP1gqAS40CRVNmDu1SiqkcfPel9JWCJj5DJqie4dxYLsUJE8z1t0YckwsZuxf8TAUp5F3/lYOETFqLQXFNmmysKAlgYDNoaL2UmE2ppO1+Z2dYBdekkQaCKTzxTgFYsrDiy8t+tmKpK9ghgEHcufywSpRGdRtCJ/Ga464n0dLdReEXK0LNB7/HOWBxj85Cj8wB3KwJFz15C87qHy4qM16XteLYoyPpUVxNe/f9OMsg== ARC-Authentication-Results: i=1; lists.ozlabs.org; dmarc=pass (p=quarantine dis=none) header.from=aspeedtech.com; spf=pass (client-ip=211.20.114.72; helo=twmbx01.aspeed.com; envelope-from=ryan_chen@aspeedtech.com; receiver=lists.ozlabs.org) smtp.mailfrom=aspeedtech.com Authentication-Results: lists.ozlabs.org; dmarc=pass (p=quarantine dis=none) header.from=aspeedtech.com Authentication-Results: lists.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=aspeedtech.com (client-ip=211.20.114.72; helo=twmbx01.aspeed.com; envelope-from=ryan_chen@aspeedtech.com; receiver=lists.ozlabs.org) 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 lists.ozlabs.org (Postfix) with ESMTPS id 4fTnmh0lWjz3cB5; Mon, 09 Mar 2026 17:54:12 +1100 (AEDT) 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; Mon, 9 Mar 2026 14:53:53 +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; Mon, 9 Mar 2026 14:53:53 +0800 From: Ryan Chen Date: Mon, 9 Mar 2026 14:53:53 +0800 Subject: [PATCH v26 2/4] dt-bindings: i2c: ast2600-i2c.yaml: Add global-regs and transfer-mode properties X-Mailing-List: openbmc@lists.ozlabs.org List-Id: List-Help: List-Owner: List-Post: List-Subscribe: , , List-Unsubscribe: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-ID: <20260309-upstream_i2c-v26-2-5fedcff8ffe8@aspeedtech.com> References: <20260309-upstream_i2c-v26-0-5fedcff8ffe8@aspeedtech.com> In-Reply-To: <20260309-upstream_i2c-v26-0-5fedcff8ffe8@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=1773039232; l=2731; i=ryan_chen@aspeedtech.com; s=20251126; h=from:subject:message-id; bh=OSCeKlXxfRUVxy4RSS8MIELV7WCLvYWFhFrL+v3vWEw=; b=jo5UpvRiPIQn90hv2zsKOKq9gwa3fBWtvw0tr0gR++FndDuc99ryFOvZxehAnu27OdPsM4bQB +Hdu7qKnlPaAlLKK1eAXAZXjPmpVe/+WgFmf/+neS7RMLDiYouW2IND 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 --- .../bindings/i2c/aspeed,ast2600-i2c.yaml | 29 ++++++++++++++++++++++ 1 file changed, 29 insertions(+) diff --git a/Documentation/devicetree/bindings/i2c/aspeed,ast2600-i2c.yaml b/Documentation/devicetree/bindings/i2c/aspeed,ast2600-i2c.yaml index de2c359037da..323e4f9b290a 100644 --- a/Documentation/devicetree/bindings/i2c/aspeed,ast2600-i2c.yaml +++ b/Documentation/devicetree/bindings/i2c/aspeed,ast2600-i2c.yaml @@ -37,6 +37,33 @@ properties: resets: maxItems: 1 + aspeed,transfer-mode: + description: | + ASPEED ast2600 platform equipped with 16 I2C controllers each i2c controller + have 1 byte transfer buffer(byte mode), 32 bytes buffer(buffer mode), and + share a DMA engine. + Select I2C transfer mode for this controller. Supported values are: + - "byte": Use 1 byte for i2c transmit (1-byte buffer). + - "buffer": Use buffer (32-byte buffer) for i2c transmit. (default) + Better performance then byte mode. + - "dma": Each controller DMA mode is shared DMA engine. The AST2600 SoC + provides a single DMA engine shared for 16 I2C controllers, + so only a limited number of controllers can use DMA simultaneously. + Therefore, the DTS must explicitly assign which controllers are + configured to use DMA. + On AST2600, each controller supports all three modes. + If not specified, buffer mode is used by default. + enum: + - byte + - buffer + - dma + + 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 +86,6 @@ examples: resets = <&syscon ASPEED_RESET_I2C>; clock-frequency = <100000>; interrupts = ; + aspeed,global-regs = <&i2c_global>; + aspeed,transfer-mode = "buffer"; }; -- 2.34.1