Document bindings for the FSD CSIS DMA controller. Signed-off-by: Inbaraj E <inbaraj.e@xxxxxxxxxxx> --- .../bindings/media/tesla,fsd-csis-media.yaml | 74 +++++++++++++++++++ 1 file changed, 74 insertions(+) create mode 100644 Documentation/devicetree/bindings/media/tesla,fsd-csis-media.yaml diff --git a/Documentation/devicetree/bindings/media/tesla,fsd-csis-media.yaml b/Documentation/devicetree/bindings/media/tesla,fsd-csis-media.yaml new file mode 100644 index 000000000000..ce6c2e58ed4e --- /dev/null +++ b/Documentation/devicetree/bindings/media/tesla,fsd-csis-media.yaml @@ -0,0 +1,74 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/media/tesla,fsd-csis-media.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Tesla FSD SoC MIPI CSI-2 DMA (Bridge device) receiver + +maintainers: + - Inbaraj E <inbaraj.e@xxxxxxxxxxx> + +description: |- + The FSD MIPI CSI-2 (Camera Serial Interface 2) have internal DMA engine to + capture frames originating from the sensor. + +properties: + compatible: + const: tesla,fsd-csis-media + + reg: + maxItems: 1 + + interrupts: + maxItems: 1 + + clocks: + maxItems: 3 + + clock-names: + items: + - const: aclk + - const: pclk + - const: pll + + iommus: + maxItems: 1 + + port: + $ref: /schemas/graph.yaml#/properties/port + +required: + - compatible + - reg + - interrupts + - clocks + - clock-names + - iommus + - port + +additionalProperties: false + +examples: + - | + #include <dt-bindings/clock/fsd-clk.h> + #include <dt-bindings/interrupt-controller/arm-gic.h> + + csi0: csi@12641000 { + compatible = "tesla,fsd-csis-media"; + reg = <0x12661000 0x44c>; + interrupts = <GIC_SPI 8 IRQ_TYPE_LEVEL_HIGH>; + clocks = <&clock_csi CAM_CSI0_0_IPCLKPORT_I_ACLK>, + <&clock_csi CAM_CSI0_0_IPCLKPORT_I_PCLK>, + <&clock_csi CAM_CSI_PLL>; + clock-names = "aclk", "pclk", "pll"; + iommus = <&smmu_isp 0x0 0x0>; + + port { + csi_in_0: endpoint { + remote-endpoint = <&mipi_csis_0_out>; + }; + }; + }; + +... -- 2.49.0