~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

TOMOYO Linux Cross Reference
Linux/Documentation/devicetree/bindings/media/allwinner,sun4i-a10-csi.yaml

Version: ~ [ linux-6.12-rc7 ] ~ [ linux-6.11.7 ] ~ [ linux-6.10.14 ] ~ [ linux-6.9.12 ] ~ [ linux-6.8.12 ] ~ [ linux-6.7.12 ] ~ [ linux-6.6.60 ] ~ [ linux-6.5.13 ] ~ [ linux-6.4.16 ] ~ [ linux-6.3.13 ] ~ [ linux-6.2.16 ] ~ [ linux-6.1.116 ] ~ [ linux-6.0.19 ] ~ [ linux-5.19.17 ] ~ [ linux-5.18.19 ] ~ [ linux-5.17.15 ] ~ [ linux-5.16.20 ] ~ [ linux-5.15.171 ] ~ [ linux-5.14.21 ] ~ [ linux-5.13.19 ] ~ [ linux-5.12.19 ] ~ [ linux-5.11.22 ] ~ [ linux-5.10.229 ] ~ [ linux-5.9.16 ] ~ [ linux-5.8.18 ] ~ [ linux-5.7.19 ] ~ [ linux-5.6.19 ] ~ [ linux-5.5.19 ] ~ [ linux-5.4.285 ] ~ [ linux-5.3.18 ] ~ [ linux-5.2.21 ] ~ [ linux-5.1.21 ] ~ [ linux-5.0.21 ] ~ [ linux-4.20.17 ] ~ [ linux-4.19.323 ] ~ [ linux-4.18.20 ] ~ [ linux-4.17.19 ] ~ [ linux-4.16.18 ] ~ [ linux-4.15.18 ] ~ [ linux-4.14.336 ] ~ [ linux-4.13.16 ] ~ [ linux-4.12.14 ] ~ [ linux-4.11.12 ] ~ [ linux-4.10.17 ] ~ [ linux-4.9.337 ] ~ [ linux-4.4.302 ] ~ [ linux-3.10.108 ] ~ [ linux-2.6.32.71 ] ~ [ linux-2.6.0 ] ~ [ linux-2.4.37.11 ] ~ [ unix-v6-master ] ~ [ ccs-tools-1.8.12 ] ~ [ policy-sample ] ~
Architecture: ~ [ i386 ] ~ [ alpha ] ~ [ m68k ] ~ [ mips ] ~ [ ppc ] ~ [ sparc ] ~ [ sparc64 ] ~

  1 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
  2 %YAML 1.2
  3 ---
  4 $id: http://devicetree.org/schemas/media/allwinner,sun4i-a10-csi.yaml#
  5 $schema: http://devicetree.org/meta-schemas/core.yaml#
  6 
  7 title: Allwinner A10 CMOS Sensor Interface (CSI)
  8 
  9 maintainers:
 10   - Chen-Yu Tsai <wens@csie.org>
 11   - Maxime Ripard <mripard@kernel.org>
 12 
 13 description: |-
 14   The Allwinner A10 and later has a CMOS Sensor Interface to retrieve
 15   frames from a parallel or BT656 sensor.
 16 
 17 properties:
 18   compatible:
 19     oneOf:
 20       - const: allwinner,sun4i-a10-csi1
 21       - const: allwinner,sun7i-a20-csi0
 22       - items:
 23           - const: allwinner,sun7i-a20-csi1
 24           - const: allwinner,sun4i-a10-csi1
 25       - items:
 26           - const: allwinner,sun8i-r40-csi0
 27           - const: allwinner,sun7i-a20-csi0
 28 
 29   reg:
 30     maxItems: 1
 31 
 32   interrupts:
 33     maxItems: 1
 34 
 35   clocks:
 36     oneOf:
 37       - items:
 38           - description: The CSI interface clock
 39           - description: The CSI DRAM clock
 40 
 41       - items:
 42           - description: The CSI interface clock
 43           - description: The CSI ISP clock
 44           - description: The CSI DRAM clock
 45 
 46   clock-names:
 47     oneOf:
 48       - items:
 49           - const: bus
 50           - const: ram
 51 
 52       - items:
 53           - const: bus
 54           - const: isp
 55           - const: ram
 56 
 57   resets:
 58     maxItems: 1
 59 
 60   # FIXME: This should be made required eventually once every SoC will
 61   # have the MBUS declared.
 62   interconnects:
 63     maxItems: 1
 64 
 65   # FIXME: This should be made required eventually once every SoC will
 66   # have the MBUS declared.
 67   interconnect-names:
 68     const: dma-mem
 69 
 70   port:
 71     $ref: /schemas/graph.yaml#/$defs/port-base
 72     additionalProperties: false
 73 
 74     properties:
 75       endpoint:
 76         $ref: video-interfaces.yaml#
 77         unevaluatedProperties: false
 78 
 79         properties:
 80           bus-width:
 81             enum: [8, 16]
 82 
 83           data-active: true
 84           hsync-active: true
 85           pclk-sample: true
 86           vsync-active: true
 87 
 88         required:
 89           - bus-width
 90           - data-active
 91           - hsync-active
 92           - pclk-sample
 93           - vsync-active
 94 
 95 required:
 96   - compatible
 97   - reg
 98   - interrupts
 99   - clocks
100 
101 additionalProperties: false
102 
103 examples:
104   - |
105     #include <dt-bindings/interrupt-controller/arm-gic.h>
106     #include <dt-bindings/clock/sun7i-a20-ccu.h>
107     #include <dt-bindings/reset/sun4i-a10-ccu.h>
108 
109     csi0: csi@1c09000 {
110         compatible = "allwinner,sun7i-a20-csi0";
111         reg = <0x01c09000 0x1000>;
112         interrupts = <GIC_SPI 42 IRQ_TYPE_LEVEL_HIGH>;
113         clocks = <&ccu CLK_AHB_CSI0>, <&ccu CLK_CSI_SCLK>, <&ccu CLK_DRAM_CSI0>;
114         clock-names = "bus", "isp", "ram";
115         resets = <&ccu RST_CSI0>;
116 
117         port {
118             csi_from_ov5640: endpoint {
119                 remote-endpoint = <&ov5640_to_csi>;
120                 bus-width = <8>;
121                 hsync-active = <1>; /* Active high */
122                 vsync-active = <0>; /* Active low */
123                 data-active = <1>;  /* Active high */
124                 pclk-sample = <1>;  /* Rising */
125             };
126         };
127     };
128 
129 ...

~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

kernel.org | git.kernel.org | LWN.net | Project Home | SVN repository | Mail admin

Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.

sflogo.php