Back to home page

OSCL-LXR

 
 

    


0001 # SPDX-License-Identifier: GPL-2.0-only
0002 # Copyright (C) 2016-2021 Microchip Technology, Inc.
0003 %YAML 1.2
0004 ---
0005 $id: http://devicetree.org/schemas/media/atmel,isc.yaml#
0006 $schema: http://devicetree.org/meta-schemas/core.yaml#
0007 
0008 title: Atmel Image Sensor Controller (ISC)
0009 
0010 maintainers:
0011   - Eugen Hristev <eugen.hristev@microchip.com>
0012 
0013 description: |
0014   The Image Sensor Controller (ISC) device provides the video input capabilities for the
0015   Atmel/Microchip AT91 SAMA family of devices.
0016 
0017   The ISC has a single parallel input that supports RAW Bayer, RGB or YUV video,
0018   with both external synchronization and BT.656 synchronization for the latter.
0019 
0020 properties:
0021   compatible:
0022     const: atmel,sama5d2-isc
0023 
0024   reg:
0025     maxItems: 1
0026 
0027   interrupts:
0028     maxItems: 1
0029 
0030   clocks:
0031     minItems: 3
0032     maxItems: 3
0033 
0034   clock-names:
0035     items:
0036       - const: hclock
0037       - const: iscck
0038       - const: gck
0039 
0040   '#clock-cells':
0041     const: 0
0042 
0043   clock-output-names:
0044     const: isc-mck
0045 
0046   port:
0047     $ref: /schemas/graph.yaml#/$defs/port-base
0048     unevaluatedProperties: false
0049     description:
0050       Input port node, single endpoint describing the input pad.
0051 
0052     properties:
0053       endpoint:
0054         $ref: video-interfaces.yaml#
0055 
0056         properties:
0057           remote-endpoint: true
0058 
0059           bus-width:
0060             enum: [8, 9, 10, 11, 12]
0061             default: 12
0062 
0063           hsync-active:
0064             enum: [0, 1]
0065             default: 1
0066 
0067           vsync-active:
0068             enum: [0, 1]
0069             default: 1
0070 
0071           pclk-sample:
0072             enum: [0, 1]
0073             default: 1
0074 
0075         required:
0076           - remote-endpoint
0077 
0078         additionalProperties: false
0079 
0080     additionalProperties: false
0081 
0082 required:
0083   - compatible
0084   - reg
0085   - clocks
0086   - clock-names
0087   - '#clock-cells'
0088   - clock-output-names
0089   - port
0090 
0091 additionalProperties: false
0092 
0093 examples:
0094   - |
0095     #include <dt-bindings/interrupt-controller/irq.h>
0096 
0097     isc: isc@f0008000 {
0098         compatible = "atmel,sama5d2-isc";
0099         reg = <0xf0008000 0x4000>;
0100         interrupts = <46 IRQ_TYPE_LEVEL_HIGH 5>;
0101         clocks = <&isc_clk>, <&iscck>, <&isc_gclk>;
0102         clock-names = "hclock", "iscck", "gck";
0103         #clock-cells = <0>;
0104         clock-output-names = "isc-mck";
0105 
0106         port {
0107                 isc_0: endpoint {
0108                        remote-endpoint = <&ov7740_0>;
0109                        hsync-active = <1>;
0110                        vsync-active = <0>;
0111                        pclk-sample = <1>;
0112                        bus-width = <8>;
0113                 };
0114         };
0115     };