xref: /linux/Documentation/devicetree/bindings/media/raspberrypi,rp1-cfe.yaml (revision fcc79e1714e8c2b8e216dc3149812edd37884eef)
1# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2%YAML 1.2
3---
4$id: http://devicetree.org/schemas/media/raspberrypi,rp1-cfe.yaml#
5$schema: http://devicetree.org/meta-schemas/core.yaml#
6
7title: Raspberry Pi PiSP Camera Front End
8
9maintainers:
10  - Tomi Valkeinen <tomi.valkeinen@ideasonboard.com>
11  - Raspberry Pi Kernel Maintenance <kernel-list@raspberrypi.com>
12
13description: |
14  The Raspberry Pi PiSP Camera Front End is a module in Raspberrypi 5's RP1 I/O
15  controller, that contains:
16  - MIPI D-PHY
17  - MIPI CSI-2 receiver
18  - Simple image processor (called PiSP Front End, or FE)
19
20  The FE documentation is available at:
21  https://datasheets.raspberrypi.com/camera/raspberry-pi-image-signal-processor-specification.pdf
22
23  The PHY and CSI-2 receiver part have no public documentation.
24
25properties:
26  compatible:
27    items:
28      - const: raspberrypi,rp1-cfe
29
30  reg:
31    items:
32      - description: CSI-2 registers
33      - description: D-PHY registers
34      - description: MIPI CFG (a simple top-level mux) registers
35      - description: FE registers
36
37  interrupts:
38    maxItems: 1
39
40  clocks:
41    maxItems: 1
42
43  port:
44    $ref: /schemas/graph.yaml#/$defs/port-base
45    additionalProperties: false
46    description: CSI-2 RX Port
47
48    properties:
49      endpoint:
50        $ref: video-interfaces.yaml#
51        unevaluatedProperties: false
52
53        properties:
54          data-lanes:
55            minItems: 1
56            maxItems: 4
57
58        required:
59          - data-lanes
60
61required:
62  - compatible
63  - reg
64  - interrupts
65  - clocks
66
67additionalProperties: false
68
69examples:
70  - |
71    rp1 {
72      #address-cells = <2>;
73      #size-cells = <2>;
74
75      csi@110000 {
76        compatible = "raspberrypi,rp1-cfe";
77        reg = <0xc0 0x40110000 0x0 0x100>,
78              <0xc0 0x40114000 0x0 0x100>,
79              <0xc0 0x40120000 0x0 0x100>,
80              <0xc0 0x40124000 0x0 0x1000>;
81
82        interrupts = <42>;
83
84        clocks = <&rp1_clocks>;
85
86        port {
87          csi_ep: endpoint {
88            remote-endpoint = <&cam_endpoint>;
89            data-lanes = <1 2>;
90          };
91        };
92      };
93    };
94