xref: /linux/Documentation/devicetree/bindings/media/allwinner,sun6i-a31-isp.yaml (revision 7ae9fb1b7ecbb5d85d07857943f677fd1a559b18)
1da950c03SPaul Kocialkowski# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
2da950c03SPaul Kocialkowski%YAML 1.2
3da950c03SPaul Kocialkowski---
4da950c03SPaul Kocialkowski$id: http://devicetree.org/schemas/media/allwinner,sun6i-a31-isp.yaml#
5da950c03SPaul Kocialkowski$schema: http://devicetree.org/meta-schemas/core.yaml#
6da950c03SPaul Kocialkowski
7*a612130cSKrzysztof Kozlowskititle: Allwinner A31 Image Signal Processor Driver (ISP)
8da950c03SPaul Kocialkowski
9da950c03SPaul Kocialkowskimaintainers:
10da950c03SPaul Kocialkowski  - Paul Kocialkowski <paul.kocialkowski@bootlin.com>
11da950c03SPaul Kocialkowski
12da950c03SPaul Kocialkowskiproperties:
13da950c03SPaul Kocialkowski  compatible:
14da950c03SPaul Kocialkowski    enum:
15da950c03SPaul Kocialkowski      - allwinner,sun6i-a31-isp
16da950c03SPaul Kocialkowski      - allwinner,sun8i-v3s-isp
17da950c03SPaul Kocialkowski
18da950c03SPaul Kocialkowski  reg:
19da950c03SPaul Kocialkowski    maxItems: 1
20da950c03SPaul Kocialkowski
21da950c03SPaul Kocialkowski  interrupts:
22da950c03SPaul Kocialkowski    maxItems: 1
23da950c03SPaul Kocialkowski
24da950c03SPaul Kocialkowski  clocks:
25da950c03SPaul Kocialkowski    items:
26da950c03SPaul Kocialkowski      - description: Bus Clock
27da950c03SPaul Kocialkowski      - description: Module Clock
28da950c03SPaul Kocialkowski      - description: DRAM Clock
29da950c03SPaul Kocialkowski
30da950c03SPaul Kocialkowski  clock-names:
31da950c03SPaul Kocialkowski    items:
32da950c03SPaul Kocialkowski      - const: bus
33da950c03SPaul Kocialkowski      - const: mod
34da950c03SPaul Kocialkowski      - const: ram
35da950c03SPaul Kocialkowski
36da950c03SPaul Kocialkowski  resets:
37da950c03SPaul Kocialkowski    maxItems: 1
38da950c03SPaul Kocialkowski
39da950c03SPaul Kocialkowski  ports:
40da950c03SPaul Kocialkowski    $ref: /schemas/graph.yaml#/properties/ports
41da950c03SPaul Kocialkowski
42da950c03SPaul Kocialkowski    properties:
43da950c03SPaul Kocialkowski      port@0:
44da950c03SPaul Kocialkowski        $ref: /schemas/graph.yaml#/properties/port
45da950c03SPaul Kocialkowski        description: CSI0 input port
46da950c03SPaul Kocialkowski
47da950c03SPaul Kocialkowski      port@1:
48da950c03SPaul Kocialkowski        $ref: /schemas/graph.yaml#/properties/port
49da950c03SPaul Kocialkowski        description: CSI1 input port
50da950c03SPaul Kocialkowski
51da950c03SPaul Kocialkowski    if:
52da950c03SPaul Kocialkowski      properties:
53da950c03SPaul Kocialkowski        compatible:
54da950c03SPaul Kocialkowski          contains:
55da950c03SPaul Kocialkowski            enum:
56da950c03SPaul Kocialkowski              - allwinner,sun8i-v3s-isp
57da950c03SPaul Kocialkowski    then:
58da950c03SPaul Kocialkowski      required:
59da950c03SPaul Kocialkowski        - port@0
60da950c03SPaul Kocialkowski
61da950c03SPaul Kocialkowskirequired:
62da950c03SPaul Kocialkowski  - compatible
63da950c03SPaul Kocialkowski  - reg
64da950c03SPaul Kocialkowski  - interrupts
65da950c03SPaul Kocialkowski  - clocks
66da950c03SPaul Kocialkowski  - clock-names
67da950c03SPaul Kocialkowski  - resets
68da950c03SPaul Kocialkowski
69da950c03SPaul KocialkowskiadditionalProperties: false
70da950c03SPaul Kocialkowski
71da950c03SPaul Kocialkowskiexamples:
72da950c03SPaul Kocialkowski  - |
73da950c03SPaul Kocialkowski    #include <dt-bindings/interrupt-controller/arm-gic.h>
74da950c03SPaul Kocialkowski    #include <dt-bindings/clock/sun8i-v3s-ccu.h>
75da950c03SPaul Kocialkowski    #include <dt-bindings/reset/sun8i-v3s-ccu.h>
76da950c03SPaul Kocialkowski
77da950c03SPaul Kocialkowski    isp: isp@1cb8000 {
78da950c03SPaul Kocialkowski        compatible = "allwinner,sun8i-v3s-isp";
79da950c03SPaul Kocialkowski        reg = <0x01cb8000 0x1000>;
80da950c03SPaul Kocialkowski        interrupts = <GIC_SPI 83 IRQ_TYPE_LEVEL_HIGH>;
81da950c03SPaul Kocialkowski        clocks = <&ccu CLK_BUS_CSI>,
82da950c03SPaul Kocialkowski             <&ccu CLK_CSI1_SCLK>,
83da950c03SPaul Kocialkowski             <&ccu CLK_DRAM_CSI>;
84da950c03SPaul Kocialkowski        clock-names = "bus", "mod", "ram";
85da950c03SPaul Kocialkowski        resets = <&ccu RST_BUS_CSI>;
86da950c03SPaul Kocialkowski
87da950c03SPaul Kocialkowski        ports {
88da950c03SPaul Kocialkowski            #address-cells = <1>;
89da950c03SPaul Kocialkowski            #size-cells = <0>;
90da950c03SPaul Kocialkowski
91da950c03SPaul Kocialkowski            port@0 {
92da950c03SPaul Kocialkowski                reg = <0>;
93da950c03SPaul Kocialkowski
94da950c03SPaul Kocialkowski                isp_in_csi0: endpoint {
95da950c03SPaul Kocialkowski                    remote-endpoint = <&csi0_out_isp>;
96da950c03SPaul Kocialkowski                };
97da950c03SPaul Kocialkowski            };
98da950c03SPaul Kocialkowski        };
99da950c03SPaul Kocialkowski    };
100da950c03SPaul Kocialkowski
101da950c03SPaul Kocialkowski...
102