bcm27xx: update 6.1 patches to latest version
[openwrt/staging/dangole.git] / target / linux / bcm27xx / patches-6.1 / 950-1193-media-dt-bindings-Add-OmniVision-OV64A40.patch
1 From 3d108604ca669b83bb4918c4f5f0a02ddef84972 Mon Sep 17 00:00:00 2001
2 From: Jacopo Mondi <jacopo.mondi@ideasonboard.com>
3 Date: Sun, 1 Oct 2023 13:20:12 +0200
4 Subject: [PATCH] media: dt-bindings: Add OmniVision OV64A40
5
6 Add bindings for OmniVision OV64A40.
7
8 Signed-off-by: Jacopo Mondi <jacopo.mondi@ideasonboard.com>
9 ---
10 .../bindings/media/i2c/ovti,ov64a40.yaml | 98 +++++++++++++++++++
11 1 file changed, 98 insertions(+)
12 create mode 100644 Documentation/devicetree/bindings/media/i2c/ovti,ov64a40.yaml
13
14 --- /dev/null
15 +++ b/Documentation/devicetree/bindings/media/i2c/ovti,ov64a40.yaml
16 @@ -0,0 +1,98 @@
17 +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
18 +%YAML 1.2
19 +---
20 +$id: http://devicetree.org/schemas/media/i2c/ovti,ov64a40.yaml#
21 +$schema: http://devicetree.org/meta-schemas/core.yaml#
22 +
23 +title: OmniVision OV64A40 Image Sensor
24 +
25 +maintainers:
26 + - Jacopo Mondi <jacopo.mondi@ideasonboard.com>
27 +
28 +allOf:
29 + - $ref: /schemas/media/video-interface-devices.yaml#
30 +
31 +properties:
32 + compatible:
33 + const: ovti,ov64a40
34 +
35 + reg:
36 + maxItems: 1
37 +
38 + clocks:
39 + maxItems: 1
40 +
41 + avdd-supply:
42 + description: Analog voltage supply, 2.8 volts
43 +
44 + dvdd-supply:
45 + description: Digital core voltage supply, 1.1 volts
46 +
47 + dovdd-supply:
48 + description: Digital I/O voltage supply, 1.8 volts
49 +
50 + powerdown-gpios:
51 + maxItems: 1
52 +
53 + reset-gpios:
54 + maxItems: 1
55 +
56 + port:
57 + $ref: /schemas/graph.yaml#/$defs/port-base
58 + additionalProperties: false
59 +
60 + properties:
61 + endpoint:
62 + $ref: /schemas/media/video-interfaces.yaml#
63 + additionalProperties: false
64 +
65 + properties:
66 + bus-type:
67 + enum:
68 + - 1 # MIPI CSI-2 C-PHY
69 + - 4 # MIPI CSI-2 D-PHY
70 + data-lanes: true
71 + link-frequencies: true
72 + clock-noncontinuous: true
73 + remote-endpoint: true
74 +
75 +required:
76 + - compatible
77 + - reg
78 + - clocks
79 + - port
80 +
81 +unevaluatedProperties: false
82 +
83 +examples:
84 + - |
85 + #include <dt-bindings/gpio/gpio.h>
86 +
87 + i2c {
88 + #address-cells = <1>;
89 + #size-cells = <0>;
90 +
91 + camera@36 {
92 + compatible = "ovti,ov64a40";
93 + reg = <0x36>;
94 + clocks = <&camera_clk>;
95 + dovdd-supply = <&vgen4_reg>;
96 + avdd-supply = <&vgen3_reg>;
97 + dvdd-supply = <&vgen2_reg>;
98 + powerdown-gpios = <&gpio1 9 GPIO_ACTIVE_HIGH>;
99 + reset-gpios = <&gpio1 10 GPIO_ACTIVE_LOW>;
100 + rotation = <180>;
101 + orientation = <2>;
102 +
103 + port {
104 + endpoint {
105 + remote-endpoint = <&mipi_csi2_in>;
106 + bus-type = <4>;
107 + data-lanes = <1 2 3 4>;
108 + link-frequencies = /bits/ 64 <456000000>;
109 + };
110 + };
111 + };
112 + };
113 +
114 +...