brintos

brintos / linux-shallow public Read only

0
0
Text · 4.5 KiB · 4d5348d Raw
178 lines · yaml
1# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)2%YAML 1.23---4$id: http://devicetree.org/schemas/media/nxp,imx8-isi.yaml#5$schema: http://devicetree.org/meta-schemas/core.yaml#6 7title: i.MX8 Image Sensing Interface8 9maintainers:10  - Laurent Pinchart <laurent.pinchart@ideasonboard.com>11 12description: |13  The Image Sensing Interface (ISI) combines image processing pipelines with14  DMA engines to process and capture frames originating from a variety of15  sources. The inputs to the ISI go through Pixel Link interfaces, and their16  number and nature is SoC-dependent. They cover both capture interfaces (MIPI17  CSI-2 RX, HDMI RX, ...) and display engine outputs for writeback support.18 19properties:20  compatible:21    enum:22      - fsl,imx8mn-isi23      - fsl,imx8mp-isi24      - fsl,imx93-isi25 26  reg:27    maxItems: 128 29  clocks:30    items:31      - description: The AXI clock32      - description: The APB clock33      # TODO: Check if the per-channel ipg_proc_clk clocks need to be specified34      # as well, in case some SoCs have the ability to control them separately.35      # This may be the case of the i.MX8[DQ]X(P)36 37  clock-names:38    items:39      - const: axi40      - const: apb41 42  fsl,blk-ctrl:43    $ref: /schemas/types.yaml#/definitions/phandle44    description:45      A phandle referencing the block control that contains the CSIS to ISI46      gasket.47 48  interrupts:49    description: Processing pipeline interrupts, one per pipeline50    minItems: 151    maxItems: 252 53  power-domains:54    maxItems: 155 56  ports:57    $ref: /schemas/graph.yaml#/properties/ports58    description: |59      Ports represent the Pixel Link inputs to the ISI. Their number and60      assignment are model-dependent. Each port shall have a single endpoint.61 62required:63  - compatible64  - reg65  - interrupts66  - clocks67  - clock-names68  - fsl,blk-ctrl69  - ports70 71allOf:72  - if:73      properties:74        compatible:75          contains:76            enum:77              - fsl,imx8mn-isi78              - fsl,imx93-isi79    then:80      properties:81        interrupts:82          maxItems: 183        ports:84          properties:85            port@0:86              description: MIPI CSI-2 RX87            port@1: false88          required:89            - port@090 91  - if:92      properties:93        compatible:94          contains:95            const: fsl,imx8mp-isi96    then:97      properties:98        interrupts:99          maxItems: 2100        ports:101          properties:102            port@0:103              description: MIPI CSI-2 RX 0104            port@1:105              description: MIPI CSI-2 RX 1106          required:107            - port@0108            - port@1109 110additionalProperties: false111 112examples:113  - |114    #include <dt-bindings/clock/imx8mn-clock.h>115    #include <dt-bindings/interrupt-controller/arm-gic.h>116    #include <dt-bindings/interrupt-controller/irq.h>117    #include <dt-bindings/power/imx8mn-power.h>118 119    isi@32e20000 {120        compatible = "fsl,imx8mn-isi";121        reg = <0x32e20000 0x100>;122        interrupts = <GIC_SPI 16 IRQ_TYPE_LEVEL_HIGH>;123        clocks = <&clk IMX8MN_CLK_DISP_AXI_ROOT>,124                 <&clk IMX8MN_CLK_DISP_APB_ROOT>;125        clock-names = "axi", "apb";126        fsl,blk-ctrl = <&disp_blk_ctrl>;127        power-domains = <&disp_blk_ctrl IMX8MN_DISPBLK_PD_ISI>;128 129        ports {130            #address-cells = <1>;131            #size-cells = <0>;132 133            port@0 {134                reg = <0>;135                isi_in: endpoint {136                    remote-endpoint = <&mipi_csi_out>;137                };138            };139        };140    };141 142  - |143    #include <dt-bindings/clock/imx8mp-clock.h>144    #include <dt-bindings/interrupt-controller/arm-gic.h>145    #include <dt-bindings/interrupt-controller/irq.h>146 147    isi@32e00000 {148        compatible = "fsl,imx8mp-isi";149        reg = <0x32e00000 0x4000>;150        interrupts = <GIC_SPI 16 IRQ_TYPE_LEVEL_HIGH>,151                     <GIC_SPI 42 IRQ_TYPE_LEVEL_HIGH>;152        clocks = <&clk IMX8MP_CLK_MEDIA_AXI_ROOT>,153                 <&clk IMX8MP_CLK_MEDIA_APB_ROOT>;154        clock-names = "axi", "apb";155        fsl,blk-ctrl = <&media_blk_ctrl>;156        power-domains = <&mediamix_pd>;157 158        ports {159            #address-cells = <1>;160            #size-cells = <0>;161 162            port@0 {163                reg = <0>;164                isi_in_0: endpoint {165                    remote-endpoint = <&mipi_csi_0_out>;166                };167            };168 169            port@1 {170                reg = <1>;171                isi_in_1: endpoint {172                    remote-endpoint = <&mipi_csi_1_out>;173                };174            };175        };176    };177...178