mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/herbert/cryptodev-2.6.git
synced 2026-04-18 03:23:53 -04:00
Usage of the clock-frequency property for camera sensors is discouraged in favour of using assigned-clock-rates (and assigned-clock-parents where needed). Mark the property as deprecated. Update the examples accordingly. In DT examples where the sensor input clock appears to come from a programmable clock generator, replace clock-frequency by the assigned-clocks and assigned-clock-rates properties. Otherwise, just drop clock-frequency. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Reviewed-by: Rob Herring (Arm) <robh@kernel.org> Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com> Reviewed-by: Mehdi Djait <mehdi.djait@linux.intel.com> Signed-off-by: Hans Verkuil <hverkuil+cisco@kernel.org>
134 lines
3.2 KiB
YAML
134 lines
3.2 KiB
YAML
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
|
|
# Copyright (C) 2014--2020 Intel Corporation
|
|
%YAML 1.2
|
|
---
|
|
$id: http://devicetree.org/schemas/media/i2c/mipi-ccs.yaml#
|
|
$schema: http://devicetree.org/meta-schemas/core.yaml#
|
|
|
|
title: MIPI CCS, SMIA++ and SMIA compliant camera sensors
|
|
|
|
maintainers:
|
|
- Sakari Ailus <sakari.ailus@linux.intel.com>
|
|
|
|
description:
|
|
|
|
CCS (Camera Command Set) is a raw Bayer camera sensor standard defined by the
|
|
MIPI Alliance; see
|
|
<URL:https://www.mipi.org/specifications/camera-command-set>.
|
|
|
|
SMIA (Standard Mobile Imaging Architecture) is an image sensor standard
|
|
defined jointly by Nokia and ST. SMIA++, defined by Nokia, is an extension of
|
|
that.
|
|
|
|
More detailed documentation can be found in
|
|
Documentation/devicetree/bindings/media/video-interfaces.txt .
|
|
|
|
allOf:
|
|
- $ref: /schemas/media/video-interface-devices.yaml#
|
|
|
|
properties:
|
|
compatible:
|
|
oneOf:
|
|
- items:
|
|
- const: mipi-ccs-1.1
|
|
- const: mipi-ccs
|
|
- items:
|
|
- const: mipi-ccs-1.0
|
|
- const: mipi-ccs
|
|
- const: nokia,smia
|
|
|
|
reg:
|
|
maxItems: 1
|
|
|
|
vana-supply:
|
|
description: Analogue voltage supply (VANA), sensor dependent.
|
|
|
|
vcore-supply:
|
|
description: Core voltage supply (VCore), sensor dependent.
|
|
|
|
vio-supply:
|
|
description: I/O voltage supply (VIO), sensor dependent.
|
|
|
|
clocks:
|
|
description: External clock to the sensor.
|
|
maxItems: 1
|
|
|
|
clock-frequency:
|
|
description: Frequency of the external clock to the sensor in Hz.
|
|
deprecated: true
|
|
|
|
reset-gpios:
|
|
description: Reset GPIO. Also commonly called XSHUTDOWN in hardware
|
|
documentation.
|
|
maxItems: 1
|
|
|
|
flash-leds: true
|
|
lens-focus: true
|
|
|
|
rotation:
|
|
enum: [ 0, 180 ]
|
|
|
|
port:
|
|
$ref: /schemas/graph.yaml#/$defs/port-base
|
|
additionalProperties: false
|
|
|
|
properties:
|
|
endpoint:
|
|
$ref: /schemas/media/video-interfaces.yaml#
|
|
unevaluatedProperties: false
|
|
|
|
properties:
|
|
link-frequencies: true
|
|
data-lanes: true
|
|
bus-type:
|
|
enum:
|
|
- 1 # CSI-2 C-PHY
|
|
- 3 # CCP2
|
|
- 4 # CSI-2 D-PHY
|
|
|
|
required:
|
|
- link-frequencies
|
|
- data-lanes
|
|
- bus-type
|
|
|
|
required:
|
|
- compatible
|
|
- reg
|
|
- clocks
|
|
|
|
additionalProperties: false
|
|
|
|
examples:
|
|
- |
|
|
#include <dt-bindings/gpio/gpio.h>
|
|
#include <dt-bindings/media/video-interfaces.h>
|
|
|
|
i2c {
|
|
#address-cells = <1>;
|
|
#size-cells = <0>;
|
|
|
|
clock-frequency = <400000>;
|
|
|
|
camera-sensor@10 {
|
|
compatible = "mipi-ccs-1.0", "mipi-ccs";
|
|
reg = <0x10>;
|
|
reset-gpios = <&gpio3 20 GPIO_ACTIVE_LOW>;
|
|
vana-supply = <&vaux3>;
|
|
|
|
clocks = <&omap3_isp 0>;
|
|
assigned-clocks = <&omap3_isp 0>;
|
|
assigned-clock-rates = <9600000>;
|
|
|
|
port {
|
|
ccs_ep: endpoint {
|
|
data-lanes = <1 2>;
|
|
remote-endpoint = <&csi2a_ep>;
|
|
link-frequencies = /bits/ 64 <199200000 210000000
|
|
499200000>;
|
|
bus-type = <MEDIA_BUS_TYPE_CSI2_DPHY>;
|
|
};
|
|
};
|
|
};
|
|
};
|
|
...
|