Skip to content

Commit f5f92ca

Browse files
flamingradian6by9
authored andcommitted
dt-bindings: media: i2c: Add Sony IMX355
The IMX355 camera sensor is a camera sensor that can be found as the front camera in some smartphones, such as the Pixel 3, Pixel 3 XL, Pixel 3a, and Pixel 3a XL. It already has a driver, but needs support for device tree. Document the IMX355 to support defining it in device tree. Reviewed-by: Vladimir Zapolskiy <vladimir.zapolskiy@linaro.org> Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@oss.qualcomm.com> Signed-off-by: Richard Acayan <mailingradian@gmail.com>
1 parent 6bdbe0b commit f5f92ca

1 file changed

Lines changed: 111 additions & 0 deletions

File tree

Lines changed: 111 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,111 @@
1+
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2+
%YAML 1.2
3+
---
4+
$id: http://devicetree.org/schemas/media/i2c/sony,imx355.yaml#
5+
$schema: http://devicetree.org/meta-schemas/core.yaml#
6+
7+
title: Sony IMX355 Sensor
8+
9+
maintainers:
10+
- Richard Acayan <mailingradian@gmail.com>
11+
12+
description:
13+
The IMX355 sensor is a 3280x2464 image sensor, commonly found as the front
14+
camera in smartphones.
15+
16+
allOf:
17+
- $ref: /schemas/media/video-interface-devices.yaml#
18+
19+
properties:
20+
compatible:
21+
const: sony,imx355
22+
23+
reg:
24+
maxItems: 1
25+
26+
clocks:
27+
maxItems: 1
28+
29+
avdd-supply:
30+
description: Analog power supply.
31+
32+
dvdd-supply:
33+
description: Digital power supply.
34+
35+
dovdd-supply:
36+
description: Interface power supply.
37+
38+
reset-gpios:
39+
description: Reset GPIO (active low).
40+
maxItems: 1
41+
42+
port:
43+
$ref: /schemas/graph.yaml#/$defs/port-base
44+
additionalProperties: false
45+
46+
properties:
47+
endpoint:
48+
$ref: /schemas/media/video-interfaces.yaml
49+
unevaluatedProperties: false
50+
51+
properties:
52+
data-lanes:
53+
minItems: 4
54+
maxItems: 4
55+
56+
required:
57+
- link-frequencies
58+
59+
required:
60+
- endpoint
61+
62+
required:
63+
- compatible
64+
- reg
65+
- clocks
66+
- avdd-supply
67+
- dvdd-supply
68+
- dovdd-supply
69+
- port
70+
71+
unevaluatedProperties: false
72+
73+
examples:
74+
- |
75+
#include <dt-bindings/clock/qcom,camcc-sdm845.h>
76+
#include <dt-bindings/gpio/gpio.h>
77+
78+
i2c {
79+
#address-cells = <1>;
80+
#size-cells = <0>;
81+
82+
camera@1a {
83+
compatible = "sony,imx355";
84+
reg = <0x1a>;
85+
86+
clocks = <&camcc CAM_CC_MCLK2_CLK>;
87+
88+
assigned-clocks = <&camcc CAM_CC_MCLK2_CLK>;
89+
assigned-clock-rates = <24000000>;
90+
91+
reset-gpios = <&tlmm 9 GPIO_ACTIVE_LOW>;
92+
93+
avdd-supply = <&cam_front_ldo>;
94+
dvdd-supply = <&cam_front_ldo>;
95+
dovdd-supply = <&cam_vio_ldo>;
96+
97+
pinctrl-names = "default";
98+
pinctrl-0 = <&cam_front_default>;
99+
100+
rotation = <270>;
101+
orientation = <0>;
102+
103+
port {
104+
cam_front_endpoint: endpoint {
105+
data-lanes = <1 2 3 4>;
106+
link-frequencies = /bits/ 64 <360000000>;
107+
remote-endpoint = <&camss_endpoint1>;
108+
};
109+
};
110+
};
111+
};

0 commit comments

Comments
 (0)