Sony IMX258 13 Mpixel CMOS Digital Image Sensor
Schema identifier ($id): "http://devicetree.org/schemas/media/i2c/sony,imx258.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Krzysztof Kozlowski <krzk@kernel.org>"
IMX258 is a diagonal 5.867mm (Type 1/3.06) 13 Mega-pixel CMOS active pixel type stacked image sensor with a square pixel array of size 4208 x 3120. It is programmable through I2C interface. Image data is sent through MIPI CSI-2. The sensor exists in two different models, a standard variant (IMX258) and a variant with phase detection autofocus (IMX258-PDAF). The camera module does not expose the model through registers, so the exact model needs to be specified.
Shared schema rule ($ref): /schemas/media/video-interface-devices.yaml#
Properties and child nodes (properties) #
compatible — required here #
Allowed values (enum): "sony,imx258", "sony,imx258-pdaf"
clocks — required here #
Clock frequency from 6 to 27 MHz.
Maximum number of items (maxItems): 1
reg — required here #
Maximum number of items (maxItems): 1
reset-gpios — not listed as required here #
Reference to the GPIO connected to the XCLR pin, if any.
vana-supply — not listed as required here #
Analog voltage (VANA) supply, 2.7 V
vdig-supply — not listed as required here #
Digital I/O voltage (VDIG) supply, 1.2 V
vif-supply — not listed as required here #
Interface voltage (VIF) supply, 1.8 V
port — 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)
data-lanes — required here
Exactly one of these rules must match (oneOf)
Rule 1
Array item rules (
items)Item 1
Exact value (
const):1Item 2
Exact value (
const):2Item 3
Exact value (
const):3Item 4
Exact value (
const):4
Rule 2
Array item rules (
items)Item 1
Exact value (
const):1Item 2
Exact value (
const):2
link-frequencies — required here
true — No constraints added by this property rule.
Required in this object (required): "data-lanes", "link-frequencies"
Required in this object (required): "compatible", "reg", "clocks", "port"
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Examples (examples) #
i2c {
#address-cells = <1>;
#size-cells = <0>;
sensor@6c {
compatible = "sony,imx258";
reg = <0x6c>;
clocks = <&imx258_clk>;
port {
endpoint {
remote-endpoint = <&csi1_ep>;
data-lanes = <1 2 3 4>;
link-frequencies = /bits/ 64 <320000000>;
};
};
};
};
/* Oscillator on the camera board */
imx258_clk: clk {
compatible = "fixed-clock";
#clock-cells = <0>;
clock-frequency = <19200000>;
};
i2c {
#address-cells = <1>;
#size-cells = <0>;
sensor@6c {
compatible = "sony,imx258";
reg = <0x6c>;
clocks = <&imx258_clk>;
port {
endpoint {
remote-endpoint = <&csi1_ep>;
data-lanes = <1 2 3 4>;
link-frequencies = /bits/ 64 <633600000>;
};
};
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
Line 53: See ../video-interfaces.txt for more details