[linux-sunxi] Re: [PATCH v7 4/8] drm/sunxi: Add DT bindings documentation of Allwinner HDMI

2016-12-01 Thread Jean-Francois Moine
On Thu, 01 Dec 2016 12:41:20 +0200 Laurent Pinchart wrote: > > > If a DVI connector instead of a HDMI connector is soldered, how > > > should such a device tree be written? > > > > Use a dvi-connector instead :) > > The HDMI encoder DT node doesn't (and certainly shouldn't) report what type >

[PATCH v7 4/8] drm/sunxi: Add DT bindings documentation of Allwinner HDMI

2016-11-30 Thread Jean-Francois Moine
On Wed, 30 Nov 2016 11:52:25 +0200 Laurent Pinchart wrote: > Hi Jean-François, > > On Wednesday 30 Nov 2016 10:27:57 Jean-Francois Moine wrote: > > On Wed, 30 Nov 2016 10:20:21 +0200 Laurent Pinchart wrote: > > >> Well, I don't see what this connector can

[PATCH v7 4/8] drm/sunxi: Add DT bindings documentation of Allwinner HDMI

2016-11-30 Thread Jean-Francois Moine
On Wed, 30 Nov 2016 10:20:21 +0200 Laurent Pinchart wrote: > > Well, I don't see what this connector can be. > > May you give me a DT example? > > Sure. > > arch/arm/boot/dts/r8a7791-koelsch.dts > > /* HDMI encoder */ > > hdmi at 39 { > compatible = "adi,adv751

[PATCH v7 0/8] drm: sun8i: Add DE2 HDMI video support

2016-11-30 Thread Jean-Francois Moine
On Tue, 29 Nov 2016 22:36:50 +0100 Maxime Ripard wrote: > On Tue, Nov 29, 2016 at 11:18:35AM +0100, Jean-Francois Moine wrote: > > This patchset series adds HDMI video support to the Allwinner > > sun8i SoCs which include the display engine 2 (DE2). > > The driver contains

[PATCH v7 4/8] drm/sunxi: Add DT bindings documentation of Allwinner HDMI

2016-11-30 Thread Jean-Francois Moine
On Tue, 29 Nov 2016 22:10:01 +0200 Laurent Pinchart wrote: > Hi Jean-François, > > On Tuesday 29 Nov 2016 21:04:55 Jean-Francois Moine wrote: > > On Tue, 29 Nov 2016 21:33 +0200 Laurent Pinchart wrote: > > >>> You need a third port for the HDMI encoder output

[PATCH v7 4/8] drm/sunxi: Add DT bindings documentation of Allwinner HDMI

2016-11-29 Thread Jean-Francois Moine
On Tue, 29 Nov 2016 21:33 +0200 Laurent Pinchart wrote: > > > You need a third port for the HDMI encoder output, connected to an HDMI > > > connector DT node. > > > > I don't see what you mean. The HDMI device is both the encoder > > and connector (as the TDA998x): > > The driver might create b

[PATCH v7 4/8] drm/sunxi: Add DT bindings documentation of Allwinner HDMI

2016-11-29 Thread Jean-Francois Moine
On Tue, 29 Nov 2016 20:46:22 +0200 Laurent Pinchart wrote: [snip] > > +Example: > > + > > + hdmi: hdmi at 01ee { > > + compatible = "allwinner,sun8i-a83t-hdmi"; > > + reg = <0x01ee 0x2>; > > + clocks = <&ccu CLK_BUS_HDMI>, <&ccu CLK_HDMI>, > > +

[PATCH v7 0/8] drm: sun8i: Add DE2 HDMI video support

2016-11-29 Thread Jean-Francois Moine
- generation for all SUNXI SoCs (Andre Przywara) v2: - remove the HDMI driver - remarks from Chen-Yu Tsai and Russell King - DT documentation added Jean-Francois Moine (8): drm: sun8i: Add a basic DRM driver for Allwinner DE2 drm/sun8i: Add DT bindings documentation of

[PATCH v7 8/8] ARM: dts: sun8i-h3: Add HDMI video to the Orange PI 2

2016-11-29 Thread Jean-Francois Moine
Signed-off-by: Jean-Francois Moine --- arch/arm/boot/dts/sun8i-h3-orangepi-2.dts | 12 1 file changed, 12 insertions(+) diff --git a/arch/arm/boot/dts/sun8i-h3-orangepi-2.dts b/arch/arm/boot/dts/sun8i-h3-orangepi-2.dts index 047e9e1..7712972 100644 --- a/arch/arm/boot/dts/sun8i-h3

[PATCH v7 7/8] ARM: dts: sun8i-h3: Add HDMI video to the Banana Pi M2+

2016-11-29 Thread Jean-Francois Moine
Signed-off-by: Jean-Francois Moine --- arch/arm/boot/dts/sun8i-h3-bananapi-m2-plus.dts | 12 1 file changed, 12 insertions(+) diff --git a/arch/arm/boot/dts/sun8i-h3-bananapi-m2-plus.dts b/arch/arm/boot/dts/sun8i-h3-bananapi-m2-plus.dts index c0c49dd..9f3e2f8 100644 --- a/arch/arm

[PATCH v7 6/8] ARM: dts: sun8i-h3: add HDMI video nodes

2016-11-29 Thread Jean-Francois Moine
Signed-off-by: Jean-Francois Moine --- Note 1: The DE clock is not set in the driver. Instead, it is set at system startup time by 'assigned-clocks', but there is a problem in sunxi-ng which uses readl_relaxed_poll_timeout(), and, as noticed by Ondřej Jirman, this function is not

[PATCH v7 5/8] clk: sunxi-ng: define the PLL DE clock

2016-11-29 Thread Jean-Francois Moine
Signed-off-by: Jean-Francois Moine --- include/dt-bindings/clock/sun8i-h3-ccu.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/dt-bindings/clock/sun8i-h3-ccu.h b/include/dt-bindings/clock/sun8i-h3-ccu.h index efb7ba2..7af57b7 100644 --- a/include/dt-bindings/clock/sun8i-h3-ccu.h

[PATCH v7 4/8] drm/sunxi: Add DT bindings documentation of Allwinner HDMI

2016-11-29 Thread Jean-Francois Moine
Signed-off-by: Jean-Francois Moine --- .../devicetree/bindings/display/sunxi/hdmi.txt | 56 ++ 1 file changed, 56 insertions(+) create mode 100644 Documentation/devicetree/bindings/display/sunxi/hdmi.txt diff --git a/Documentation/devicetree/bindings/display/sunxi

[PATCH v7 3/8] drm: sun8i: add HDMI video support to A83T and H3

2016-11-29 Thread Jean-Francois Moine
Signed-off-by: Jean-Francois Moine --- drivers/gpu/drm/sun8i/Kconfig | 7 + drivers/gpu/drm/sun8i/Makefile | 2 + drivers/gpu/drm/sun8i/de2_hdmi.c| 440 +++ drivers/gpu/drm/sun8i/de2_hdmi.h| 51 +++ drivers/gpu/drm/sun8i/de2_hdmi_io.c | 843

[PATCH v7 2/8] drm/sun8i: Add DT bindings documentation of Allwinner DE2

2016-11-28 Thread Jean-Francois Moine
Signed-off-by: Jean-Francois Moine --- .../bindings/display/sunxi/sun8i-de2.txt | 121 + 1 file changed, 121 insertions(+) create mode 100644 Documentation/devicetree/bindings/display/sunxi/sun8i-de2.txt diff --git a/Documentation/devicetree/bindings/display

[PATCH v7 1/8] drm: sun8i: Add a basic DRM driver for Allwinner DE2

2016-11-28 Thread Jean-Francois Moine
Allwinner's recent SoCs, as A64, A83T and H3, contain a new display engine, DE2. This patch adds a DRM video driver for this device. Signed-off-by: Jean-Francois Moine --- drivers/gpu/drm/Kconfig | 2 + drivers/gpu/drm/Makefile | 1 + drivers/gpu/drm/sun8i/Kc

[PATCH v6 3/5] ARM: dts: sun8i-h3: add HDMI video nodes

2016-11-25 Thread Jean-Francois Moine
On Fri, 25 Nov 2016 17:41:51 +0800 Icenowy Zheng wrote: > After removing CLK_PLL_DE's assigned-clock, the kernel passes compilation. The 'pll-de' and 'de' must have a fixed rate. Otherwise, if you do not use the legacy u-boot, I don't know which can be the rate of the DE. > However, it cannot r

[linux-sunxi] [PATCH v6 0/5] drm: sun8i: Add DE2 HDMI video support

2016-11-21 Thread Jean-Francois Moine
On Mon, 21 Nov 2016 01:54:53 +0100 Ondřej Jirman wrote: > Dne 20.11.2016 v 12:32 Jean-Francois Moine napsal(a): > > This patchset series adds HDMI video support to the Allwinner > > sun8i SoCs which include the display engine 2 (DE2). > > The driver contains the code for th

[PATCH v6 0/5] drm: sun8i: Add DE2 HDMI video support

2016-11-20 Thread Jean-Francois Moine
3: - add the hardware cursor - simplify and fix the DE2 init sequences - generation for all SUNXI SoCs (Andre Przywara) v2: - remove the HDMI driver - remarks from Chen-Yu Tsai and Russell King - DT documentation added Jean-Francois Moine (5): drm: su

[PATCH v6 5/5] ARM: dts: sun8i-h3: Add HDMI video to the Orange PI 2

2016-11-20 Thread Jean-Francois Moine
Signed-off-by: Jean-Francois Moine --- arch/arm/boot/dts/sun8i-h3-orangepi-2.dts | 13 + 1 file changed, 13 insertions(+) diff --git a/arch/arm/boot/dts/sun8i-h3-orangepi-2.dts b/arch/arm/boot/dts/sun8i-h3-orangepi-2.dts index 047e9e1..9ecc6f1 100644 --- a/arch/arm/boot/dts/sun8i

[PATCH v6 4/5] ARM: dts: sun8i-h3: Add HDMI video to the Banana Pi M2+

2016-11-20 Thread Jean-Francois Moine
Signed-off-by: Jean-Francois Moine --- arch/arm/boot/dts/sun8i-h3-bananapi-m2-plus.dts | 13 + 1 file changed, 13 insertions(+) diff --git a/arch/arm/boot/dts/sun8i-h3-bananapi-m2-plus.dts b/arch/arm/boot/dts/sun8i-h3-bananapi-m2-plus.dts index c0c49dd..4b5baae 100644 --- a/arch

[PATCH v6 3/5] ARM: dts: sun8i-h3: add HDMI video nodes

2016-11-20 Thread Jean-Francois Moine
Signed-off-by: Jean-Francois Moine --- arch/arm/boot/dts/sun8i-h3.dtsi | 51 + 1 file changed, 51 insertions(+) diff --git a/arch/arm/boot/dts/sun8i-h3.dtsi b/arch/arm/boot/dts/sun8i-h3.dtsi index 416b825..7c6b1d5 100644 --- a/arch/arm/boot/dts/sun8i-h3

[PATCH v6 2/5] drm: sun8i: add HDMI video support to A83T and H3

2016-11-20 Thread Jean-Francois Moine
This patch adds a HDMI video driver to the Allwinner's SoCs A83T and H3. Signed-off-by: Jean-Francois Moine --- .../devicetree/bindings/display/sunxi/hdmi.txt | 53 ++ drivers/gpu/drm/sun8i/Kconfig | 7 + drivers/gpu/drm/sun8i/Makefile

[PATCH v6 1/5] drm: sun8i: Add a basic DRM driver for Allwinner DE2

2016-11-20 Thread Jean-Francois Moine
Allwinner's recent SoCs, as A64, A83T and H3, contain a new display engine, DE2. This patch adds a DRM video driver for this device. Signed-off-by: Jean-Francois Moine --- .../bindings/display/sunxi/sun8i-de2.txt | 83 +++ drivers/gpu/drm/Kconfig

[PATCH v5 1/7] drm: sunxi: Add a basic DRM driver for Allwinner DE2

2016-11-17 Thread Jean-Francois Moine
On Wed, 16 Nov 2016 22:33:06 +0100 Maxime Ripard wrote: > > > > The Device Engine just handles the planes of the LCDs, but, indeed, > > > > the LCDs must know about the DE and the DE must know about the LCDs. > > > > There are 2 ways to realize this knowledge in the DT: > > > > 1) either the DE h

[PATCH v5 1/7] drm: sunxi: Add a basic DRM driver for Allwinner DE2

2016-11-08 Thread Jean-Francois Moine
On Mon, 7 Nov 2016 23:37:41 +0100 Maxime Ripard wrote: > Hi, > > On Fri, Oct 28, 2016 at 07:34:20PM +0200, Jean-Francois Moine wrote: > > On Fri, 28 Oct 2016 00:03:16 +0200 > > Maxime Ripard wrote: [snip] > > > > > We've been calling them bus a

[linux-sunxi] [PATCH v5 4/7] ASoC: sunxi: Add sun8i I2S driver

2016-11-08 Thread Jean-Francois Moine
On Mon, 7 Nov 2016 21:05:05 +0100 Maxime Ripard wrote: > Hi, > > On Sun, Nov 06, 2016 at 07:02:48PM +0100, Jean-Francois Moine wrote: > > On Sun, 23 Oct 2016 09:33:16 +0800 > > Chen-Yu Tsai wrote: > > > > > On Fri, Oct 21, 2016 at 4:36 PM, Jean-Francois Moi

[linux-sunxi] [PATCH v5 4/7] ASoC: sunxi: Add sun8i I2S driver

2016-11-06 Thread Jean-Francois Moine
On Sun, 23 Oct 2016 09:33:16 +0800 Chen-Yu Tsai wrote: > On Fri, Oct 21, 2016 at 4:36 PM, Jean-Francois Moine > wrote: > > This patch adds I2S support to sun8i SoCs as the A83T and H3. > > > > Signed-off-by: Jean-Francois Moine > > --- > > Note: This driv

[PATCH v5 1/7] drm: sunxi: Add a basic DRM driver for Allwinner DE2

2016-10-28 Thread Jean-Francois Moine
On Fri, 28 Oct 2016 00:03:16 +0200 Maxime Ripard wrote: > On Tue, Oct 25, 2016 at 04:14:41PM +0200, Jean-Francois Moine wrote: > > > > +Display controller > > > > +== > > > > + > > > > +Required properties: > > > >

[linux-sunxi] [PATCH v5 2/7] ASoC: sunxi: Add a simple HDMI CODEC

2016-10-27 Thread Jean-Francois Moine
On Fri, 28 Oct 2016 00:54:34 +0800 Chen-Yu Tsai wrote: > There's already a driver for basically the same thing: > > sound/soc/codec/hdmi-codec.c > > You use it by registering a sub-device from your hdmi driver, with the > proper platform_data and callbacks. Grep for HDMI_CODEC_DRV_NAME for

[alsa-devel] [linux-sunxi] [PATCH v5 4/7] ASoC: sunxi: Add sun8i I2S driver

2016-10-27 Thread Jean-Francois Moine
On Mon, 24 Oct 2016 14:34:49 +0200 Maxime Ripard wrote: > Hi, > > On Sun, Oct 23, 2016 at 09:45:03AM +0200, Jean-Francois Moine wrote: > > On Sun, 23 Oct 2016 09:33:16 +0800 > > Chen-Yu Tsai wrote: > > > > > > Note: This driver is closed to the sun4i-i2

[PATCH v5 1/7] drm: sunxi: Add a basic DRM driver for Allwinner DE2

2016-10-25 Thread Jean-Francois Moine
On Tue, 25 Oct 2016 08:44:22 +0200 Daniel Vetter wrote: > > + /* start the subdevices */ > > + ret = component_bind_all(dev, drm); > > + if (ret < 0) > > + goto out2; > > + > > + ret = drm_dev_register(drm, 0); > > This needs to be the very last step in your driver load sequenc

[PATCH v5 1/7] drm: sunxi: Add a basic DRM driver for Allwinner DE2

2016-10-25 Thread Jean-Francois Moine
On Mon, 24 Oct 2016 16:04:19 +0200 Maxime Ripard wrote: > Hi, Hi Maxime, > On Fri, Oct 21, 2016 at 09:26:18AM +0200, Jean-Francois Moine wrote: > > Allwinner's recent SoCs, as A64, A83T and H3, contain a new display > > engine, DE2. > > This patch adds a DRM

[linux-sunxi] [PATCH v5 4/7] ASoC: sunxi: Add sun8i I2S driver

2016-10-23 Thread Jean-Francois Moine
On Sun, 23 Oct 2016 09:33:16 +0800 Chen-Yu Tsai wrote: > > Note: This driver is closed to the sun4i-i2s except that: > > - it handles the H3 > > If it's close to sun4i-i2s, you should probably rework that one to support > the newer SoCs. > > > - it creates the sound card (with sun4i-i2s, the so

[linux-sunxi] [PATCH v5 0/7] ARM: ASoC: drm: sun8i: Add DE2 HDMI audio and video

2016-10-23 Thread Jean-Francois Moine
On Sun, 23 Oct 2016 09:38:04 +0800 Chen-Yu Tsai wrote: > > Recently, an announce about Tina OS for the R series > > https://www.youtube.com/watch?v=h7KD-6HblAU > > was followed by the upload of a new linux-3.4 source tree > > https://github.com/tinalinux/linux-3.4 > > with files c

[PATCH v5 0/7] ARM: ASoC: drm: sun8i: Add DE2 HDMI audio and video

2016-10-22 Thread Jean-Francois Moine
elikov) v3: - add the hardware cursor - simplify and fix the DE2 init sequences - generation for all SUNXI SoCs (Andre Przywara) v2: - remove the HDMI driver - remarks from Chen-Yu Tsai and Russell King - DT documentation added Jean-Francois Moine

[PATCH v5 7/7] ARM: dts: sun8i-h3: Add HDMI audio and video to the Orange PI 2

2016-10-22 Thread Jean-Francois Moine
Signed-off-by: Jean-Francois Moine --- The same patch may be applied to other H3 based boards (Orange PI xx). --- arch/arm/boot/dts/sun8i-h3-orangepi-2.dts | 17 + 1 file changed, 17 insertions(+) diff --git a/arch/arm/boot/dts/sun8i-h3-orangepi-2.dts b/arch/arm/boot/dts/sun8i

[PATCH v5 6/7] ARM: dts: sun8i-h3: Add HDMI audio and video to the Banana Pi M2+

2016-10-22 Thread Jean-Francois Moine
Signed-off-by: Jean-Francois Moine --- The patch for the Banana Pi M3 (A83T) is the same as this one. --- arch/arm/boot/dts/sun8i-h3-bananapi-m2-plus.dts | 17 + 1 file changed, 17 insertions(+) diff --git a/arch/arm/boot/dts/sun8i-h3-bananapi-m2-plus.dts b/arch/arm/boot/dts

[PATCH 2/4] drm/i2c: tda998x: Remove obsolete drm_connector_register() call

2016-10-21 Thread Jean-Francois Moine
On Wed, Oct 19, 2016 at 12:19:30PM +0300, Laurent Pinchart wrote: (sorry, I lost your original mail) > >>> DRM bridges indeed don't create encoders. That task is left to the display > >>> driver. The reason is the same as above: bridges can be chained (including > >>> with an internal

[PATCH 2/4] drm/i2c: tda998x: Remove obsolete drm_connector_register() call

2016-10-21 Thread Jean-Francois Moine
On Thu, 20 Oct 2016 16:56:44 +0530 Archit Taneja wrote: > > Please show _technically_ how this would work. I want to see code or > > pseudo-code illustrating how a "foreign" DRM encoder could be used with > > either dw-hdmi or tda998x, because right now I can't see any way that > > could work. >

[PATCH v5 5/7] ARM: dts: sun8i-h3: add HDMI audio and video nodes

2016-10-21 Thread Jean-Francois Moine
Signed-off-by: Jean-Francois Moine --- The patch for the A83T DT is not included in this patchset because the clock driver sunxi-ng does not support the A83T clocks. --- arch/arm/boot/dts/sun8i-h3.dtsi | 67 + 1 file changed, 67 insertions(+) diff --git a

[PATCH v5 4/7] ASoC: sunxi: Add sun8i I2S driver

2016-10-21 Thread Jean-Francois Moine
This patch adds I2S support to sun8i SoCs as the A83T and H3. Signed-off-by: Jean-Francois Moine --- Note: This driver is closed to the sun4i-i2s except that: - it handles the H3 - it creates the sound card (with sun4i-i2s, the sound card is created by the CODECs) --- .../devicetree/bindings

[PATCH v5 3/7] drm: sunxi: add DE2 HDMI support

2016-10-21 Thread Jean-Francois Moine
This patch adds a HDMI driver to the DE2 based Allwinner's SoCs as A83T and H3. Audio and video are supported. Signed-off-by: Jean-Francois Moine --- .../devicetree/bindings/display/sunxi/hdmi.txt | 52 ++ drivers/gpu/drm/sunxi/Kconfig | 8 + drivers/gpu/drm/

[PATCH v5 2/7] ASoC: sunxi: Add a simple HDMI CODEC

2016-10-21 Thread Jean-Francois Moine
Allwinner's SoCs include support for both audio and video on HDMI. This patch defines a simple audio CODEC which may be used in sunxi HDMI video drivers. Signed-off-by: Jean-Francois Moine --- include/sound/sunxi_hdmi.h| 23 + sound/soc/codecs/Kconfig | 9 soun

[PATCH v5 1/7] drm: sunxi: Add a basic DRM driver for Allwinner DE2

2016-10-21 Thread Jean-Francois Moine
Allwinner's recent SoCs, as A64, A83T and H3, contain a new display engine, DE2. This patch adds a DRM video driver for this device. Signed-off-by: Jean-Francois Moine --- .../bindings/display/sunxi/sunxi-de2.txt | 83 +++ drivers/gpu/drm/Kconfig

[PATCH 0/5] drm/sun4i: Handle TV overscan

2016-10-18 Thread Jean-Francois Moine
On Tue, 18 Oct 2016 12:03:49 +0200 Maxime Ripard wrote: > The fourth one being the major one. Every time I raised the issue on > IRC, the answer basically was "we don't care about analog", so I'm a > bit pessimistic about whether dealing with this in the core would be > accepted, hence why I chos

[PATCH v8 6/6] ARM: dts: am335x-boneblack: Add HDMI audio support

2016-03-19 Thread Jean-Francois Moine
On Thu, 17 Mar 2016 14:22:34 +0200 Jyri Sarha wrote: > @@ -76,16 +87,22 @@ > }; > > &i2c0 { > - tda19988 { > + tda19988: tda19988 { > compatible = "nxp,tda998x"; > reg = <0x70>; > + > pinctrl-names = "default", "off"; > pinctrl-0

Alternative binding proposal for tda998x audio (Was: Re: [PATCH RFC v5 4/8] drm/i2c: tda998x: Add support of a DT graph of ports)

2016-03-01 Thread Jean-Francois Moine
On Tue, 1 Mar 2016 20:29:17 +0200 Jyri Sarha wrote: > I understand the short comings of simple-card and it's binding. However, > the binding is documented and it is feasible to extract the audio > connections from a simple-card binding too. In fact it models the I2S > connections better than s

Alternative binding proposal for tda998x audio (Was: Re: [PATCH RFC v5 4/8] drm/i2c: tda998x: Add support of a DT graph of ports)

2016-03-01 Thread Jean-Francois Moine
On Tue, 1 Mar 2016 17:51:09 +0200 Jyri Sarha wrote: > I know that it works, I have used it myself until now, but it is not > needed and there is no driver that parses audio port endpoints. I see no > point specifying something in the binding that is not used and there no > specific plan to eve

Alternative binding proposal for tda998x audio (Was: Re: [PATCH RFC v5 4/8] drm/i2c: tda998x: Add support of a DT graph of ports)

2016-03-01 Thread Jean-Francois Moine
On Tue, 1 Mar 2016 16:26:50 +0200 Jyri Sarha wrote: > Ok, here is just one more simple alternative for tda998x audio binding. > I feel that the graph ports binding for audio does not make sense > without a graph based ASoC machine driver implementation. The ASoC > simple-card is already here a

[PATCH RFC v5 4/8] drm/i2c: tda998x: Add support of a DT graph of ports

2016-02-18 Thread Jean-Francois Moine
On Thu, 18 Feb 2016 08:35:30 -0600 Rob Herring wrote: > On Wed, Feb 17, 2016 at 04:49:05PM +0200, Jyri Sarha wrote: > > From: Jean-Francois Moine > > > > Two kinds of ports may be declared in a DT graph of ports: video and audio. > > This patch accepts the port va

[PATCH v4 1/2] clk: sunxi: Add sun6i/8i video support

2016-02-06 Thread Jean-Francois Moine
On Fri, 5 Feb 2016 10:39:15 +0100 Maxime Ripard wrote: > > +CLK_OF_DECLARE(sun6i_display, "allwinner,sun6i-display-clk", > > sun6i_display_setup); > > Please use the display driver from my DRM serie, it covers everything > you need here. If you give me a pointer, I will have a look. > > +CLK_

[PATCH v4 2/2] drm: sunxi: Add a basic DRM driver for Allwinner DE2

2016-02-04 Thread Jean-Francois Moine
On Tue, 2 Feb 2016 15:50:36 -0600 Rob Herring wrote: > > diff --git a/Documentation/devicetree/bindings/display/sunxi.txt > > b/Documentation/devicetree/bindings/display/sunxi.txt > > new file mode 100644 > > index 000..35f9763 > > --- /dev/null > > +++ b/Documentation/devicetree/bindings/di

[PATCH v2 2/2] drm: sunxi: Add a basic DRM driver for Allwinner DE2

2016-02-02 Thread Jean-Francois Moine
On Tue, 2 Feb 2016 17:26:13 + Andre Przywara wrote: > Can you sketch (or point me to) what I need to do? Just a > simple-framebuffer DT node? > I take it that the driver does not depend on any kind of U-Boot > initialisation, but instead takes care of this itself? > > And would this pave the

[PATCH v3 1/2] clk: sunxi: Add sun6i/8i video support

2016-02-02 Thread Jean-Francois Moine
On Tue, 2 Feb 2016 17:19:15 + Emil Velikov wrote: > > --- > > Documentation/devicetree/bindings/clock/sunxi.txt | 2 + > > drivers/clk/sunxi/clk-sun6i-display.c | 106 + > > drivers/clk/sunxi/clk-sun6i-pll3.c| 174 > > ++ > > 3 f

[PATCH v4 0/2] Add a DRM display driver to the Allwinner H3

2016-02-02 Thread Jean-Francois Moine
t may be built as a out-of-tree driver from the tarball: http://moinejf.free.fr/opi2/h3-hdmi.tar.gz and the DT files: http://moinejf.free.fr/opi2/sun8i-h3.dtsi http://moinejf.free.fr/opi2/sun8i-h3-orangepi-plus.dts Jean-Francois Moine (2): clk: sunxi: Add sun6i/8i video su

[PATCH v4 1/2] clk: sunxi: Add sun6i/8i video support

2016-02-02 Thread Jean-Francois Moine
Add the clock types which are used by the sun6i/8i families for video. Signed-off-by: Jean-Francois Moine --- v4: - drivers/clk/sunxi/Makefile was missing (Emil Velikov) v3: (no change) v2: - remarks from Chen-Yu Tsai - DT documentation added --- Documentation/devicetree

[PATCH v2 2/2] drm: sunxi: Add a basic DRM driver for Allwinner DE2

2016-02-02 Thread Jean-Francois Moine
On Wed, 20 Jan 2016 11:14:38 + Andre Przywara wrote: > I haven't looked at it in detail yet, I just tried to compile it for > ARM64 to prepare for a test on the Allwinner A64. > > So just two things I spotted below: Hi André, I fixed them in the v3 patch request. Have you succeeded to get

[PATCH v3 0/2] Add a DRM display driver to the Allwinner H3

2016-02-02 Thread Jean-Francois Moine
t may be built as a out-of-tree driver from the tarball: http://moinejf.free.fr/opi2/h3-hdmi.tar.gz and the DT files: http://moinejf.free.fr/opi2/sun8i-h3.dtsi http://moinejf.free.fr/opi2/sun8i-h3-orangepi-plus.dts Jean-Francois Moine (2): clk: sunxi: Add sun6i/8i video su

[PATCH v3 2/2] drm: sunxi: Add a basic DRM driver for Allwinner DE2

2016-02-02 Thread Jean-Francois Moine
In recent SoCs, as the H3, Allwinner uses a new display interface, DE2. This patch adds a DRM video driver for this interface. Signed-off-by: Jean-Francois Moine --- v3: - add the hardware cursor - simplify and fix the DE2 init sequences - generation for all SUNXI SoCs

[PATCH v4 2/2] drm: sunxi: Add a basic DRM driver for Allwinner DE2

2016-02-02 Thread Jean-Francois Moine
In recent SoCs, as the H3, Allwinner uses a new display interface, DE2. This patch adds a DRM video driver for this interface. Signed-off-by: Jean-Francois Moine --- v4: (no change) v3: - add the hardware cursor - simplify and fix the DE2 init sequences - generation for

[PATCH v3 1/2] clk: sunxi: Add sun6i/8i video support

2016-02-01 Thread Jean-Francois Moine
Add the clock types which are used by the sun6i/8i families for video. Signed-off-by: Jean-Francois Moine --- v3: (no change) v2: - remarks from Chen-Yu Tsai - DT documentation added --- Documentation/devicetree/bindings/clock/sunxi.txt | 2 + drivers/clk/sunxi/clk-sun6i

[PATCH v8 1/2] drm/rockchip: hdmi: add Innosilicon HDMI support

2016-01-29 Thread Jean-Francois Moine
On Fri, 29 Jan 2016 14:47:39 +0800 Yakir Yang wrote: > The Innosilicon HDMI is a low power HDMI 1.4 transmitter > IP, and it have been integrated on some rockchip CPUs > (like RK3036, RK312x). > > Signed-off-by: Yakir Yang > --- > Changes in v8: > - Don't check whether encoder output format is

[PATCH RFC 1/2] clk: sunxi: Add sun8i display support

2016-01-28 Thread Jean-Francois Moine
On Wed, 27 Jan 2016 22:50:51 +0100 Maxime Ripard wrote: > Hi, > > On Tue, Jan 19, 2016 at 09:09:01AM +0100, Jean-Francois Moine wrote: > > On Mon, 18 Jan 2016 20:09:04 +0100 > > Maxime Ripard wrote: [snip] > > > We have the clk-factors stuff to han

[PATCH RFC 0/2] Add a display driver to the Allwinner H3

2016-01-19 Thread Jean-Francois Moine
On Mon, 18 Jan 2016 11:18:27 +0100 Maxime Ripard wrote: > > Then, the DE2 sources contain only: > > > > All Winner Tech, All Right Reserved. 2014-2015 Copyright (c) > > > > Eventually, there is no copyright/author/history in the HDMI sources. > > That one is nasty though :/ > > It seems t

[PATCH RFC 1/2] clk: sunxi: Add sun8i display support

2016-01-19 Thread Jean-Francois Moine
ists about these developments. Otherwise, about this old RFC, Chen-Yu Tsai replied: > > Add the clock types which are used by the sun8i family for video. > > These clocks first appeared in the A31. > > > Signed-off-by: Jean-Francois Moine > > --- &g

[PATCH v2 0/2] Add a DRM display driver to the Allwinner H3

2016-01-15 Thread Jean-Francois Moine
as a out-of-tree driver from the tarball: http://moinejf.free.fr/opi2/h3-hdmi.tar.gz and the DT files: http://moinejf.free.fr/opi2/sun8i-h3.dtsi http://moinejf.free.fr/opi2/sun8i-h3-orangepi-plus.dts Jean-Francois Moine (2): clk: sunxi: Add sun6i/8i video support drm:

[PATCH v2 2/2] drm: sunxi: Add a basic DRM driver for Allwinner DE2

2016-01-15 Thread Jean-Francois Moine
In recent SoCs, as the H3, Allwinner uses a new display interface, DE2. This patch adds a DRM video driver for this interface. Signed-off-by: Jean-Francois Moine --- Changes: - remarks from Russell King - DT documentation added - working resolution change with xrandr

[PATCH v2 1/2] clk: sunxi: Add sun6i/8i video support

2016-01-15 Thread Jean-Francois Moine
Add the clock types which are used by the sun6i/8i families for video. Signed-off-by: Jean-Francois Moine --- Changes: - remarks from Chen-Yu Tsai - DT documentation added --- Documentation/devicetree/bindings/clock/sunxi.txt | 2 + drivers/clk/sunxi/clk-sun6i-display.c

[PATCH RFC 2/2] drm: sunxi: Add a basic DRM driver for Allwinner DE2

2016-01-13 Thread Jean-Francois Moine
On Wed, 6 Jan 2016 21:41:30 +0100 Jens Kuske wrote: > On 05/01/16 19:40, Jean-Francois Moine wrote: > [snip] > > diff --git a/drivers/gpu/drm/sunxi/de2_hdmi_h3.c > > b/drivers/gpu/drm/sunxi/de2_hdmi_h3.c > > new file mode 100644 > > index 000..c54b090 > >

[PATCH RFC 2/2] drm: sunxi: Add a basic DRM driver for Allwinner DE2

2016-01-11 Thread Jean-Francois Moine
On Tue, 5 Jan 2016 20:38:17 + Russell King - ARM Linux wrote: > Some comments from an ARM architecture point of view. I haven't > reviewed it from a DRM point of view yet. Anyway, thanks for your explanations and remarks. > > +static void de2_crtc_enable(struct drm_crtc *crtc) > > +{

[PATCH RFC 1/2] clk: sunxi: Add sun8i display support

2016-01-08 Thread Jean-Francois Moine
On Wed, 6 Jan 2016 10:39:51 +0800 Chen-Yu Tsai wrote: > First of all, please include the clk subsystem maintainers and the > linux-clk mailing list for all clk related patches. OK. > On Wed, Jan 6, 2016 at 2:28 AM, Jean-Francois Moine > wrote: > > Add the clock types whi

[PATCH RFC 0/2] Add a display driver to the Allwinner H3

2016-01-08 Thread Jean-Francois Moine
On Wed, 6 Jan 2016 22:20:46 +0100 Maxime Ripard wrote: > > As there is no documentation about the DE2 nor about the HDMI which > > are found in the H3, this driver has been built from Allwiiner's > > sources. > > That's unfortunate :/ > > Have you checked in the A64 BSP if there was some useful

[PATCH RFC 0/2] Add a display driver to the Allwinner H3

2016-01-05 Thread Jean-Francois Moine
be license problems, especially for the file de2_hdmi_h3.c which contains a lot of magic values. The associated DT and documentation will be submitted when the H3 DTs will be in the kernel. Jean-Francois Moine (2): clk: sunxi: Add sun8i display support drm: sunxi: Add a basic DRM driver for All

[PATCH RFC 2/2] drm: sunxi: Add a basic DRM driver for Allwinner DE2

2016-01-05 Thread Jean-Francois Moine
In recent SoCs, as the H3, Allwinner uses a new display interface, DE2. This patch adds a DRM video driver for this interface, and also a driver for the HDMI connector found in the H3. Signed-off-by: Jean-Francois Moine --- drivers/gpu/drm/Kconfig | 2 + drivers/gpu/drm/Makefile

[PATCH RFC 1/2] clk: sunxi: Add sun8i display support

2016-01-05 Thread Jean-Francois Moine
Add the clock types which are used by the sun8i family for video. Signed-off-by: Jean-Francois Moine --- drivers/clk/sunxi/Makefile| 1 + drivers/clk/sunxi/clk-sun8i-display.c | 247 ++ 2 files changed, 258 insertions(+) create mode 100644 drivers

[PATCH v2 0/2] Improve drm_of_component_probe() and move rockchip to use it

2015-12-25 Thread Jean-Francois Moine
On Thu, 24 Dec 2015 12:36:10 + Russell King - ARM Linux wrote: > It seems that you're trying to work around a limitation in Linux by > modifying the hardware representation... Sorry to come back to this topic, but I think you are wrong. Looking at the imx6 DTs, the problem comes from the di

[PATCH v2 0/2] Improve drm_of_component_probe() and move rockchip to use it

2015-12-24 Thread Jean-Francois Moine
On Thu, 24 Dec 2015 10:52:07 + Russell King - ARM Linux wrote: > On Thu, Dec 24, 2015 at 09:15:28AM +0100, Jean-Francois Moine wrote: > > Well, two topics: > > > > - adding a second 'of_compare' function complexifies the code > > and people may won

[PATCH v2 0/2] Improve drm_of_component_probe() and move rockchip to use it

2015-12-24 Thread Jean-Francois Moine
On Wed, 23 Dec 2015 18:59:48 + Russell King - ARM Linux wrote: > > > Have a look at my v2 where I've introduced two compare functions and also > > > modified the Rockchip compare_port() to use port->parent in the > > > comparison. I > > > guess that should solve your problem. > > > > Keepin

[PATCH v2 0/2] Improve drm_of_component_probe() and move rockchip to use it

2015-12-23 Thread Jean-Francois Moine
On Wed, 23 Dec 2015 10:05:34 + Liviu Dudau wrote: > > What was the reason to keep the "ports" node instead of the device? > > The function is an extract of common code sprinkled through a few DRM drivers, > they all used port rather than port->parent. Sorry for I could find such drivers. Ma

[PATCH v2 0/2] Improve drm_of_component_probe() and move rockchip to use it

2015-12-23 Thread Jean-Francois Moine
On Tue, 22 Dec 2015 17:38:00 + Liviu Dudau wrote: > On Fri, Nov 20, 2015 at 02:22:03PM +, Liviu Dudau wrote: > > Hello, > > > > This is v2 of the patchset trying to make drm_of_component_probe() cope > > with finding > > both local crtc ports and remote encoder ones. Heiko Stübner was

[GIT PULL] On-demand device probing

2015-10-21 Thread Jean-Francois Moine
Sorry to enter this thread a bit late. About the number of probe deferred messages, I proposed a simple patch to reduce them: https://lkml.org/lkml/2013/8/20/218 I was wondering how many messages this patch could save... -- Ken ar c'hentañ| ** Breizh ha Linux atav!

[PATCH 00/11] tda998x updates

2015-10-09 Thread Jean-Francois Moine
On Fri, 9 Oct 2015 14:25:26 +0100 Russell King - ARM Linux wrote: > > Here's my currently queued TDA998x development work for 4.4. > > As there have been no comments against this series, I'll send David a > pull request later today. It works fine for me. Thanks.

[alsa-devel] [PATCH RFC V2 0/5] another generic audio hdmi codec proposal

2015-10-06 Thread Jean-Francois Moine
On Tue, 6 Oct 2015 11:23:03 +0200 Arnaud Pouliquen wrote: [snip] > As API is defined in DRM, it seems more logical to match it with the one > defined for video. From my windows, i didn't see any blocking point to > connect codec callback with this API. > But anyway, this API is not freezed

[PATCH RFC v4 4/8] drm/i2c: tda998x: Add support of a DT graph of ports

2015-09-24 Thread Jean-Francois Moine
On Mon, 21 Sep 2015 10:19:18 -0500 Rob Herring wrote: > On 09/18/2015 06:06 AM, Jyri Sarha wrote: > > From: Jean-Francois Moine > > > > Two kinds of ports may be declared in a DT graph of ports: video and audio. > > This patch accepts the port value from a video po

[PATCH v2] drm/i2c: tda998x: Fix bad checksum of the HDMI AVI infoframe

2015-08-04 Thread Jean-Francois Moine
On Tue, 28 Jul 2015 15:59:17 +0200 Jean-Francois Moine wrote: > Using hdmi_avi_infoframe_pack() to create the AVI infoframe calculates > the checksum of the frame and breaks the second calculation which is > done in tda998x_write_if(). Then the HDMI AVI frame is wrong and > the di

[PATCH v2] drm/i2c: tda998x: Fix bad checksum of the HDMI AVI infoframe

2015-07-28 Thread Jean-Francois Moine
t;use drm_hdmi_avi_infoframe_from_display_mode()") Signed-off-by: Jean-Francois Moine --- v2: add the Fixes: tag --- drivers/gpu/drm/i2c/tda998x_drv.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/i2c/tda998x_drv.c b/drivers/gpu/drm/i2c/tda998x_d

[PATCH RFC] drm/i2c: tda998x: dead-code or unhandled error condition ?

2015-07-28 Thread Jean-Francois Moine
t; timeout condition check covers the wait-queue related failure condition. > > Signed-off-by: Nicholas Mc Guire Acked-by: Jean-Francois Moine -- Ken ar c'hentañ| ** Breizh ha Linux atav! ** Jef | http://moinejf.free.fr/

[PATCH] drm/i2c: tda998x: Fix bad checksum of the HDMI AVI infoframe

2015-07-17 Thread Jean-Francois Moine
x_write_if(). Signed-off-by: Jean-Francois Moine --- drivers/gpu/drm/i2c/tda998x_drv.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/i2c/tda998x_drv.c b/drivers/gpu/drm/i2c/tda998x_drv.c index fe1599d..424228b 100644 --- a/drivers/gpu/drm/i2c/tda998x_drv.c +++

drm/edid: sound/core: pcm_drm_eld.c compilation error in 4.2

2015-07-16 Thread Jean-Francois Moine
The file sound/core/pcm_drm_eld.c which was added by the commit 838d1631b766529213684f07dd71cdf2e92f0623 ALSA: pcm: add DRM ELD helper lacks the function drm_eld_sad() which was defined by Russell's patch http://article.gmane.org/gmane.linux.ports.arm.kernel/411574

[PATCH early RFC 0/2] Implement ASoC HDMI codec library

2015-05-13 Thread Jean-Francois Moine
On Wed, 13 May 2015 12:23:45 +0300 Jyri Sarha wrote: > Jean-Francois, would you consider trying the generic ASoC patch with > your HW, as I can not test the spdif functionality with mine? Hi Jyri, I am not sure to need all the stuff you coded. My tda998x CODEC is quite empty and it works fine

[PATCH v10 0/9] ASoC: tda998x: add a codec to the HDMI transmitter

2015-04-28 Thread Jean-Francois Moine
On Mon, 27 Apr 2015 20:25:02 +0200 Jean-Francois Moine wrote: > Using i2s and s/pdif at the same time with the simple card asks for a > patch as the one I submitted in february 2014 (ASoC: simple-card: DT > fix and multi DAI links extension). Sorry, the patch was "ASoC: simple-c

[PATCH v10 0/9] ASoC: tda998x: add a codec to the HDMI transmitter

2015-04-27 Thread Jean-Francois Moine
On Mon, 27 Apr 2015 14:33:45 +0300 Jyri Sarha wrote: > Have you done anything about the tda998x audio support lately? > > I was thinking of taking a shot at this now that I finally seem to have > some time for it. However, if you are just about to send another series > I'll wait for that first

[PATCH v10 0/9] ASoC: tda998x: add a codec to the HDMI transmitter

2015-01-20 Thread Jean-Francois Moine
Mark Brown) - update the audio_sample_rate from the EDID (Andrew Jackson) v3: fix bad rate (Andrew Jackson) v2: check double stream start (Mark Brown) Jean-Francois Moine (9): ASoC: kirkwood: dynamically build the DAI array ASoC: kirkwood: check the DAI type from the DAI name ASoC: kirkwood: acce

[PATCH v10 9/9] ASoC: add generic dt-card support

2015-01-20 Thread Jean-Francois Moine
parameters found in the tree. Signed-off-by: Jean-Francois Moine --- sound/soc/generic/Kconfig | 2 + sound/soc/generic/Makefile | 2 + sound/soc/generic/dt-card.c | 275 3 files changed, 279 insertions(+) create mode 100644 sound/soc/generic/dt

[PATCH v10 8/9] ASoC: core: export snd_soc_get_dai_name

2015-01-20 Thread Jean-Francois Moine
snd_soc_get_dai_name() may be used to define a sound card with a different syntax from the one of the simple-card. Signed-off-by: Jean-Francois Moine --- include/sound/soc.h | 2 ++ sound/soc/soc-core.c | 5 +++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/include/sound

[PATCH v10 7/9] drm/i2c: tda998x: set cts_n according to the sample width

2015-01-20 Thread Jean-Francois Moine
With I2S input, the CTS_N predivider depends on the audio sample width. Signed-off-by: Jean-Francois Moine --- drivers/gpu/drm/i2c/tda998x_drv.c | 21 ++--- include/sound/tda998x.h | 4 +++- sound/soc/codecs/tda998x.c| 5 +++-- 3 files changed, 24 insertions

[PATCH v10 6/9] ASoC: tda998x: add a codec to the HDMI transmitter

2015-01-20 Thread Jean-Francois Moine
The tda998x CODEC maintains the audio format and rate constraints according to the HDMI device parameters (EDID) and sets dynamically the input ports in the TDA998x I2C driver on start/stop audio streaming. Signed-off-by: Jean-Francois Moine --- drivers/gpu/drm/i2c/tda998x_drv.c | 124

[PATCH v10 5/9] drm/i2c: tda998x: Change drvdata for audio extension

2015-01-20 Thread Jean-Francois Moine
encoder use. Signed-off-by: Jean-Francois Moine --- drivers/gpu/drm/i2c/tda998x_drv.c | 8 ++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/i2c/tda998x_drv.c b/drivers/gpu/drm/i2c/tda998x_drv.c index cf245ce..b35f35f 100644 --- a/drivers/gpu/drm/i2c

[PATCH v10 4/9] drm/i2c: tda998x: Add support of a DT graph of ports

2015-01-20 Thread Jean-Francois Moine
/tda998x.h prepares to the definition of a tda998x CODEC. Signed-off-by: Jean-Francois Moine --- .../devicetree/bindings/drm/i2c/tda998x.txt| 51 + drivers/gpu/drm/i2c/tda998x_drv.c | 88 +++--- include/sound/tda998x.h| 8

  1   2   3   4   5   >