diff options
author | Wenlong Zhuang <daisen.zhuang@rock-chips.com> | 2018-12-24 22:30:21 +0800 |
---|---|---|
committer | Tao Huang <huangtao@rock-chips.com> | 2018-12-26 18:34:27 +0800 |
commit | 60c62dc23c639d974c01d3acc3aa1ec7c609cd04 (patch) | |
tree | beb0569030d6c7b01cbd998e965f31b1c68ee768 /Documentation | |
parent | b4a8810527daa3ca0475977a8a27f284a8c81d0f (diff) |
dt-bindings: media: add bindings for Rockchip virtual camera.
Change-Id: I0933fdb858d7f6fef344279093af8d6f4d41b7e8
Signed-off-by: Wenlong Zhuang <daisen.zhuang@rock-chips.com>
Diffstat (limited to 'Documentation')
-rw-r--r-- | Documentation/devicetree/bindings/media/i2c/virtual-camera.txt | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/Documentation/devicetree/bindings/media/i2c/virtual-camera.txt b/Documentation/devicetree/bindings/media/i2c/virtual-camera.txt new file mode 100644 index 000000000000..553fd98f5f3c --- /dev/null +++ b/Documentation/devicetree/bindings/media/i2c/virtual-camera.txt @@ -0,0 +1,41 @@ +* Rockchip Virtual Camera + +The virtual sensor supports multiple resolutions output, +such as 1280x720,1920x1080,3840x720,3840x2160,5120x2880. +It also can support RGB24 or raw output formats. + +Required Properties: +- compatible: Must be "rockchip,virtual-camera" +- reg: I2C slave address, this value is useless. +- link-frequencies: target mipi clock frequency, half of mipi data rate. + +Optional Properties: +- width: output pixel width. +- height: output pixel height. +- bus-format: output bus format, it is a media bus format code. + +The device node must contain one 'port' child node for its digital output +video port, in accordance with the video interface bindings defined in +Documentation/devicetree/bindings/media/video-interfaces.txt. + +Example: + + &i2c0 { + ... + ... + vcamera@30 { + compatible = "rockchip,virtual-camera"; + reg = <0x30>; + width = <1920>; + height = <1080>; + bus-format = <MEDIA_BUS_FMT_BGGR8_1X8>; + + port { + vcamera_out: endpoint { + remote-endpoint = <&dphy_rx_in>; + link-frequencies = /bits/ 64 <500000000>; + }; + }; + }; + ... + }; |