1c66ec88fSEmmanuel Vadot# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 2c66ec88fSEmmanuel Vadot%YAML 1.2 3c66ec88fSEmmanuel Vadot--- 4c66ec88fSEmmanuel Vadot$id: http://devicetree.org/schemas/media/ti,cal.yaml# 5c66ec88fSEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml# 6c66ec88fSEmmanuel Vadot 7c66ec88fSEmmanuel Vadottitle: Texas Instruments DRA72x CAMERA ADAPTATION LAYER (CAL) Device Tree Bindings 8c66ec88fSEmmanuel Vadot 9c66ec88fSEmmanuel Vadotmaintainers: 10c66ec88fSEmmanuel Vadot - Benoit Parrot <bparrot@ti.com> 11c66ec88fSEmmanuel Vadot 12c66ec88fSEmmanuel Vadotdescription: |- 13c66ec88fSEmmanuel Vadot The Camera Adaptation Layer (CAL) is a key component for image capture 14c66ec88fSEmmanuel Vadot applications. The capture module provides the system interface and the 15c66ec88fSEmmanuel Vadot processing capability to connect CSI2 image-sensor modules to the 16c66ec88fSEmmanuel Vadot DRA72x device. 17c66ec88fSEmmanuel Vadot 185def4c47SEmmanuel Vadot CAL supports 2 camera port nodes on MIPI bus. 19c66ec88fSEmmanuel Vadot 20c66ec88fSEmmanuel Vadotproperties: 21c66ec88fSEmmanuel Vadot compatible: 22c66ec88fSEmmanuel Vadot enum: 23c66ec88fSEmmanuel Vadot # for DRA72 controllers 24c66ec88fSEmmanuel Vadot - ti,dra72-cal 25c66ec88fSEmmanuel Vadot # for DRA72 controllers pre ES2.0 26c66ec88fSEmmanuel Vadot - ti,dra72-pre-es2-cal 27c66ec88fSEmmanuel Vadot # for DRA76 controllers 28c66ec88fSEmmanuel Vadot - ti,dra76-cal 29c66ec88fSEmmanuel Vadot # for AM654 controllers 30c66ec88fSEmmanuel Vadot - ti,am654-cal 31c66ec88fSEmmanuel Vadot 32c66ec88fSEmmanuel Vadot reg: 33c66ec88fSEmmanuel Vadot minItems: 2 34c66ec88fSEmmanuel Vadot items: 35c66ec88fSEmmanuel Vadot - description: The CAL main register region 36c66ec88fSEmmanuel Vadot - description: The RX Core0 (DPHY0) register region 37c66ec88fSEmmanuel Vadot - description: The RX Core1 (DPHY1) register region 38c66ec88fSEmmanuel Vadot 39c66ec88fSEmmanuel Vadot reg-names: 40c66ec88fSEmmanuel Vadot minItems: 2 41c66ec88fSEmmanuel Vadot items: 42c66ec88fSEmmanuel Vadot - const: cal_top 43c66ec88fSEmmanuel Vadot - const: cal_rx_core0 44c66ec88fSEmmanuel Vadot - const: cal_rx_core1 45c66ec88fSEmmanuel Vadot 46c66ec88fSEmmanuel Vadot interrupts: 47c66ec88fSEmmanuel Vadot maxItems: 1 48c66ec88fSEmmanuel Vadot 49c66ec88fSEmmanuel Vadot ti,camerrx-control: 50c66ec88fSEmmanuel Vadot $ref: "/schemas/types.yaml#/definitions/phandle-array" 51c66ec88fSEmmanuel Vadot description: 52c66ec88fSEmmanuel Vadot phandle to the device control module and offset to the 53c66ec88fSEmmanuel Vadot control_camerarx_core register 54c66ec88fSEmmanuel Vadot 55c66ec88fSEmmanuel Vadot clocks: 56c66ec88fSEmmanuel Vadot maxItems: 1 57c66ec88fSEmmanuel Vadot 58c66ec88fSEmmanuel Vadot clock-names: 59c66ec88fSEmmanuel Vadot const: fck 60c66ec88fSEmmanuel Vadot 61c66ec88fSEmmanuel Vadot power-domains: 62c66ec88fSEmmanuel Vadot description: 63c66ec88fSEmmanuel Vadot List of phandle and PM domain specifier as documented in 64c66ec88fSEmmanuel Vadot Documentation/devicetree/bindings/power/power_domain.txt 65c66ec88fSEmmanuel Vadot maxItems: 1 66c66ec88fSEmmanuel Vadot 67c66ec88fSEmmanuel Vadot ports: 685def4c47SEmmanuel Vadot $ref: /schemas/graph.yaml#/properties/ports 69c66ec88fSEmmanuel Vadot 70c66ec88fSEmmanuel Vadot properties: 71c66ec88fSEmmanuel Vadot port@0: 725def4c47SEmmanuel Vadot $ref: /schemas/graph.yaml#/$defs/port-base 735def4c47SEmmanuel Vadot unevaluatedProperties: false 74c66ec88fSEmmanuel Vadot description: CSI2 Port #0 75c66ec88fSEmmanuel Vadot 765def4c47SEmmanuel Vadot properties: 77c66ec88fSEmmanuel Vadot endpoint: 785def4c47SEmmanuel Vadot $ref: video-interfaces.yaml# 795def4c47SEmmanuel Vadot unevaluatedProperties: false 80c66ec88fSEmmanuel Vadot 81c66ec88fSEmmanuel Vadot properties: 82c66ec88fSEmmanuel Vadot clock-lanes: 83c66ec88fSEmmanuel Vadot maxItems: 1 84c66ec88fSEmmanuel Vadot 85c66ec88fSEmmanuel Vadot data-lanes: 86c66ec88fSEmmanuel Vadot minItems: 1 87c66ec88fSEmmanuel Vadot maxItems: 4 88c66ec88fSEmmanuel Vadot 89c66ec88fSEmmanuel Vadot port@1: 905def4c47SEmmanuel Vadot $ref: /schemas/graph.yaml#/$defs/port-base 915def4c47SEmmanuel Vadot unevaluatedProperties: false 92c66ec88fSEmmanuel Vadot description: CSI2 Port #1 93c66ec88fSEmmanuel Vadot 945def4c47SEmmanuel Vadot properties: 95c66ec88fSEmmanuel Vadot endpoint: 965def4c47SEmmanuel Vadot $ref: video-interfaces.yaml# 975def4c47SEmmanuel Vadot unevaluatedProperties: false 98c66ec88fSEmmanuel Vadot 99c66ec88fSEmmanuel Vadot properties: 100c66ec88fSEmmanuel Vadot clock-lanes: 101c66ec88fSEmmanuel Vadot maxItems: 1 102c66ec88fSEmmanuel Vadot 103c66ec88fSEmmanuel Vadot data-lanes: 104c66ec88fSEmmanuel Vadot minItems: 1 105c66ec88fSEmmanuel Vadot maxItems: 4 106c66ec88fSEmmanuel Vadot 107c66ec88fSEmmanuel Vadot required: 108c66ec88fSEmmanuel Vadot - port@0 109c66ec88fSEmmanuel Vadot 110c66ec88fSEmmanuel Vadotrequired: 111c66ec88fSEmmanuel Vadot - compatible 112c66ec88fSEmmanuel Vadot - reg 113c66ec88fSEmmanuel Vadot - reg-names 114c66ec88fSEmmanuel Vadot - interrupts 115c66ec88fSEmmanuel Vadot - ti,camerrx-control 116c66ec88fSEmmanuel Vadot 117c66ec88fSEmmanuel VadotadditionalProperties: false 118c66ec88fSEmmanuel Vadot 119c66ec88fSEmmanuel Vadotexamples: 120c66ec88fSEmmanuel Vadot - | 121c66ec88fSEmmanuel Vadot #include <dt-bindings/interrupt-controller/arm-gic.h> 122c66ec88fSEmmanuel Vadot 123c66ec88fSEmmanuel Vadot cal: cal@4845b000 { 124c66ec88fSEmmanuel Vadot compatible = "ti,dra72-cal"; 125c66ec88fSEmmanuel Vadot reg = <0x4845B000 0x400>, 126c66ec88fSEmmanuel Vadot <0x4845B800 0x40>, 127c66ec88fSEmmanuel Vadot <0x4845B900 0x40>; 128c66ec88fSEmmanuel Vadot reg-names = "cal_top", 129c66ec88fSEmmanuel Vadot "cal_rx_core0", 130c66ec88fSEmmanuel Vadot "cal_rx_core1"; 131c66ec88fSEmmanuel Vadot interrupts = <GIC_SPI 119 IRQ_TYPE_LEVEL_HIGH>; 132c66ec88fSEmmanuel Vadot ti,camerrx-control = <&scm_conf 0xE94>; 133c66ec88fSEmmanuel Vadot 134c66ec88fSEmmanuel Vadot ports { 135c66ec88fSEmmanuel Vadot #address-cells = <1>; 136c66ec88fSEmmanuel Vadot #size-cells = <0>; 137c66ec88fSEmmanuel Vadot 138c66ec88fSEmmanuel Vadot csi2_0: port@0 { 139c66ec88fSEmmanuel Vadot reg = <0>; 140c66ec88fSEmmanuel Vadot csi2_phy0: endpoint { 141c66ec88fSEmmanuel Vadot remote-endpoint = <&csi2_cam0>; 142c66ec88fSEmmanuel Vadot clock-lanes = <0>; 143c66ec88fSEmmanuel Vadot data-lanes = <1 2>; 144c66ec88fSEmmanuel Vadot }; 145c66ec88fSEmmanuel Vadot }; 146c66ec88fSEmmanuel Vadot }; 147c66ec88fSEmmanuel Vadot }; 148c66ec88fSEmmanuel Vadot 149c66ec88fSEmmanuel Vadot i2c { 150c66ec88fSEmmanuel Vadot clock-frequency = <400000>; 151c66ec88fSEmmanuel Vadot #address-cells = <1>; 152c66ec88fSEmmanuel Vadot #size-cells = <0>; 153c66ec88fSEmmanuel Vadot 154c66ec88fSEmmanuel Vadot camera-sensor@3c { 155c66ec88fSEmmanuel Vadot compatible = "ovti,ov5640"; 156c66ec88fSEmmanuel Vadot reg = <0x3c>; 157*8cc087a1SEmmanuel Vadot AVDD-supply = <®_2p8v>; 158*8cc087a1SEmmanuel Vadot DOVDD-supply = <®_1p8v>; 159*8cc087a1SEmmanuel Vadot DVDD-supply = <®_1p5v>; 160c66ec88fSEmmanuel Vadot clocks = <&clk_ov5640_fixed>; 161c66ec88fSEmmanuel Vadot clock-names = "xclk"; 162c66ec88fSEmmanuel Vadot 163c66ec88fSEmmanuel Vadot port { 164c66ec88fSEmmanuel Vadot csi2_cam0: endpoint { 165c66ec88fSEmmanuel Vadot remote-endpoint = <&csi2_phy0>; 166c66ec88fSEmmanuel Vadot clock-lanes = <0>; 167c66ec88fSEmmanuel Vadot data-lanes = <1 2>; 168c66ec88fSEmmanuel Vadot }; 169c66ec88fSEmmanuel Vadot }; 170c66ec88fSEmmanuel Vadot }; 171c66ec88fSEmmanuel Vadot }; 172c66ec88fSEmmanuel Vadot 173c66ec88fSEmmanuel Vadot... 174