xref: /freebsd/sys/contrib/device-tree/Bindings/media/renesas,isp.yaml (revision fac71e4e09885bb2afa3d984a0c239a52e1a7418)
15956d97fSEmmanuel Vadot# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
25956d97fSEmmanuel Vadot# Copyright (C) 2021 Renesas Electronics Corp.
35956d97fSEmmanuel Vadot%YAML 1.2
45956d97fSEmmanuel Vadot---
55956d97fSEmmanuel Vadot$id: http://devicetree.org/schemas/media/renesas,isp.yaml#
65956d97fSEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml#
75956d97fSEmmanuel Vadot
85956d97fSEmmanuel Vadottitle: Renesas R-Car ISP Channel Selector
95956d97fSEmmanuel Vadot
105956d97fSEmmanuel Vadotmaintainers:
115956d97fSEmmanuel Vadot  - Niklas Söderlund <niklas.soderlund@ragnatech.se>
125956d97fSEmmanuel Vadot
135956d97fSEmmanuel Vadotdescription:
145956d97fSEmmanuel Vadot  The R-Car ISP Channel Selector provides MIPI CSI-2 VC and DT filtering
155956d97fSEmmanuel Vadot  capabilities for the Renesas R-Car family of devices. It is used in
165956d97fSEmmanuel Vadot  conjunction with the R-Car VIN and CSI-2 modules, which provides the video
175956d97fSEmmanuel Vadot  capture capabilities.
185956d97fSEmmanuel Vadot
195956d97fSEmmanuel Vadotproperties:
205956d97fSEmmanuel Vadot  compatible:
215956d97fSEmmanuel Vadot    items:
225956d97fSEmmanuel Vadot      - enum:
235956d97fSEmmanuel Vadot          - renesas,r8a779a0-isp # V3U
24*fac71e4eSEmmanuel Vadot          - renesas,r8a779g0-isp # V4H
255956d97fSEmmanuel Vadot  reg:
265956d97fSEmmanuel Vadot    maxItems: 1
275956d97fSEmmanuel Vadot
285956d97fSEmmanuel Vadot  interrupts:
295956d97fSEmmanuel Vadot    maxItems: 1
305956d97fSEmmanuel Vadot
315956d97fSEmmanuel Vadot  clocks:
325956d97fSEmmanuel Vadot    maxItems: 1
335956d97fSEmmanuel Vadot
345956d97fSEmmanuel Vadot  power-domains:
355956d97fSEmmanuel Vadot    maxItems: 1
365956d97fSEmmanuel Vadot
375956d97fSEmmanuel Vadot  resets:
385956d97fSEmmanuel Vadot    maxItems: 1
395956d97fSEmmanuel Vadot
405956d97fSEmmanuel Vadot  ports:
415956d97fSEmmanuel Vadot    $ref: /schemas/graph.yaml#/properties/ports
425956d97fSEmmanuel Vadot
435956d97fSEmmanuel Vadot    properties:
445956d97fSEmmanuel Vadot      port@0:
455956d97fSEmmanuel Vadot        $ref: /schemas/graph.yaml#/properties/port
465956d97fSEmmanuel Vadot        description:
475956d97fSEmmanuel Vadot          Input port node, multiple endpoints describing the connected R-Car
485956d97fSEmmanuel Vadot          CSI-2 receivers.
495956d97fSEmmanuel Vadot
505956d97fSEmmanuel Vadot      port@1:
515956d97fSEmmanuel Vadot        $ref: /schemas/graph.yaml#/properties/port
525956d97fSEmmanuel Vadot        description:
535956d97fSEmmanuel Vadot          Single endpoint describing the R-Car VIN connected to output port 0.
545956d97fSEmmanuel Vadot
555956d97fSEmmanuel Vadot      port@2:
565956d97fSEmmanuel Vadot        $ref: /schemas/graph.yaml#/properties/port
575956d97fSEmmanuel Vadot        description:
585956d97fSEmmanuel Vadot          Single endpoint describing the R-Car VIN connected to output port 1.
595956d97fSEmmanuel Vadot
605956d97fSEmmanuel Vadot      port@3:
615956d97fSEmmanuel Vadot        $ref: /schemas/graph.yaml#/properties/port
625956d97fSEmmanuel Vadot        description:
635956d97fSEmmanuel Vadot          Single endpoint describing the R-Car VIN connected to output port 2.
645956d97fSEmmanuel Vadot
655956d97fSEmmanuel Vadot      port@4:
665956d97fSEmmanuel Vadot        $ref: /schemas/graph.yaml#/properties/port
675956d97fSEmmanuel Vadot        description:
685956d97fSEmmanuel Vadot          Single endpoint describing the R-Car VIN connected to output port 3.
695956d97fSEmmanuel Vadot
705956d97fSEmmanuel Vadot      port@5:
715956d97fSEmmanuel Vadot        $ref: /schemas/graph.yaml#/properties/port
725956d97fSEmmanuel Vadot        description:
735956d97fSEmmanuel Vadot          Single endpoint describing the R-Car VIN connected to output port 4.
745956d97fSEmmanuel Vadot
755956d97fSEmmanuel Vadot      port@6:
765956d97fSEmmanuel Vadot        $ref: /schemas/graph.yaml#/properties/port
775956d97fSEmmanuel Vadot        description:
785956d97fSEmmanuel Vadot          Single endpoint describing the R-Car VIN connected to output port 5.
795956d97fSEmmanuel Vadot
805956d97fSEmmanuel Vadot      port@7:
815956d97fSEmmanuel Vadot        $ref: /schemas/graph.yaml#/properties/port
825956d97fSEmmanuel Vadot        description:
835956d97fSEmmanuel Vadot          Single endpoint describing the R-Car VIN connected to output port 6.
845956d97fSEmmanuel Vadot
855956d97fSEmmanuel Vadot      port@8:
865956d97fSEmmanuel Vadot        $ref: /schemas/graph.yaml#/properties/port
875956d97fSEmmanuel Vadot        description:
885956d97fSEmmanuel Vadot          Single endpoint describing the R-Car VIN connected to output port 7.
895956d97fSEmmanuel Vadot
905956d97fSEmmanuel Vadot    required:
915956d97fSEmmanuel Vadot      - port@0
925956d97fSEmmanuel Vadot      - port@1
935956d97fSEmmanuel Vadot      - port@2
945956d97fSEmmanuel Vadot      - port@3
955956d97fSEmmanuel Vadot      - port@4
965956d97fSEmmanuel Vadot      - port@5
975956d97fSEmmanuel Vadot      - port@6
985956d97fSEmmanuel Vadot      - port@7
995956d97fSEmmanuel Vadot      - port@8
1005956d97fSEmmanuel Vadot
1015956d97fSEmmanuel Vadotrequired:
1025956d97fSEmmanuel Vadot  - compatible
1035956d97fSEmmanuel Vadot  - reg
1045956d97fSEmmanuel Vadot  - interrupts
1055956d97fSEmmanuel Vadot  - clocks
1065956d97fSEmmanuel Vadot  - power-domains
1075956d97fSEmmanuel Vadot  - resets
1085956d97fSEmmanuel Vadot  - ports
1095956d97fSEmmanuel Vadot
1105956d97fSEmmanuel VadotadditionalProperties: false
1115956d97fSEmmanuel Vadot
1125956d97fSEmmanuel Vadotexamples:
1135956d97fSEmmanuel Vadot  - |
1145956d97fSEmmanuel Vadot    #include <dt-bindings/clock/r8a779a0-cpg-mssr.h>
1155956d97fSEmmanuel Vadot    #include <dt-bindings/interrupt-controller/arm-gic.h>
1165956d97fSEmmanuel Vadot    #include <dt-bindings/power/r8a779a0-sysc.h>
1175956d97fSEmmanuel Vadot
1185956d97fSEmmanuel Vadot    isp1: isp@fed20000 {
1195956d97fSEmmanuel Vadot            compatible = "renesas,r8a779a0-isp";
1205956d97fSEmmanuel Vadot            reg = <0xfed20000 0x10000>;
1215956d97fSEmmanuel Vadot            interrupts = <GIC_SPI 155 IRQ_TYPE_LEVEL_HIGH>;
1225956d97fSEmmanuel Vadot            clocks = <&cpg CPG_MOD 613>;
1235956d97fSEmmanuel Vadot            power-domains = <&sysc R8A779A0_PD_A3ISP01>;
1245956d97fSEmmanuel Vadot            resets = <&cpg 613>;
1255956d97fSEmmanuel Vadot
1265956d97fSEmmanuel Vadot            ports {
1275956d97fSEmmanuel Vadot                    #address-cells = <1>;
1285956d97fSEmmanuel Vadot                    #size-cells = <0>;
1295956d97fSEmmanuel Vadot
1305956d97fSEmmanuel Vadot                    port@0 {
1315956d97fSEmmanuel Vadot                            #address-cells = <1>;
1325956d97fSEmmanuel Vadot                            #size-cells = <0>;
1335956d97fSEmmanuel Vadot
1345956d97fSEmmanuel Vadot                            reg = <0>;
1355956d97fSEmmanuel Vadot                            isp1csi41: endpoint@1 {
1365956d97fSEmmanuel Vadot                                    reg = <1>;
1375956d97fSEmmanuel Vadot                                    remote-endpoint = <&csi41isp1>;
1385956d97fSEmmanuel Vadot                            };
1395956d97fSEmmanuel Vadot                    };
1405956d97fSEmmanuel Vadot
1415956d97fSEmmanuel Vadot                    port@1 {
1425956d97fSEmmanuel Vadot                            reg = <1>;
1435956d97fSEmmanuel Vadot                            isp1vin08: endpoint {
1445956d97fSEmmanuel Vadot                                    remote-endpoint = <&vin08isp1>;
1455956d97fSEmmanuel Vadot                            };
1465956d97fSEmmanuel Vadot                    };
1475956d97fSEmmanuel Vadot
1485956d97fSEmmanuel Vadot                    port@2 {
1495956d97fSEmmanuel Vadot                            reg = <2>;
1505956d97fSEmmanuel Vadot                            isp1vin09: endpoint {
1515956d97fSEmmanuel Vadot                                    remote-endpoint = <&vin09isp1>;
1525956d97fSEmmanuel Vadot                            };
1535956d97fSEmmanuel Vadot                    };
1545956d97fSEmmanuel Vadot
1555956d97fSEmmanuel Vadot                    port@3 {
1565956d97fSEmmanuel Vadot                            reg = <3>;
1575956d97fSEmmanuel Vadot                            isp1vin10: endpoint {
1585956d97fSEmmanuel Vadot                                    remote-endpoint = <&vin10isp1>;
1595956d97fSEmmanuel Vadot                            };
1605956d97fSEmmanuel Vadot                    };
1615956d97fSEmmanuel Vadot
1625956d97fSEmmanuel Vadot                    port@4 {
1635956d97fSEmmanuel Vadot                            reg = <4>;
1645956d97fSEmmanuel Vadot                            isp1vin11: endpoint {
1655956d97fSEmmanuel Vadot                                    remote-endpoint = <&vin11isp1>;
1665956d97fSEmmanuel Vadot                            };
1675956d97fSEmmanuel Vadot                    };
1685956d97fSEmmanuel Vadot
1695956d97fSEmmanuel Vadot                    port@5 {
1705956d97fSEmmanuel Vadot                            reg = <5>;
1715956d97fSEmmanuel Vadot                            isp1vin12: endpoint {
1725956d97fSEmmanuel Vadot                                    remote-endpoint = <&vin12isp1>;
1735956d97fSEmmanuel Vadot                            };
1745956d97fSEmmanuel Vadot                    };
1755956d97fSEmmanuel Vadot
1765956d97fSEmmanuel Vadot                    port@6 {
1775956d97fSEmmanuel Vadot                            reg = <6>;
1785956d97fSEmmanuel Vadot                            isp1vin13: endpoint {
1795956d97fSEmmanuel Vadot                                    remote-endpoint = <&vin13isp1>;
1805956d97fSEmmanuel Vadot                            };
1815956d97fSEmmanuel Vadot                    };
1825956d97fSEmmanuel Vadot
1835956d97fSEmmanuel Vadot                    port@7 {
1845956d97fSEmmanuel Vadot                            reg = <7>;
1855956d97fSEmmanuel Vadot                            isp1vin14: endpoint {
1865956d97fSEmmanuel Vadot                                    remote-endpoint = <&vin14isp1>;
1875956d97fSEmmanuel Vadot                            };
1885956d97fSEmmanuel Vadot                    };
1895956d97fSEmmanuel Vadot
1905956d97fSEmmanuel Vadot                    port@8 {
1915956d97fSEmmanuel Vadot                            reg = <8>;
1925956d97fSEmmanuel Vadot                            isp1vin15: endpoint {
1935956d97fSEmmanuel Vadot                                    remote-endpoint = <&vin15isp1>;
1945956d97fSEmmanuel Vadot                            };
1955956d97fSEmmanuel Vadot                    };
1965956d97fSEmmanuel Vadot            };
1975956d97fSEmmanuel Vadot    };
198