[PATCH v2 2/9] drm: bridge: Add LVDS encoder driver

2016-11-18 Thread Laurent Pinchart
The LVDS encoder driver is a DRM bridge driver that supports the parallel to LVDS encoders that don't require any configuration. The driver thus doesn't interact with the device, but creates an LVDS connector for the panel and exposes its size and timing based on information retrieved from DT.

[PATCH v2 5/9] drm: Add encoder_type field to the drm_bridge structure

2016-11-18 Thread Laurent Pinchart
The drm_bridge object models on- or off-chip hardware encoders and provide an abstract control API to display drivers. In order to help display drivers creating the right kind of drm_encoder object, expose the type of the hardware encoder associated with each bridge. Signed-off-by: Laurent

[PATCH v2 6/9] drm: bridge: Set bridges' encoder type

2016-11-18 Thread Laurent Pinchart
Initialize the new drm_bridge::encoder_type field to the right value for all external bridge drivers. Signed-off-by: Laurent Pinchart --- drivers/gpu/drm/bridge/adv7511/adv7511_drv.c | 1 + drivers/gpu/drm/bridge/analogix-anx78xx.c | 1 +

[PATCH v2 4/9] drm: bridge: lvds-encoder: Add thine,thc63lvdm83d compatible string

2016-11-18 Thread Laurent Pinchart
The THC63LVDM83D is a transparent LVDS encoder. Unlike dumb LVDS encoders it can be controlled through a few pins (power down, LVDS swing, clock edge selection) and requires power supplies. However, on several boards where the device is used neither the control pins nor the power supply are

[PATCH v2 7/9] drm: Set on-chip bridges' encoder type

2016-11-18 Thread Laurent Pinchart
Initialize the new drm_bridge::encoder_type field to the right value for all bridges that model on-SoC IP cores. Signed-off-by: Laurent Pinchart --- drivers/gpu/drm/exynos/exynos_drm_mic.c | 2 ++ drivers/gpu/drm/mediatek/mtk_hdmi.c | 2 ++

[PATCH v2 8/9] drm: rcar-du: Replace manual bridge implementation with DRM bridge

2016-11-18 Thread Laurent Pinchart
The rcar-du driver contains a manual implementation of HDMI and VGA bridges. Use DRM bridges to replace it. Signed-off-by: Laurent Pinchart --- drivers/gpu/drm/rcar-du/Kconfig | 6 -- drivers/gpu/drm/rcar-du/Makefile | 5 +-

[PATCH v2 0/9] R-Car DU: Use drm bridge API

2016-11-18 Thread Laurent Pinchart
Hello, This patch series replaces the custom external encoders support implementation in the R-Car DU driver with code based on the DRM bridge API. While the overall diffstat isn't impressive, the rcar-du-drm driver gets notably thinner in the process: 9 files changed, 57 insertions(+),

[PATCH v2 1/9] drm: bridge: Add LVDS encoder DT bindings

2016-11-18 Thread Laurent Pinchart
The DT bindings support parallel to LVDS encoders that don't require any configuration, similarly to the dumb VGA DAC DT bindings. Signed-off-by: Laurent Pinchart Acked-by: Rob Herring ---

[PATCH v2 08/13] arm64: dts: r8a7795: salvator-x: Add DU LVDS output endpoint

2016-11-18 Thread Laurent Pinchart
Declaring the endpoint makes LVDS enablement easier by just including the corresponding panel's dtsi file. Signed-off-by: Laurent Pinchart Signed-off-by: Simon Horman --- arch/arm64/boot/dts/renesas/r8a7795-salvator-x.dts |

[PATCH v2 12/13] drm: rcar-du: Use the DRM panel API

2016-11-18 Thread Laurent Pinchart
Instead of parsing the panel device tree node manually, use the panel API to delegate panel handling to a panel driver. Signed-off-by: Laurent Pinchart --- drivers/gpu/drm/rcar-du/Kconfig | 1 + drivers/gpu/drm/rcar-du/rcar_du_encoder.c | 12

[PATCH v2 13/13] drm: rcar-du: Add support for LVDS mode selection

2016-11-18 Thread Laurent Pinchart
Retrieve the LVDS mode from the panel and configure the LVDS encoder accordingly. LVDS mode selection is static as LVDS panels can't be hot-plugged on any of the device supported by the driver. Support for dynamic mode selection can be implemented in the future when needed. Signed-off-by: Laurent

[PATCH v2 02/13] devicetree/bindings: display: Add bindings for LVDS panels

2016-11-18 Thread Laurent Pinchart
LVDS is a physical layer specification defined in ANSI/TIA/EIA-644-A. Multiple incompatible data link layers have been used over time to transmit image data to LVDS panels. This binding supports display panels compatible with the JEIDA-59-1999, Open-LDI and VESA SWPG specifications.

[PATCH v2 10/13] ARM: shmobile: dts: Switch to panel-lvds bindings for Mitsubishi panels

2016-11-18 Thread Laurent Pinchart
The aa104xd12 and aa121td01 panels are LVDS panels, not DPI panels. Use the correct DT bindings. Signed-off-by: Laurent Pinchart --- arch/arm/boot/dts/r8a77xx-aa104xd12-panel.dtsi | 3 ++- arch/arm/boot/dts/r8a77xx-aa121td01-panel.dtsi | 3 ++- 2 files

[PATCH v2 01/13] devicetree/bindings: display: Document common panel properties

2016-11-18 Thread Laurent Pinchart
Document properties common to several display panels in a central location that can be referenced by the panel device tree bindings. Signed-off-by: Laurent Pinchart --- .../bindings/display/panel/panel-common.txt| 91 ++ 1

[PATCH v2 03/13] devicetree/bindings: display: Add bindings for two Mitsubishi panels

2016-11-18 Thread Laurent Pinchart
The AA104XD12 and AA121TD01 are LVDS display panels. Their bindings are modelled on the the LVS panel bindings. Signed-off-by: Laurent Pinchart --- .../display/panel/mitsubishi,aa104xd12.txt | 47 ++

[PATCH v2 09/13] arm64: dts: r8a7795: salvator-x: Add panel backlight support

2016-11-18 Thread Laurent Pinchart
The panel backlight is controlled through a GPIO and a PWM channel. Signed-off-by: Laurent Pinchart --- arch/arm64/boot/dts/renesas/r8a7795-salvator-x.dts | 22 ++ 1 file changed, 22 insertions(+) diff --git

[PATCH v2 11/13] drm: rcar-du: Switch to encoder .atomic_mode_set() helper function

2016-11-18 Thread Laurent Pinchart
The native encoder mode set helper function for atomic drivers is .atomic_mode_set(). Replace the legacy .mode_set() implementation. Signed-off-by: Laurent Pinchart --- drivers/gpu/drm/rcar-du/rcar_du_encoder.c | 8

[PATCH v2 06/13] drm: panels: Add LVDS panel driver

2016-11-18 Thread Laurent Pinchart
This driver supports LVDS panels that don't require device-specific handling of power supplies or control signals. It implements automatic backlight handling if the panel is attached to a backlight controller. Signed-off-by: Laurent Pinchart ---

[PATCH v2 04/13] drm: Add data mirror bus flag

2016-11-18 Thread Laurent Pinchart
The flag indicates that data is mirrored on the bus. The exact meaning is bus-type dependent. For LVDS buses it indicates that the seven data bits that transmitted in a clock pulse are sent in slots 6 to 0 order. Signed-off-by: Laurent Pinchart ---

[PATCH v2 00/13] R-Car DU: Add support for LVDS mode selection

2016-11-18 Thread Laurent Pinchart
Hello, This patch series adds support for LVDS mode selection in the R-Car DU driver. Compared to v1, the LVDS panel DT bindings (02/13) have been reworked to document common panel properties in a common file (01/13), with Mitsubishi panels bindings now properly documented (03/13). Compared to

Re: [GIT PULL] Second Round of Renesas ARM Based SoC DT Updates for v4.10

2016-11-18 Thread Olof Johansson
On Thu, Nov 17, 2016 at 03:11:45PM +0100, Simon Horman wrote: > Hi Olof, Hi Kevin, Hi Arnd, > > Please consider these second round of Renesas ARM based SoC DT updates for > v4.10. > > This pull request is based on a merge of: > > * The previous round of such requests, tagged as

Re: [GIT PULL] Renesas ARM Based SoC EtherAVB Updates for v4.10

2016-11-18 Thread Olof Johansson
On Thu, Nov 17, 2016 at 03:05:08PM +0100, Simon Horman wrote: > Hi Olof, Hi Kevin, Hi Arnd, > > Please consider these Renesas ARM based SoC EtherAVB updates for v4.10. > > This pull request is based on the "Second Round of Renesas ARM64 Based SoC > DT Updates for v4.10", tagged as

Re: [GIT PULL] Second Round of Renesas ARM64 Based SoC DT Updates for v4.10

2016-11-18 Thread Olof Johansson
On Thu, Nov 17, 2016 at 03:04:55PM +0100, Simon Horman wrote: > Hi Olof, Hi Kevin, Hi Arnd, > > Please consider these second round of Renesas ARM64 based SoC DT updates > for v4.10. > > This pull request is based on a merge of: > > * The previous round of such requests, tagged as

Re: [GIT PULL] Second Round of Renesas ARM Based SoC Updates for v4.10

2016-11-18 Thread Olof Johansson
On Thu, Nov 17, 2016 at 02:34:25PM +0100, Simon Horman wrote: > Hi Olof, Hi Kevin, Hi Arnd, > > Please consider these second round of Renesas ARM based SoC updates for v4.10. > > This pull request is based on the previous round of > such requests, tagged as renesas-soc-for-v4.10, > which I have

[PATCH 1/3] [media] v4l: rcar_fdp1: mark PM functions as __maybe_unused

2016-11-18 Thread Arnd Bergmann
The new driver produces a warning when CONFIG_PM is disabled: platform/rcar_fdp1.c:2408:12: error: 'fdp1_pm_runtime_resume' defined but not used [-Werror=unused-function] platform/rcar_fdp1.c:2399:12: error: 'fdp1_pm_runtime_suspend' defined but not used [-Werror=unused-function] This marks

[PATCH 1/2] ARM: shmobile: defconfig: Enable CONFIG_VIDEO_ADV7604

2016-11-18 Thread Niklas Söderlund
The adv7612 is used on Gen2 boards (Lager, Koelsch and Gose) for HDMI input. Enable support for this chip in shmobile_defconfig. Signed-off-by: Niklas Söderlund --- arch/arm/configs/shmobile_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git

[PATCH 2/2] ARM: shmobile: defconfig: Enable CMA for DMA

2016-11-18 Thread Niklas Söderlund
To be able to use VIN with larger frame sizes CMA memory are needed for DMA. If this is not enabled trying to capture large frames can result in errors such as: rcar-vin e6ef.video: dma_alloc_coherent of size 8388608 failed A CMA area of 64MB are needed for v4l2-compliance to pass on all

Re: [PATCH 1/2] mmc: tmio: fix wrong bitmask for SDIO irqs

2016-11-18 Thread Ulf Hansson
On 13 November 2016 at 15:29, Wolfram Sang wrote: > Commit 7729c7a232a953 ("mmc: tmio: Provide separate interrupt handlers") > refactored the sdio irq handler and wrongly used the mask for SD irqs, > not for SDIO irqs. This doesn't really matter in practice

Re: [git pull] clk: renesas: Updates for v4.10 (take two)

2016-11-18 Thread Geert Uytterhoeven
On Fri, Nov 18, 2016 at 11:12 AM, Geert Uytterhoeven wrote: > On Fri, Nov 18, 2016 at 10:59 AM, Simon Horman wrote: >> On Fri, Nov 18, 2016 at 10:55:00AM +0100, Geert Uytterhoeven wrote: >>> On Fri, Nov 18, 2016 at 12:07 AM, Stephen Boyd

[PATCH 2/2] ARM: dts: r8a7745: Add device node for PRR

2016-11-18 Thread Geert Uytterhoeven
Add a device node for the Product Register, which provides SoC product and revision information. Signed-off-by: Geert Uytterhoeven --- arch/arm/boot/dts/r8a7745.dtsi | 5 + 1 file changed, 5 insertions(+) diff --git a/arch/arm/boot/dts/r8a7745.dtsi

[PATCH 1/2] ARM: dts: r8a7743: Add device node for PRR

2016-11-18 Thread Geert Uytterhoeven
Add a device node for the Product Register, which provides SoC product and revision information. Signed-off-by: Geert Uytterhoeven --- arch/arm/boot/dts/r8a7743.dtsi | 5 + 1 file changed, 5 insertions(+) diff --git a/arch/arm/boot/dts/r8a7743.dtsi

[PATCH 0/2] ARM: dts: r8a7743/r8a7745: Add device nodes for PRR

2016-11-18 Thread Geert Uytterhoeven
Hi Simon, Magnus, This patch series adds the device nodes for the Product Register to the recently added RZ/G DTS files, which allow to provide SoC product and revision information. This depends on "[PATCH 0/2] ARM: dts: r8a7743/r8a7745: Move RST nodes before SYSC nodes". Thanks! Geert

[PATCH 1/2] ARM: dts: r8a7743: Move RST node before SYSC node

2016-11-18 Thread Geert Uytterhoeven
To preserve both alphabetical (label) and numerical ordering (unit address). Signed-off-by: Geert Uytterhoeven --- arch/arm/boot/dts/r8a7743.dtsi | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/arch/arm/boot/dts/r8a7743.dtsi

[PATCH 0/2] ARM: dts: r8a7743/r8a7745: Move RST nodes before SYSC nodes

2016-11-18 Thread Geert Uytterhoeven
Hi Simon, Magnus, This patch series moves the RST nodes in the recently added RZ/G DTS files before the SYSC nodes, to preserve both alphabetical (label) and numerical ordering (unit address). Thanks for applying! Geert Uytterhoeven (2): ARM: dts: r8a7743: Move RST node before SYSC

Re: [git pull] clk: renesas: Updates for v4.10 (take two)

2016-11-18 Thread Geert Uytterhoeven
Hi Simon, On Fri, Nov 18, 2016 at 10:59 AM, Simon Horman wrote: > On Fri, Nov 18, 2016 at 10:55:00AM +0100, Geert Uytterhoeven wrote: >> On Fri, Nov 18, 2016 at 12:07 AM, Stephen Boyd wrote: >> > On 11/07, Geert Uytterhoeven wrote: >> >> The following

Re: [git pull] clk: renesas: Updates for v4.10 (take two)

2016-11-18 Thread Simon Horman
On Fri, Nov 18, 2016 at 10:55:00AM +0100, Geert Uytterhoeven wrote: > Hi Stephen, Simon, > > On Fri, Nov 18, 2016 at 12:07 AM, Stephen Boyd wrote: > > On 11/07, Geert Uytterhoeven wrote: > >> The following changes since commit > >> dbdcc4f996df280eb2758095b4774ea62da8a2a7:

Re: [git pull] clk: renesas: Updates for v4.10 (take two)

2016-11-18 Thread Simon Horman
On Fri, Nov 18, 2016 at 10:55:37AM +0100, Simon Horman wrote: > On Thu, Nov 17, 2016 at 03:07:01PM -0800, Stephen Boyd wrote: > > On 11/07, Geert Uytterhoeven wrote: > > > Hi Mike, Stephen, > > > > > > The following changes since commit > > > dbdcc4f996df280eb2758095b4774ea62da8a2a7: > > > >

Re: [git pull] clk: renesas: Updates for v4.10 (take two)

2016-11-18 Thread Simon Horman
On Thu, Nov 17, 2016 at 03:07:01PM -0800, Stephen Boyd wrote: > On 11/07, Geert Uytterhoeven wrote: > > Hi Mike, Stephen, > > > > The following changes since commit dbdcc4f996df280eb2758095b4774ea62da8a2a7: > > > > clk: renesas: r8a7796: Add DU and LVDS clocks (2016-11-02 20:40:08 +0100) >

Re: [git pull] clk: renesas: Updates for v4.10 (take two)

2016-11-18 Thread Geert Uytterhoeven
Hi Stephen, Simon, On Fri, Nov 18, 2016 at 12:07 AM, Stephen Boyd wrote: > On 11/07, Geert Uytterhoeven wrote: >> The following changes since commit dbdcc4f996df280eb2758095b4774ea62da8a2a7: >> >> clk: renesas: r8a7796: Add DU and LVDS clocks (2016-11-02 20:40:08 +0100)