Back to home page

OSCL-LXR

 
 

    


0001 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
0002 # Copyright 2019,2020 Lubomir Rintel <lkundrak@v3.sk>
0003 %YAML 1.2
0004 ---
0005 $id: http://devicetree.org/schemas/media/marvell,mmp2-ccic.yaml#
0006 $schema: http://devicetree.org/meta-schemas/core.yaml#
0007 
0008 title: Marvell MMP2 camera host interface bindings
0009 
0010 maintainers:
0011   - Lubomir Rintel <lkundrak@v3.sk>
0012 
0013 properties:
0014   $nodename:
0015     pattern: '^camera@[a-f0-9]+$'
0016 
0017   compatible:
0018     const: marvell,mmp2-ccic
0019 
0020   reg:
0021     maxItems: 1
0022 
0023   interrupts:
0024     maxItems: 1
0025 
0026   power-domains:
0027     maxItems: 1
0028 
0029   port:
0030     $ref: /schemas/graph.yaml#/$defs/port-base
0031     additionalProperties: false
0032 
0033     properties:
0034       endpoint:
0035         $ref: video-interfaces.yaml#
0036         unevaluatedProperties: false
0037 
0038         properties:
0039           hsync-active: true
0040           vsync-active: true
0041           pclk-sample: true
0042           bus-type: true
0043 
0044   clocks:
0045     minItems: 1
0046     items:
0047       - description: AXI bus interface clock
0048       - description: Peripheral clock
0049       - description: Parallel video bus interface clock
0050 
0051   clock-names:
0052     const: axi
0053 
0054   '#clock-cells':
0055     const: 0
0056 
0057   clock-output-names:
0058     const: mclk
0059 
0060 required:
0061   - compatible
0062   - reg
0063   - interrupts
0064   - port
0065 
0066 additionalProperties: false
0067 
0068 examples:
0069   - |
0070     #include <dt-bindings/clock/marvell,mmp2.h>
0071     #include <dt-bindings/power/marvell,mmp2.h>
0072 
0073     camera@d420a000 {
0074       compatible = "marvell,mmp2-ccic";
0075       reg = <0xd420a000 0x800>;
0076       interrupts = <42>;
0077       clocks = <&soc_clocks MMP2_CLK_CCIC0>;
0078       clock-names = "axi";
0079       #clock-cells = <0>;
0080       clock-output-names = "mclk";
0081       power-domains = <&soc_clocks MMP3_POWER_DOMAIN_CAMERA>;
0082 
0083       port {
0084         camera0_0: endpoint {
0085           remote-endpoint = <&ov7670_0>;
0086           bus-type = <5>;      /* Parallel */
0087           hsync-active = <1>;  /* Active high */
0088           vsync-active = <1>;  /* Active high */
0089           pclk-sample = <0>;   /* Falling */
0090         };
0091       };
0092     };
0093 
0094 ...