From: Long Zhao via B4 Relay <devnull+longzhao.ambarella.com@kernel.org>
To: Andi Shyti <andi.shyti@kernel.org>, linux-i2c@vger.kernel.org
Cc: Long Zhao <zl020895@163.com>,
linux-kernel@vger.kernel.org, Long Zhao <longzhao@ambarella.com>,
Rob Herring <robh@kernel.org>,
Krzysztof Kozlowski <krzk+dt@kernel.org>,
Conor Dooley <conor+dt@kernel.org>,
devicetree@vger.kernel.org
Subject: [PATCH 1/3] dt-bindings: i2c: add Ambarella IDC controller
Date: Tue, 01 Dec 2026 18:46:38 +0800 [thread overview]
Message-ID: <20261201-cv75-i2c-v1-1-729176f61836@ambarella.com> (raw)
In-Reply-To: <20261201-cv75-i2c-v1-0-729176f61836@ambarella.com>
From: Long Zhao <longzhao@ambarella.com>
Document the Ambarella I2C master used on CV75. The compatible
is ambarella,cv75-i2c. clock-frequency is optional and accepts any
value from 1 kHz to 1 MHz (default 100 kHz).
Signed-off-by: Long Zhao <longzhao@ambarella.com>
---
Cc: Rob Herring <robh@kernel.org>
Cc: Krzysztof Kozlowski <krzk+dt@kernel.org>
Cc: Conor Dooley <conor+dt@kernel.org>
Cc: devicetree@vger.kernel.org
---
.../bindings/i2c/ambarella,cv75-i2c.yaml | 63 ++++++++++++++++++++++
1 file changed, 63 insertions(+)
diff --git a/Documentation/devicetree/bindings/i2c/ambarella,cv75-i2c.yaml b/Documentation/devicetree/bindings/i2c/ambarella,cv75-i2c.yaml
new file mode 100644
index 000000000000..285525655dec
--- /dev/null
+++ b/Documentation/devicetree/bindings/i2c/ambarella,cv75-i2c.yaml
@@ -0,0 +1,63 @@
+# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/i2c/ambarella,cv75-i2c.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: Ambarella I2C controller
+
+maintainers:
+ - Long Zhao <longzhao@ambarella.com>
+
+description:
+ Ambarella I2C master controller on media SoCs such as the CV75.
+ It supports standard, fast and fast-plus modes up to 1 MHz,
+ 7-bit and 10-bit addressing, and repeated start.
+ The controller input clock is the SoC APB clock (gclk_apb from the
+ RCT clock controller on CV75).
+
+allOf:
+ - $ref: /schemas/i2c/i2c-controller.yaml#
+
+properties:
+ compatible:
+ enum:
+ - ambarella,cv75-i2c
+
+ reg:
+ maxItems: 1
+
+ interrupts:
+ maxItems: 1
+
+ clocks:
+ maxItems: 1
+ description:
+ SoC APB clock that drives the controller (CV75 gclk_apb).
+
+ clock-frequency:
+ description: Desired I2C bus clock frequency in Hz.
+ minimum: 1000
+ maximum: 1000000
+ default: 100000
+
+required:
+ - compatible
+ - reg
+ - interrupts
+ - clocks
+
+unevaluatedProperties: false
+
+examples:
+ - |
+ #include <dt-bindings/clock/ambarella,cv75-rct.h>
+ #include <dt-bindings/interrupt-controller/arm-gic.h>
+
+ i2c@e4008000 {
+ compatible = "ambarella,cv75-i2c";
+ reg = <0xe4008000 0x1000>;
+ interrupts = <GIC_SPI 156 IRQ_TYPE_EDGE_RISING>;
+ clocks = <&rct CV75_GCLK_APB>;
+ clock-frequency = <100000>;
+ };
--
2.34.1
next prev parent reply other threads:[~2026-12-01 10:46 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-12-01 10:46 [PATCH 0/3] i2c: add Ambarella IDC master for CV75 Long Zhao via B4 Relay
2026-12-01 10:46 ` Long Zhao via B4 Relay [this message]
2026-12-02 11:28 ` [PATCH 1/3] dt-bindings: i2c: add Ambarella IDC controller Krzysztof Kozlowski
2026-12-02 11:50 ` zl020895
2026-12-02 12:57 ` Krzysztof Kozlowski
2026-12-01 10:46 ` [PATCH 2/3] i2c: ambarella: add IDC master for CV75 Long Zhao via B4 Relay
2026-12-01 10:46 ` [PATCH 3/3] MAINTAINERS: add Ambarella I2C controller Long Zhao via B4 Relay
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20261201-cv75-i2c-v1-1-729176f61836@ambarella.com \
--to=devnull+longzhao.ambarella.com@kernel.org \
--cc=andi.shyti@kernel.org \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=krzk+dt@kernel.org \
--cc=linux-i2c@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=longzhao@ambarella.com \
--cc=robh@kernel.org \
--cc=zl020895@163.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®