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 v2 1/3] dt-bindings: i2c: add Ambarella IDC controller
Date: Thu, 03 Dec 2026 12:35:15 +0800 [thread overview]
Message-ID: <20261203-cv75-i2c-v2-1-8ed4bb03c85d@ambarella.com> (raw)
In-Reply-To: <20261203-cv75-i2c-v2-0-8ed4bb03c85d@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 | 62 ++++++++++++++++++++++
1 file changed, 62 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..d65befcf8ae3
--- /dev/null
+++ b/Documentation/devicetree/bindings/i2c/ambarella,cv75-i2c.yaml
@@ -0,0 +1,62 @@
+# 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
+
+ clocks:
+ maxItems: 1
+ description:
+ SoC APB clock that drives the controller (CV75 gclk_apb).
+
+ interrupts:
+ maxItems: 1
+
+ clock-frequency:
+ description: Desired I2C bus clock frequency in Hz.
+ minimum: 1000
+ maximum: 1000000
+ default: 100000
+
+required:
+ - compatible
+ - reg
+ - clocks
+ - interrupts
+
+unevaluatedProperties: false
+
+examples:
+ - |
+ #include <dt-bindings/interrupt-controller/arm-gic.h>
+
+ i2c@e4008000 {
+ compatible = "ambarella,cv75-i2c";
+ reg = <0xe4008000 0x1000>;
+ clocks = <&rct 3>;
+ interrupts = <GIC_SPI 156 IRQ_TYPE_EDGE_RISING>;
+ clock-frequency = <100000>;
+ };
--
2.34.1
next prev parent reply other threads:[~2026-12-03 4:35 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-12-03 4:35 [PATCH v2 0/3] i2c: add Ambarella IDC master for CV75 Long Zhao via B4 Relay
2026-12-03 4:35 ` Long Zhao via B4 Relay [this message]
2026-12-03 4:35 ` [PATCH v2 2/3] i2c: ambarella: add " Long Zhao via B4 Relay
2026-12-03 4:35 ` [PATCH v2 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=20261203-cv75-i2c-v2-1-8ed4bb03c85d@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®