Skip to content

Commit

Permalink
Merge tag 'media/v5.5-1' of git://git.kernel.org/pub/scm/linux/kernel…
Browse files Browse the repository at this point in the history
…/git/mchehab/linux-media

Pull media updates from Mauro Carvalho Chehab:

 - uAPI documentation for stateless decoders

 - Added a new CEC ioctl together with its documentation

 - Improved IPU3 documentation

 - New i2c drivers: hi556 and imx290

 - Added support on Vivid driver for meta streams

 - Added de-interlace support for sunxi subdriver

 - Added a few new remote controler keymaps

 - Added H.265 support for Sunxi Cedrus driver

 - Another round of random driver cleanups, fixes and improvements

* tag 'media/v5.5-1' of git://git.kernel.org/pub/scm/linux/kernel/git/mchehab/linux-media: (361 commits)
  media: Revert "media: mtk-vcodec: Remove extra area allocation in an input buffer on encoding"
  media: hantro: Set H264 FIELDPIC_FLAG_E flag correctly
  media: hantro: Remove now unused H264 pic_size
  media: hantro: Use output buffer width and height for H264 decoding
  media: hantro: Reduce H264 extra space for motion vectors
  media: hantro: Fix H264 motion vector buffer offset
  media: ti-vpe: vpe: fix compatible to match bindings
  media: dt-bindings: media: ti-vpe: Document VPE driver
  media: zr364xx: remove redundant assigmnent to idx, clean up code
  media: Documentation: media: *_DEFAULT targets for subdevs
  media: hantro: Fix s_fmt for dynamic resolution changes
  media: i2c: Use the correct style for SPDX License Identifier
  media: siano: Use the correct style for SPDX License Identifier
  media: vicodec: media_device_cleanup was called too early
  media: vim2m: media_device_cleanup was called too early
  media: cedrus: Increase maximum supported size
  media: cedrus: Fix H264 4k support
  media: cedrus: Properly signal size in mode register
  media: v4l2-ctrl: Lock main_hdl on operations of requests_queued.
  media: si470x-i2c: add missed operations in remove
  ...
  • Loading branch information
Linus Torvalds committed Nov 27, 2019
2 parents 3f1b210 + 0ca40f4 commit 89d57dd
Show file tree
Hide file tree
Showing 299 changed files with 12,846 additions and 4,720 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,76 @@
# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
%YAML 1.2
---
$id: http://devicetree.org/schemas/media/allwinner,sun8i-h3-deinterlace.yaml#
$schema: http://devicetree.org/meta-schemas/core.yaml#

title: Allwinner H3 Deinterlace Device Tree Bindings

maintainers:
- Jernej Skrabec <jernej.skrabec@siol.net>
- Chen-Yu Tsai <wens@csie.org>
- Maxime Ripard <mripard@kernel.org>

description: |-
The Allwinner H3 and later has a deinterlace core used for
deinterlacing interlaced video content.
properties:
compatible:
const: allwinner,sun8i-h3-deinterlace

reg:
maxItems: 1

interrupts:
maxItems: 1

clocks:
items:
- description: Deinterlace interface clock
- description: Deinterlace module clock
- description: Deinterlace DRAM clock

clock-names:
items:
- const: bus
- const: mod
- const: ram

resets:
maxItems: 1

interconnects:
maxItems: 1

interconnect-names:
const: dma-mem

required:
- compatible
- reg
- interrupts
- clocks

additionalProperties: false

examples:
- |
#include <dt-bindings/interrupt-controller/arm-gic.h>
#include <dt-bindings/clock/sun8i-h3-ccu.h>
#include <dt-bindings/reset/sun8i-h3-ccu.h>
deinterlace: deinterlace@1400000 {
compatible = "allwinner,sun8i-h3-deinterlace";
reg = <0x01400000 0x20000>;
clocks = <&ccu CLK_BUS_DEINTERLACE>,
<&ccu CLK_DEINTERLACE>,
<&ccu CLK_DRAM_DEINTERLACE>;
clock-names = "bus", "mod", "ram";
resets = <&ccu RST_BUS_DEINTERLACE>;
interrupts = <GIC_SPI 93 IRQ_TYPE_LEVEL_HIGH>;
interconnects = <&mbus 9>;
interconnect-names = "dma-mem";
};
...
11 changes: 10 additions & 1 deletion Documentation/devicetree/bindings/media/i2c/ad5820.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,27 @@

Required Properties:

- compatible: Must contain "adi,ad5820"
- compatible: Must contain one of:
- "adi,ad5820"
- "adi,ad5821"
- "adi,ad5823"

- reg: I2C slave address

- VANA-supply: supply of voltage for VANA pin

Optional properties:

- enable-gpios : GPIO spec for the XSHUTDOWN pin. The XSHUTDOWN signal is
active low, a high level on the pin enables the device.

Example:

ad5820: coil@c {
compatible = "adi,ad5820";
reg = <0x0c>;

VANA-supply = <&vaux4>;
enable-gpios = <&msmgpio 26 GPIO_ACTIVE_HIGH>;
};

57 changes: 57 additions & 0 deletions Documentation/devicetree/bindings/media/i2c/imx290.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
* Sony IMX290 1/2.8-Inch CMOS Image Sensor

The Sony IMX290 is a 1/2.8-Inch CMOS Solid-state image sensor with
Square Pixel for Color Cameras. It is programmable through I2C and 4-wire
interfaces. The sensor output is available via CMOS logic parallel SDR output,
Low voltage LVDS DDR output and CSI-2 serial data output. The CSI-2 bus is the
default. No bindings have been defined for the other busses.

Required Properties:
- compatible: Should be "sony,imx290"
- reg: I2C bus address of the device
- clocks: Reference to the xclk clock.
- clock-names: Should be "xclk".
- clock-frequency: Frequency of the xclk clock in Hz.
- vdddo-supply: Sensor digital IO regulator.
- vdda-supply: Sensor analog regulator.
- vddd-supply: Sensor digital core regulator.

Optional Properties:
- reset-gpios: Sensor reset GPIO

The imx290 device node should contain one 'port' child node with
an 'endpoint' subnode. For further reading on port node refer to
Documentation/devicetree/bindings/media/video-interfaces.txt.

Required Properties on endpoint:
- data-lanes: check ../video-interfaces.txt
- link-frequencies: check ../video-interfaces.txt
- remote-endpoint: check ../video-interfaces.txt

Example:
&i2c1 {
...
imx290: camera-sensor@1a {
compatible = "sony,imx290";
reg = <0x1a>;

reset-gpios = <&msmgpio 35 GPIO_ACTIVE_LOW>;
pinctrl-names = "default";
pinctrl-0 = <&camera_rear_default>;

clocks = <&gcc GCC_CAMSS_MCLK0_CLK>;
clock-names = "xclk";
clock-frequency = <37125000>;

vdddo-supply = <&camera_vdddo_1v8>;
vdda-supply = <&camera_vdda_2v8>;
vddd-supply = <&camera_vddd_1v5>;

port {
imx290_ep: endpoint {
data-lanes = <1 2 3 4>;
link-frequencies = /bits/ 64 <445500000>;
remote-endpoint = <&csiphy0_ep>;
};
};
};
2 changes: 0 additions & 2 deletions Documentation/devicetree/bindings/media/i2c/nokia,smia.txt
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,6 @@ Mandatory properties
Optional properties
-------------------

- nokia,nvm-size: The size of the NVM, in bytes. If the size is not given,
the NVM contents will not be read.
- reset-gpios: XSHUTDOWN GPIO
- flash-leds: See ../video-interfaces.txt
- lens-focus: See ../video-interfaces.txt
Expand Down
9 changes: 9 additions & 0 deletions Documentation/devicetree/bindings/media/i2c/ov2659.txt
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,12 @@ Required Properties:
- clock-names: should be "xvclk".
- link-frequencies: target pixel clock frequency.

Optional Properties:
- powerdown-gpios: reference to the GPIO connected to the pwdn pin, if any.
Active high with internal pull down resistor.
- reset-gpios: reference to the GPIO connected to the resetb pin, if any.
Active low with internal pull up resistor.

For further reading on port node refer to
Documentation/devicetree/bindings/media/video-interfaces.txt.

Expand All @@ -27,6 +33,9 @@ Example:
clocks = <&clk_ov2659 0>;
clock-names = "xvclk";

powerdown-gpios = <&gpio6 14 GPIO_ACTIVE_HIGH>;
reset-gpios = <&gpio6 15 GPIO_ACTIVE_LOW>;

port {
ov2659_0: endpoint {
remote-endpoint = <&vpfe_ep>;
Expand Down
1 change: 1 addition & 0 deletions Documentation/devicetree/bindings/media/rc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ properties:
- rc-avermedia-rm-ks
- rc-avertv-303
- rc-azurewave-ad-tu700
- rc-beelink-gs1
- rc-behold
- rc-behold-columbus
- rc-budget-ci-old
Expand Down
1 change: 1 addition & 0 deletions Documentation/devicetree/bindings/media/renesas,csi2.txt
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ Mandatory properties
--------------------
- compatible: Must be one or more of the following
- "renesas,r8a774a1-csi2" for the R8A774A1 device.
- "renesas,r8a774b1-csi2" for the R8A774B1 device.
- "renesas,r8a774c0-csi2" for the R8A774C0 device.
- "renesas,r8a7795-csi2" for the R8A7795 device.
- "renesas,r8a7796-csi2" for the R8A7796 device.
Expand Down
5 changes: 3 additions & 2 deletions Documentation/devicetree/bindings/media/renesas,vin.txt
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ on Gen3 and RZ/G2 platforms to a CSI-2 receiver.
- "renesas,vin-r8a7744" for the R8A7744 device
- "renesas,vin-r8a7745" for the R8A7745 device
- "renesas,vin-r8a774a1" for the R8A774A1 device
- "renesas,vin-r8a774b1" for the R8A774B1 device
- "renesas,vin-r8a774c0" for the R8A774C0 device
- "renesas,vin-r8a7778" for the R8A7778 device
- "renesas,vin-r8a7779" for the R8A7779 device
Expand Down Expand Up @@ -43,7 +44,7 @@ on Gen3 and RZ/G2 platforms to a CSI-2 receiver.
Additionally, an alias named vinX will need to be created to specify
which video input device this is.

The per-board settings Gen2 platforms:
The per-board settings for Gen2 and RZ/G1 platforms:

- port - sub-node describing a single endpoint connected to the VIN
from external SoC pins as described in video-interfaces.txt[1].
Expand All @@ -63,7 +64,7 @@ The per-board settings Gen2 platforms:
- data-enable-active: polarity of CLKENB signal, see [1] for
description. Default is active high.

The per-board settings Gen3 and RZ/G2 platforms:
The per-board settings for Gen3 and RZ/G2 platforms:

Gen3 and RZ/G2 platforms can support both a single connected parallel input
source from external SoC pins (port@0) and/or multiple parallel input sources
Expand Down
17 changes: 0 additions & 17 deletions Documentation/devicetree/bindings/media/sh_mobile_ceu.txt

This file was deleted.

64 changes: 64 additions & 0 deletions Documentation/devicetree/bindings/media/ti,vpe.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
%YAML 1.2
---
$id: http://devicetree.org/schemas/media/ti,vpe.yaml#
$schema: http://devicetree.org/meta-schemas/core.yaml#

title: Texas Instruments DRA7x Video Processing Engine (VPE) Device Tree Bindings

maintainers:
- Benoit Parrot <bparrot@ti.com>

description: |-
The Video Processing Engine (VPE) is a key component for image post
processing applications. VPE consist of a single memory to memory
path which can perform chroma up/down sampling, deinterlacing,
scaling and color space conversion.
properties:
compatible:
const: ti,dra7-vpe

reg:
items:
- description: The VPE main register region
- description: Scaler (SC) register region
- description: Color Space Conversion (CSC) register region
- description: Video Port Direct Memory Access (VPDMA) register region

reg-names:
items:
- const: vpe_top
- const: sc
- const: csc
- const: vpdma

interrupts:
maxItems: 1

required:
- compatible
- reg
- reg-names
- interrupts

additionalProperties: false

examples:
- |
#include <dt-bindings/interrupt-controller/arm-gic.h>
vpe: vpe@489d0000 {
compatible = "ti,dra7-vpe";
reg = <0x489d0000 0x120>,
<0x489d0700 0x80>,
<0x489d5700 0x18>,
<0x489dd000 0x400>;
reg-names = "vpe_top",
"sc",
"csc",
"vpdma";
interrupts = <GIC_SPI 354 IRQ_TYPE_LEVEL_HIGH>;
};
...
Loading

0 comments on commit 89d57dd

Please sign in to comment.