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 5ACE0606A32F for ; Wed, 2 Dec 2026 18:04:52 +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=malY6RrI DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Transfer-Encoding: MIME-Version:References:In-Reply-To:Message-Id:Date:Subject:Cc:To:From: Reply-To:Content-Type:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Unsubscribe-Post: List-Owner; bh=N1CyD+hr/qBpXvxvHauirTCqS1oxYnW7KYla1Si3cnk=; b=malY6RrIoBMktU 9OpXhfr89WgpTK1GJoQFLlyqrRN4OqIMYeIRsKkTtoGwve1prj0f+BvrEcCiJxkrc7z03xTg7vz2h XGhfJw+vfT24vkSHWgYnofAfMl1LRMETBuWfIWRCL+MmXgax4mpN97XcoCZfG1UpXvafz/XMapGqK bbtadjU4hlom/sRj8Sp11zQfJPMmdKKpreatjh+8NissdzPpLDqOaMIgJSh0dG+Va1XJfI/LJ9abP 9G6AJJEFVk6lGOcDx0EK2JaqQ3AUu70iQ0zt1/S2zqy7WR4y/ZWIw2NmMoRNFrHWSkXcAbXEQ6iiG rvMLHyWWUpGP8d5t7urg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.100.1 #2 (Red Hat Linux)) id 1xYohH-0000000CTWH-3za3; Wed, 02 Dec 2026 18:04:51 +0000 Received: from nbd.name ([46.4.11.11]) by bombadil.infradead.org with esmtps (Exim 4.100.1 #2 (Red Hat Linux)) id 1xYohD-0000000CTU1-0Rij; Wed, 02 Dec 2026 18:04:50 +0000 Received: from [2a04:4540:1404:c8fc:172c:e560:a116:623] (helo=bertha10..) by ds12 with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1xYoh1-00BMWx-1d; Wed, 02 Dec 2026 19:04:35 +0100 From: John Crispin To: Stefan Roese , Andi Shyti , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Matthias Brugger , AngeloGioacchino Del Regno , Philipp Zabel Cc: Christian Marangi , devicetree@vger.kernel.org, lei.dong@airoha.com, Linqi.zhang@airoha.com, linux-arm-kernel@lists.infradead.org, linux-i2c@vger.kernel.org, linux-kernel@vger.kernel.org, linux-mediatek@lists.infradead.org, Rajeev.kumar@airoha.com, upstream@airoha.com, Weifeng.xu@airoha.com, zhengping.zhang@airoha.com, Conor Dooley Subject: [PATCH v5 2/3] dt-bindings: i2c: mt7621: add Airoha AN7589 Date: Wed, 2 Dec 2026 19:04:29 +0100 Message-Id: <20261202180430.3572052-3-john@phrozen.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20261202180430.3572052-1-john@phrozen.org> References: <20261202180430.3572052-1-john@phrozen.org> X-Archived-By: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.9.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20261202_100447_158882_AF883746 X-CRM114-Status: GOOD ( 10.41 ) X-Spam-Score: -1.9 (-) X-BeenThere: linux-mediatek@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "Linux-mediatek" X-Spam-Status: No, score=-16.9 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,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 The Airoha AN7589 carries the MT7621 I2C controller with a second control register holding a wider clock divider. Out of reset the controller uses the MT7621 divider, so the MT7621 programming works and mediatek,mt7621-i2c serves as the fallback. Give the AN7589 a compatible of its own so the driver can use the wider divider. Acked-by: Conor Dooley Signed-off-by: John Crispin --- Changes in v5: - Rebased on next-20261201, which has commit fa3fd2c10a8f ("dt-bindings: i2c: mt7621: Document an7581 compatible"). The compatible is now a oneOf of the existing enum and the AN7589 entry. I kept the Acked-by of Conor, the AN7589 entry itself is unchanged. Changes in v4: - None. Changes in v3: - Add the Acked-by of Conor. Changes in v2: - Add mediatek,mt7621-i2c as the fallback compatible (Conor). .../bindings/i2c/mediatek,mt7621-i2c.yaml | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/Documentation/devicetree/bindings/i2c/mediatek,mt7621-i2c.yaml b/Documentation/devicetree/bindings/i2c/mediatek,mt7621-i2c.yaml index e6ea5bc1c681..7defbb89cd48 100644 --- a/Documentation/devicetree/bindings/i2c/mediatek,mt7621-i2c.yaml +++ b/Documentation/devicetree/bindings/i2c/mediatek,mt7621-i2c.yaml @@ -9,14 +9,22 @@ maintainers: title: Mediatek MT7621/MT7628 I2C master controller +description: + The same controller is used on Airoha SoCs. The AN7589 variant adds a + second control register with a wider clock divider. + allOf: - $ref: /schemas/i2c/i2c-controller.yaml# properties: compatible: - enum: - - airoha,an7581-i2c - - mediatek,mt7621-i2c + oneOf: + - enum: + - airoha,an7581-i2c + - mediatek,mt7621-i2c + - items: + - const: airoha,an7589-i2c + - const: mediatek,mt7621-i2c reg: maxItems: 1 -- 2.34.1