mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Will Whang <will@willwhang.com>
To: Will Whang <will@willwhang.com>,
	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>
Cc: linux-media@vger.kernel.org, devicetree@vger.kernel.org,
	linux-kernel@vger.kernel.org
Subject: [PATCH v3 1/2] dt-bindings: media: Add Sony IMX585 CMOS image sensor
Date: Sat, 16 Aug 2025 06:54:31 +0100	[thread overview]
Message-ID: <20250816055432.131912-2-will@willwhang.com> (raw)
In-Reply-To: <20250816055432.131912-1-will@willwhang.com>

Document the devicetree binding for the Sony IMX585.
The schema covers the CSI-2 data-lanes,
and the synchronization mode properties used by the driver.

Compatible strings are now using the full parts number given
the review comments from patch v2.

Signed-off-by: Will Whang <will@willwhang.com>
---
 .../bindings/media/i2c/sony,imx585.yaml       | 114 ++++++++++++++++++
 MAINTAINERS                                   |   6 +
 2 files changed, 120 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/media/i2c/sony,imx585.yaml

diff --git a/Documentation/devicetree/bindings/media/i2c/sony,imx585.yaml b/Documentation/devicetree/bindings/media/i2c/sony,imx585.yaml
new file mode 100644
index 000000000..b1a4f447f
--- /dev/null
+++ b/Documentation/devicetree/bindings/media/i2c/sony,imx585.yaml
@@ -0,0 +1,114 @@
+# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/media/i2c/sony,imx585.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: Sony IMX585 CMOS image sensor
+
+maintainers:
+  - Will Whang <will@willwhang.com>
+
+description:
+  IMX585 sensor is a Sony CMOS sensor with 4K and FHD outputs.
+  The driver supports both imx585-aaqj1 and imx585-aamj1.
+
+properties:
+  compatible:
+    enum:
+      - sony,imx585-aamj1
+      - sony,imx585-aaqj1
+
+  reg:
+    maxItems: 1
+
+  clocks:
+    description: Clock frequency 74.25MHz, 37.125MHz, 72MHz, 27MHz, 24MHz
+    maxItems: 1
+
+  vana-supply:
+    description: Analog power supply (3.3V)
+
+  vddl-supply:
+    description: Interface power supply (1.8V)
+
+  vdig-supply:
+    description: Digital power supply (1.1V)
+
+  reset-gpios:
+    description: Sensor reset (XCLR) GPIO
+    maxItems: 1
+
+  sony,sync-mode:
+    description: |
+      Select the sensor synchronisation mode.
+        - internal-leader  (sensor drives XVS/XHS) [default]
+        - internal-follower (internal clock, external XVS input)
+        - external         (sensor follows external XVS/XHS)
+    enum:
+      - internal-leader
+      - internal-follower
+      - external
+    default: internal-leader
+
+  port:
+    $ref: /schemas/graph.yaml#/$defs/port-base
+    additionalProperties: false
+
+    properties:
+      endpoint:
+        $ref: /schemas/media/video-interfaces.yaml#
+        unevaluatedProperties: false
+
+        properties:
+          data-lanes:
+            oneOf:
+              - items:
+                  - const: 1
+                  - const: 2
+              - items:
+                  - const: 1
+                  - const: 2
+                  - const: 3
+                  - const: 4
+
+        required:
+          - data-lanes
+          - link-frequencies
+
+required:
+  - compatible
+  - reg
+  - clocks
+  - port
+
+unevaluatedProperties: false
+
+examples:
+  - |
+    i2c {
+        #address-cells = <1>;
+        #size-cells = <0>;
+
+        imx585@1a {
+            compatible = "sony,imx585-aaqj1";
+            reg = <0x1a>;
+            clocks = <&imx585_clk>;
+
+            assigned-clocks = <&imx585_clk>;
+            assigned-clock-rates = <24000000>;
+
+            vana-supply = <&camera_vadd_3v3>;
+            vdig-supply = <&camera_vdd1_1v8>;
+            vddl-supply = <&camera_vdd2_1v1>;
+
+            port {
+                imx585: endpoint {
+                    remote-endpoint = <&cam>;
+                    data-lanes = <1 2 3 4>;
+                    link-frequencies = /bits/ 64 <720000000>;
+                };
+            };
+        };
+    };
+...
diff --git a/MAINTAINERS b/MAINTAINERS
index fe168477c..ec7a6e29a 100644
--- a/MAINTAINERS
+++ b/MAINTAINERS
@@ -23535,6 +23535,12 @@ T:	git git://linuxtv.org/media.git
 F:	Documentation/devicetree/bindings/media/i2c/sony,imx415.yaml
 F:	drivers/media/i2c/imx415.c
 
+SONY IMX585 SENSOR DRIVER
+M:	Will Whang <will@willwhang.com>
+L:	linux-media@vger.kernel.org
+S:	Maintained
+F:	Documentation/devicetree/bindings/media/i2c/sony,imx585.yaml
+
 SONY MEMORYSTICK SUBSYSTEM
 M:	Maxim Levitsky <maximlevitsky@gmail.com>
 M:	Alex Dubov <oakad@yahoo.com>
-- 
2.39.5


  reply	other threads:[~2025-08-16  5:55 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-08-16  5:54 [PATCH v3 0/2] media: Add Sony IMX585 image sensor support Will Whang
2025-08-16  5:54 ` Will Whang [this message]
2025-08-16  8:04   ` [PATCH v3 1/2] dt-bindings: media: Add Sony IMX585 CMOS image sensor Krzysztof Kozlowski
2025-08-16  5:54 ` [PATCH v3 2/2] media: i2c: imx585: Add Sony IMX585 image-sensor driver Will Whang
2025-08-16  8:03   ` Krzysztof Kozlowski
2025-08-16 19:58     ` Will Whang
2025-08-17  6:10       ` Krzysztof Kozlowski
2025-08-17  6:46         ` Will Whang
2025-08-17  7:02           ` Krzysztof Kozlowski
2025-08-17  7:15             ` Will Whang
2025-08-17  7:35               ` Krzysztof Kozlowski
2025-08-17  7:44                 ` Krzysztof Kozlowski
2025-08-17  7:53                 ` Will Whang
2025-08-17  8:20                   ` Krzysztof Kozlowski
2025-08-17  8:28                   ` Krzysztof Kozlowski
2025-08-18 11:14                   ` Sakari Ailus
2025-08-18 15:05       ` Nicolas Dufresne
2025-08-18  7:58   ` Kieran Bingham

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=20250816055432.131912-2-will@willwhang.com \
    --to=will@willwhang.com \
    --cc=conor+dt@kernel.org \
    --cc=devicetree@vger.kernel.org \
    --cc=krzk+dt@kernel.org \
    --cc=linux-kernel@vger.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

all inboxes | Powered by JetHome®