[PATCH v7 5/5] drm/rockchip: support dp training outside dp firmware

2018-05-23 Thread Lin Huang
as a fallback if sw training fails. Signed-off-by: Chris Zhong <z...@rock-chips.com> Signed-off-by: Lin Huang <h...@rock-chips.com> Reviewed-by: Sean Paul <seanp...@chromium.org> --- Changes in v2: - update patch following Enric suggest Changes in v3: - use variable fw_training instead s

[PATCH v7 2/5] Documentation: dt-bindings: phy: add phy_config for Rockchip USB Type-C PHY

2018-05-23 Thread Lin Huang
If want to do training outside DP Firmware, need phy voltage swing and pre_emphasis value. Signed-off-by: Lin Huang <h...@rock-chips.com> Reviewed-by: Rob Herring <r...@kernel.org> --- Changes in v2: - None Changes in v3: - modify property description and add this property to Exa

[PATCH v7 3/5] soc: rockchip: split rockchip_typec_phy struct to separate header

2018-05-23 Thread Lin Huang
we may use rockchip_phy_typec struct in other driver, so split it to separate header. Signed-off-by: Lin Huang <h...@rock-chips.com> --- Changes in v2: - None Changes in v3: - None Changes in v4: - None Changes in v5: - None Changes in v6: - new patch here Changes in v7: - move new e

[PATCH v7 4/5] phy: rockchip-typec: support variable phy config value

2018-05-23 Thread Lin Huang
the phy config values used to fix in dp firmware, but some boards need change these values to do training and get the better eye diagram result. So support that in phy driver. Signed-off-by: Chris Zhong <z...@rock-chips.com> Signed-off-by: Lin Huang <h...@rock-chips.com> --- C

[PATCH v7 1/5] drm/rockchip: add transfer function for cdn-dp

2018-05-23 Thread Lin Huang
From: Chris Zhong <z...@rock-chips.com> We may support training outside firmware, so we need support dpcd read/write to get the message or do some setting with display. Signed-off-by: Chris Zhong <z...@rock-chips.com> Signed-off-by: Lin Huang <h...@rock-chips.com> Reviewed-by

[PATCH 2/2] ASoC: rockchip: cdn-dp sound output use spdif

2018-05-22 Thread Lin Huang
some monitors care about the parity bit in the sub-frame of I2S, but the cdn-dp always set this bit to "1", so these monitors do not have sound output if use i2s, use spdif can fix this issue. Signed-off-by: Chris Zhong <z...@rock-chips.com> Signed-off-by: Lin Huang <

[PATCH 1/2] drm/rockchip: cnd-dp: adjust spdif register setting

2018-05-22 Thread Lin Huang
We use jitter bypass mode for spdif, so do not need to set jitter mode related bit in SPDIF_CTRL_ADDR register. Also, we need to enable SPDIF_ENABLE bit. Signed-off-by: Chris Zhong <z...@rock-chips.com> Signed-off-by: Lin Huang <h...@rock-chips.com> --- drivers/gpu/drm/rockchip/cdn-d

[PATCH v6 5/5] drm/rockchip: support dp training outside dp firmware

2018-05-21 Thread Lin Huang
as a fallback if sw training fails. Signed-off-by: Chris Zhong <z...@rock-chips.com> Signed-off-by: Lin Huang <h...@rock-chips.com> Reviewed-by: Sean Paul <seanp...@chromium.org> --- Changes in v2: - update patch following Enric suggest Changes in v3: - use variable fw_training instead s

[PATCH v6 4/5] phy: rockchip-typec: support variable phy config value

2018-05-21 Thread Lin Huang
the phy config values used to fix in dp firmware, but some boards need change these values to do training and get the better eye diagram result. So support that in phy driver. Signed-off-by: Chris Zhong <z...@rock-chips.com> Signed-off-by: Lin Huang <h...@rock-chips.com> --- C

[PATCH v6 2/5] Documentation: dt-bindings: phy: add phy_config for Rockchip USB Type-C PHY

2018-05-21 Thread Lin Huang
If want to do training outside DP Firmware, need phy voltage swing and pre_emphasis value. Signed-off-by: Lin Huang <h...@rock-chips.com> --- Changes in v2: - None Changes in v3: - modify property description and add this property to Example Changes in v4: - None Changes in v5: - None C

[PATCH v6 3/5] soc: rockchip: split rockchip_typec_phy struct to separate header

2018-05-21 Thread Lin Huang
we may use rockchip_phy_typec struct in other driver, so split it to separate header. Signed-off-by: Lin Huang <h...@rock-chips.com> --- Changes in v2: - None Changes in v3: - None Changes in v4: - None Changes in v5: - None Changes in v6: - new patch here drivers/phy/rockchip/phy-ro

[PATCH v6 1/5] drm/rockchip: add transfer function for cdn-dp

2018-05-21 Thread Lin Huang
From: Chris Zhong <z...@rock-chips.com> We may support training outside firmware, so we need support dpcd read/write to get the message or do some setting with display. Signed-off-by: Chris Zhong <z...@rock-chips.com> Signed-off-by: Lin Huang <h...@rock-chips.com> Reviewed-by

[PATCH v5 4/4] drm/rockchip: support dp training outside dp firmware

2018-05-17 Thread Lin Huang
as a fallback if sw training fails. Signed-off-by: Chris Zhong <z...@rock-chips.com> Signed-off-by: Lin Huang <h...@rock-chips.com> --- Changes in v2: - update patch following Enric suggest Changes in v3: - use variable fw_training instead sw_training_success - base on DP SPCE, if training fa

[PATCH v5 2/4] Documentation: bindings: add phy_config for Rockchip USB Type-C PHY

2018-05-17 Thread Lin Huang
If want to do training outside DP Firmware, need phy voltage swing and pre_emphasis value. Signed-off-by: Lin Huang <h...@rock-chips.com> --- Changes in v2: - None Changes in v3: - modify property description and add this property to Example Change in v4: - None Change in v5:

[PATCH v5 3/4] phy: rockchip-typec: support variable phy config value

2018-05-17 Thread Lin Huang
the phy config values used to fix in dp firmware, but some boards need change these values to do training and get the better eye diagram result. So support that in phy driver. Signed-off-by: Chris Zhong <z...@rock-chips.com> Signed-off-by: Lin Huang <h...@rock-chips.com> --- C

[PATCH v5 1/4] drm/rockchip: add transfer function for cdn-dp

2018-05-17 Thread Lin Huang
From: Chris Zhong <z...@rock-chips.com> We may support training outside firmware, so we need support dpcd read/write to get the message or do some setting with display. Signed-off-by: Chris Zhong <z...@rock-chips.com> Signed-off-by: Lin Huang <h...@rock-chips.com> Reviewed-by

[PATCH v4 3/4] phy: rockchip-typec: support variable phy config value

2018-05-14 Thread Lin Huang
the phy config values used to fix in dp firmware, but some boards need change these values to do training and get the better eye diagram result. So support that in phy driver. Signed-off-by: Chris Zhong <z...@rock-chips.com> Signed-off-by: Lin Huang <h...@rock-chips.com> --- C

[PATCH v4 1/4] drm/rockchip: add transfer function for cdn-dp

2018-05-14 Thread Lin Huang
From: Chris Zhong <z...@rock-chips.com> We may support training outside firmware, so we need support dpcd read/write to get the message or do some setting with display. Signed-off-by: Chris Zhong <z...@rock-chips.com> Signed-off-by: Lin Huang <h...@rock-chips.com> Reviewed-by

[PATCH v4 4/4] drm/rockchip: support dp training outside dp firmware

2018-05-14 Thread Lin Huang
as a fallback if sw training fails. Signed-off-by: Chris Zhong <z...@rock-chips.com> Signed-off-by: Lin Huang <h...@rock-chips.com> --- Changes in v2: - update patch following Enric suggest Changes in v3: - use variable fw_training instead sw_training_success - base on DP SPCE, if training fa

[PATCH v4 2/4] Documentation: bindings: add phy_config for Rockchip USB Type-C PHY

2018-05-14 Thread Lin Huang
If want to do training outside DP Firmware, need phy voltage swing and pre_emphasis value. Signed-off-by: Lin Huang <h...@rock-chips.com> --- Changes in v2: - None Changes in v3: - modify property description and add this property to Example Change in v4: - None .../devicetree/bindings/p

[PATCH v3 4/4] drm/rockchip: support dp training outside dp firmware

2018-05-14 Thread Lin Huang
as a fallback if sw training fails. Signed-off-by: Chris Zhong <z...@rock-chips.com> Signed-off-by: Lin Huang <h...@rock-chips.com> --- Changes in v2: - update patch following Enric suggest Changes in v3: - use variable fw_training instead sw_training_success - base on DP SPCE, if train

[PATCH v3 3/4] phy: rockchip-typec: support variable phy config value

2018-05-14 Thread Lin Huang
the phy config values used to fix in dp firmware, but some boards need change these values to do training and get the better eye diagram result. So support that in phy driver. Signed-off-by: Chris Zhong <z...@rock-chips.com> Signed-off-by: Lin Huang <h...@rock-chips.com> --- C

[PATCH v3 1/4] drm/rockchip: add transfer function for cdn-dp

2018-05-14 Thread Lin Huang
From: Chris Zhong <z...@rock-chips.com> We may support training outside firmware, so we need support dpcd read/write to get the message or do some setting with display. Signed-off-by: Chris Zhong <z...@rock-chips.com> Signed-off-by: Lin Huang <h...@rock-chips.com> Reviewed-by

[PATCH v3 2/4] Documentation: bindings: add phy_config for Rockchip USB Type-C PHY

2018-05-14 Thread Lin Huang
If want to do training outside DP Firmware, need phy voltage swing and pre_emphasis value. Signed-off-by: Lin Huang <h...@rock-chips.com> --- Changes in v2: - rebase Changes in v3: - modify property description and add this property to example .../devicetree/bindings/phy/phy-rockchip-typ

[PATCH v2 3/4] Documentation: bindings: add phy_config for Rockchip USB Type-C PHY

2018-05-09 Thread Lin Huang
If want to do training outside DP Firmware, need phy voltage swing and pre_emphasis value. Signed-off-by: Lin Huang <h...@rock-chips.com> --- Changes in v2: - rebase Documentation/devicetree/bindings/phy/phy-rockchip-typec.txt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff

[PATCH v2 4/4] drm/rockchip: support dp training outside dp firmware

2018-05-09 Thread Lin Huang
as a fallback if sw training fails. Signed-off-by: Chris Zhong <z...@rock-chips.com> Signed-off-by: Lin Huang <h...@rock-chips.com> --- Changes in v2: - update patch following Enric suggest drivers/gpu/drm/rockchip/Makefile | 3 +- drivers/gpu/drm/rockchip/c

[PATCH v2 1/4] drm/rockchip: add transfer function for cdn-dp

2018-05-09 Thread Lin Huang
From: Chris Zhong <z...@rock-chips.com> We may support training outside firmware, so we need support dpcd read/write to get the message or do some setting with display. Signed-off-by: Chris Zhong <z...@rock-chips.com> Signed-off-by: Lin Huang <h...@rock-chips.com> --- Change

[PATCH v2 2/4] phy: rockchip-typec: support variable phy config value

2018-05-09 Thread Lin Huang
the phy config values used to fix in dp firmware, but some boards need change these values to do training and get the better eye diagram result. So support that in phy driver. Signed-off-by: Chris Zhong <z...@rock-chips.com> Signed-off-by: Lin Huang <h...@rock-chips.com> --- C

[PATCH 3/4] Documentation: bindings: add phy_config for Rockchip USB Type-C PHY

2018-05-04 Thread Lin Huang
If want to do training outside DP Firmware, need phy voltage swing and pre_emphasis value. Signed-off-by: Lin Huang <h...@rock-chips.com> --- Documentation/devicetree/bindings/phy/phy-rockchip-typec.txt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Documen

[PATCH 2/4] phy: rockchip-typec: support variable phy config value

2018-05-04 Thread Lin Huang
the phy config values used to fix in dp firmware, but some boards need change these values to do training and get the better eye diagram result. So support that in phy driver. Signed-off-by: Chris Zhong <z...@rock-chips.com> Signed-off-by: Lin Huang <h...@rock-chips.com> --- drivers/

[PATCH 1/4] drm/rockchip: add transfer function for cdn-dp

2018-05-04 Thread Lin Huang
From: Chris Zhong <z...@rock-chips.com> We may support training outside firmware, so we need support dpcd read/write to get the message or do some setting with display. Signed-off-by: Chris Zhong <z...@rock-chips.com> Signed-off-by: Lin Huang <h...@rock-chips.com> --- driver

[PATCH 4/4] drm/rockchip: support dp training outside dp firmware

2018-05-04 Thread Lin Huang
. Signed-off-by: Chris Zhong <z...@rock-chips.com> Signed-off-by: Lin Huang <h...@rock-chips.com> --- drivers/gpu/drm/rockchip/Makefile | 3 +- drivers/gpu/drm/rockchip/cdn-dp-core.c | 23 +- drivers/gpu/drm/rockchip/cdn-dp-core.h | 2 + drivers/gpu/drm/roc

[PATCH v4 3/3] dt-bindings: Add INNOLUX P097PFG panel bindings

2018-03-14 Thread Lin Huang
From: huang lin <h...@rock-chips.com> The Innolux P097PFG panel is 9.7" panel with 1536X2048 resolution, it reuse P079ZCA panel driver, so improve p079ZCA dt-binding to support P097PFG. Change-Id: I8704914898fe53b734d31fbe646df8aa5fd8b30d Signed-off-by: Lin Huang <h...@

[PATCH v4 2/3] drm/panel: support Innolux P097PFG panel

2018-03-14 Thread Lin Huang
Support Innolux P097PFG 9.7" 1536x2048 TFT LCD panel, it reuse the Innolux P079ZCA panel driver. Change-Id: I97923aa3735f707332681691b0231c9421b427d0 Signed-off-by: Lin Huang <h...@rock-chips.com> --- Changes in v2: - None Changes in v3: - None Changes in v4: - download panel i

[PATCH v4 1/3] drm/panel: refactor INNOLUX P079ZCA panel driver

2018-03-14 Thread Lin Huang
From: huang lin <h...@rock-chips.com> Refactor Innolux P079ZCA panel driver, let it support multi panel. Change-Id: If89be5e56dba8cb498e2d50c1bbeb0e8016123a2 Signed-off-by: Lin Huang <h...@rock-chips.com> --- Changes in v2: - Change regulator property name to meet the panel datash

[RESEND PATCH v3 3/3] dt-bindings: Add INNOLUX P097PFG panel bindings

2017-12-03 Thread Lin Huang
The Innolux P097PFG panel is 9.7" panel with 1536X2048 resolution, it reuse P079ZCA panel driver, so improve p079ZCA dt-binding to support P097PFG. Signed-off-by: Lin Huang <h...@rock-chips.com> --- .../devicetree/bindings/display/panel/innolux,p079zca.txt | 11 +-- 1 file

[RESEND PATCH v3 1/3] drm/panel: refactor INNOLUX P079ZCA panel driver

2017-12-03 Thread Lin Huang
Refactor Innolux P079ZCA panel driver, let it support multi panel. Signed-off-by: Lin Huang <h...@rock-chips.com> --- Changes in v2: - Change regulator property name to meet the panel datasheet Changes in v3: - this patch only refactor P079ZCA panel to support multi panel, support P097PFG

[RESEND PATCH v3 2/3] drm/panel: support Innolux P097PFG panel

2017-12-03 Thread Lin Huang
Support Innolux P097PFG 9.7" 1536x2048 TFT LCD panel, it reuse the Innolux P079ZCA panel driver. Signed-off-by: Lin Huang <h...@rock-chips.com> --- drivers/gpu/drm/panel/Kconfig | 9 drivers/gpu/drm/panel/panel-innolux-p079zca.c | 31 +

[PATCH v3 2/3] drm/panel: support Innolux P097PFG panel

2017-12-03 Thread Lin Huang
Support Innolux P097PFG 9.7" 1536x2048 TFT LCD panel, it reuse the Innolux P079ZCA panel driver. Signed-off-by: Lin Huang <h...@rock-chips.com> --- drivers/gpu/drm/panel/Kconfig | 9 drivers/gpu/drm/panel/panel-innolux-p079zca.c | 31 +

[PATCH v3 3/3] dt-bindings: Add INNOLUX P097PFG panel bindings

2017-12-03 Thread Lin Huang
The Innolux P097PFG panel is 9.7" panel with 1536X2048 resolution, it reuse P079ZCA panel driver, so improve p079ZCA dt-binding to support P097PFG. Change-Id: I8704914898fe53b734d31fbe646df8aa5fd8b30d Signed-off-by: Lin Huang <h...@rock-chips.com> --- .../devicetree/bindings/di

[PATCH v3 1/3] drm/panel: refactor INNOLUX P079ZCA panel driver

2017-12-03 Thread Lin Huang
Refactor Innolux P079ZCA panel driver, let it support multi panel. Signed-off-by: Lin Huang <h...@rock-chips.com> --- Changes in v2: - Change regulator property name to meet the panel datasheet Changes in v3: - this patch only refactor P079ZCA panel to support multi panel, support P097PFG

[PATCH v2 1/2] drm/panel: support Innolux P097PFG panel

2017-11-30 Thread Lin Huang
Support Innolux P097PFG 9.7" 1536x2048 TFT LCD panel, it refactor Innolux P079ZCA panel driver, let it support multi panel, and add support P097PFG panel in this driver. Signed-off-by: Lin Huang <h...@rock-chips.com> --- Changes in v2: - change regulator property name to meet the pane

[PATCH v2 2/2] dt-bindings: Add INNOLUX P097PFG panel bindings

2017-11-30 Thread Lin Huang
The Innolux P097PFG panel is 9.7" panel with 1536X2048 resolution, it reuse P079ZCA panel driver, so improve p079ZCA dt-binding to support P097PFG. Signed-off-by: Lin Huang <h...@rock-chips.com> --- .../devicetree/bindings/display/panel/innolux,p079zca.txt | 11 +-- 1 file

[RESENT PATCH] drm/panel: support Innolux P097PFG panel

2017-11-29 Thread Lin Huang
Support Innolux P097PFG 9.7" 1536x2048 TFT LCD panel, it refactor Innolux P079ZCA panel driver, let it support multi panel, and add support P097PFG panel in this driver. Signed-off-by: Lin Huang <h...@rock-chips.com> --- drivers/gpu/drm/panel/panel-innolux-p079

[PATCH] drm/panel: support Innolux P097PFG panel

2017-11-29 Thread Lin Huang
Support Innolux P097PFG 9.7" 1536x2048 TFT LCD panel, it refactor Innolux P079ZCA panel driver, let it support multi panel, and add support P097PFG panel in this driver. Change-Id: If342e58a3de2861219b0b1313f402b6cb41ffa29 Signed-off-by: Lin Huang <h...@rock-chips.com> --- drivers/gp

[PATCH v2 2/2] devicetree: i2c-hid: Add reset property

2017-10-30 Thread Lin Huang
Document a "reset" and "assert-reset-us", it can be used for driver control reset property. And reuse post-power-on-delay-ms for deassert reset delay. Signed-off-by: Lin Huang <h...@rock-chips.com> --- Documentation/devicetree/bindings/input/hid-over-i2c.txt |

[PATCH v2 1/2] HID: i2c-hid: add reset gpio property

2017-10-30 Thread Lin Huang
some i2c hid devices have reset gpio, need to control it in the driver. Signed-off-by: Lin Huang <h...@rock-chips.com> --- Changes in v2: - Add 10us in usleep_range() upper range - reuse post_power_delay_ms as deassert reset delay - delete deassert_reset_us property drivers/hid/i2c-h

[PATCH] HID: i2c-hid: add reset gpio property

2017-10-29 Thread Lin Huang
some i2c hid devices have reset gpio, need to control it in the driver. Change-Id: I87bca954bffc7eb7b35711406f522cb3d0fc2ded Signed-off-by: Lin Huang <h...@rock-chips.com> --- drivers/hid/i2c-hid/i2c-hid.c | 63 +++ include/linux/platform_data/i2c

[PATCH v2 1/2] ASoC: codec: use enable pin to control dmic start and stop

2017-08-16 Thread Lin Huang
From: huang lin <h...@rock-chips.com> on some board use enable pin to control dmic start and stop, so add this feature in dmic driver. Signed-off-by: Lin Huang <h...@rock-chips.com> --- sound/soc/codecs/Kconfig | 2 +- sound/soc/codecs/

[PATCH v2 2/2] dt-bindings: sound: add dmicen property in dmic driver

2017-08-16 Thread Lin Huang
From: huang lin <h...@rock-chips.com> there may use enable pin to control dmic start and stop, so add this property in dt-bindings. Signed-off-by: Lin Huang <h...@rock-chips.com> --- Documentation/devicetree/bindings/sound/dmic.txt | 4 1 file changed, 4 insertions(+)

[PATCH 1/2] ASoC: codec: use enable pin to control dmic start and stop

2017-08-11 Thread Lin Huang
on some board use enable pin to control dmic start and stop, so add this feature in dmic driver. Signed-off-by: Lin Huang <h...@rock-chips.com> --- sound/soc/codecs/Kconfig | 2 +- sound/soc/codecs/dmic.c | 61 2 files changed, 62 inse

[PATCH 2/2] dt-bindings: sound: add dmicen property in dmic driver

2017-08-11 Thread Lin Huang
there may use enable pin to control dmic start and stop, so add this property in dt-bindings. Signed-off-by: Lin Huang <h...@rock-chips.com> --- Documentation/devicetree/bindings/sound/dmic.txt | 4 1 file changed, 4 insertions(+) diff --git a/Documentation/devicetree/bindings

[PATCH v7] PM/devfreq: add suspend frequency support

2016-11-24 Thread Lin Huang
Add suspend frequency support and if needed set it to the frequency obtained from the suspend opp (can be defined using opp-v2 bindings and is optional). Signed-off-by: Lin Huang <h...@rock-chips.com> --- Changes in v2: - use update_devfreq() instead devfreq_update_status() Changes in v3:

[PATCH v6] PM/devfreq: add suspend frequency support

2016-11-08 Thread Lin Huang
Add suspend frequency support and if needed set it to the frequency obtained from the suspend opp (can be defined using opp-v2 bindings and is optional). Signed-off-by: Lin Huang <h...@rock-chips.com> --- Changes in v2: - use update_devfreq() instead devfreq_update_status() Changes in v3:

[PATCH v5] PM/devfreq: add suspend frequency support

2016-11-08 Thread Lin Huang
Add suspend frequency support and if needed set it to the frequency obtained from the suspend opp (can be defined using opp-v2 bindings and is optional). Signed-off-by: Lin Huang <h...@rock-chips.com> --- Changes in v2: - use update_devfreq() instead devfreq_update_status() Changes in v3:

[PATCH v4] PM/devfreq: add suspend frequency support

2016-11-08 Thread Lin Huang
Add suspend frequency support and if needed set it to the frequency obtained from the suspend opp (can be defined using opp-v2 bindings and is optional). Signed-off-by: Lin Huang <h...@rock-chips.com> --- Changes in v2: - use update_devfreq() instead devfreq_update_status() Changes in v3:

[PATCH v3 0/2] set specific ddr frequency when stop ddr dvfs

2016-11-06 Thread Lin Huang
We need ddr run a specific frequency when ddr dvfs stop working. So we implement get suspend frequency function in devfreq framework, and call it in rk3399 dmc driver. Lin Huang (2): PM/devfreq: add suspend frequency support PM/devfreq: rk3399: get devfreq suspend frequency drivers/devfreq

[PATCH v3 2/2] PM/devfreq: rk3399: get devfreq suspend frequency

2016-11-06 Thread Lin Huang
We need ddr run a specific frequency when ddr dvfs stop working. For example: if we enable two monitor, then we will stop ddr dvfs, but we hope ddr can run in highest frequency obviously. Signed-off-by: Lin Huang <h...@rock-chips.com> --- Changes in v2: - None Changes in v3: - None d

[RESEND PATCH v3 2/2] PM/devfreq: rk3399: get devfreq suspend frequency

2016-11-06 Thread Lin Huang
We need ddr run a specific frequency when ddr dvfs stop working. For example: if we enable two monitor, then we will stop ddr dvfs, but we hope ddr can run in highest frequency obviously. Signed-off-by: Lin Huang <h...@rock-chips.com> --- Changes in v2: - None Changes in v3: - None d

[RESEND PATCH v3 1/2] PM/devfreq: add suspend frequency support

2016-11-06 Thread Lin Huang
Add suspend frequency support and if needed set it to the frequency obtained from the suspend opp (can be defined using opp-v2 bindings and is optional). Signed-off-by: Lin Huang <h...@rock-chips.com> --- Changes in v2: - use update_devfreq() instead devfreq_update_status() Changes in v3:

[RESEND PATCH v3 0/2] set specific ddr frequency when stop ddr dvfs

2016-11-06 Thread Lin Huang
We need ddr run a specific frequency when ddr dvfs stop working. So we implement get suspend frequency function in devfreq framework, and call it in rk3399 dmc driver. Lin Huang (2): PM/devfreq: add suspend frequency support PM/devfreq: rk3399: get devfreq suspend frequency drivers/devfreq

[PATCH v3 1/2] PM/devfreq: add suspend frequency support

2016-11-06 Thread Lin Huang
Add suspend frequency support and if needed set it to the frequency obtained from the suspend opp (can be defined using opp-v2 bindings and is optional). Signed-off-by: Lin Huang <h...@rock-chips.com> --- Changes in v2: - use update_devfreq() instead devfreq_update_status() Changes in v3:

[PATCH v2 0/2] set specific ddr frequency when stop ddr dvfs

2016-11-03 Thread Lin Huang
We need ddr run a specific frequency when ddr dvfs stop working. So we implement get suspend frequency function in devfreq framework, and call it in rk3399 dmc driver. Lin Huang (2): PM/devfreq: add suspend frequency support PM/devfreq: rk3399: set specific ddr frequency when stop ddr dvfs

[PATCH v2 1/2] PM/devfreq: add suspend frequency support

2016-11-03 Thread Lin Huang
Add suspend frequency support and if needed set it to the frequency obtained from the suspend opp (can be defined using opp-v2 bindings and is optional). Change-Id: Iaa0d3848d63d9ce03f65ea76f263e4685a4c295e Signed-off-by: Lin Huang <h...@rock-chips.com> --- Changes in v2: - use update_d

[PATCH v2 2/2] PM/devfreq: rk3399: set specific ddr frequency when stop ddr dvfs

2016-11-03 Thread Lin Huang
We need ddr run a specific frequency when ddr dvfs stop working. For example: if we enable two monitor, then we will stop ddr dvfs, but we hope ddr can run in highest frequency obviously. Change-Id: I02460f0becbf0e1a732e2a55b8e529f53c01109c Signed-off-by: Lin Huang <h...@rock-chips.

[PATCH v10 1/5] Documentation: bindings: add dt documentation for dfi controller

2016-09-04 Thread Lin Huang
This patch adds the documentation for rockchip dfi devfreq-event driver. Signed-off-by: Lin Huang <h...@rock-chips.com> Acked-by: Chanwoo Choi <cw00.c...@samsung.com> --- Changes in v10: - None Changes in v9: - reorder compatible and reg Changes in v8: - delete a unuse blank line C

[PATCH v10 4/5] PM / devfreq: rockchip: add devfreq driver for rk3399 dmc

2016-09-04 Thread Lin Huang
base on dfi result, we do ddr frequency scaling, register dmc driver to devfreq framework, and use simple-ondemand policy. Signed-off-by: Lin Huang <h...@rock-chips.com> Signed-off-by: MyngJoo Ham <myngjoo@samsung.com> Reviewed-by: Chanwoo Choi <cw00.c...@samsung.com>

[PATCH v10 3/5] Documentation: bindings: add dt documentation for rk3399 dmc

2016-09-04 Thread Lin Huang
This patch adds the documentation for rockchip rk3399 dmc driver. Signed-off-by: Lin Huang <h...@rock-chips.com> Reviewed-by: Chanwoo Choi <cw00.c...@samsung.com> --- Changes in v10: - add rockchip prefix in property describe Changes in v9: - add ddr timing property to node Changes

[PATCH v10 0/5] rk3399 support ddr frequency scaling

2016-09-04 Thread Lin Huang
low | | | | wait dcf interrupt<---trigger dcf interrupt | | return Lin Huang (5): Documentation: bindings: add dt documentation for dfi controller PM / devfreq: event: support rockchip dfi cont

[PATCH v10 2/5] PM / devfreq: event: support rockchip dfi controller

2016-09-04 Thread Lin Huang
on rk3399 platform, there is dfi conroller can monitor ddr load, base on this result, we can do ddr freqency scaling. Signed-off-by: Lin Huang <h...@rock-chips.com> Signed-off-by: MyungJoo Ham <myungjoo@samsung.com> Acked-by: Chanwoo Choi <cw00.c...@samsung.com> --- Cha

[PATCH v10 5/5] drm/rockchip: Add dmc notifier in vop driver

2016-09-04 Thread Lin Huang
frequency scaling. Signed-off-by: Lin Huang <h...@rock-chips.com> Reviewed-by: Chanwoo Choi <cw00.c...@samsung.com> --- Changes in v10: - None Changes in v9: - None Changes in v8: - None Changes in v7: - None Changes in v6: - fix a build error Changes in v5: - improve some nits C

[PATCH v9 0/5] rk3399 support ddr frequency scaling

2016-09-02 Thread Lin Huang
low | | | | wait dcf interrupt<---trigger dcf interrupt | | return Lin Huang (5): Documentation: bindings: add dt documentation for dfi controller PM / devfreq: event: support rockchip dfi cont

[PATCH v9 4/5] PM / devfreq: rockchip: add devfreq driver for rk3399 dmc

2016-09-02 Thread Lin Huang
base on dfi result, we do ddr frequency scaling, register dmc driver to devfreq framework, and use simple-ondemand policy. Signed-off-by: Lin Huang <h...@rock-chips.com> Signed-off-by: MyngJoo Ham <myngjoo@samsung.com> Reviewed-by: Chanwoo Choi <cw00.c...@samsung.com>

[PATCH v9 5/5] drm/rockchip: Add dmc notifier in vop driver

2016-09-02 Thread Lin Huang
frequency scaling. Signed-off-by: Lin Huang <h...@rock-chips.com> Reviewed-by: Chanwoo Choi <cw00.c...@samsung.com> --- Changes in v9: - None Changes in v8: - None Changes in v7: - None Changes in v6: - fix a build error Changes in v5: - improve some nits Changes in v4: - regis

[PATCH v9 3/5] Documentation: bindings: add dt documentation for rk3399 dmc

2016-09-02 Thread Lin Huang
This patch adds the documentation for rockchip rk3399 dmc driver. Signed-off-by: Lin Huang <h...@rock-chips.com> --- Changes in v9: - add ddr timing property to node Changes in v8: - add ddr timing properties Changes in v7: - None Changes in v6: -Add more detail in Documentation Changes

[PATCH v9 2/5] PM / devfreq: event: support rockchip dfi controller

2016-09-02 Thread Lin Huang
on rk3399 platform, there is dfi conroller can monitor ddr load, base on this result, we can do ddr freqency scaling. Signed-off-by: Lin Huang <h...@rock-chips.com> Signed-off-by: MyungJoo Ham <myungjoo@samsung.com> Acked-by: Chanwoo Choi <cw00.c...@samsung.com> --- Ch

[PATCH v9 1/5] Documentation: bindings: add dt documentation for dfi controller

2016-09-02 Thread Lin Huang
This patch adds the documentation for rockchip dfi devfreq-event driver. Signed-off-by: Lin Huang <h...@rock-chips.com> --- Changes in v9: - reorder compatible and reg Changes in v8: - delete a unuse blank line Changes in v7: - None Changes in v6: - None Changes in v5: - None Changes

[PATCH 0/5] rk3399 support ddr frequency scaling

2016-09-02 Thread Lin Huang
low | | | | wait dcf interrupt<---trigger dcf interrupt | | return Lin Huang (5): Documentation: bindings: add dt documentation for dfi controller PM / devfreq: event: support rockchip dfi cont

[PATCH 1/5] Documentation: bindings: add dt documentation for dfi controller

2016-09-02 Thread Lin Huang
This patch adds the documentation for rockchip dfi devfreq-event driver. Signed-off-by: Lin Huang <h...@rock-chips.com> --- Changes in v8: - delete a unuse blank line Changes in v7: - None Changes in v6: - None Changes in v5: - None Changes in v4: - None Changes in v3: - None Changes

[PATCH 1/5] Documentation: bindings: add dt documentation for dfi controller

2016-09-01 Thread Lin Huang
This patch adds the documentation for rockchip dfi devfreq-event driver. Signed-off-by: Lin Huang <h...@rock-chips.com> --- Changes in v8: - delete a unuse blank line Changes in v7: - None Changes in v6: - None Changes in v5: - None Changes in v4: - None Changes in v3: - None Changes

[PATCH 2/5] PM / devfreq: event: support rockchip dfi controller

2016-09-01 Thread Lin Huang
on rk3399 platform, there is dfi conroller can monitor ddr load, base on this result, we can do ddr freqency scaling. Signed-off-by: Lin Huang <h...@rock-chips.com> Signed-off-by: MyungJoo Ham <myungjoo@samsung.com> Acked-by: Chanwoo Choi <cw00.c...@samsung.com> --- Ch

[PATCH 5/5] drm/rockchip: Add dmc notifier in vop driver

2016-09-01 Thread Lin Huang
frequency scaling. Signed-off-by: Lin Huang <h...@rock-chips.com> Reviewed-by: Chanwoo Choi <cw00.c...@samsung.com> --- Changes in v8: - None Changes in v7: - None Changes in v6: - fix a build error Changes in v5: - improve some nits Changes in v4: - regis

[PATCH 3/5] Documentation: bindings: add dt documentation for rk3399 dmc

2016-09-01 Thread Lin Huang
This patch adds the documentation for rockchip rk3399 dmc driver. Signed-off-by: Lin Huang <h...@rock-chips.com> --- Changes in v8: - add ddr timing properties Changes in v7: -None Changes in v6: -Add more detail in Documentation Changes in v5: -None Changes in v4: -None Changes in v3:

[PATCH 4/5] PM / devfreq: rockchip: add devfreq driver for rk3399 dmc

2016-09-01 Thread Lin Huang
base on dfi result, we do ddr frequency scaling, register dmc driver to devfreq framework, and use simple-ondemand policy. Signed-off-by: Lin Huang <h...@rock-chips.com> Signed-off-by: MyngJoo Ham <myngjoo@samsung.com> Reviewed-by: Chanwoo Choi <cw00.c...@samsung.com> --- C

[PATCH 0/5] rk3399 support ddr frequency scaling

2016-09-01 Thread Lin Huang
low | | | | wait dcf interrupt<---trigger dcf interrupt | | return Lin Huang (5): Documentation: bindings: add dt documentation for dfi controller PM / devfreq: event: support rockchip dfi cont

[PATCH v7 5/8] PM / devfreq: event: support rockchip dfi controller

2016-08-21 Thread Lin Huang
on rk3399 platform, there is dfi conroller can monitor ddr load, base on this result, we can do ddr freqency scaling. Signed-off-by: Lin Huang <h...@rock-chips.com> Acked-by: Chanwoo Choi <cw00.c...@samsung.com> --- Changes in v7: -access need to *4 to get right DDR loading Changes

[PATCH v7 2/8] clk: rockchip: rk3399: add SCLK_DDRCLK ID for ddrc

2016-08-21 Thread Lin Huang
Signed-off-by: Lin Huang <h...@rock-chips.com> --- Changes in v7: -None Changes in v6: -None Changes in v5: -None Changes in v4: -None Changes in v3: -None Changes in v2: -None Changes in v1: -None include/dt-bindings/clock/rk3399-cru.h | 1 + 1 file changed, 1 insertion(+) diff

[PATCH v7 4/8] Documentation: bindings: add dt documentation for dfi controller

2016-08-21 Thread Lin Huang
This patch adds the documentation for rockchip dfi devfreq-event driver. Signed-off-by: Lin Huang <h...@rock-chips.com> --- Changes in v7: -None Changes in v6: -None Changes in v5: -None Changes in v4: -None Changes in v3: -None Changes in v2: -None Changes in v1: -None .../bi

[PATCH v7 6/8] Documentation: bindings: add dt documentation for rk3399 dmc

2016-08-21 Thread Lin Huang
This patch adds the documentation for rockchip rk3399 dmc driver. Signed-off-by: Lin Huang <h...@rock-chips.com> --- Changes in v7: -None Changes in v6: -Add more detail in Documentation Changes in v5: -None Changes in v4: -None Changes in v3: -None Changes in v2: -None Changes

[PATCH v7 7/8] PM / devfreq: rockchip: add devfreq driver for rk3399 dmc

2016-08-21 Thread Lin Huang
base on dfi result, we do ddr frequency scaling, register dmc driver to devfreq framework, and use simple-ondemand policy. Signed-off-by: Lin Huang <h...@rock-chips.com> Reviewed-by: Chanwoo Choi <cw00.c...@samsung.com> --- Changes in v7: - remove a blank line Changes in v6: -

[PATCH v7 1/8] clk: rockchip: add new clock-type for the ddrclk

2016-08-21 Thread Lin Huang
On new rockchip platform(rk3399 etc), there have dcf controller to do ddr frequency scaling, and this controller will implement in arm-trust-firmware. We add a special clock-type to handle that. Signed-off-by: Lin Huang <h...@rock-chips.com> --- Changes in v7: - add rockchip_ddrclk_sip_ops

[PATCH v7 3/8] clk: rockchip: rk3399: add ddrc clock support

2016-08-21 Thread Lin Huang
add ddrc clock setting, so we can do ddr frequency scaling on rk3399 platform in future. Signed-off-by: Lin Huang <h...@rock-chips.com> --- Changes in v7: - change SCLK_DDRC name from clk_ddrc to sclk_ddrc Changes in v6: - None Changes in v5: - fit for the ddr type Changes in v4:

[PATCH v7 0/8] rk3399 support ddr frequency scaling

2016-08-21 Thread Lin Huang
low | | | | wait dcf interrupt<---trigger dcf interrupt | | return Lin Huang (8): clk: rockchip: add new clock-type for the ddrclk clk: rockchip: rk3399: add SCLK_DDRCLK ID for ddrc clk: ro

[PATCH v7 8/8] drm/rockchip: Add dmc notifier in vop driver

2016-08-21 Thread Lin Huang
frequency scaling. Signed-off-by: Lin Huang <h...@rock-chips.com> Reviewed-by: Chanwoo Choi <cw00.c...@samsung.com> --- Changes in v7: - None Changes in v6: - fix a build error Changes in v5: - improve some nits Changes in v4: - register notifier to devfreq_register_no

[PATCH v6 2/8] clk: rockchip: rk3399: add SCLK_DDRCLK ID for ddrc

2016-08-16 Thread Lin Huang
Signed-off-by: Lin Huang <h...@rock-chips.com> --- Changes in v6: -None Changes in v5: -None Changes in v4: -None Changes in v3: -None Changes in v2: -None Changes in v1: -None include/dt-bindings/clock/rk3399-cru.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/dt-bi

[PATCH v6 4/8] Documentation: bindings: add dt documentation for dfi controller

2016-08-16 Thread Lin Huang
This patch adds the documentation for rockchip dfi devfreq-event driver. Signed-off-by: Lin Huang <h...@rock-chips.com> --- Changes in v6: -None Changes in v5: -None Changes in v4: -None Changes in v3: -None Changes in v2: -None Changes in v1: -None .../bindings/devfreq/event/ro

[PATCH v6 1/8] clk: rockchip: add new clock-type for the ddrclk

2016-08-16 Thread Lin Huang
On new rockchip platform(rk3399 etc), there have dcf controller to do ddr frequency scaling, and this controller will implement in arm-trust-firmware. We add a special clock-type to handle that. Signed-off-by: Lin Huang <h...@rock-chips.com> --- Changes in v6: - none Changes in v5: -

[PATCH v6 0/8] rk3399 support ddr frequency scaling

2016-08-16 Thread Lin Huang
low | | | | wait dcf interrupt<---trigger dcf interrupt | | return Lin Huang (8): clk: rockchip: add new clock-type for the ddrclk clk: rockchip: rk3399: add SCLK_DDRCLK ID for ddrc clk: ro

[PATCH v6 8/8] drm/rockchip: Add dmc notifier in vop driver

2016-08-16 Thread Lin Huang
enabled, we need to disable dmc, since dcf only base on one vop vblank time, so the other panel will flicker when do ddr frequency scaling. Signed-off-by: Lin Huang <h...@rock-chips.com> Reviewed-by: Chanwoo Choi <cw00.c...@samsung.com> --- Changes in v6: - fix a build error Changes in v

[PATCH v6 3/8] clk: rockchip: rk3399: add ddrc clock support

2016-08-16 Thread Lin Huang
add ddrc clock setting, so we can do ddr frequency scaling on rk3399 platform in future. Signed-off-by: Lin Huang <h...@rock-chips.com> --- Changes in v6: - None Changes in v5: - fit for the ddr type Changes in v4: - None Changes in v3: - None Changes in v2: - remove clk_ddrc_dpll_sr

  1   2   >