MIPI CCS, SMIA++ and SMIA compliant camera sensors
Schema identifier ($id): "http://devicetree.org/schemas/media/i2c/mipi-ccs.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Sakari Ailus <sakari.ailus@linux.intel.com>"
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 .
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):/schemas/media/video-interface-devices.yaml#
Properties and child nodes (properties) #
compatible — required here #
Exactly one of these rules must match (oneOf) #
Rule 1
Array item rules (
items)Item 1
Exact value (
const):"mipi-ccs-1.1"Item 2
Exact value (
const):"mipi-ccs"
Rule 2
Array item rules (
items)Item 1
Exact value (
const):"mipi-ccs-1.0"Item 2
Exact value (
const):"mipi-ccs"
Rule 3
Exact value (
const):"nokia,smia"
reg — required here #
Maximum number of items (maxItems): 1
vana-supply — not listed as required here #
Analogue voltage supply (VANA), sensor dependent.
vcore-supply — not listed as required here #
Core voltage supply (VCore), sensor dependent.
vio-supply — not listed as required here #
I/O voltage supply (VIO), sensor dependent.
clocks — required here #
External clock to the sensor.
Maximum number of items (maxItems): 1
clock-frequency — not listed as required here #
Frequency of the external clock to the sensor in Hz.
Deprecated (deprecated): true
reset-gpios — not listed as required here #
Reset GPIO. Also commonly called XSHUTDOWN in hardware documentation.
Maximum number of items (maxItems): 1
flash-leds — not listed as required here #
true — No constraints added by this property rule.
lens-focus — not listed as required here #
true — No constraints added by this property rule.
rotation — not listed as required here #
port — not listed as required here #
Shared schema rule ($ref): /schemas/graph.yaml#/$defs/port-base
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Properties and child nodes (properties) #
endpoint — not listed as required here
Shared schema rule ($ref): /schemas/media/video-interfaces.yaml#
Properties not evaluated by applicable rules (unevaluatedProperties)
false
Not allowed by this rule.
Properties and child nodes (properties)
link-frequencies — required here
true — No constraints added by this property rule.
data-lanes — required here
true — No constraints added by this property rule.
bus-type — required here
Allowed values (enum): 1, 3, 4
Required in this object (required): "link-frequencies", "data-lanes", "bus-type"
Required in this object (required): "compatible", "reg", "clocks"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (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>;
};
};
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
Line 2: Copyright (C) 2014--2020 Intel Corporation
Line 85: CSI-2 C-PHY
Line 86: CCP2
Line 87: CSI-2 D-PHY