mirror of
https://github.com/tbsdtv/linux_media.git
synced 2025-07-23 04:33:26 +02:00
A couple of media schemas got applied without using or incorrectly using the video-interfaces.yaml and graph.yaml schemas. Fix them up before we have more copy-n-paste errors. Fixes:41b3e23376
("media: dt-bindings: media: Add bindings for imx334") Fixes:d899e5f1db
("media: dt-bindings: media: imx258: add bindings for IMX258 sensor") Fixes:918b866edf
("media: dt-bindings: Remove old ov5647.yaml file, update ovti,ov5647.yaml") Fixes:22f2b47517
("media: dt-bindings: media: i2c: Add OV8865 bindings documentation") Fixes:29a202fa7a
("media: dt-bindings: media: i2c: Add OV5648 bindings documentation") Cc: Sakari Ailus <sakari.ailus@linux.intel.com> Cc: Mauro Carvalho Chehab <mchehab@kernel.org> Cc: Dave Stevenson <dave.stevenson@raspberrypi.com> Cc: Jacopo Mondi <jacopo@jmondi.org> Cc: "Paul J. Murphy" <paul.j.murphy@intel.com> Cc: Daniele Alessandrelli <daniele.alessandrelli@intel.com> Cc: Krzysztof Kozlowski <krzk@kernel.org> Cc: Paul Kocialkowski <paul.kocialkowski@bootlin.com> Cc: linux-media@vger.kernel.org Signed-off-by: Rob Herring <robh@kernel.org> Acked-by: Sakari Ailus <sakari.ailus@linux.intel.com> Acked-by: Krzysztof Kozlowski <krzk@kernel.org> Link: https://lore.kernel.org/r/20210223210127.55455-1-robh@kernel.org
110 lines
2.3 KiB
YAML
110 lines
2.3 KiB
YAML
# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
|
|
%YAML 1.2
|
|
---
|
|
$id: http://devicetree.org/schemas/media/i2c/ovti,ov5648.yaml#
|
|
$schema: http://devicetree.org/meta-schemas/core.yaml#
|
|
|
|
title: OmniVision OV5648 Image Sensor Device Tree Bindings
|
|
|
|
maintainers:
|
|
- Paul Kocialkowski <paul.kocialkowski@bootlin.com>
|
|
|
|
properties:
|
|
compatible:
|
|
const: ovti,ov5648
|
|
|
|
reg:
|
|
maxItems: 1
|
|
|
|
clocks:
|
|
items:
|
|
- description: XVCLK Clock
|
|
|
|
assigned-clocks:
|
|
maxItems: 1
|
|
|
|
assigned-clock-rates:
|
|
maxItems: 1
|
|
|
|
dvdd-supply:
|
|
description: Digital Domain Power Supply
|
|
|
|
avdd-supply:
|
|
description: Analog Domain Power Supply (internal AVDD is used if missing)
|
|
|
|
dovdd-supply:
|
|
description: I/O Domain Power Supply
|
|
|
|
powerdown-gpios:
|
|
maxItems: 1
|
|
description: Power Down Pin GPIO Control (active low)
|
|
|
|
reset-gpios:
|
|
maxItems: 1
|
|
description: Reset Pin GPIO Control (active low)
|
|
|
|
port:
|
|
description: MIPI CSI-2 transmitter port
|
|
$ref: /schemas/graph.yaml#/properties/port
|
|
additionalProperties: false
|
|
|
|
properties:
|
|
endpoint:
|
|
$ref: /schemas/media/video-interfaces.yaml#
|
|
unevaluatedProperties: false
|
|
|
|
properties:
|
|
link-frequencies: true
|
|
|
|
data-lanes:
|
|
minItems: 1
|
|
maxItems: 2
|
|
|
|
required:
|
|
- data-lanes
|
|
- link-frequencies
|
|
|
|
required:
|
|
- compatible
|
|
- reg
|
|
- clocks
|
|
- assigned-clocks
|
|
- assigned-clock-rates
|
|
- dvdd-supply
|
|
- dovdd-supply
|
|
- port
|
|
|
|
additionalProperties: false
|
|
|
|
examples:
|
|
- |
|
|
#include <dt-bindings/clock/sun8i-v3s-ccu.h>
|
|
#include <dt-bindings/gpio/gpio.h>
|
|
|
|
i2c0 {
|
|
#address-cells = <1>;
|
|
#size-cells = <0>;
|
|
|
|
ov5648: camera@36 {
|
|
compatible = "ovti,ov5648";
|
|
reg = <0x36>;
|
|
|
|
dvdd-supply = <&ov5648_dvdd>;
|
|
avdd-supply = <&ov5648_avdd>;
|
|
dovdd-supply = <&ov5648_dovdd>;
|
|
clocks = <&ov5648_xvclk 0>;
|
|
assigned-clocks = <&ov5648_xvclk 0>;
|
|
assigned-clock-rates = <24000000>;
|
|
|
|
|
|
ov5648_out: port {
|
|
ov5648_out_mipi_csi2: endpoint {
|
|
data-lanes = <1 2>;
|
|
link-frequencies = /bits/ 64 <210000000 168000000>;
|
|
|
|
remote-endpoint = <&mipi_csi2_in_ov5648>;
|
|
};
|
|
};
|
|
};
|
|
};
|