[RFC PATCH 0/6] Those patches is used for dw_hdmi audio.

2014-12-14 Thread Yakir Yang
support see https://patchwork.kernel.org/patch/5442361/ Yakir Yang (6): drm: bridge/dw_hdmi: add hdmi audio config interfaces drm: bridge/bridge: add support for rk3288 hdmi-audio ASoC: dw-hdmi-audio: add codec driver for dw hdmi audio ASoC: rockchip-hdmi-audio: add sound driver for hdmi audio

[PATCH 2/6] drm: bridge/bridge: add support for rk3288 hdmi-audio

2014-12-14 Thread Yakir Yang
be outputted by the Audio Packetizer. Signed-off-by: Yakir Yang y...@rock-chips.com --- drivers/gpu/drm/bridge/dw_hdmi.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/bridge/dw_hdmi.c b/drivers/gpu/drm/bridge/dw_hdmi.c index 9ba96de..0c19276 100644 --- a/drivers/gpu

[PATCH 3/6] ASoC: dw-hdmi-audio: add codec driver for dw hdmi audio

2014-12-14 Thread Yakir Yang
codec driver get some interfaces from dw_hdmi driver, than using those to set hdmi audio formats, corresponding to alsa formats. Signed-off-by: Yakir Yang y...@rock-chips.com --- sound/soc/codecs/Kconfig | 4 + sound/soc/codecs/Makefile| 2 + sound/soc/codecs/dw-hdmi-audio.c

[PATCH 4/6] ASoC: rockchip-hdmi-audio: add sound driver for hdmi audio

2014-12-14 Thread Yakir Yang
Adds a sound driver that combines rockchip-i2s cpu_dai and dw-hdmi-codec as codec_dai to provide hdmi audio output on rk3288 platforms. Signed-off-by: Yakir Yang y...@rock-chips.com --- sound/soc/rockchip/Kconfig | 9 ++ sound/soc/rockchip/Makefile | 2 + sound

[PATCH 1/6] drm: bridge/dw_hdmi: add hdmi audio config interfaces

2014-12-14 Thread Yakir Yang
creat dw-hdmi-audio device in probe function, and support some interfaces to dw-hdmi-audio driver for setting hdmi audio format. Signed-off-by: Yakir Yang y...@rock-chips.com --- drivers/gpu/drm/bridge/dw_hdmi.c | 28 include/drm/bridge/dw_hdmi.h | 12

[PATCH 5/6] dt-bindings: Add documentation for Rockchip hdmi-audio

2014-12-14 Thread Yakir Yang
Required properties: - compatible: platform specific - cpu-of-node: the device node of cpu_dai - codec-name: the dw-hdmi codec's device name - codec-dai-name: the dw-hdmi codec's dai name Signed-off-by: Yakir Yang y...@rock-chips.com --- .../bindings/sound/rockchip,rockchip-hdmi-audio.txt

[PATCH 6/6] ARM: dts: rockchip: add hdmi audio nodes

2014-12-14 Thread Yakir Yang
Add hdmi_audio to rk3288.dtsi, enable hdmi_audio in rk3288-evb.dts Signed-off-by: Yakir Yang y...@rock-chips.com series-cc: Dominik Behr db...@chromium.org --- arch/arm/boot/dts/rk3288-evb.dtsi | 11 +++ arch/arm/boot/dts/rk3288.dtsi | 8 2 files changed, 19 insertions

[PATCH v3 0/15] Those patches is used for dw_hdmi audio support

2015-02-03 Thread Yakir Yang
an const name - remove codec-name and codec-dai-name - rename rockchip,rockchip-hdmi-audio.txt to rockchip,rockchip-dw-hdmi-audio.txt Yakir Yang (15): drm: bridge/dw_hdmi: add irq control to suspend/resume drm: bridge/dw_hdmi: wrap irq control in fucntions drm: rockchip/dw_hdmi_rockchip: add

[PATCH v3 04/15] drm: bridge/dw_hdmi: add indentification registers parse and record

2015-02-03 Thread Yakir Yang
By parsing the indentification registers we can know what functions are present on the hdmi ip. Signed-off-by: Yakir Yang y...@rock-chips.com --- Changes in v3: - Add ID registers parse and record Changes in v2: None drivers/gpu/drm/bridge/dw_hdmi.c | 59

[PATCH v3 15/15] dt-bindings: Add documentation for Rockchip dw-hdmi-audio

2015-02-03 Thread Yakir Yang
Required properties: - compatible: platform specific - i2s-controller: the i2s controller device node Signed-off-by: Yakir Yang y...@rock-chips.com --- Changes in v3: - modify cpu-of-node to i2s-controller Changes in v2: - remove codec-name and codec-dai-name - rename rockchip,rockchip-hdmi

[PATCH v3 14/15] ASoC: rockchip-hdmi-audio: add sound driver for hdmi audio

2015-02-03 Thread Yakir Yang
Add a sound driver that combines rockchip-i2s cpu_dai and dw-hdmi-codec as codec_dai to provide hdmi audio output on rk3288 platforms. Signed-off-by: Yakir Yang y...@rock-chips.com --- Changes in v3: - Delete the operation of jack in rockchip-hdmi-audio driver, get ready to switch to simple

[PATCH v3 01/15] drm: bridge/dw_hdmi: add irq control to suspend/resume

2015-02-03 Thread Yakir Yang
, and umnute the interrupt we need in the resume stage. Signed-off-by: Yakir Yang y...@rock-chips.com --- Changes in v3: - Clear Hotplug interrupts before dw_hdmi_fb_register Changes in v2: - Add irq control to suspend/resume interfaces drivers/gpu/drm/bridge/dw_hdmi.c | 41

[PATCH v3 03/15] drm: rockchip/dw_hdmi_rockchip: add resume/suspend support

2015-02-03 Thread Yakir Yang
Signed-off-by: Yakir Yang y...@rock-chips.com --- Changes in v3: - Setting the .pm member instead of suspend/resume Changes in v2: - Add suspend/resume support for dw_hdmi_rockchip driver drivers/gpu/drm/rockchip/dw_hdmi-rockchip.c | 16 1 file changed, 16 insertions(+) diff

[PATCH v3 06/15] drm: bridge/dw_hdmi: adjust n/cts setting order

2015-02-03 Thread Yakir Yang
This patch changes the order to: - write CTS3 CTS_manual = 0 - write CTS3 N_shift = 0 - write CTS3 CTS value - write CTS2 CTS value - write CTS1 CTS value - write N3 N value - write N2 N value - write N1 N value Signed-off-by: Yakir Yang y...@rock-chips.com --- Changes in v3: - Only adjust the n

[PATCH v3 07/15] drm: bridge/dw_hdmi: set ncts_atomic_write cts_manual

2015-02-03 Thread Yakir Yang
- write CTS3 CTS_manual = 1 Signed-off-by: Yakir Yang y...@rock-chips.com --- Changes in v3: - Set ncts_atomic_write cts_manual Changes in v2: None drivers/gpu/drm/bridge/dw_hdmi.c | 13 +++-- drivers/gpu/drm/bridge/dw_hdmi.h | 6 ++ 2 files changed, 17 insertions(+), 2 deletions

[PATCH v3 10/15] drm: bridge/dw_hdmi: add audio sample channel status setting

2015-02-03 Thread Yakir Yang
When transmitting IEC60985 linear PCM audio, we configure the Aduio Sample Channel Status information of all the channel status bits in the IEC60958 frame. (am from https://patchwork.kernel.org/patch/5749101/) Signed-off-by: Yakir Yang y...@rock-chips.com --- Changes in v3: - Determine whether

[PATCH v3 09/15] drm: bridge/dw_hdmi: enable audio support for No-CEA display resolutions

2015-02-03 Thread Yakir Yang
If the monitor support audio, so we should support audio for it, even if the display resolution is No-CEA mode. Signed-off-by: Yakir Yang y...@rock-chips.com --- Changes in v3: None Changes in v2: - enable audio support for No-CEA display mode drivers/gpu/drm/bridge/dw_hdmi.c | 10 +- 1

[PATCH v3 08/15] drm: bridge/dw_hdmi: add audio support for more display resolutions

2015-02-03 Thread Yakir Yang
Add more n/cts values, in that case we can support audio for more display resolutions (128 * SampleRate = PixelClock * N / CTS). Signed-off-by: Yakir Yang y...@rock-chips.com --- Changes in v3: None Changes in v2: - add more n/cts combinations for more display resolutions drivers/gpu/drm/bridge

[PATCH v3 05/15] drm: bridge/dw_hdmi: combine hdmi_set_clock_regenerator_n() and hdmi_regenerate_cts()

2015-02-03 Thread Yakir Yang
Signed-off-by: Yakir Yang y...@rock-chips.com --- Changes in v3: - Combine hdmi_set_clock_regenerator_n() and hdmi_regenerate_cts() Changes in v2: None drivers/gpu/drm/bridge/dw_hdmi.c | 16 ++-- 1 file changed, 6 insertions(+), 10 deletions(-) diff --git a/drivers/gpu/drm/bridge

[PATCH v3 02/15] drm: bridge/dw_hdmi: wrap irq control in fucntions

2015-02-03 Thread Yakir Yang
Wrap irq control in functions, and then we can call in dw_hdmi_bind / dw_hdmi_unbind / dw_hdmi_resume / dw_hdmi_suspend functions. Signed-off-by: Yakir Yang y...@rock-chips.com --- Changes in v3: - Wrap irq control in fucntions Changes in v2: None drivers/gpu/drm/bridge/dw_hdmi.c | 75

[PATCH v3 13/15] ASoC: dw-hdmi-audio: add codec driver for dw hdmi audio

2015-02-03 Thread Yakir Yang
codec driver creat an standard alsa device, than config audio and report jack status through some callback interfaces that dw_hdmi driver support. Signed-off-by: Yakir Yang y...@rock-chips.com --- Changes in v3: - Keep audio format config function in dw-hdmi-audio driver and remove audio_config

[PATCH v3 11/15] drm: bridge/dw_hdmi: add audio clock control interfaces

2015-02-03 Thread Yakir Yang
Add audio clock enable/disable/restore interfacess, those functions can be called concurrently on multiple different threads of execution to change the hdmi audio enable state. Signed-off-by: Yakir Yang y...@rock-chips.com --- Changes in v3: - Delete hdmi_audio_config interface and modify audio

[PATCH v3 12/15] drm: bridge/dw_hdmi: creat dw-hdmi-audio platform device

2015-02-03 Thread Yakir Yang
creat dw-hdmi-audio device dynamically in probe function, and transfer some interfaces to dw-hdmi-audio driver for setting hdmi audio format control hdmi audio clock. Signed-off-by: Yakir Yang y...@rock-chips.com --- Changes in v3: - Remove audio_config get_connect_status callback functions

[RFC PATCH 3/3] drm: bridge/dw_hdmi: improve hdmi single-end test

2015-02-10 Thread Yakir Yang
should be set to 17. Signed-off-by: Yakir Yang y...@rock-chips.com --- drivers/gpu/drm/bridge/dw_hdmi.c| 14 +++--- drivers/gpu/drm/imx/dw_hdmi-imx.c | 12 ++-- drivers/gpu/drm/rockchip/dw_hdmi-rockchip.c | 14 +++--- include/drm/bridge/dw_hdmi.h

[RFC PATCH 0/1] Improve eye-diagram single-ended test for rk3288 hdmi

2015-02-10 Thread Yakir Yang
% decrease. - For hdmi single-ended test, we set CKLVL TXLVL to 17 when pixel clock is 74.25MHz, keep CKLVL TXLVL to 13 when pixel clock is 148.5MHz. Yakir Yang (1): drm: bridge/dw_hdmi: fixed codec style drivers/gpu/drm/bridge/dw_hdmi.c |8 1 file changed, 4 insertions(+), 4

[RFC PATCH 0/3]

2015-02-10 Thread Yakir Yang
% decrease. - For hdmi single-ended test, we set CKLVL TXLVL to 17 when pixel clock is 74.25MHz, keep CKLVL TXLVL to 13 when pixel clock is 148.5MHz. Yakir Yang (3): drm: bridge/dw_hdmi: fixed codec style drm: bridge/dw_hdmi_rockchip: improve hdmi eye-diagram test drm: bridge/dw_hdmi: improve

[RFC PATCH 1/3] drm: bridge/dw_hdmi: fixed codec style

2015-02-10 Thread Yakir Yang
*plat_data = hdmi-plat_data; + const struct dw_hdmi_mpll_config *mpll_config = plat_data-mpll_cfg; + const struct dw_hdmi_curr_ctrl *curr_ctrl = plat_data-cur_ctr; + const struct dw_hdmi_sym_term *sym_term = plat_data-sym_term; Signed-off-by: Yakir Yang y...@rock-chips.com --- drivers/gpu/drm/bridge

[RFC PATCH 2/3] drm: bridge/dw_hdmi_rockchip: improve hdmi eye-diagram test

2015-02-10 Thread Yakir Yang
As for 1920x1080 display resolution, we should turn on the Transmitter Trailer-B, and adjust slopeboost to 25%-35% decrease. Signed-off-by: Yakir Yang y...@rock-chips.com --- drivers/gpu/drm/rockchip/dw_hdmi-rockchip.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

[PATCH v2 0/3] Improve eye-diagram single-ended test for rk3288 hdmi

2015-03-08 Thread Yakir Yang
. - For pixel clock less than 74.25MHz, set txlvl to 19 and set cklvl to 18. Yakir Yang (3): drm: bridge/dw_hdmi: fixed codec style drm: bridge/dw_hdmi_rockchip: improve hdmi eye-diagram test drm: bridge/dw_hdmi: improve hdmi single-end test drivers/gpu/drm/bridge/dw_hdmi.c| 20

[PATCH v2 3/3] drm: bridge/dw_hdmi: improve hdmi single-end test

2015-03-08 Thread Yakir Yang
to 18, txlvl should set to 19. Signed-off-by: Yakir Yang y...@rock-chips.com --- Changes in v2: - For pixel clock less than 74.25MHz, set txlvl to 19 and set cklvl to 18. drivers/gpu/drm/bridge/dw_hdmi.c| 14 +++--- drivers/gpu/drm/imx/dw_hdmi-imx.c | 12

[PATCH v2 2/3] drm: bridge/dw_hdmi_rockchip: improve hdmi eye-diagram test

2015-03-08 Thread Yakir Yang
As for 1920x1080 display resolution, we should turn on the Transmitter Trailer-B. Signed-off-by: Yakir Yang y...@rock-chips.com --- Changes in v2: - Set slopeboost back to 10%-20%, then rasing/falling time would pass. drivers/gpu/drm/rockchip/dw_hdmi-rockchip.c | 2 +- 1 file changed, 1

[PATCH v2 1/3] drm: bridge/dw_hdmi: fixed codec style

2015-03-08 Thread Yakir Yang
*plat_data = hdmi-plat_data; + const struct dw_hdmi_mpll_config *mpll_config = plat_data-mpll_cfg; + const struct dw_hdmi_curr_ctrl *curr_ctrl = plat_data-cur_ctr; + const struct dw_hdmi_sym_term *sym_term = plat_data-sym_term; Signed-off-by: Yakir Yang y...@rock-chips.com --- Changes in v2: None

[PATCH v2 0/3] Improve eye-diagram single-ended test for rk3288 hdmi

2015-03-08 Thread Yakir Yang
. - For pixel clock less than 74.25MHz, set txlvl to 19 and set cklvl to 18. Yakir Yang (3): drm: bridge/dw_hdmi: fixed codec style drm: bridge/dw_hdmi_rockchip: improve hdmi eye-diagram test drm: bridge/dw_hdmi: improve hdmi single-end test drivers/gpu/drm/bridge/dw_hdmi.c| 20

[PATCH v3 0/3] Improve eye-diagram single-ended test for rk3288 hdmi

2015-03-09 Thread Yakir Yang
, set txlvl to 20. Changes in v2: - Set slopeboost back to 10%-20%, then rasing/falling time would pass. - For pixel clock less than 74.25MHz, set txlvl to 19 and set cklvl to 18. Yakir Yang (3): drm: bridge/dw_hdmi: fixed codec style drm: bridge/dw_hdmi_rockchip: improve hdmi eye-diagram test

[PATCH v3 2/3] drm: bridge/dw_hdmi_rockchip: improve hdmi eye-diagram test

2015-03-09 Thread Yakir Yang
As for 1920x1080 display resolution, we should turn on the Transmitter Trailer-B. Signed-off-by: Yakir Yang y...@rock-chips.com --- Changes in v3: None Changes in v2: - Set slopeboost back to 10%-20%, then rasing/falling time would pass. drivers/gpu/drm/rockchip/dw_hdmi-rockchip.c | 2 +- 1

[PATCH v3 3/3] drm: bridge/dw_hdmi: improve hdmi single-end test

2015-03-09 Thread Yakir Yang
(2.80v), and txlvl set to 19(2.75v). Signed-off-by: Yakir Yang y...@rock-chips.com --- Changes in v3: - For pixel clock less than 148.5MHz, set txlvl to 20. Changes in v2: - For pixel clock less than 74.25MHz, set txlvl to 19 and set cklvl to 18. drivers/gpu/drm/bridge/dw_hdmi.c| 14

[PATCH v3 1/3] drm: bridge/dw_hdmi: fixed codec style

2015-03-09 Thread Yakir Yang
Using a local struct pointer to reduce one level of indirection makes the code slightly more readable. Signed-off-by: Yakir Yang y...@rock-chips.com Reviewed-by: Daniel Kurtz djku...@chromium.org --- Changes in v3: - make commit message more readable Changes in v2: None drivers/gpu/drm/bridge

[PATCH v4 0/3] Improve eys-diagram single-ended electric test for rk3288 HDMI

2015-03-31 Thread Yakir Yang
slopeboost back to 10%-20%, then rasing/falling time would pass. - for pixel clock less then 74.25MHz, set txlvl to 19 and cklvl to 18. Yakir Yang (3): drm: bridge/dw_hdmi: fixed codec style drm: bridge/dw_hdmi: separate VLEVCTRL settting into platform driver drm: rockchip/dw_hdmi-rockchip

[PATCH v4 3/3] drm: rockchip/dw_hdmi-rockchip: improve for HDMI electrical test

2015-03-31 Thread Yakir Yang
When pixel clock less than 148.5MHz, make sloopboost=2 tklvl=20 cklvl=13 increase rasing/falling time and increase data clock voltage driver. When pixel clock less than 74.25MHz, make sloopboost=0 tklvl=19 cklvl=18, increase data and clock voltage driver. Signed-off-by: Yakir Yang y...@rock

[PATCH v4 2/3] drm: bridge/dw_hdmi: separate VLEVCTRL settting into platform driver

2015-03-31 Thread Yakir Yang
Because of iMX6 Rockchip have differnet mpll config parameter, the VLEVCTRL parameter would be different. In this case we should separate VLEVCTRL setting from the common dw_hdmi driver, config this parameter in platform driver(dw_hdmi-imx and dw_hdmi-rockchip) Signed-off-by: Yakir Yang y

[PATCH v4 1/3] drm: bridge/dw_hdmi: fixed codec style

2015-03-31 Thread Yakir Yang
Using a local struct pointer to reduce one level of indirection makes the code slightly more readable. Signed-off-by: Yakir Yang y...@rock-chips.com Reviewed-by: Daniel Kurtz djku...@chromium.org --- Changes in v4: None Changes in v3: - make commit message more readable Changes in v2: None

Re: [PATCH v4 13/15] ASoC: codec/dw-hdmi-audio: add codec driver for dw hdmi audio

2015-03-02 Thread Yakir Yang
在 2015/3/2 17:15, Paul Bolle 写道: On Sat, 2015-02-28 at 21:59 -0500, Yakir Yang wrote: --- /dev/null +++ b/sound/soc/codecs/dw-hdmi-audio.c @@ -0,0 +1,379 @@ +/* + * dw-hdmi-codec.c Doesn't match the filename. Is this line needed? Thanks, this comment are good for read, and seems others

Re: [PATCH v4 14/15] ASoC: rockchip/rockchip-hdmi-audio: add sound driver for hdmi audio

2015-03-02 Thread Yakir Yang
在 2015/3/2 17:07, Paul Bolle 写道: On Sat, 2015-02-28 at 22:04 -0500, Yakir Yang wrote: --- /dev/null +++ b/sound/soc/rockchip/rockchip_hdmi_audio.c @@ -0,0 +1,169 @@ +/* + * rockchip-hdmi-card.c Doesn't match the filename. Is this line needed anyway? Thanks, this comment are good for read

[PATCH v4 03/15] drm: rockchip/dw_hdmi_rockchip: add resume/suspend support

2015-02-28 Thread Yakir Yang
Signed-off-by: Yakir Yang y...@rock-chips.com --- Changes in v4: None Changes in v3: - Setting the .pm member instead of suspend/resume Changes in v2: - Add suspend/resume support for dw_hdmi_rockchip driver drivers/gpu/drm/rockchip/dw_hdmi-rockchip.c | 16 1 file changed, 16

[PATCH v4 11/15] drm: bridge/dw_hdmi: add enable/disable to dw_hdmi_audio callbacks

2015-02-28 Thread Yakir Yang
Add enable and disable callbacks to dw_hdmi_audio interface so that dw_hdmi_audio can enable and disable the dw_hdmi audio. Signed-off-by: Yakir Yang y...@rock-chips.com --- Changes in v4: - Rename hdmi_audio_* to dw_hdmi_audio_* Changes in v3: - Delete hdmi_audio_config interface and modify

[PATCH v4 01/15] drm: bridge/dw_hdmi: add irq control to suspend/resume

2015-02-28 Thread Yakir Yang
, and umnute the interrupt we need in the resume stage. Signed-off-by: Yakir Yang y...@rock-chips.com --- Changes in v4: None Changes in v3: - Clear Hotplug interrupts before dw_hdmi_fb_register Changes in v2: - Add irq control to suspend/resume interfaces drivers/gpu/drm/bridge/dw_hdmi.c | 41

[PATCH v4 08/15] drm: bridge/dw_hdmi: add audio support for more display resolutions

2015-02-28 Thread Yakir Yang
Add more n/cts values, in that case we can support audio for more display resolutions (128 * SampleRate = PixelClock * N / CTS). Signed-off-by: Yakir Yang y...@rock-chips.com --- Changes in v4: None Changes in v3: None Changes in v2: - add more n/cts combinations for more display resolutions

[PATCH v4 15/15] dt-bindings: Add documentation for Rockchip dw-hdmi-audio

2015-02-28 Thread Yakir Yang
Required properties: - compatible: platform specific - i2s-controller: the i2s controller device node Signed-off-by: Yakir Yang y...@rock-chips.com --- Changes in v4: None Changes in v3: - modify cpu-of-node to i2s-controller Changes in v2: - remove codec-name and codec-dai-name - rename

[PATCH v4 0/15] Those patches is used for dw_hdmi audio support

2015-02-28 Thread Yakir Yang
/dw_hdmi: adjust n/cts setting order drm: bridge/dw_hdmi: set ncts_atomic_write cts_manual drm: bridge/dw_hdmi: add audio sample channel status setting Yakir Yang (12): drm: bridge/dw_hdmi: add irq control to suspend/resume drm: bridge/dw_hdmi: wrap irq control in fucntions drm: rockchip

[PATCH v4 02/15] drm: bridge/dw_hdmi: wrap irq control in fucntions

2015-02-28 Thread Yakir Yang
Wrap irq control in functions, and then we can call in dw_hdmi_bind/dw_hdmi_unbind/dw_hdmi_resume/dw_hdmi_suspend functions. Signed-off-by: Yakir Yang y...@rock-chips.com --- Changes in v4: None Changes in v3: - Wrap irq control in fucntions Changes in v2: None drivers/gpu/drm/bridge/dw_hdmi.c

[PATCH v4 05/15] drm: bridge/dw_hdmi: combine hdmi_set_clock_regenerator_n() and hdmi_regenerate_cts()

2015-02-28 Thread Yakir Yang
Signed-off-by: Yakir Yang y...@rock-chips.com --- Changes in v4: None Changes in v3: - Combine hdmi_set_clock_regenerator_n() and hdmi_regenerate_cts() Changes in v2: None drivers/gpu/drm/bridge/dw_hdmi.c | 17 ++--- 1 file changed, 6 insertions(+), 11 deletions(-) diff --git

[PATCH v4 14/15] ASoC: rockchip/rockchip-hdmi-audio: add sound driver for hdmi audio

2015-02-28 Thread Yakir Yang
Add a sound driver that combines rockchip-i2s cpu_dai and dw-hdmi-codec as codec_dai to provide hdmi audio output on rk3288 platforms. Signed-off-by: Yakir Yang y...@rock-chips.com --- Changes in v4: - Add .pm = snd_soc_pm_ops, Changes in v3: - Delete the operation of jack in rockchip-hdmi-audio

[PATCH v4 06/15] drm: bridge/dw_hdmi: adjust n/cts setting order

2015-02-28 Thread Yakir Yang
From: Daniel Kurtz djku...@chromium.org This patch changes the order to: - write CTS3 CTS_manual (if supported) | N_shift | CTS[19:16] - write CTS2 CTS[15:8] - write CTS1 CTS[7:0] - write N3 N[19:16] - write N2 N[15:8] - write N1 N[7:0] Signed-off-by: Yakir Yang y...@rock-chips.com Signed-off

[PATCH v4 07/15] drm: bridge/dw_hdmi: set ncts_atomic_write cts_manual

2015-02-28 Thread Yakir Yang
. Signed-off-by: Yakir Yang y...@rock-chips.com --- Changes in v4: - Combine N3 registers setting Changes in v3: - Set ncts_atomic_write cts_manual Changes in v2: None drivers/gpu/drm/bridge/dw_hdmi.c | 10 +- drivers/gpu/drm/bridge/dw_hdmi.h | 4 2 files changed, 13 insertions(+), 1

[PATCH v4 13/15] ASoC: codec/dw-hdmi-audio: add codec driver for dw hdmi audio

2015-02-28 Thread Yakir Yang
codec driver creat an standard alsa device, than config audio and report jack status through some callback interfaces that dw_hdmi driver support. Signed-off-by: Yakir Yang y...@rock-chips.com --- Changes in v4: - Replace delaywork with irq thread, and add suspend/resume interfaces, Replace dw

[PATCH v4 04/15] drm: bridge/dw_hdmi: add identification registers parse and record

2015-02-28 Thread Yakir Yang
By parsing the identification registers we can know what functions are present on the hdmi ip. Signed-off-by: Yakir Yang y...@rock-chips.com --- Changes in v4: -Correct phy_type assignment bug Changes in v3: - Add ID registers parse and record Changes in v2: None drivers/gpu/drm/bridge

[PATCH v4 12/15] drm: bridge/dw_hdmi: creat dw-hdmi-audio platform device

2015-02-28 Thread Yakir Yang
creat dw-hdmi-audio device dynamically in probe function, and transfer some interfaces to dw-hdmi-audio driver for setting hdmi audio format control hdmi audio clock. Signed-off-by: Yakir Yang y...@rock-chips.com --- Changes in v4: None Changes in v3: - Remove audio_config get_connect_status

[PATCH v4 10/15] drm: bridge/dw_hdmi: add audio sample channel status setting

2015-02-28 Thread Yakir Yang
From: Daniel Kurtz djku...@chromium.org When transmitting IEC60985 linear PCM audio, we configure the Audio Sample Channel Status information of all the channel status bits in the IEC60958 frame. Signed-off-by: Yakir Yang y...@rock-chips.com --- Changes in v4: - Give HDMI_FC_AUD_SCHNL8

[PATCH v4 09/15] drm: bridge/dw_hdmi: enable audio support for No-CEA display resolutions

2015-02-28 Thread Yakir Yang
If the monitor support audio, so we should support audio for it, even if the display resolution is No-CEA mode. Signed-off-by: Yakir Yang y...@rock-chips.com --- Changes in v4: - Add hdmi audio support when monitor support audio Changes in v3: None Changes in v2: - Enable audio support

[PATCH 01/11] drm: bridge/dw_hdmi: add audio sample channel status setting

2015-01-30 Thread Yakir Yang
When transmitting IEC60985 linear PCM audio, we configure the Aduio Sample Channel Status information of all the channel status bits in the IEC60958 frame. Signed-off-by: Yakir Yang y...@rock-chips.com --- Changes in v2: - Add audio sample channel status setting drivers/gpu/drm/bridge/dw_hdmi.c

[PATCH v2 06/12] drm: bridge/dw_hdmi: add audio support for more display resolutions

2015-01-30 Thread Yakir Yang
Add more n/cts values, in that case we can support audio for more display resolutions (128 * SampleRate = PixelClock * N / CTS). Signed-off-by: Yakir Yang y...@rock-chips.com --- Changes in v2: - add more n/cts combinations for more display resolutions drivers/gpu/drm/bridge/dw_hdmi.c | 58

[PATCH v2 07/12] drm: bridge/dw_hdmi: enable audio support for No-CEA display resolutions

2015-01-30 Thread Yakir Yang
If the monitor support audio, so we should support audio for it, even if the display resolution is No-CEA mode. Signed-off-by: Yakir Yang y...@rock-chips.com --- Changes in v2: - enable audio support for No-CEA display mode drivers/gpu/drm/bridge/dw_hdmi.c | 10 +- 1 file changed, 5

[PATCH v2 0/12] Those patches is used for dw_hdmi audio support

2015-01-30 Thread Yakir Yang
name - remove codec-name and codec-dai-name - rename rockchip,rockchip-hdmi-audio.txt to rockchip,rockchip-dw-hdmi-audio.txt Yakir Yang (12): drm: bridge/dw_hdmi: adjust n/cts setting order drm: bridge/dw_hdmi: add audio sample channel status setting drm: bridge/dw_hdmi: add irq control

[PATCH v2 01/12] drm: bridge/dw_hdmi: adjust n/cts setting order

2015-01-30 Thread Yakir Yang
value as in step 1.) 6. aud_n2 7. aud_n1 Signed-off-by: Yakir Yang y...@rock-chips.com --- Changes in v2: - adjust n/cts setting order drivers/gpu/drm/bridge/dw_hdmi.c | 37 + drivers/gpu/drm/bridge/dw_hdmi.h | 6 ++ 2 files changed, 27 insertions(+), 16

[PATCH v2 08/12] drm: bridge/dw_hdmi: add audio config interfaces

2015-01-30 Thread Yakir Yang
Designware HDMI supports four interfaces to config hdmi audio (I2S, S/PDIF, Generic Parallel Audio, AHB Audio DMA), but rk3288 only support two ways to config hdmi audio(I2S, S/PDIF), So we take I2S as hdmi audio operation interfaces. Signed-off-by: Yakir Yang y...@rock-chips.com --- Changes

[PATCH v2 10/12] ASoC: dw-hdmi-audio: add codec driver for dw hdmi audio

2015-01-30 Thread Yakir Yang
codec driver creat an standard alsa device, than config audio and report jack status through some callback interfaces that dw_hdmi driver support. Signed-off-by: Yakir Yang y...@rock-chips.com --- Changes in v2: - Update dw_hdmi audio control interfaces, and adjust jack report process sound/soc

[PATCH v2 03/12] drm: bridge/dw_hdmi: add irq control to suspend/resume

2015-01-30 Thread Yakir Yang
, and umnute the interrupt we need in the resume stage. Signed-off-by: Yakir Yang y...@rock-chips.com --- Changes in v2: - Add irq control to suspend/resume interfaces drivers/gpu/drm/bridge/dw_hdmi.c | 43 include/drm/bridge/dw_hdmi.h | 2 ++ 2 files

[PATCH v2 09/12] drm: bridge/dw_hdmi: creat dw-hdmi-audio platform device

2015-01-30 Thread Yakir Yang
creat dw-hdmi-audio device dynamically in probe function, and transfer some interfaces to dw-hdmi-audio driver for setting hdmi audio format control hdmi audio clock. Signed-off-by: Yakir Yang y...@rock-chips.com --- Changes in v2: - Update the audio control interfaces drivers/gpu/drm/bridge

[PATCH v2 11/12] ASoC: rockchip-hdmi-audio: add sound driver for hdmi audio

2015-01-30 Thread Yakir Yang
Add a sound driver that combines rockchip-i2s cpu_dai and dw-hdmi-codec as codec_dai to provide hdmi audio output on rk3288 platforms. Signed-off-by: Yakir Yang y...@rock-chips.com --- Changes in v2: - give codec-name codec-dai-name an const name sound/soc/rockchip/Kconfig | 9

[PATCH v2 02/12] drm: bridge/dw_hdmi: add audio sample channel status setting

2015-01-30 Thread Yakir Yang
When transmitting IEC60985 linear PCM audio, we configure the Aduio Sample Channel Status information of all the channel status bits in the IEC60958 frame. Signed-off-by: Yakir Yang y...@rock-chips.com --- Changes in v2: - Add audio sample channel status setting drivers/gpu/drm/bridge/dw_hdmi.c

[PATCH v2 04/12] drm: rockchip/dw_hdmi_rockchip: add resume/suspend support

2015-01-30 Thread Yakir Yang
Signed-off-by: Yakir Yang y...@rock-chips.com --- Changes in v2: - Add suspend/resume support for dw_hdmi_rockchip driver drivers/gpu/drm/rockchip/dw_hdmi-rockchip.c | 13 + 1 file changed, 13 insertions(+) diff --git a/drivers/gpu/drm/rockchip/dw_hdmi-rockchip.c b/drivers/gpu/drm

[PATCH v2 05/12] drm: rockchip/vop: filter interlace display mode

2015-01-30 Thread Yakir Yang
RK3288's VOP do not support INTERLACE display mode, so we should remove those modes out of mode_ok list. Signed-off-by: Yakir Yang y...@rock-chips.com --- Changes in v2: - filter interlace display mode for rockchip vop drivers/gpu/drm/rockchip/rockchip_drm_vop.c | 3 ++- 1 file changed, 2

[PATCH v2 12/12] dt-bindings: Add documentation for Rockchip dw-hdmi-audio

2015-01-30 Thread Yakir Yang
Required properties: - compatible: platform specific - cpu-of-node: the device node of cpu_dai Signed-off-by: Yakir Yang y...@rock-chips.com --- Changes in v2: - remove codec-name and codec-dai-name - rename rockchip,rockchip-hdmi-audio.txt to rockchip,rockchip-dw-hdmi-audio.txt .../bindings

Re: [PATCH] drm: bridge/dw_hdmi: Filter modes 165MHz for DVI

2015-06-18 Thread Yakir Yang
Doug Russell, 在 2015/6/19 0:10, Doug Anderson 写道: Russell, On Thu, Jun 18, 2015 at 8:55 AM, Russell King - ARM Linux li...@arm.linux.org.uk wrote: Perhaps you can try https://patchwork.kernel.org/patch/5906771/ Something like that needs to be done, but let's get rid of the mdvi thing in

[PATCH v5 0/6] Add dw_hdmi i2s audio support

2015-06-19 Thread Yakir Yang
rockchip,rockchip-hdmi-audio.txt to rockchip,rockchip-dw-hdmi-audio.txt Yakir Yang (6): drm: bridge/dw_hdmi: add audio support for more display resolutions drm: bridge/dw_hdmi: enable audio when sink device is HDMI and has audio drm: bridge/dw_hdmi: rename dw_hdmi-ahb-audio.h to dw_hdmi

[PATCH v5 2/6] drm: bridge/dw_hdmi: enable audio when sink device is HDMI and has audio

2015-06-19 Thread Yakir Yang
and config n/cts rightly. And actually we could know those information through parsing sink edid. drm_detect_hdmi_monitor() could report whether sink is a HDMI monitor, drm_detect_monitor_audio() could return whether sink has audio. Signed-off-by: Yakir Yang y...@rock-chips.com --- Changes in v5

[PATCH v5 5/6] ASoC: rockchip/rockchip-hdmi-audio: add sound driver for hdmi audio

2015-06-19 Thread Yakir Yang
Add a sound driver that combines rockchip-i2s cpu_dai and dw-hdmi-codec as codec_dai to provide hdmi audio output on rk3288 platforms. Signed-off-by: Yakir Yang y...@rock-chips.com --- Changes in v5: - Take Mark Brown suggest that remove the no useful code in probe func, and remove

[PATCH v5 3/6] drm: bridge/dw_hdmi: rename dw_hdmi-ahb-audio.h to dw_hdmi-audio.h

2015-06-19 Thread Yakir Yang
First step to make ahb audio driver and i2s audio driver code exist, share the audio data struct in dw_hdmi-audio.h Signed-off-by: Yakir Yang y...@rock-chips.com --- Changes in v5: None Changes in v4: None Changes in v3: None Changes in v2: None drivers/gpu/drm/bridge/dw_hdmi-ahb-audio.c

[PATCH v5 6/6] dt-bindings: Add documentation for rockchip-hdmi-audio driver

2015-06-19 Thread Yakir Yang
Required properties: - compatible: platform specific - i2s-controller: the i2s controller device node Signed-off-by: Yakir Yang y...@rock-chips.com --- Changes in v5: None Changes in v4: None Changes in v3: - modify cpu-of-node to i2s-controller Changes in v2: - remove codec-name and codec-dai

[PATCH v5 1/6] drm: bridge/dw_hdmi: add audio support for more display resolutions

2015-06-19 Thread Yakir Yang
: 25.175MHz, 40MHz, 54MHz, 65MHz, 74.25MHz, 83.5MHz, 106.5MHz, 108Mhz Signed-off-by: Yakir Yang y...@rock-chips.com --- Changes in v5: - make more words in commit message. Changes in v4: None Changes in v3: None Changes in v2: None drivers/gpu/drm/bridge/dw_hdmi.c | 56

[PATCH v5 4/6] drm: bridge/dw_hdmi-i2s-audio: add audio driver

2015-06-19 Thread Yakir Yang
Add ALSA based HDMI I2S audio driver for dw_hdmi. Sound card driver could connect to this codec through the codec dai name dw-hdmi-i2s-audio. Signed-off-by: Yakir Yang y...@rock-chips.com --- Changes in v5: - Take Mark Brown suggest that remove jack_status recorded, report jack status directly

Re: [PATCH v5 4/6] drm: bridge/dw_hdmi-i2s-audio: add audio driver

2015-06-22 Thread Yakir Yang
Paul, 在 2015/6/22 18:06, Paul Bolle 写道: Something I didn't notice in v4, sorry. On Sat, 2015-06-20 at 00:28 +0800, Yakir Yang wrote: --- /dev/null +++ b/drivers/gpu/drm/bridge/dw_hdmi-i2s-audio.c +#define DRIVER_NAME dw-hdmi-i2s-audio +MODULE_ALIAS(PLATFORM_MODULE_PREFIX DRIVER_NAME); 0

Re: [PATCH v5 4/6] drm: bridge/dw_hdmi-i2s-audio: add audio driver

2015-06-22 Thread Yakir Yang
Russell, 在 2015/6/22 18:10, Russell King - ARM Linux 写道: On Mon, Jun 22, 2015 at 12:06:04PM +0200, Paul Bolle wrote: But I think there's no platform_device with a dw-hdmi-i2s-audio name. So I wonder whether this MODULE_ALIAS() is actually needed. What breaks if you leave it out? + }

[RESEND PATCH v1 2/2] drm: bridge/dw_hdmi-i2s-audio: add audio driver

2015-05-22 Thread Yakir Yang
Add ALSA based HDMI I2S audio driver for dw_hdmi. Sound card driver could connect to this codec through the codec dai name dw-hdmi-i2s-audio. Signed-off-by: Yakir Yang y...@rock-chips.com --- drivers/gpu/drm/bridge/Kconfig | 9 + drivers/gpu/drm/bridge/Makefile| 1

[RESEND PATCH v1 1/2] drm: bridge/dw_hdmi: rename dw_hdmi-ahb-audio.h to dw_hdmi-audio.h

2015-05-22 Thread Yakir Yang
First step to make ahb audio driver and i2s audio driver code exist, share the audio data struct in dw_hdmi-audio.h Signed-off-by: Yakir Yang y...@rock-chips.com --- drivers/gpu/drm/bridge/dw_hdmi-ahb-audio.c | 2 +- drivers/gpu/drm/bridge/{dw_hdmi-ahb-audio.h = dw_hdmi

[RESEND PATCH v1 0/2] Add dw_hdmi i2s audio driver support

2015-05-22 Thread Yakir Yang
series: - rename dw_hdmi-ahb-audio.h to dw_hdmi-audio.h - add dw_hdmi i2s audio driver Here are the series patches that I depends on: * drm: bridge/dw_hdmi: fixed codec style [Yakir Yang] * drm: bridge/dw_hdmi_rockchip: improve hdmi eye-diagram test * drm: bridge/dw_hdmi: improve hdmi single-end test

Re: [PATCH v2 4/8] drm: rockchip/dp: add rockchip platform dp driver

2015-08-07 Thread Yakir Yang
still trying to integrate this into my development-tree. Am Freitag, 7. August 2015, 05:46:20 schrieb Yakir Yang: Rockchip have three clocks for dp controller, we leave pclk_edp to analogix_dp driver control, and keep the sclk_edp_24m and sclk_edp in platform driver. Signed-off-by: Yakir Yang y

[PATCH v3 07/14] drm: rockchip/dp: add rockchip platform dp driver

2015-08-19 Thread Yakir Yang
Rockchip have three clocks for dp controller, we leave pclk_edp to analogix_dp driver control, and keep the sclk_edp_24m and sclk_edp in platform driver. Signed-off-by: Yakir Yang y...@rock-chips.com --- Changes in v3: - Take Thierry Reding and Heiko suggest, leave sclk_edp_24m to rockchip dp

[PATCH v3 09/14] drm: bridge/analogix_dp: add platform device type support

2015-08-19 Thread Yakir Yang
Signed-off-by: Yakir Yang y...@rock-chips.com --- Changes in v3: None Changes in v2: - Add GNU license v2 declared and samsung copyright drivers/gpu/drm/exynos/analogix_dp-exynos.c | 1 + drivers/gpu/drm/rockchip/analogix_dp-rockchip.c | 1 + include/drm/bridge/analogix_dp.h

[PATCH v3 05/14] drm: bridge/analogix_dp: fix link_rate lane_count bug

2015-08-19 Thread Yakir Yang
, 2.7Gbps, 5.4Gbps}. Signed-off-by: Yakir Yang y...@rock-chips.com --- Changes in v3: - Take Thierry Reding suggest, link_rate and lane_count shouldn't config to the DT property value directly, but we can take those as hardware limite. For example, RK3288 only support 4 physical lanes of 2.7/1.62 Gbps

[PATCH v3 06/14] Documentation: drm/bridge: add document for analogix_dp

2015-08-19 Thread Yakir Yang
Analogix dp driver is split from exynos dp driver, so we just make an copy of exynos_dp.txt, and then simplify exynos_dp.txt Beside update some exynos dtsi file with the latest change according to the devicetree binding documents. Signed-off-by: Yakir Yang y...@rock-chips.com --- Changes in v3

[PATCH v3 10/14] drm: bridge: analogix_dp: add some rk3288 special registers setting

2015-08-19 Thread Yakir Yang
RK3288 need some special registers setting, we can separate them out by the dev_type of plat_data. Signed-off-by: Yakir Yang y...@rock-chips.com --- Changes in v3: None Changes in v2: - Fix compile failed dut to phy_pd_addr variable misspell error drivers/gpu/drm/bridge/analogix_dp_reg.c | 76

[PATCH v3 08/14] phy: Add driver for rockchip Display Port PHY

2015-08-19 Thread Yakir Yang
Signed-off-by: Yakir Yang y...@rock-chips.com --- Changes in v3: - Take Heiko suggest, add rockchip dp phy driver, collect the phy clocks and power control. Changes in v2: None .../devicetree/bindings/phy/rockchip-dp-phy.txt| 26 +++ drivers/phy/Kconfig

[PATCH v3 02/14] drm: exynos/dp: convert to drm bridge mode

2015-08-19 Thread Yakir Yang
In order to move exynos dp code to bridge directory, we need to convert driver drm bridge mode first. As dp driver already have a ptn3460 bridge, so we need to move ptn bridge to the next bridge of dp bridge. Signed-off-by: Yakir Yang y...@rock-chips.com --- Changes in v3: None Changes in v2

[PATCH v3 01/14] drm: exynos/dp: fix code style

2015-08-19 Thread Yakir Yang
After run checkpatch.pl -f --subjective command, I see there are lots of alignment problem in exynos_dp driver, so let just fix them. Signed-off-by: Yakir Yang y...@rock-chips.com --- Changes in v3: None Changes in v2: - Take Joe Preches advise, improved commit message more readable, and avoid

[PATCH v3 04/14] drm: bridge/analogix_dp: dynamic parse sync_pol interlace colorimetry

2015-08-19 Thread Yakir Yang
-by: Yakir Yang y...@rock-chips.com --- Changes in v3: - Take Thierry Reding suggest, dynamic parse video timing info from struct drm_display_mode and struct drm_display_info. Changes in v2: None drivers/gpu/drm/bridge/analogix_dp_core.c | 50 -- drivers/gpu/drm/exynos/analogix_dp

[PATCH v3 0/14] Add Analogix Core Display Port Driver

2015-08-19 Thread Yakir Yang
- Fix compile failed dut to phy_pd_addr variable misspell error Yakir Yang (14): drm: exynos/dp: fix code style drm: exynos/dp: convert to drm bridge mode drm: bridge: analogix_dp: split exynos dp driver to bridge dir drm: bridge/analogix_dp: dynamic parse sync_pol interlace

[PATCH v3 11/14] drm: bridge: analogix_dp: try force hpd after plug in lookup failed

2015-08-19 Thread Yakir Yang
Some edp screen do not have hpd signal, so we can't just return failed when hpd plug in detect failed. This is an hardware property, so we need add a devicetree property analogix,need-force-hpd to indicate this sutiation. Signed-off-by: Yakir Yang y...@rock-chips.com --- Changes in v3: - Add

[PATCH v3 13/14] drm: bridge/analogix_dp: move hpd detect to connector detect function

2015-08-19 Thread Yakir Yang
Signed-off-by: Yakir Yang y...@rock-chips.com --- Changes in v3: - move dp hpd detect to connector detect function. Changes in v2: None drivers/gpu/drm/bridge/analogix_dp_core.c | 12 ++-- 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/drivers/gpu/drm/bridge

[PATCH v3 14/14] drm: bridge/analogix_dp: add edid modes parse in get_modes method

2015-08-19 Thread Yakir Yang
Display Port monitor could support kinds of mode which indicate in monitor edid, not just one single display resolution which defined in panel or devivetree property display timing. Signed-off-by: Yakir Yang y...@rock-chips.com --- Changes in v3: - Add edid modes parse support Changes in v2

  1   2   3   4   5   6   7   8   9   10   >