* [PATCH 0/2] dt-bidings: media: ov5647 bindings + small fix
@ 2020-06-18 13:40 Jacopo Mondi
2020-06-18 13:40 ` [PATCH 1/2] dt-bindings: media: ov5647: Convert to json-schema Jacopo Mondi
2020-06-18 13:40 ` [PATCH 2/2] dt-bindings: media: i2c: Document 'remote-endpoint' Jacopo Mondi
0 siblings, 2 replies; 5+ messages in thread
From: Jacopo Mondi @ 2020-06-18 13:40 UTC (permalink / raw)
To: robh+dt, devicetree, linux-media
Cc: Jacopo Mondi, mchehab, sakari.ailus, hverkuil-cisco,
dave.stevenson, dongchun.zhu, laurent.pinchart,
roman.kovalivskyi
While converting the ov5647 bindings to dt-schema I noticed the remote-endpoint
property was not documented in the only 2 existing image sensor bindings.
Convert the ov5647 bindings and add remote-endpoint as required property to
the existing ones.
Jacopo Mondi (2):
dt-bindings: media: ov5647: Convert to json-schema
dt-bindings: media: i2c: Document 'remote-endpoint'
.../devicetree/bindings/media/i2c/imx219.yaml | 5 ++
.../devicetree/bindings/media/i2c/ov5647.txt | 35 --------
.../devicetree/bindings/media/i2c/ov5647.yaml | 82 +++++++++++++++++++
.../devicetree/bindings/media/i2c/ov8856.yaml | 5 ++
4 files changed, 92 insertions(+), 35 deletions(-)
delete mode 100644 Documentation/devicetree/bindings/media/i2c/ov5647.txt
create mode 100644 Documentation/devicetree/bindings/media/i2c/ov5647.yaml
--
2.27.0
^ permalink raw reply [flat|nested] 5+ messages in thread
* [PATCH 1/2] dt-bindings: media: ov5647: Convert to json-schema
2020-06-18 13:40 [PATCH 0/2] dt-bidings: media: ov5647 bindings + small fix Jacopo Mondi
@ 2020-06-18 13:40 ` Jacopo Mondi
2020-07-13 15:58 ` Rob Herring
2020-06-18 13:40 ` [PATCH 2/2] dt-bindings: media: i2c: Document 'remote-endpoint' Jacopo Mondi
1 sibling, 1 reply; 5+ messages in thread
From: Jacopo Mondi @ 2020-06-18 13:40 UTC (permalink / raw)
To: robh+dt, devicetree, linux-media
Cc: Jacopo Mondi, mchehab, sakari.ailus, hverkuil-cisco,
dave.stevenson, dongchun.zhu, laurent.pinchart,
roman.kovalivskyi
Convert the ov5647 image sensor bindings to DT schema.
Signed-off-by: Jacopo Mondi <jacopo@jmondi.org>
---
.../devicetree/bindings/media/i2c/ov5647.txt | 35 --------
.../devicetree/bindings/media/i2c/ov5647.yaml | 82 +++++++++++++++++++
2 files changed, 82 insertions(+), 35 deletions(-)
delete mode 100644 Documentation/devicetree/bindings/media/i2c/ov5647.txt
create mode 100644 Documentation/devicetree/bindings/media/i2c/ov5647.yaml
diff --git a/Documentation/devicetree/bindings/media/i2c/ov5647.txt b/Documentation/devicetree/bindings/media/i2c/ov5647.txt
deleted file mode 100644
index 22e44945b6610..0000000000000
--- a/Documentation/devicetree/bindings/media/i2c/ov5647.txt
+++ /dev/null
@@ -1,35 +0,0 @@
-Omnivision OV5647 raw image sensor
----------------------------------
-
-OV5647 is a raw image sensor with MIPI CSI-2 and CCP2 image data interfaces
-and CCI (I2C compatible) control bus.
-
-Required properties:
-
-- compatible : "ovti,ov5647".
-- reg : I2C slave address of the sensor.
-- clocks : Reference to the xclk clock.
-
-The common video interfaces bindings (see video-interfaces.txt) should be
-used to specify link to the image data receiver. The OV5647 device
-node should contain one 'port' child node with an 'endpoint' subnode.
-
-Endpoint node mandatory properties:
-
-- remote-endpoint: A phandle to the bus receiver's endpoint node.
-
-Example:
-
- i2c@2000 {
- ...
- ov: camera@36 {
- compatible = "ovti,ov5647";
- reg = <0x36>;
- clocks = <&camera_clk>;
- port {
- camera_1: endpoint {
- remote-endpoint = <&csi1_ep1>;
- };
- };
- };
- };
diff --git a/Documentation/devicetree/bindings/media/i2c/ov5647.yaml b/Documentation/devicetree/bindings/media/i2c/ov5647.yaml
new file mode 100644
index 0000000000000..067e222e0c7c3
--- /dev/null
+++ b/Documentation/devicetree/bindings/media/i2c/ov5647.yaml
@@ -0,0 +1,82 @@
+# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/media/i2c/ov5647.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: Omnivision OV5647 raw image sensor
+
+maintainers:
+ - Dave Stevenson <dave.stevenson@raspberrypi.com>
+
+description: |-
+ OV5647 is a raw image sensor with MIPI CSI-2 and CCP2 image data interfaces
+ and CCI (I2C compatible) control bus.
+
+properties:
+ compatible:
+ const: ovti,ov5647
+
+ reg:
+ description: I2C device address
+ maxItems: 1
+
+ clocks:
+ description: Reference to the xclk clock
+ maxItems: 1
+
+ port:
+ type: object
+ description: |-
+ Should contain one endpoint sub-node used to model connection to the
+ video receiver according to the specification defined in
+ Documentation/devicetree/bindings/media/video-interfaces.txt
+
+ properties:
+ endpoint:
+ type: object
+
+ properties:
+ remote-endpoint:
+ description: |-
+ phandle to the video receiver input port
+
+ required:
+ - remote-endpoint
+
+ additionalProperties: false
+
+ required:
+ - endpoint
+
+ additionalProperties: false
+
+required:
+ - compatible
+ - reg
+ - clocks
+ - port
+
+additionalProperties: false
+
+examples:
+ - |
+
+ i2c {
+ #address-cells = <1>;
+ #size-cells = <0>;
+
+ ov5647: camera@36 {
+ compatible = "ovti,ov5647";
+ reg = <0x36>;
+ clocks = <&camera_clk>;
+
+ port {
+ camera_out: endpoint {
+ remote-endpoint = <&csi1_ep1>;
+ };
+ };
+ };
+ };
+
+...
--
2.27.0
^ permalink raw reply related [flat|nested] 5+ messages in thread
* [PATCH 2/2] dt-bindings: media: i2c: Document 'remote-endpoint'
2020-06-18 13:40 [PATCH 0/2] dt-bidings: media: ov5647 bindings + small fix Jacopo Mondi
2020-06-18 13:40 ` [PATCH 1/2] dt-bindings: media: ov5647: Convert to json-schema Jacopo Mondi
@ 2020-06-18 13:40 ` Jacopo Mondi
2020-07-13 15:56 ` Rob Herring
1 sibling, 1 reply; 5+ messages in thread
From: Jacopo Mondi @ 2020-06-18 13:40 UTC (permalink / raw)
To: robh+dt, devicetree, linux-media
Cc: Jacopo Mondi, mchehab, sakari.ailus, hverkuil-cisco,
dave.stevenson, dongchun.zhu, laurent.pinchart,
roman.kovalivskyi
Document the 'remote-endpoint' property and add it to the list of required
endpoint properties in imx219 and ov8856 dt-schema binding files.
Signed-off-by: Jacopo Mondi <jacopo@jmondi.org>
---
Documentation/devicetree/bindings/media/i2c/imx219.yaml | 5 +++++
Documentation/devicetree/bindings/media/i2c/ov8856.yaml | 5 +++++
2 files changed, 10 insertions(+)
diff --git a/Documentation/devicetree/bindings/media/i2c/imx219.yaml b/Documentation/devicetree/bindings/media/i2c/imx219.yaml
index dfc4d29a4f04c..0251e15fe0a72 100644
--- a/Documentation/devicetree/bindings/media/i2c/imx219.yaml
+++ b/Documentation/devicetree/bindings/media/i2c/imx219.yaml
@@ -71,8 +71,13 @@ properties:
description:
Allowed data bus frequencies.
+ remote-endpoint:
+ description: |-
+ phandle to the video receiver input port
+
required:
- link-frequencies
+ - remote-endpoint
required:
- compatible
diff --git a/Documentation/devicetree/bindings/media/i2c/ov8856.yaml b/Documentation/devicetree/bindings/media/i2c/ov8856.yaml
index 1956b2a32bf43..c1f363bb5aee9 100644
--- a/Documentation/devicetree/bindings/media/i2c/ov8856.yaml
+++ b/Documentation/devicetree/bindings/media/i2c/ov8856.yaml
@@ -84,9 +84,14 @@ properties:
Allowed data bus frequencies. 360000000, 180000000 Hz or both
are supported by the driver.
+ remote-endpoint:
+ description: |-
+ phandle to the video receiver input port
+
required:
- link-frequencies
+ - remote-endpoint
required:
- endpoint
--
2.27.0
^ permalink raw reply related [flat|nested] 5+ messages in thread
* Re: [PATCH 2/2] dt-bindings: media: i2c: Document 'remote-endpoint'
2020-06-18 13:40 ` [PATCH 2/2] dt-bindings: media: i2c: Document 'remote-endpoint' Jacopo Mondi
@ 2020-07-13 15:56 ` Rob Herring
0 siblings, 0 replies; 5+ messages in thread
From: Rob Herring @ 2020-07-13 15:56 UTC (permalink / raw)
To: Jacopo Mondi
Cc: devicetree, linux-media, mchehab, sakari.ailus, hverkuil-cisco,
dave.stevenson, dongchun.zhu, laurent.pinchart,
roman.kovalivskyi
On Thu, Jun 18, 2020 at 03:40:45PM +0200, Jacopo Mondi wrote:
> Document the 'remote-endpoint' property and add it to the list of required
> endpoint properties in imx219 and ov8856 dt-schema binding files.
>
> Signed-off-by: Jacopo Mondi <jacopo@jmondi.org>
> ---
> Documentation/devicetree/bindings/media/i2c/imx219.yaml | 5 +++++
> Documentation/devicetree/bindings/media/i2c/ov8856.yaml | 5 +++++
> 2 files changed, 10 insertions(+)
Reviewed-by: Rob Herring <robh@kernel.org>
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH 1/2] dt-bindings: media: ov5647: Convert to json-schema
2020-06-18 13:40 ` [PATCH 1/2] dt-bindings: media: ov5647: Convert to json-schema Jacopo Mondi
@ 2020-07-13 15:58 ` Rob Herring
0 siblings, 0 replies; 5+ messages in thread
From: Rob Herring @ 2020-07-13 15:58 UTC (permalink / raw)
To: Jacopo Mondi
Cc: roman.kovalivskyi, robh+dt, sakari.ailus, laurent.pinchart,
devicetree, mchehab, hverkuil-cisco, linux-media, dave.stevenson,
dongchun.zhu
On Thu, 18 Jun 2020 15:40:44 +0200, Jacopo Mondi wrote:
> Convert the ov5647 image sensor bindings to DT schema.
>
> Signed-off-by: Jacopo Mondi <jacopo@jmondi.org>
> ---
> .../devicetree/bindings/media/i2c/ov5647.txt | 35 --------
> .../devicetree/bindings/media/i2c/ov5647.yaml | 82 +++++++++++++++++++
> 2 files changed, 82 insertions(+), 35 deletions(-)
> delete mode 100644 Documentation/devicetree/bindings/media/i2c/ov5647.txt
> create mode 100644 Documentation/devicetree/bindings/media/i2c/ov5647.yaml
>
Reviewed-by: Rob Herring <robh@kernel.org>
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2020-07-13 15:58 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-06-18 13:40 [PATCH 0/2] dt-bidings: media: ov5647 bindings + small fix Jacopo Mondi
2020-06-18 13:40 ` [PATCH 1/2] dt-bindings: media: ov5647: Convert to json-schema Jacopo Mondi
2020-07-13 15:58 ` Rob Herring
2020-06-18 13:40 ` [PATCH 2/2] dt-bindings: media: i2c: Document 'remote-endpoint' Jacopo Mondi
2020-07-13 15:56 ` Rob Herring
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).