1c66ec88fSEmmanuel Vadot# SPDX-License-Identifier: GPL-2.0 OR BSD-2-Clause 2c66ec88fSEmmanuel Vadot# Copyright (C) 2019 Renesas Electronics Corp. 3c66ec88fSEmmanuel Vadot%YAML 1.2 4c66ec88fSEmmanuel Vadot--- 5c66ec88fSEmmanuel Vadot$id: http://devicetree.org/schemas/media/i2c/imi,rdacm2x-gmsl.yaml# 6c66ec88fSEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml# 7c66ec88fSEmmanuel Vadot 8c66ec88fSEmmanuel Vadottitle: IMI D&D RDACM20 and RDACM21 Automotive Camera Platforms 9c66ec88fSEmmanuel Vadot 10c66ec88fSEmmanuel Vadotmaintainers: 11c66ec88fSEmmanuel Vadot - Jacopo Mondi <jacopo+renesas@jmondi.org> 12c66ec88fSEmmanuel Vadot - Kieran Bingham <kieran.bingham+renesas@ideasonboard.com> 13c66ec88fSEmmanuel Vadot - Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com> 14c66ec88fSEmmanuel Vadot - Niklas Söderlund <niklas.soderlund+renesas@ragnatech.se> 15c66ec88fSEmmanuel Vadot 16c66ec88fSEmmanuel Vadotdescription: -| 17c66ec88fSEmmanuel Vadot The IMI D&D RDACM20 and RDACM21 are GMSL-compatible camera designed for 18c66ec88fSEmmanuel Vadot automotive applications. 19c66ec88fSEmmanuel Vadot 20c66ec88fSEmmanuel Vadot The RDACM20 camera module encloses a Maxim Integrated MAX9271 GMSL serializer, 21c66ec88fSEmmanuel Vadot coupled with an OV10635 image sensor and an embedded MCU. Both the MCU and 22c66ec88fSEmmanuel Vadot the image sensor are connected to the serializer local I2C bus and are 23c66ec88fSEmmanuel Vadot accessible by the host SoC by direct addressing. 24c66ec88fSEmmanuel Vadot 25c66ec88fSEmmanuel Vadot The RDACM21 camera module encloses the same serializer, coupled with an 26c66ec88fSEmmanuel Vadot OV10640 image sensor and an OV490 ISP. Only the OV490 ISP is interfaced to 27c66ec88fSEmmanuel Vadot the serializer local I2C bus while the image sensor is not accessible from 28c66ec88fSEmmanuel Vadot the host SoC. 29c66ec88fSEmmanuel Vadot 30c66ec88fSEmmanuel Vadot They both connect to a remote GMSL endpoint through a coaxial cable. 31c66ec88fSEmmanuel Vadot 32c66ec88fSEmmanuel Vadot IMI RDACM20 33c66ec88fSEmmanuel Vadot +---------------+ +--------------------------------+ 34c66ec88fSEmmanuel Vadot | GMSL | <- Video Stream | <- Video--------\ | 35c66ec88fSEmmanuel Vadot | |< === GMSL Link ====== >|MAX9271<- I2C bus-> <-->OV10635 | 36c66ec88fSEmmanuel Vadot | de-serializer | <- I2C messages -> | \<-->MCU | 37c66ec88fSEmmanuel Vadot +---------------+ +--------------------------------+ 38c66ec88fSEmmanuel Vadot 39c66ec88fSEmmanuel Vadot IMI RDACM21 40c66ec88fSEmmanuel Vadot +---------------+ +--------------------------------+ 41c66ec88fSEmmanuel Vadot | GMSL | <- Video Stream | <- Video--------\ | 42c66ec88fSEmmanuel Vadot | |< === GMSL Link ====== >|MAX9271<- I2C bus-> <-->OV490 | 43c66ec88fSEmmanuel Vadot | | <- I2C messages -> | | | 44c66ec88fSEmmanuel Vadot | de-serializer | | OV10640 <-------| | 45c66ec88fSEmmanuel Vadot +---------------+ +--------------------------------+ 46c66ec88fSEmmanuel Vadot 47c66ec88fSEmmanuel Vadot Both camera modules serialize video data generated by the embedded camera 48c66ec88fSEmmanuel Vadot sensor on the GMSL serial channel to a remote GMSL de-serializer. They also 49c66ec88fSEmmanuel Vadot receive and transmit I2C messages encapsulated and transmitted on the GMSL 50c66ec88fSEmmanuel Vadot bidirectional control channel. 51c66ec88fSEmmanuel Vadot 52c66ec88fSEmmanuel Vadot All I2C traffic received on the GMSL link not directed to the serializer is 53c66ec88fSEmmanuel Vadot propagated on the local I2C bus to the remote device there connected. All the 54c66ec88fSEmmanuel Vadot I2C traffic generated on the local I2C bus not directed to the serializer is 55c66ec88fSEmmanuel Vadot propagated to the remote de-serializer encapsulated in the GMSL control 56c66ec88fSEmmanuel Vadot channel. 57c66ec88fSEmmanuel Vadot 58c66ec88fSEmmanuel Vadot The RDACM20 and RDACM21 DT node should be a direct child of the GMSL 59c66ec88fSEmmanuel Vadot deserializer's I2C bus corresponding to the GMSL link that the camera is 60c66ec88fSEmmanuel Vadot attached to. 61c66ec88fSEmmanuel Vadot 62c66ec88fSEmmanuel Vadotproperties: 63c66ec88fSEmmanuel Vadot '#address-cells': 64c66ec88fSEmmanuel Vadot const: 1 65c66ec88fSEmmanuel Vadot 66c66ec88fSEmmanuel Vadot '#size-cells': 67c66ec88fSEmmanuel Vadot const: 0 68c66ec88fSEmmanuel Vadot 69c66ec88fSEmmanuel Vadot compatible: 70c66ec88fSEmmanuel Vadot enum: 71c66ec88fSEmmanuel Vadot - imi,rdacm20 72c66ec88fSEmmanuel Vadot - imi,rdacm21 73c66ec88fSEmmanuel Vadot 74c66ec88fSEmmanuel Vadot reg: 75c66ec88fSEmmanuel Vadot description: -| 76c66ec88fSEmmanuel Vadot I2C device addresses, the first to be assigned to the serializer, the 77c66ec88fSEmmanuel Vadot following ones to be assigned to the remote devices. 78c66ec88fSEmmanuel Vadot 79c66ec88fSEmmanuel Vadot For RDACM20 the second entry of the property is assigned to the 80c66ec88fSEmmanuel Vadot OV10635 image sensor and the optional third one to the embedded MCU. 81c66ec88fSEmmanuel Vadot 82c66ec88fSEmmanuel Vadot For RDACM21 the second entry is assigned to the OV490 ISP and the optional 83c66ec88fSEmmanuel Vadot third one ignored. 84c66ec88fSEmmanuel Vadot 85c66ec88fSEmmanuel Vadot minItems: 2 86c66ec88fSEmmanuel Vadot maxItems: 3 87c66ec88fSEmmanuel Vadot 88c66ec88fSEmmanuel Vadot port: 89*5def4c47SEmmanuel Vadot $ref: /schemas/graph.yaml#/properties/port 90*5def4c47SEmmanuel Vadot description: 91*5def4c47SEmmanuel Vadot Connection to the remote GMSL endpoint. 92c66ec88fSEmmanuel Vadot 93c66ec88fSEmmanuel Vadotrequired: 94c66ec88fSEmmanuel Vadot - compatible 95c66ec88fSEmmanuel Vadot - reg 96c66ec88fSEmmanuel Vadot - port 97c66ec88fSEmmanuel Vadot 986be33864SEmmanuel VadotadditionalProperties: false 996be33864SEmmanuel Vadot 100c66ec88fSEmmanuel Vadotexamples: 101c66ec88fSEmmanuel Vadot - | 102c66ec88fSEmmanuel Vadot i2c@e66d8000 { 103c66ec88fSEmmanuel Vadot #address-cells = <1>; 104c66ec88fSEmmanuel Vadot #size-cells = <0>; 105c66ec88fSEmmanuel Vadot 106c66ec88fSEmmanuel Vadot reg = <0 0xe66d8000>; 107c66ec88fSEmmanuel Vadot 108c66ec88fSEmmanuel Vadot camera@31 { 109c66ec88fSEmmanuel Vadot compatible = "imi,rdacm20"; 110c66ec88fSEmmanuel Vadot reg = <0x31>, <0x41>, <0x51>; 111c66ec88fSEmmanuel Vadot 112c66ec88fSEmmanuel Vadot port { 113c66ec88fSEmmanuel Vadot rdacm20_out0: endpoint { 114c66ec88fSEmmanuel Vadot remote-endpoint = <&max9286_in0>; 115c66ec88fSEmmanuel Vadot }; 116c66ec88fSEmmanuel Vadot }; 117c66ec88fSEmmanuel Vadot }; 118c66ec88fSEmmanuel Vadot }; 119c66ec88fSEmmanuel Vadot 120c66ec88fSEmmanuel Vadot - | 121c66ec88fSEmmanuel Vadot i2c@e66d8000 { 122c66ec88fSEmmanuel Vadot #address-cells = <1>; 123c66ec88fSEmmanuel Vadot #size-cells = <0>; 124c66ec88fSEmmanuel Vadot 125c66ec88fSEmmanuel Vadot reg = <0 0xe66d8000>; 126c66ec88fSEmmanuel Vadot 127c66ec88fSEmmanuel Vadot camera@31 { 128c66ec88fSEmmanuel Vadot compatible = "imi,rdacm21"; 129c66ec88fSEmmanuel Vadot reg = <0x31>, <0x41>; 130c66ec88fSEmmanuel Vadot 131c66ec88fSEmmanuel Vadot port { 132c66ec88fSEmmanuel Vadot rdacm21_out0: endpoint { 133c66ec88fSEmmanuel Vadot remote-endpoint = <&max9286_in0>; 134c66ec88fSEmmanuel Vadot }; 135c66ec88fSEmmanuel Vadot }; 136c66ec88fSEmmanuel Vadot }; 137c66ec88fSEmmanuel Vadot }; 138