1*466a78e1SBhargav Joshi# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 2*466a78e1SBhargav Joshi%YAML 1.2 3*466a78e1SBhargav Joshi--- 4*466a78e1SBhargav Joshi$id: http://devicetree.org/schemas/media/ti,am437x-vpfe.yaml# 5*466a78e1SBhargav Joshi$schema: http://devicetree.org/meta-schemas/core.yaml# 6*466a78e1SBhargav Joshi 7*466a78e1SBhargav Joshititle: Texas Instruments AM437x CAMERA Video Processing Front End (VPFE) 8*466a78e1SBhargav Joshi 9*466a78e1SBhargav Joshimaintainers: 10*466a78e1SBhargav Joshi - Benoit Parrot <bparrot@ti.com> 11*466a78e1SBhargav Joshi - Bhargav Joshi <j.bhargav.u@gmail.com> 12*466a78e1SBhargav Joshi 13*466a78e1SBhargav Joshidescription: 14*466a78e1SBhargav Joshi The Video Processing Front End (VPFE) is a key component for image capture 15*466a78e1SBhargav Joshi applications. The capture module provides the system interface and the 16*466a78e1SBhargav Joshi processing capability to connect RAW image-sensor modules and video decoders 17*466a78e1SBhargav Joshi to the AM437x device. 18*466a78e1SBhargav Joshi 19*466a78e1SBhargav Joshiproperties: 20*466a78e1SBhargav Joshi compatible: 21*466a78e1SBhargav Joshi const: ti,am437x-vpfe 22*466a78e1SBhargav Joshi 23*466a78e1SBhargav Joshi reg: 24*466a78e1SBhargav Joshi maxItems: 1 25*466a78e1SBhargav Joshi 26*466a78e1SBhargav Joshi interrupts: 27*466a78e1SBhargav Joshi maxItems: 1 28*466a78e1SBhargav Joshi 29*466a78e1SBhargav Joshi port: 30*466a78e1SBhargav Joshi $ref: /schemas/graph.yaml#/$defs/port-base 31*466a78e1SBhargav Joshi unevaluatedProperties: false 32*466a78e1SBhargav Joshi description: 33*466a78e1SBhargav Joshi A single parallel input port connecting to an external image sensor or 34*466a78e1SBhargav Joshi video decoder. The VPFE supports only one input port per instance. 35*466a78e1SBhargav Joshi 36*466a78e1SBhargav Joshi properties: 37*466a78e1SBhargav Joshi endpoint: 38*466a78e1SBhargav Joshi $ref: video-interfaces.yaml# 39*466a78e1SBhargav Joshi unevaluatedProperties: false 40*466a78e1SBhargav Joshi 41*466a78e1SBhargav Joshi properties: 42*466a78e1SBhargav Joshi ti,am437x-vpfe-interface: 43*466a78e1SBhargav Joshi $ref: /schemas/types.yaml#/definitions/uint32 44*466a78e1SBhargav Joshi enum: [0, 1, 2, 3, 4] 45*466a78e1SBhargav Joshi description: 46*466a78e1SBhargav Joshi Selects the VPFE input interface type can be one of following 47*466a78e1SBhargav Joshi 0 - Raw Bayer (VPFE_RAW_BAYER) 48*466a78e1SBhargav Joshi 1 - BT.656 8-bit (VPFE_BT656) 49*466a78e1SBhargav Joshi 2 - BT.656 10-bit (VPFE_BT656_10BIT) 50*466a78e1SBhargav Joshi 3 - YCbCr 8-bit sync (VPFE_YCBCR_SYNC_8) 51*466a78e1SBhargav Joshi 4 - YCbCr 16-bit sync (VPFE_YCBCR_SYNC_16) 52*466a78e1SBhargav Joshi 53*466a78e1SBhargav Joshi bus-width: 54*466a78e1SBhargav Joshi minimum: 8 55*466a78e1SBhargav Joshi maximum: 16 56*466a78e1SBhargav Joshi 57*466a78e1SBhargav Joshi required: 58*466a78e1SBhargav Joshi - remote-endpoint 59*466a78e1SBhargav Joshi - ti,am437x-vpfe-interface 60*466a78e1SBhargav Joshi - bus-width 61*466a78e1SBhargav Joshi 62*466a78e1SBhargav Joshirequired: 63*466a78e1SBhargav Joshi - compatible 64*466a78e1SBhargav Joshi - reg 65*466a78e1SBhargav Joshi - interrupts 66*466a78e1SBhargav Joshi - port 67*466a78e1SBhargav Joshi 68*466a78e1SBhargav JoshiadditionalProperties: false 69*466a78e1SBhargav Joshi 70*466a78e1SBhargav Joshiexamples: 71*466a78e1SBhargav Joshi - | 72*466a78e1SBhargav Joshi #include <dt-bindings/interrupt-controller/arm-gic.h> 73*466a78e1SBhargav Joshi #include <dt-bindings/interrupt-controller/irq.h> 74*466a78e1SBhargav Joshi 75*466a78e1SBhargav Joshi vpfe@48328000{ 76*466a78e1SBhargav Joshi compatible = "ti,am437x-vpfe"; 77*466a78e1SBhargav Joshi reg = <0x48328000 0x2000>; 78*466a78e1SBhargav Joshi interrupts = <GIC_SPI 50 IRQ_TYPE_LEVEL_HIGH>; 79*466a78e1SBhargav Joshi 80*466a78e1SBhargav Joshi pinctrl-names = "default", "sleep"; 81*466a78e1SBhargav Joshi pinctrl-0 = <&vpfe_pins_default>; 82*466a78e1SBhargav Joshi pinctrl-1 = <&vpfe_pins_sleep>; 83*466a78e1SBhargav Joshi 84*466a78e1SBhargav Joshi port { 85*466a78e1SBhargav Joshi vpfe0_ep: endpoint { 86*466a78e1SBhargav Joshi remote-endpoint = <&ov2659_1>; 87*466a78e1SBhargav Joshi ti,am437x-vpfe-interface = <0>; 88*466a78e1SBhargav Joshi bus-width = <8>; 89*466a78e1SBhargav Joshi hsync-active = <0>; 90*466a78e1SBhargav Joshi vsync-active = <0>; 91*466a78e1SBhargav Joshi }; 92*466a78e1SBhargav Joshi }; 93*466a78e1SBhargav Joshi }; 94