[PATCH v7 00/20] Rework OMAP4+ HDMI audio support

2014-11-12 Thread Jyri Sarha
The patches are based on: git://git.kernel.org/pub/scm/linux/kernel/git/tomba/linux.git for-next The base, the patches, and couple of additional not-to-be-merged omap2plus_defconfig patches can be found here: https://github.com/jsarha/linux.git omap-hdmi-audio It would make the most sense to get

[PATCH v7 06/20] OMAPDSS: omapdss.h: Remove audio_state member of struct omap_dss_device

2014-11-12 Thread Jyri Sarha
The audio_state member is not used. Signed-off-by: Jyri Sarha jsa...@ti.com --- include/video/omapdss.h |9 - 1 file changed, 9 deletions(-) diff --git a/include/video/omapdss.h b/include/video/omapdss.h index 069dfca..9f2699f 100644 --- a/include/video/omapdss.h +++

[PATCH v7 08/20] OMAPDSS: hdmi: Make hdmi structure public

2014-11-12 Thread Jyri Sarha
Unify the private anonymous struct in hdmi4.c and hdmi5.c, name it as struct omap_hdmi, and make it public in hdmi.h. Signed-off-by: Jyri Sarha jsa...@ti.com --- drivers/video/fbdev/omap2/dss/hdmi.h | 21 + drivers/video/fbdev/omap2/dss/hdmi4.c | 31

[PATCH v7 01/20] OMAPDSS: hdmi_wp: Protect reserved bits in hdmi_wp_audio_config_format()

2014-11-12 Thread Jyri Sarha
Only OMAP4 DSS has non reserved bits above 6th bit in HDMI_WP_AUDIO_CFG. Signed-off-by: Jyri Sarha jsa...@ti.com --- drivers/video/fbdev/omap2/dss/hdmi_wp.c |8 ++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/drivers/video/fbdev/omap2/dss/hdmi_wp.c

[PATCH v7 02/20] OMAPDSS: hdmi5_core: Initialize mandatory sample_order parameter

2014-11-12 Thread Jyri Sarha
The hdmi_wp_audio_config_format() expects sample_order of struct hdmi_audio_format to be initialized. The only allowed value is HDMI_AUDIO_SAMPLE_LEFT_FIRST. Signed-off-by: Jyri Sarha jsa...@ti.com --- drivers/video/fbdev/omap2/dss/hdmi5_core.c |3 +++ 1 file changed, 3 insertions(+) diff

[PATCH v7 03/20] OMAPDSS: hdmi.h: Add HDMI_AUDIO_LAYOUT_6CH enum value

2014-11-12 Thread Jyri Sarha
The OMAP5 HDMI audio implementation needs HDMI_AUDIO_LAYOUT_6CH in hdmi_core_audio_layout enum. I found the correct value from ti-linux 3.8 tree. Signed-off-by: Jyri Sarha jsa...@ti.com --- drivers/video/fbdev/omap2/dss/hdmi.h |3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff

[PATCH v7 04/20] OMAPDSS: hdmi: Remove most of OMAP[45]_DSS_HDMI_AUDIO ifdefs

2014-11-12 Thread Jyri Sarha
It does not waste too many bytes to compile all audio related core functions always in with HDMI support. It should help readability and in keeping the audio code in working shape. Leave the options just for disabling and enabling the functionality in hdmi[45].c. Signed-off-by: Jyri Sarha

[PATCH v7 19/20] OMAPDSS: Remove all references to obsolete HDMI audio callbacks

2014-11-12 Thread Jyri Sarha
In new model these callbacks are obsolete since the ASoC component drivers are integrated into the HDMI drivers and no callbacks are needed anymore. Signed-off-by: Jyri Sarha jsa...@ti.com --- .../fbdev/omap2/displays-new/connector-hdmi.c | 99

[PATCH v7 20/20] OMAPDSS: hdmi5: Change hdmi_wp idlemode to to no_idle for audio playback

2014-11-12 Thread Jyri Sarha
Signed-off-by: Jyri Sarha jsa...@ti.com --- drivers/video/fbdev/omap2/dss/hdmi.h |1 + drivers/video/fbdev/omap2/dss/hdmi5.c |7 +++ 2 files changed, 8 insertions(+) diff --git a/drivers/video/fbdev/omap2/dss/hdmi.h b/drivers/video/fbdev/omap2/dss/hdmi.h index bfaaf2f..f991dbf

[PATCH v7 10/20] ASoC: omap-hdmi-audio: Add platform device for OMAP HDMI audio support

2014-11-12 Thread Jyri Sarha
The platform device should only be registered from OMAPDSS HDMI driver. The platform driver registers and unregisters all ASoC components needed for OMAP HDMI audio. The hdmi audio driver implements cpu-dai component using the callbacks provided by OMAPDSS and registers the component under DSS

[PATCH v7 13/20] OMAPDSS: hdmi.h: Add members to hdmi drvdata for audio implementation

2014-11-12 Thread Jyri Sarha
Adds display_enabled flag and audio_abort_cb callback to struct hdmi. Signed-off-by: Jyri Sarha jsa...@ti.com --- drivers/video/fbdev/omap2/dss/hdmi.h |2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/video/fbdev/omap2/dss/hdmi.h b/drivers/video/fbdev/omap2/dss/hdmi.h index

[PATCH v7 09/20] OMAPDSS: hdmi: Add pdev pointer for audio_pdev in HDMI DRV data

2014-11-12 Thread Jyri Sarha
This is used to store omap-hdmi-audio pdev for unregistering it. Signed-off-by: Jyri Sarha jsa...@ti.com --- drivers/video/fbdev/omap2/dss/hdmi.h |2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/video/fbdev/omap2/dss/hdmi.h b/drivers/video/fbdev/omap2/dss/hdmi.h index

[PATCH v7 15/20] OMAPDSS: hdmi4: Register ASoC platform device for omap hdmi audio

2014-11-12 Thread Jyri Sarha
Implements callbacks for OMAP HDMI audio platform driver and registers it in probe function. Unregistering is done in remove function. Signed-off-by: Jyri Sarha jsa...@ti.com --- drivers/video/fbdev/omap2/dss/hdmi4.c | 125 + 1 file changed, 125 insertions(+)

[PATCH v7 12/20] OMAPDSS: hdmi: Make hdmi_mode_has_audio() more user friedly

2014-11-12 Thread Jyri Sarha
Signed-off-by: Jyri Sarha jsa...@ti.com --- drivers/video/fbdev/omap2/dss/hdmi.h |4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/video/fbdev/omap2/dss/hdmi.h b/drivers/video/fbdev/omap2/dss/hdmi.h index a6e08ff..6d129f2 100644 ---

[PATCH v7 14/20] OMAPDSS: hdmi4: Remove callbacks for the old ASoC DAI driver

2014-11-12 Thread Jyri Sarha
Removes the OMAP4 HDMI audio callbacks for the old external DAI driver. Signed-off-by: Jyri Sarha jsa...@ti.com --- drivers/video/fbdev/omap2/dss/hdmi4.c | 113 - 1 file changed, 113 deletions(-) diff --git a/drivers/video/fbdev/omap2/dss/hdmi4.c

[PATCH v7 16/20] OMAPDSS: hdmi5: Remove callbacks for the old ASoC DAI driver

2014-11-12 Thread Jyri Sarha
Removes the OMAP5 HDMI audio callbacks for the old external DAI driver. Signed-off-by: Jyri Sarha jsa...@ti.com --- drivers/video/fbdev/omap2/dss/hdmi5.c | 113 - 1 file changed, 113 deletions(-) diff --git a/drivers/video/fbdev/omap2/dss/hdmi5.c

[PATCH v7 18/20] ASoC: omap: Remove obsolete HDMI audio code and Kconfig options

2014-11-12 Thread Jyri Sarha
Removes omap-hdmi DAI driver, omap-hdmi-card driver, the related Kconfig options, and Makefile entries. The HDMI DAI drivers has been integrated directly to OMAP4+ HDMI drivers and simple-card driver is used instead of omap-hdmi-card driver. Signed-off-by: Jyri Sarha jsa...@ti.com ---

[PATCH v7 11/20] OMAPDSS: Kconfig: Remove HDMI audio booleans from Kconfig

2014-11-12 Thread Jyri Sarha
The booleans are not used anymore. Just select SND_OMAP_SOC_HDMI_AUDIO to enable OMAP HDMI audio support. Signed-off-by: Jyri Sarha jsa...@ti.com --- drivers/video/fbdev/omap2/dss/Kconfig |7 --- 1 file changed, 7 deletions(-) diff --git a/drivers/video/fbdev/omap2/dss/Kconfig

[PATCH v7 07/20] OMAPDSS: hdmi_wp: Add function for getting audio dma address

2014-11-12 Thread Jyri Sarha
The audio dma port is found in the hdmi_wp physical address space. Signed-off-by: Jyri Sarha jsa...@ti.com --- drivers/video/fbdev/omap2/dss/hdmi.h|2 ++ drivers/video/fbdev/omap2/dss/hdmi_wp.c |6 ++ 2 files changed, 8 insertions(+) diff --git

[PATCH v7 17/20] OMAPDSS: hdmi5: Register ASoC platform device for omap hdmi audio

2014-11-12 Thread Jyri Sarha
Implements callbacks for OMAP HDMI audio platform driver and registers it in probe function. Unregistering is done in remove function. Signed-off-by: Jyri Sarha jsa...@ti.com --- drivers/video/fbdev/omap2/dss/hdmi5.c | 125 + 1 file changed, 125 insertions(+)

[PATCH v7 05/20] OMAPDSS: hdmi4_core: Remove unused hdmi4_audio_get_dma_port()

2014-11-12 Thread Jyri Sarha
hdmi4_audio_get_dma_port() is unused and and broken. Signed-off-by: Jyri Sarha jsa...@ti.com --- drivers/video/fbdev/omap2/dss/hdmi4_core.c |9 - drivers/video/fbdev/omap2/dss/hdmi4_core.h |2 -- 2 files changed, 11 deletions(-) diff --git

[PATCH 01/22] OMAPDSS: DSI: wait for hsdiv clocks when enabling PLL

2014-11-12 Thread Tomi Valkeinen
At the moment we have two functions to wait for the HSDIV clocks to get active, dsi_wait_pll_hsdiv_dispc_active and dsi_wait_pll_hsdiv_dsi_active. Instead of such inconvenient functions, let's just make sure that the hsdiv clocks are active after the pll has been enabled. This patch adds code to

[PATCH 11/22] OMAPDSS: DSI: dsi_runtime_get/put in pll_init

2014-11-12 Thread Tomi Valkeinen
When DPI uses the DSI PLL for pixel clock, the DPI code will call dsi_runtime_get/put to keep the DSI block enabled. A much simpler way to handle this is to do dsi_runtime_get/put in DSI's dsi_pll_init() and dsi_pll_uninit(), thus removing the need for DSI to call the runtime PM functions.

[PATCH 08/22] OMAPDSS: DSI: rename clkin4ddr to clkdco

2014-11-12 Thread Tomi Valkeinen
We are creating a common DSS PLL code, so rename 'clkin4ddr' field, which is DSI specific name, to 'clkdco' which is a generic name. Signed-off-by: Tomi Valkeinen tomi.valkei...@ti.com --- drivers/video/fbdev/omap2/dss/dpi.c | 2 +- drivers/video/fbdev/omap2/dss/dsi.c | 36

[PATCH 18/22] OMAPDSS: HDMI: store WP pointer to hdmi_pll_data

2014-11-12 Thread Tomi Valkeinen
HDMI PLL code needs the pointer to the WP block so that it can manage its power. Currently this is passed as a function parameter to hdmi_pll_enable and hdmi_pll_disable. To make the PLL function adhere to the DSS PLL API, we need to remove the WP parameter. This patch stores the WP pointer to

[PATCH 06/22] OMAPDSS: DSI: remove pll_locked field

2014-11-12 Thread Tomi Valkeinen
We have pll_locked field in struct dsi_data, but it doesn't have any meaningful use anymore, and can be removed. Signed-off-by: Tomi Valkeinen tomi.valkei...@ti.com --- drivers/video/fbdev/omap2/dss/dsi.c | 10 -- 1 file changed, 10 deletions(-) diff --git

[PATCH 14/22] OMAPDSS: HDMI: fix setting REFSEL

2014-11-12 Thread Tomi Valkeinen
Only OMAP5+ has REFSEL field, but at the moment it's set also on OMAP4. Fix this by adding a has_refsel field, and setting the REFSEL based on that. Signed-off-by: Tomi Valkeinen tomi.valkei...@ti.com --- drivers/video/fbdev/omap2/dss/hdmi.h | 8

[PATCH 10/22] OMAPDSS: DSI: features: combine dsi dispc hsdivs

2014-11-12 Thread Tomi Valkeinen
The HSDIV outputs of DSI PLL (and also other PLLs) all have the same bit width for the divider value. Simplify the code by merging HSDIV divider widths into one width. Signed-off-by: Tomi Valkeinen tomi.valkei...@ti.com --- drivers/video/fbdev/omap2/dss/dsi.c | 13 ++---

[PATCH 13/22] OMAPDSS: DSI: use common DSS PLL support

2014-11-12 Thread Tomi Valkeinen
Now that we have the common DSS PLL support, change DSI to use it. This results in quite a lot of changes, but almost all of them are trivial name changes. The functions to calculate and program the PLL settings can be removed from dsi.c, as the common PLL API contains the same functionality. We

[PATCH 04/22] OMAPDSS: DSI: separate LP clock info from dsi_clock_info

2014-11-12 Thread Tomi Valkeinen
struct dsi_clock_info represents the clocks handled by the DSI, mostly PLL related clocks. In an effort to create common PLL code, we need to remove all the non-PLL items from dsi_clock_info. This patch removes LP clock related fields from dsi_clock_info, and creates a new struct

[PATCH 02/22] OMAPDSS: DSI: remove unused hsdiv wait funcs

2014-11-12 Thread Tomi Valkeinen
With the previous patch OMAPDSS: DSI: wait for hsdiv clocks when enabling PLL, dsi_wait_pll_hsdiv_dispc_active and dsi_wait_pll_hsdiv_dsi_active are no longer needed, so they and the callers can be removed. Signed-off-by: Tomi Valkeinen tomi.valkei...@ti.com ---

[PATCH 09/22] OMAPDSS: DSI: turn hsdivs fields to arrays

2014-11-12 Thread Tomi Valkeinen
We are creating a common DSS PLL code, so having fixed DSI specific hsdiv fields in the clock information is not ok. This patch changes the hsdiv fields to arrays, so that we can use all the 4 possible hsdiv outputs (DSI only usees 2), and we have generic way to access the hsdivs. Signed-off-by:

[PATCH 00/22] OMAPDSS: Create a DSS PLL library

2014-11-12 Thread Tomi Valkeinen
Hi, OMAP DSS hardware contains two different PLLs at the moment: DSI and HDMI PLLs. With the DRA7x we will have a new PLL, video PLL. The code for DSI and HDMI PLLs are totally separate, with no shared code. This series cleans up the PLL code for DSI and HDMI, and creates a common framework for

[PATCH 07/22] OMAPDSS: DSI: use struct copy instead of individual field copy

2014-11-12 Thread Tomi Valkeinen
Now that dsi_clock_info only contains information about the PLL, we can just copy the whole struct when storing the clock information, instead of copying individual fields. Signed-off-by: Tomi Valkeinen tomi.valkei...@ti.com --- drivers/video/fbdev/omap2/dss/dsi.c | 12 +--- 1 file

[PATCH 03/22] OMAPDSS: DSI: always power on hsclk hsdiv

2014-11-12 Thread Tomi Valkeinen
The DSS PLL has support to power on the PLL's highspeed clock output and HSDIV output separately. In practice both need to powered on, as in most OMAP's that's the only working configuration. We already do that in dsi_pll_init(), by overriding the passed arguments so that both are always powered.

[PATCH 05/22] OMAPDSS: DSI: remove clkin from dsi_clock_info

2014-11-12 Thread Tomi Valkeinen
struct dsi_clock_info contains clkin field, which is the rate of the PLL's input clock. This field is not needed, as it can be easily retrieved by using the clk_get_rate(). This patch removes the clkin field. Signed-off-by: Tomi Valkeinen tomi.valkei...@ti.com ---

[PATCH 15/22] OMAPDSS: HDMI5: disable interlace modes

2014-11-12 Thread Tomi Valkeinen
We don't support interlace modes properly on OMAP5+ HDMI, so we need to reject interlace timings. Signed-off-by: Tomi Valkeinen tomi.valkei...@ti.com --- drivers/video/fbdev/omap2/dss/hdmi5.c | 4 1 file changed, 4 insertions(+) diff --git a/drivers/video/fbdev/omap2/dss/hdmi5.c

[PATCH 12/22] OMAPDSS: Add common PLL code

2014-11-12 Thread Tomi Valkeinen
OMAP DSS currently contains two different PLLs: DSI PLL (Type A PLL) and HDMI PLL (Type B PLL). When DRA7 support is added, we will also support Video PLLs (Type A). The driver currently handles all PLLs totally separately. This patch adds common DSS PLL code, which a) lets us have common code

[PATCH 22/22] OMAPDSS: features: remove unused DSI PLL features

2014-11-12 Thread Tomi Valkeinen
Now that the DSS has the common DSS PLL, we no longer use the DSI PLL feature flags from dss_features.c. Remove all the unused feature flags. Signed-off-by: Tomi Valkeinen tomi.valkei...@ti.com --- drivers/video/fbdev/omap2/dss/dss_features.c | 38

[PATCH 20/22] OMAPDSS: HDMI: remove extra poweroff

2014-11-12 Thread Tomi Valkeinen
hdmi_pll_enable powers off the PLL as the first thing it does. Right after that, it enables the PLL powers. The initial power-off is pointless, so let's remove it. Signed-off-by: Tomi Valkeinen tomi.valkei...@ti.com --- drivers/video/fbdev/omap2/dss/hdmi_pll.c | 4 1 file changed, 4

[PATCH 19/22] OMAPDSS: HDMI: split PLL enable config

2014-11-12 Thread Tomi Valkeinen
At the moment we have one function, hdmi_pll_enable, which enables the PLL and writes the PLL configuration to registers. To make the HDMI PLL ahere to the DSS PLL API, split the hdmi_pll_enable into two parts: hdmi_pll_enable which enables the PLL HW, and hdmi_pll_set_config which writes the

[PATCH 16/22] OMAPDSS: HDMI: rewrite HDMI PLL calculation code

2014-11-12 Thread Tomi Valkeinen
The code calculating HDMI PLL parameters has always been very confusing. Now that we are implementing a common PLL library for the DSS, it's important that the PLL code is understandable. This patch rewrites the calculation code, and removes a few hacks that were used there. Signed-off-by: Tomi

[PATCH 21/22] OMAPDSS: HDMI: use common DSS PLL support

2014-11-12 Thread Tomi Valkeinen
Now that we have the common DSS PLL support, change HDMI to use it. This results in quite a lot of changes, but almost all of them are trivial name changes. The function to program the PLL settings can be removed from hdmi_pll.c, as the common PLL API contains the same functionality.

[PATCH 17/22] OMAPDSS: HDMI: Remove HDMI PLL reset

2014-11-12 Thread Tomi Valkeinen
The SYSRESET bits in HDMI PLL do not reset the PLL itself, but only affect the power used for the PLL. Afaik there is no reason to use the SYSRESET bits, and we don't use it in the other PLLs, so let's remove the HDMI PLL reset to make the PLL code simpler and similar to other PLLs.

Re: [PATCH v7 10/20] ASoC: omap-hdmi-audio: Add platform device for OMAP HDMI audio support

2014-11-12 Thread Peter Ujfalusi
On 11/12/2014 12:49 PM, Jyri Sarha wrote: The platform device should only be registered from OMAPDSS HDMI driver. The platform driver registers and unregisters all ASoC components needed for OMAP HDMI audio. The hdmi audio driver implements cpu-dai component using the callbacks provided by

Re: [PATCH v7 18/20] ASoC: omap: Remove obsolete HDMI audio code and Kconfig options

2014-11-12 Thread Peter Ujfalusi
On 11/12/2014 12:49 PM, Jyri Sarha wrote: Removes omap-hdmi DAI driver, omap-hdmi-card driver, the related Kconfig options, and Makefile entries. The HDMI DAI drivers has been integrated directly to OMAP4+ HDMI drivers and simple-card driver is used instead of omap-hdmi-card driver.

Re: [PATCH 4/4] arm: dts: omap3-gta04: Add static configuration for devconf1 register

2014-11-12 Thread Tomi Valkeinen
Hi, On 03/11/14 23:59, Marek Belisko wrote: gta04 board need for tvout enabled 2 bits in devconf1 register (tvbypass and acbias). Add single pinmux entry and enable it. Signed-off-by: Marek Belisko ma...@goldelico.com --- arch/arm/boot/dts/omap3-gta04.dtsi | 22 ++

Re: [PATCH 0/4] Touchscreen performance related fixes

2014-11-12 Thread Johannes Pointner
Hello Vignesh, I tried your patch version 3 on a customized board and had some behavior I couldn't explain. If I only use the touchscreen it works fine but if I also read values from the ADCs then I get a lot of pen_up events even if I am still touching the screen. For the test I read via # cat

Re: [PATCH 1/4] video: omapdss: Add opa362 driver

2014-11-12 Thread Tomi Valkeinen
Hi, On 03/11/14 23:59, Marek Belisko wrote: opa362 is amplifier for videoand can be connected to the tvout pads of the OMAP3. It has one gpio control for enable/disable of the output (high impedance). Signed-off-by: H. Nikolaus Schaller h...@goldelico.com ---

Re: [PATCH 1/4] video: omapdss: Add opa362 driver

2014-11-12 Thread Belisko Marek
Hi Tomi, On Wed, Nov 12, 2014 at 2:57 PM, Tomi Valkeinen tomi.valkei...@ti.com wrote: Hi, On 03/11/14 23:59, Marek Belisko wrote: opa362 is amplifier for videoand can be connected to the tvout pads of the OMAP3. It has one gpio control for enable/disable of the output (high impedance).

Re: [PATCH 2/4] Documentation: DT: Add documentation for ti,opa362 bindings

2014-11-12 Thread Tomi Valkeinen
On 03/11/14 23:59, Marek Belisko wrote: Signed-off-by: Marek Belisko ma...@goldelico.com --- .../devicetree/bindings/video/ti,opa362.txt| 38 ++ 1 file changed, 38 insertions(+) create mode 100644 Documentation/devicetree/bindings/video/ti,opa362.txt diff

[PATCH v5 6/8] net: can: c_can: Disable pins when CAN interface is down

2014-11-12 Thread Roger Quadros
DRA7 CAN IP suffers from a problem which causes it to be prevented from fully turning OFF (i.e. stuck in transition) if the module was disabled while there was traffic on the CAN_RX line. To work around this issue we select the SLEEP pin state by default on probe and use the DEFAULT pin state on

Re: [PATCH v7 06/20] OMAPDSS: omapdss.h: Remove audio_state member of struct omap_dss_device

2014-11-12 Thread Jyri Sarha
Damn, this patch should have gone to second last for it not not to break bisect. I'll squash it into OMAPDSS: Remove all references to obsolete HDMI audio callbacks an mail v7.1 patch-set shortly. Best regards, Jyri On 11/12/2014 12:49 PM, Jyri Sarha wrote: The audio_state member is not

[PATCH v7.1 13/19] OMAPDSS: hdmi4: Remove callbacks for the old ASoC DAI driver

2014-11-12 Thread Jyri Sarha
Removes the OMAP4 HDMI audio callbacks for the old external DAI driver. Signed-off-by: Jyri Sarha jsa...@ti.com --- drivers/video/fbdev/omap2/dss/hdmi4.c | 113 - 1 file changed, 113 deletions(-) diff --git a/drivers/video/fbdev/omap2/dss/hdmi4.c

[PATCH v7.1 03/19] OMAPDSS: hdmi.h: Add HDMI_AUDIO_LAYOUT_6CH enum value

2014-11-12 Thread Jyri Sarha
The OMAP5 HDMI audio implementation needs HDMI_AUDIO_LAYOUT_6CH in hdmi_core_audio_layout enum. I found the correct value from ti-linux 3.8 tree. Signed-off-by: Jyri Sarha jsa...@ti.com --- drivers/video/fbdev/omap2/dss/hdmi.h |3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff

[PATCH v7.1 08/19] OMAPDSS: hdmi: Add pdev pointer for audio_pdev in HDMI DRV data

2014-11-12 Thread Jyri Sarha
This is used to store omap-hdmi-audio pdev for unregistering it. Signed-off-by: Jyri Sarha jsa...@ti.com --- drivers/video/fbdev/omap2/dss/hdmi.h |2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/video/fbdev/omap2/dss/hdmi.h b/drivers/video/fbdev/omap2/dss/hdmi.h index

[PATCH v7.1 07/19] OMAPDSS: hdmi: Make hdmi structure public

2014-11-12 Thread Jyri Sarha
Unify the private anonymous struct in hdmi4.c and hdmi5.c, name it as struct omap_hdmi, and make it public in hdmi.h. Signed-off-by: Jyri Sarha jsa...@ti.com --- drivers/video/fbdev/omap2/dss/hdmi.h | 21 + drivers/video/fbdev/omap2/dss/hdmi4.c | 31

[PATCH v7.1 12/19] OMAPDSS: hdmi.h: Add members to hdmi drvdata for audio implementation

2014-11-12 Thread Jyri Sarha
Adds display_enabled flag and audio_abort_cb callback to struct hdmi. Signed-off-by: Jyri Sarha jsa...@ti.com --- drivers/video/fbdev/omap2/dss/hdmi.h |2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/video/fbdev/omap2/dss/hdmi.h b/drivers/video/fbdev/omap2/dss/hdmi.h index

[PATCH v7.1 04/19] OMAPDSS: hdmi: Remove most of OMAP[45]_DSS_HDMI_AUDIO ifdefs

2014-11-12 Thread Jyri Sarha
It does not waste too many bytes to compile all audio related core functions always in with HDMI support. It should help readability and in keeping the audio code in working shape. Leave the options just for disabling and enabling the functionality in hdmi[45].c. Signed-off-by: Jyri Sarha

[PATCH v7.1 05/19] OMAPDSS: hdmi4_core: Remove unused hdmi4_audio_get_dma_port()

2014-11-12 Thread Jyri Sarha
hdmi4_audio_get_dma_port() is unused and and broken. Signed-off-by: Jyri Sarha jsa...@ti.com --- drivers/video/fbdev/omap2/dss/hdmi4_core.c |9 - drivers/video/fbdev/omap2/dss/hdmi4_core.h |2 -- 2 files changed, 11 deletions(-) diff --git

[PATCH v7.1 01/19] OMAPDSS: hdmi_wp: Protect reserved bits in hdmi_wp_audio_config_format()

2014-11-12 Thread Jyri Sarha
Only OMAP4 DSS has non reserved bits above 6th bit in HDMI_WP_AUDIO_CFG. Signed-off-by: Jyri Sarha jsa...@ti.com --- drivers/video/fbdev/omap2/dss/hdmi_wp.c |8 ++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/drivers/video/fbdev/omap2/dss/hdmi_wp.c

[PATCH v7.1 06/19] OMAPDSS: hdmi_wp: Add function for getting audio dma address

2014-11-12 Thread Jyri Sarha
The audio dma port is found in the hdmi_wp physical address space. Signed-off-by: Jyri Sarha jsa...@ti.com --- drivers/video/fbdev/omap2/dss/hdmi.h|2 ++ drivers/video/fbdev/omap2/dss/hdmi_wp.c |6 ++ 2 files changed, 8 insertions(+) diff --git

[PATCH v7.1 14/19] OMAPDSS: hdmi4: Register ASoC platform device for omap hdmi audio

2014-11-12 Thread Jyri Sarha
Implements callbacks for OMAP HDMI audio platform driver and registers it in probe function. Unregistering is done in remove function. Signed-off-by: Jyri Sarha jsa...@ti.com --- drivers/video/fbdev/omap2/dss/hdmi4.c | 125 + 1 file changed, 125 insertions(+)

[PATCH v7.1 15/19] OMAPDSS: hdmi5: Remove callbacks for the old ASoC DAI driver

2014-11-12 Thread Jyri Sarha
Removes the OMAP5 HDMI audio callbacks for the old external DAI driver. Signed-off-by: Jyri Sarha jsa...@ti.com --- drivers/video/fbdev/omap2/dss/hdmi5.c | 113 - 1 file changed, 113 deletions(-) diff --git a/drivers/video/fbdev/omap2/dss/hdmi5.c

[PATCH v7.1 19/19] OMAPDSS: hdmi5: Change hdmi_wp idlemode to to no_idle for audio playback

2014-11-12 Thread Jyri Sarha
Signed-off-by: Jyri Sarha jsa...@ti.com --- drivers/video/fbdev/omap2/dss/hdmi.h |1 + drivers/video/fbdev/omap2/dss/hdmi5.c |7 +++ 2 files changed, 8 insertions(+) diff --git a/drivers/video/fbdev/omap2/dss/hdmi.h b/drivers/video/fbdev/omap2/dss/hdmi.h index bfaaf2f..f991dbf

[PATCH v7.1 18/19] OMAPDSS: Remove all references to obsolete HDMI audio callbacks

2014-11-12 Thread Jyri Sarha
In new model these callbacks are obsolete since the ASoC component drivers are integrated into the HDMI drivers and no callbacks are needed anymore. Signed-off-by: Jyri Sarha jsa...@ti.com --- .../fbdev/omap2/displays-new/connector-hdmi.c | 99

[PATCH v7.1 16/19] OMAPDSS: hdmi5: Register ASoC platform device for omap hdmi audio

2014-11-12 Thread Jyri Sarha
Implements callbacks for OMAP HDMI audio platform driver and registers it in probe function. Unregistering is done in remove function. Signed-off-by: Jyri Sarha jsa...@ti.com --- drivers/video/fbdev/omap2/dss/hdmi5.c | 125 + 1 file changed, 125 insertions(+)

[PATCH v7.1 09/19] ASoC: omap-hdmi-audio: Add platform device for OMAP HDMI audio support

2014-11-12 Thread Jyri Sarha
The platform device should only be registered from OMAPDSS HDMI driver. The platform driver registers and unregisters all ASoC components needed for OMAP HDMI audio. The hdmi audio driver implements cpu-dai component using the callbacks provided by OMAPDSS and registers the component under DSS

[PATCH v7.1 17/19] ASoC: omap: Remove obsolete HDMI audio code and Kconfig options

2014-11-12 Thread Jyri Sarha
Removes omap-hdmi DAI driver, omap-hdmi-card driver, the related Kconfig options, and Makefile entries. The HDMI DAI drivers has been integrated directly to OMAP4+ HDMI drivers and simple-card driver is used instead of omap-hdmi-card driver. Signed-off-by: Jyri Sarha jsa...@ti.com ---

[PATCH v7.1 11/19] OMAPDSS: hdmi: Make hdmi_mode_has_audio() more user friedly

2014-11-12 Thread Jyri Sarha
Signed-off-by: Jyri Sarha jsa...@ti.com --- drivers/video/fbdev/omap2/dss/hdmi.h |4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/video/fbdev/omap2/dss/hdmi.h b/drivers/video/fbdev/omap2/dss/hdmi.h index a6e08ff..6d129f2 100644 ---

[PATCH v7.1 10/19] OMAPDSS: Kconfig: Remove HDMI audio booleans from Kconfig

2014-11-12 Thread Jyri Sarha
The booleans are not used anymore. Just select SND_OMAP_SOC_HDMI_AUDIO to enable OMAP HDMI audio support. Signed-off-by: Jyri Sarha jsa...@ti.com --- drivers/video/fbdev/omap2/dss/Kconfig |7 --- 1 file changed, 7 deletions(-) diff --git a/drivers/video/fbdev/omap2/dss/Kconfig

[PATCH v7.1 02/19] OMAPDSS: hdmi5_core: Initialize mandatory sample_order parameter

2014-11-12 Thread Jyri Sarha
The hdmi_wp_audio_config_format() expects sample_order of struct hdmi_audio_format to be initialized. The only allowed value is HDMI_AUDIO_SAMPLE_LEFT_FIRST. Signed-off-by: Jyri Sarha jsa...@ti.com --- drivers/video/fbdev/omap2/dss/hdmi5_core.c |3 +++ 1 file changed, 3 insertions(+) diff

[PATCH v7.1 00/19] Rework OMAP4+ HDMI audio support

2014-11-12 Thread Jyri Sarha
The patches are based on: git://git.kernel.org/pub/scm/linux/kernel/git/tomba/linux.git for-next The base, the patches, and couple of additional not-to-be-merged omap2plus_defconfig patches can be found here: https://github.com/jsarha/linux.git omap-hdmi-audio It would make the most sense to get

[PATCH] usb: dwc3: gadget: Fix broken gadget on system suspend/resume

2014-11-12 Thread Roger Quadros
On TI SoCs (e.g. DRA7) we don't support the DWC3 hibernation feature. We need to stop the gadget controller while system suspend else it results in L3 Bus errors on resume with broken USB gadget on J6-evm. [ 55.718226] WARNING: CPU: 0 PID: 0 at drivers/bus/omap_l3_noc.c:147

Re: [PATCH 4/4] arm: dts: omap3-gta04: Add static configuration for devconf1 register

2014-11-12 Thread Tony Lindgren
* Tomi Valkeinen tomi.valkei...@ti.com [141112 04:56]: Hi, On 03/11/14 23:59, Marek Belisko wrote: gta04 board need for tvout enabled 2 bits in devconf1 register (tvbypass and acbias). Add single pinmux entry and enable it. Signed-off-by: Marek Belisko ma...@goldelico.com ---

Re: [PATCH] usb: dwc3: gadget: Fix broken gadget on system suspend/resume

2014-11-12 Thread Felipe Balbi
On Wed, Nov 12, 2014 at 04:58:16PM +0200, Roger Quadros wrote: On TI SoCs (e.g. DRA7) we don't support the DWC3 hibernation feature. We need to stop the gadget controller while system suspend else it results in L3 Bus errors on resume with broken USB gadget on J6-evm. [ 55.718226]

Re: [PATCHv6 1/5] Documentation: dt: add common bindings for hwspinlock

2014-11-12 Thread Ohad Ben-Cohen
Hi Suman, On Fri, Sep 12, 2014 at 11:24 PM, Suman Anna s-a...@ti.com wrote: This patch adds the generic common bindings used to represent a hwlock device and use/request locks in a device-tree build. ... Cc: Rob Herring robh...@kernel.org Signed-off-by: Suman Anna s-a...@ti.com ---

Re: [PATCHv6 2/5] Documentation: dt: add the omap hwspinlock bindings document

2014-11-12 Thread Ohad Ben-Cohen
Hi Suman, On Fri, Sep 12, 2014 at 11:24 PM, Suman Anna s-a...@ti.com wrote: HwSpinlock IP is present only on OMAP4 and other newer SoCs, which are all device-tree boot only. This patch adds the DT bindings information for OMAP hwspinlock module. Cc: Rob Herring robh...@kernel.org

Re: [PATCH v2 0/2] bus: omap_l3_noc: Add resume hook to restore mask registers

2014-11-12 Thread Tony Lindgren
* Keerthy j-keer...@ti.com [141110 10:25]: l3_noc module loses context during both DS0 and RTC+DDR in self refresh modes. This causes the previously masked l3 interrupts to trigger and the software book keeping assumes the interrupts are masked and does nothing to mask. This software/hardware

Re: [PATCH] ARM: OMAP2+: clock: remove unused function prototype

2014-11-12 Thread Tony Lindgren
* Johan Hovold jo...@kernel.org [14 07:58]: Remove unused function prototype that was left by commit 149c09d3a61d (ARM: AM33xx: remove old clock data and link in new clock init code) which removed the definition. Applying into omap-for-v3.19/fixes-not-urgent thanks. Tony -- To unsubscribe

Re: [PATCH] ARM: dts: dra7: fix DSS PLL clock mux registers

2014-11-12 Thread Tony Lindgren
* Tomi Valkeinen tomi.valkei...@ti.com [141013 01:52]: The clock nodes for DSS VIDEO1/2 and HDMI have wrong register addresses. This patch fixes the addresses so that they point to CM_CLKSEL_VIDEO1_PLL_SYS, CM_CLKSEL_VIDEO2_PLL_SYS and CM_CLKSEL_HDMI_PLL_SYS. Reported-by: Somnath Mukherjee

Re: [PATCH] ARM: dts: dra7: fix DSS PLL clock mux registers

2014-11-12 Thread Tony Lindgren
* Tony Lindgren t...@atomide.com [141112 07:26]: * Tomi Valkeinen tomi.valkei...@ti.com [141013 01:52]: The clock nodes for DSS VIDEO1/2 and HDMI have wrong register addresses. This patch fixes the addresses so that they point to CM_CLKSEL_VIDEO1_PLL_SYS, CM_CLKSEL_VIDEO2_PLL_SYS and

Re: [PATCH] ARM: dts: DRA7: wdt: Fix compatible property for watchdog node

2014-11-12 Thread Tony Lindgren
* Lokesh Vutla lokeshvu...@ti.com [14 21:27]: OMAP wdt driver supports only ti,omap3-wdt compatible. In DRA7 dt wdt compatible property is defined as ti,omap4-wdt by mistake instead of ti,omap3-wdt. Correcting the typo. Fixes: 6e58b8f1daaf1a (ARM: dts: DRA7: Add the dts files for dra7

Re: [PATCH] usb: dwc3: gadget: Fix broken gadget on system suspend/resume

2014-11-12 Thread Roger Quadros
On 11/12/2014 05:08 PM, Felipe Balbi wrote: On Wed, Nov 12, 2014 at 04:58:16PM +0200, Roger Quadros wrote: On TI SoCs (e.g. DRA7) we don't support the DWC3 hibernation feature. We need to stop the gadget controller while system suspend else it results in L3 Bus errors on resume with broken

Re: [PATCH] usb: dwc3: gadget: Fix broken gadget on system suspend/resume

2014-11-12 Thread Felipe Balbi
Hi, On Wed, Nov 12, 2014 at 05:32:00PM +0200, Roger Quadros wrote: On 11/12/2014 05:08 PM, Felipe Balbi wrote: On Wed, Nov 12, 2014 at 04:58:16PM +0200, Roger Quadros wrote: On TI SoCs (e.g. DRA7) we don't support the DWC3 hibernation feature. We need to stop the gadget controller while

Re: [PATCH] usb: dwc3: gadget: Fix broken gadget on system suspend/resume

2014-11-12 Thread Roger Quadros
On 11/12/2014 05:36 PM, Felipe Balbi wrote: Hi, On Wed, Nov 12, 2014 at 05:32:00PM +0200, Roger Quadros wrote: On 11/12/2014 05:08 PM, Felipe Balbi wrote: On Wed, Nov 12, 2014 at 04:58:16PM +0200, Roger Quadros wrote: On TI SoCs (e.g. DRA7) we don't support the DWC3 hibernation feature. We

Re: [PATCH] mfd: twl4030-power: Fix poweroff with PM configuration enabled

2014-11-12 Thread Grazvydas Ignotas
On Tue, Nov 4, 2014 at 5:42 PM, Tony Lindgren t...@atomide.com wrote: * Igor Grinberg grinb...@compulab.co.il [141104 05:22]: Hi Tony, On 11/02/14 20:07, Tony Lindgren wrote: Commit e7cd1d1eb16f (mfd: twl4030-power: Add generic reset configuration) enabled configuring the PM features for

Re: [PATCH] usb: dwc3: gadget: Fix broken gadget on system suspend/resume

2014-11-12 Thread Felipe Balbi
On Wed, Nov 12, 2014 at 05:40:59PM +0200, Roger Quadros wrote: On 11/12/2014 05:36 PM, Felipe Balbi wrote: Hi, On Wed, Nov 12, 2014 at 05:32:00PM +0200, Roger Quadros wrote: On 11/12/2014 05:08 PM, Felipe Balbi wrote: On Wed, Nov 12, 2014 at 04:58:16PM +0200, Roger Quadros wrote: On

Re: [PATCH] mfd: twl4030-power: Fix poweroff with PM configuration enabled

2014-11-12 Thread Tony Lindgren
* Grazvydas Ignotas nota...@gmail.com [141112 07:46]: On Tue, Nov 4, 2014 at 5:42 PM, Tony Lindgren t...@atomide.com wrote: * Igor Grinberg grinb...@compulab.co.il [141104 05:22]: Hi Tony, On 11/02/14 20:07, Tony Lindgren wrote: Commit e7cd1d1eb16f (mfd: twl4030-power: Add generic

Re: [PATCH v2 0/2] bus: omap_l3_noc: Add resume hook to restore mask registers

2014-11-12 Thread Keerthy
On Wednesday 12 November 2014 08:47 PM, Tony Lindgren wrote: * Keerthy j-keer...@ti.com [141110 10:25]: l3_noc module loses context during both DS0 and RTC+DDR in self refresh modes. This causes the previously masked l3 interrupts to trigger and the software book keeping assumes the interrupts

Re: [PATCHv6 1/5] Documentation: dt: add common bindings for hwspinlock

2014-11-12 Thread Suman Anna
Kumar, Mark, Rob, On 11/12/2014 09:14 AM, Ohad Ben-Cohen wrote: Hi Suman, On Fri, Sep 12, 2014 at 11:24 PM, Suman Anna s-a...@ti.com wrote: This patch adds the generic common bindings used to represent a hwlock device and use/request locks in a device-tree build. ... Cc: Rob Herring

Re: [PATCH] mtd: nand: omap: Fix NAND enumeration on 3430 LDP

2014-11-12 Thread Tony Lindgren
* pekon pe...@pek-sem.com [141109 11:31]: On Saturday 08 November 2014 04:18 AM, Tony Lindgren wrote: Right. I doubt anybody has bch8 rootfs on LDP.. And considering u-boot must be ham1 to boot at all, that's what we should change for the devices that do not have not standardized on bch8.

[GIT PULL 1/3] omap device tree changes for v3.19

2014-11-12 Thread Tony Lindgren
The following changes since commit cac7f2429872d3733dc3f9915857b1691da2eb2f: Linux 3.18-rc2 (2014-10-26 16:48:41 -0700) are available in the git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/tmlind/linux-omap tags/omap-for-v3.19/dt-part1 for you to fetch changes up to

[GIT PULL 2/3] omap gpmc changes for v3.19

2014-11-12 Thread Tony Lindgren
The following changes since commit 24f284af1a64a1a073b064428cafb447aff19a21: ARM: dts: Fix missing GPMC NAND device width for omap3 boards (2014-11-03 17:42:16 -0800) are available in the git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/tmlind/linux-omap

[GIT PULL 3/3] omap clean-up for v3.19

2014-11-12 Thread Tony Lindgren
The following changes since commit 2dde3bccbf905548a17b8d440053f86454af54a9: Merge branch 'for-v3.19/gpmc-omap' of github.com:rogerq/linux into omap-for-v3.19/gpmc (2014-11-03 17:45:36 -0800) are available in the git repository at:

Re: [PATCHv6 4/5] hwspinlock/core: add common OF helpers

2014-11-12 Thread Ohad Ben-Cohen
Hi Suman, On Fri, Sep 12, 2014 at 11:24 PM, Suman Anna s-a...@ti.com wrote: +int of_hwspin_lock_get_id(struct device_node *np, int index) +{ + struct hwspinlock_device *bank; + struct of_phandle_args args; + int id; + int ret; + + ret =

Re: [PATCHv6 5/5] hwspinlock/omap: add support for dt nodes

2014-11-12 Thread Ohad Ben-Cohen
Hi Suman, On Fri, Sep 12, 2014 at 11:24 PM, Suman Anna s-a...@ti.com wrote: static int omap_hwspinlock_probe(struct platform_device *pdev) { - struct hwspinlock_pdata *pdata = pdev-dev.platform_data; + struct device_node *node = pdev-dev.of_node; struct

Re: [PATCHv6 4/5] hwspinlock/core: add common OF helpers

2014-11-12 Thread Suman Anna
Hi Ohad, Thanks for the review. On 11/12/2014 01:08 PM, Ohad Ben-Cohen wrote: Hi Suman, On Fri, Sep 12, 2014 at 11:24 PM, Suman Anna s-a...@ti.com wrote: +int of_hwspin_lock_get_id(struct device_node *np, int index) +{ + struct hwspinlock_device *bank; + struct

Re: [PATCHv6 5/5] hwspinlock/omap: add support for dt nodes

2014-11-12 Thread Suman Anna
Hi Ohad, On 11/12/2014 01:14 PM, Ohad Ben-Cohen wrote: Hi Suman, On Fri, Sep 12, 2014 at 11:24 PM, Suman Anna s-a...@ti.com wrote: static int omap_hwspinlock_probe(struct platform_device *pdev) { - struct hwspinlock_pdata *pdata = pdev-dev.platform_data; + struct device_node

Re: [PATCH] mfd: twl4030-power: Fix poweroff with PM configuration enabled

2014-11-12 Thread Dr. H. Nikolaus Schaller
Am 12.11.2014 um 16:45 schrieb Grazvydas Ignotas nota...@gmail.com: On Tue, Nov 4, 2014 at 5:42 PM, Tony Lindgren t...@atomide.com wrote: * Igor Grinberg grinb...@compulab.co.il [141104 05:22]: Hi Tony, On 11/02/14 20:07, Tony Lindgren wrote: Commit e7cd1d1eb16f (mfd: twl4030-power: Add

  1   2   >