devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Alexander Shiyan <eagle.alexander923@gmail.com>
To: linux-media@vger.kernel.org
Cc: Mauro Carvalho Chehab <mchehab@kernel.org>,
	Rob Herring <robh@kernel.org>,
	Krzysztof Kozlowski <krzk+dt@kernel.org>,
	Conor Dooley <conor+dt@kernel.org>,
	Sakari Ailus <sakari.ailus@linux.intel.com>,
	devicetree@vger.kernel.org,
	Alexander Shiyan <eagle.alexander923@gmail.com>
Subject: [PATCH 2/2] media: dt-bindings: media: i2c: Add AR0233 camera sensor
Date: Wed,  9 Oct 2024 11:43:04 +0300	[thread overview]
Message-ID: <20241009084304.14143-2-eagle.alexander923@gmail.com> (raw)
In-Reply-To: <20241009084304.14143-1-eagle.alexander923@gmail.com>

Add device tree binding for the onsemi AR0233 CMOS camera sensor.

Signed-off-by: Alexander Shiyan <eagle.alexander923@gmail.com>
---
 .../bindings/media/i2c/onnn,ar0233.yaml       | 122 ++++++++++++++++++
 1 file changed, 122 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/media/i2c/onnn,ar0233.yaml

diff --git a/Documentation/devicetree/bindings/media/i2c/onnn,ar0233.yaml b/Documentation/devicetree/bindings/media/i2c/onnn,ar0233.yaml
new file mode 100644
index 000000000000..fa8a4e63a2a3
--- /dev/null
+++ b/Documentation/devicetree/bindings/media/i2c/onnn,ar0233.yaml
@@ -0,0 +1,122 @@
+# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/media/i2c/onnn,ar0233.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: ON Semiconductor AR0233 MIPI CSI-2 sensor
+
+maintainers:
+  - Alexander Shiyan <eagle.alexander923@gmail.com>
+
+description:
+  The AR0233 is a 1/2.5" CMOS digital image sensor with MIPI CSI-2 and
+  I2C-compatible control interface.
+
+properties:
+  compatible:
+    const: onnn,ar0233
+
+  reg:
+    maxItems: 1
+
+  clocks:
+    maxItems: 1
+
+  clock-names:
+    const: extclk
+
+  vaa-supply:
+    description:
+      Supply for the VAA analog voltage (2.8V).
+
+  vaapix-supply:
+    description:
+      Supply for the VAA_PIX pixel voltage (2.8V).
+
+  vddio-supply:
+    description:
+      Supply for the VDD_IO I/O digital voltage (1.8V/2.8V).
+
+  vddphy-supply:
+    description:
+      Supply for the VDD_PHY digital voltage (1.2V).
+
+  vdd-supply:
+    description:
+      Supply for the VDD core digital voltage (1.2V).
+
+  reset-gpios:
+    description: Reset GPIO, active low.
+    maxItems: 1
+
+  port:
+    $ref: /schemas/graph.yaml#/$defs/port-base
+    unevaluatedProperties: false
+    description:
+      Video output port.
+
+    properties:
+      endpoint:
+        $ref: /schemas/media/video-interfaces.yaml#
+        unevaluatedProperties: false
+
+        properties:
+          bus-type:
+            const: 4
+
+          data-lanes:
+            anyOf:
+              - items:
+                  - const: 1
+              - items:
+                  - const: 1
+                  - const: 2
+              - items:
+                  - const: 1
+                  - const: 2
+                  - const: 3
+                  - const: 4
+
+          link-frequencies: true
+
+        required:
+          - data-lanes
+          - link-frequencies
+
+required:
+  - compatible
+  - reg
+  - clocks
+  - clock-names
+  - port
+
+unevaluatedProperties: false
+
+examples:
+  - |
+    #include <dt-bindings/gpio/gpio.h>
+    #include <dt-bindings/media/video-interfaces.h>
+
+    i2c {
+        #address-cells = <1>;
+        #size-cells = <0>;
+
+        camera@10 {
+            compatible = "onnn,ar0233";
+            reg = <0x10>;
+
+            clocks = <&clk27m>;
+            clock-names = "extclk";
+
+            reset-gpios = <&ser0 0 GPIO_ACTIVE_LOW>;
+
+            port {
+                ar0233_out: endpoint {
+                    data-lanes = <1 2>;
+                    link-frequencies = /bits/ 64 <375000000>;
+                    remote-endpoint = <&ub953_csi_in>;
+                };
+            };
+        };
+    };
-- 
2.39.1


  reply	other threads:[~2024-10-09  8:43 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-10-09  8:43 [PATCH 1/2] media: i2c: Add AR0233 camera sensor driver Alexander Shiyan
2024-10-09  8:43 ` Alexander Shiyan [this message]
2024-10-09 20:22   ` [PATCH 2/2] media: dt-bindings: media: i2c: Add AR0233 camera sensor Rob Herring (Arm)
2024-10-11  1:14 ` [PATCH 1/2] media: i2c: Add AR0233 camera sensor driver kernel test robot

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=20241009084304.14143-2-eagle.alexander923@gmail.com \
    --to=eagle.alexander923@gmail.com \
    --cc=conor+dt@kernel.org \
    --cc=devicetree@vger.kernel.org \
    --cc=krzk+dt@kernel.org \
    --cc=linux-media@vger.kernel.org \
    --cc=mchehab@kernel.org \
    --cc=robh@kernel.org \
    --cc=sakari.ailus@linux.intel.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;
as well as URLs for NNTP newsgroup(s).