From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=46.4.11.11 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796234686; b=shG01DBfFZlH/kdcL3U5jBbM3Z4FEnWFDGYGVPUhdmoP9u3i5+WRJWVQWjSfqeLuMZWB 4J6L3N6NNYnueHLPD54WV9Hz0TavcdJ90qz5aolVHCgRk7g9cP+IlAT4Y3bPrw7stBwqg Wpqp4vzBV9CLkbuxkNW2nxaneN38TFyZ/UGIPLkCNwBEaZv8qyuvCeUx4LqPOtbSgmhXn RyrWMSoYqKTXNxvOgNAlbHzdYoTvbk46n6HWcIxIK7tySQDf8BTJ+sxii+0vgz8PZXHpj /B1hystbwK8fFT7GbrnyE1vp9PeIWUZKA2MemnYA/9hhsdQXAHxi41c+VlXcTv8fmpg== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796234686; h=DMARC-Filter:Received:From:To:Cc:Subject:Date:Message-Id:X-Mailer: In-Reply-To:References:MIME-Version:Content-Transfer-Encoding; bh=N1CyD+hr/qBpXvxvHauirTCqS1oxYnW7KYla1Si3cnk=; b=dVUM3F30u3ZQ2NAj4MN6N81Bzm0LfxTCoDwFtPImxw9iqXl/95THVy1S/DP63mj3F7N4 LL+UwZIBuop/Av6mSsp/vYjnZD4nxhkTQIefuYjt1cJHkOmU0c9eSeUgfP1ZnLcWC2Mtg M/5+Kqy5oFJN2LTo16+uDykiy96efUNc6lyd0hx3qXQDQQDZ7QMwdWOMAvyOPD1WUWHAG Axvi50reJwTHiY22aVllUardyHb5XqUGfiT+y+85eoLxGKVc6ueh93N5PMX0VJcQdpjO9 qkuYnxthtOyqGSv6mAywsKTR4ff1vsSfjYAz8QhBoZ9ZIOrQIbMl5GZOrlLkwueRh8Q== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none header.from=phrozen.org; spf=pass smtp.mailfrom=phrozen.org; arc=none smtp.remote-ip=46.4.11.11 Received: from nbd.name (nbd.name [46.4.11.11]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (prime256v1) server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 20A38606A333; Wed, 2 Dec 2026 18:04:44 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 20A38606A333 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=phrozen.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=phrozen.org 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-Mailing-List: linux-i2c@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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