Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

media: dt-bindings: ov5640: refine CSI-2 and add parallel interface

Refine CSI-2 endpoint documentation and add bindings
for DVP parallel interface support.

Signed-off-by: Hugues Fruchet <hugues.fruchet@st.com>
Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>

authored by

Hugues Fruchet and committed by
Mauro Carvalho Chehab
495f014d 0f7acb52

+44 -2
+44 -2
Documentation/devicetree/bindings/media/i2c/ov5640.txt
··· 1 - * Omnivision OV5640 MIPI CSI-2 sensor 1 + * Omnivision OV5640 MIPI CSI-2 / parallel sensor 2 2 3 3 Required Properties: 4 4 - compatible: should be "ovti,ov5640" ··· 18 18 video port, in accordance with the video interface bindings defined in 19 19 Documentation/devicetree/bindings/media/video-interfaces.txt. 20 20 21 - Example: 21 + OV5640 can be connected to a MIPI CSI-2 bus or a parallel bus endpoint. 22 + 23 + Endpoint node required properties for CSI-2 connection are: 24 + - remote-endpoint: a phandle to the bus receiver's endpoint node. 25 + - clock-lanes: should be set to <0> (clock lane on hardware lane 0) 26 + - data-lanes: should be set to <1> or <1 2> (one or two CSI-2 lanes supported) 27 + 28 + Endpoint node required properties for parallel connection are: 29 + - remote-endpoint: a phandle to the bus receiver's endpoint node. 30 + - bus-width: shall be set to <8> for 8 bits parallel bus 31 + or <10> for 10 bits parallel bus 32 + - data-shift: shall be set to <2> for 8 bits parallel bus 33 + (lines 9:2 are used) or <0> for 10 bits parallel bus 34 + - hsync-active: active state of the HSYNC signal, 0/1 for LOW/HIGH respectively. 35 + - vsync-active: active state of the VSYNC signal, 0/1 for LOW/HIGH respectively. 36 + - pclk-sample: sample data on rising (1) or falling (0) edge of the pixel clock 37 + signal. 38 + 39 + Examples: 22 40 23 41 &i2c1 { 24 42 ov5640: camera@3c { ··· 53 35 reset-gpios = <&gpio1 20 GPIO_ACTIVE_LOW>; 54 36 55 37 port { 38 + /* MIPI CSI-2 bus endpoint */ 56 39 ov5640_to_mipi_csi2: endpoint { 57 40 remote-endpoint = <&mipi_csi2_from_ov5640>; 58 41 clock-lanes = <0>; 59 42 data-lanes = <1 2>; 43 + }; 44 + }; 45 + }; 46 + }; 47 + 48 + &i2c1 { 49 + ov5640: camera@3c { 50 + compatible = "ovti,ov5640"; 51 + pinctrl-names = "default"; 52 + pinctrl-0 = <&pinctrl_ov5640>; 53 + reg = <0x3c>; 54 + clocks = <&clk_ext_camera>; 55 + clock-names = "xclk"; 56 + 57 + port { 58 + /* Parallel bus endpoint */ 59 + ov5640_to_parallel: endpoint { 60 + remote-endpoint = <&parallel_from_ov5640>; 61 + bus-width = <8>; 62 + data-shift = <2>; /* lines 9:2 are used */ 63 + hsync-active = <0>; 64 + vsync-active = <0>; 65 + pclk-sample = <1>; 60 66 }; 61 67 }; 62 68 };