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

2018-03-14 Thread Lin Huang
From: huang lin Refactor Innolux P079ZCA panel driver, let it support multi panel. Change-Id: If89be5e56dba8cb498e2d50c1bbeb0e8016123a2 Signed-off-by: Lin Huang --- Changes in v2: - Change regulator property name to meet the panel datasheet Changes in v3: - this patch only refactor P079ZCA

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

2018-03-14 Thread Lin Huang
From: huang lin 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 --- Changes in v2: - None Changes in v3: -

[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 --- Changes in v2: - None Changes in v3: - None Changes in v4: - download panel initial code drivers/gpu/drm/

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

2018-05-14 Thread Lin Huang
From: Chris Zhong 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 Signed-off-by: Lin Huang Reviewed-by: Sean Paul Reviewed-by: Enric Balletbo --- Changes in v2: - update patch

[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 --- Changes in v2: - rebase Changes in v3: - modify property description and add this property to example .../devicetree/bindings/phy/phy-rockchip-typec.txt | 29

[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 Signed-off-by: Lin Huang --- 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 fail use lower link rate to retry training drivers

[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 Signed-off-by: Lin Huang --- Changes in v2: - update patch following Enric suggest Changes

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

2018-05-14 Thread Lin Huang
From: Chris Zhong 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 Signed-off-by: Lin Huang Reviewed-by: Sean Paul Reviewed-by: Enric Balletbo --- Changes in v2: - update patch

[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 Signed-off-by: Lin Huang --- 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 fail use lower link rate to retry training Changes in v4

[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 --- Changes in v2: - None Changes in v3: - modify property description and add this property to Example Change in v4: - None .../devicetree/bindings/phy/phy-rockchip-typec.txt

[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 Signed-off-by: Lin Huang --- Changes in v2: - update patch following Enric suggest Changes

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

2018-05-04 Thread Lin Huang
. Signed-off-by: Chris Zhong Signed-off-by: Lin Huang --- 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/rockchip/cdn-dp-link-training.c | 398

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

2018-05-04 Thread Lin Huang
From: Chris Zhong 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 Signed-off-by: Lin Huang --- drivers/gpu/drm/rockchip/cdn-dp-core.c | 55 drivers/gpu/drm

[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 Signed-off-by: Lin Huang --- drivers/phy/rockchip/phy-rockchip-typec.c | 286

[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 --- Documentation/devicetree/bindings/phy/phy-rockchip-typec.txt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Documentation/devicetree/bindings/phy/phy

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

2018-05-17 Thread Lin Huang
From: Chris Zhong 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 Signed-off-by: Lin Huang Reviewed-by: Sean Paul Reviewed-by: Enric Balletbo --- Changes in v2: - update patch

[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 --- Changes in v2: - None Changes in v3: - modify property description and add this property to Example Change in v4: - None Change in v5: - None .../devicetree/bindings/phy/phy

[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 Signed-off-by: Lin Huang --- Changes in v2: - update patch following Enric suggest Changes

[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 Signed-off-by: Lin Huang --- 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 fail use lower link rate to retry training Changes in v4

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

2018-05-09 Thread Lin Huang
From: Chris Zhong 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 Signed-off-by: Lin Huang --- Changes in v2: - update patch following Enric suggest drivers/gpu/drm/rockchip/cdn-dp

[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 Signed-off-by: Lin Huang --- Changes in v2: - update patch following Enric suggest drivers

[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 --- Changes in v2: - rebase Documentation/devicetree/bindings/phy/phy-rockchip-typec.txt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Documentation

[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 Signed-off-by: Lin Huang --- Changes in v2: - update patch following Enric suggest drivers/gpu/drm/rockchip/Makefile | 3 +- drivers/gpu/drm/rockchip/cdn-dp-core.c | 24 +- drivers/gpu/drm/rockchip/cdn-dp

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

2018-05-21 Thread Lin Huang
From: Chris Zhong 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 Signed-off-by: Lin Huang Reviewed-by: Sean Paul Reviewed-by: Enric Balletbo --- Changes in v2: - update patch

[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 --- Changes in v2: - None Changes in v3: - modify property description and add this property to Example Changes in v4: - None Changes in v5: - None Changes in v6: - change

[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 --- 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-rockchip-typec.c | 47

[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 Signed-off-by: Lin Huang --- Changes in v2: - update patch following Enric suggest Changes

[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 Signed-off-by: Lin Huang Reviewed-by: Sean Paul --- 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 fail use lower link rate to retry

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

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

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

2017-08-16 Thread Lin Huang
From: huang lin on some board use enable pin to control dmic start and stop, so add this feature in dmic driver. Signed-off-by: Lin Huang --- sound/soc/codecs/Kconfig | 2 +- sound/soc/codecs/dmic.c | 46 ++ 2 files changed, 47 insertions(+), 1

[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 --- 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-hid/i2c-hid.c | 61

[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 --- Documentation/devicetree/bindings/input/hid-over-i2c.txt | 4 +++- 1 file changed, 3 inser

[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 --- drivers/hid/i2c-hid/i2c-hid.c | 63 +++ include/linux/platform_data/i2c-hid.h | 4 +++ 2 files

[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 --- Documentation/devicetree/bindings/sound/dmic.txt | 4 1 file changed, 4 insertions(+) diff --git a/Documentation/devicetree/bindings/sound/dmic.txt b/Documentation

[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 --- sound/soc/codecs/Kconfig | 2 +- sound/soc/codecs/dmic.c | 61 2 files changed, 62 insertions(+), 1 deletion(-) diff

[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 --- .../devicetree/bindings/display/panel/innolux,p079zca.txt | 11 +-- 1 file changed, 9 insertions(

[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 --- Changes in v2: - change regulator property name to meet the panel datasheet drivers/gp

[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 --- drivers/gpu/drm/panel/Kconfig | 9 drivers/gpu/drm/panel/panel-innolux-p079zca.c | 31 +++ 2 files change

[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 --- .../devicetree/bindings/display/panel/innolux,p079zc

[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 --- 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 panel in another patch

[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 --- 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 panel in another patch

[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 --- drivers/gpu/drm/panel/Kconfig | 9 drivers/gpu/drm/panel/panel-innolux-p079zca.c | 31 +++ 2 files change

[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 --- .../devicetree/bindings/display/panel/innolux,p079zca.txt | 11 +-- 1 file changed, 9 insertions(

[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 --- drivers/gpu/drm/panel/panel-in

[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 --- drivers/gpu/drm/panel/panel-innolux-p079zca.c | 178 -- 1 file ch

[PATCH v2 2/2] pinctrl: rockchip: only enable gpio clock when it setting

2015-08-03 Thread Lin Huang
From: huang lin h...@rock-chips.com gpio can keep state even the clock disable, for save power consumption, only enable gpio clock when it setting Signed-off-by: Heiko Stuebner he...@sntech.de Signed-off-by: Lin Huang h...@rock-chips.com --- Changes in v2: Advices by Douglas Anderson -use

[PATCH v2 1/2] clk: rockchip: add pclk_pd_pmu to the list of rk3288 critical clocks

2015-08-03 Thread Lin Huang
From: huang lin h...@rock-chips.com pclk_pd_pmu needs to keep running and with the upcoming gpio clock handling this is not always the case anymore. So add it to the list of critical clocks for now. Signed-off-by: Heiko Stuebner he...@sntech.de Signed-off-by: Lin Huang h...@rock-chips.com

[PATCH v3 1/2] clk: rockchip: add pclk_pd_pmu to the list of rk3288 critical clocks

2015-08-04 Thread Lin Huang
pclk_pd_pmu needs to keep running and with the upcoming gpio clock handling this is not always the case anymore. So add it to the list of critical clocks for now. Signed-off-by: Heiko Stuebner he...@sntech.de Signed-off-by: Lin Huang h...@rock-chips.com --- Changes in v3: -match the author

[PATCH v3 2/2] pinctrl: rockchip: only enable gpio clock when it setting

2015-08-04 Thread Lin Huang
gpio can keep state even the clock disable, for save power consumption, only enable gpio clock when it setting Signed-off-by: Heiko Stuebner he...@sntech.de Signed-off-by: Lin Huang h...@rock-chips.com --- Changes in v3: -match author and Signed-off-by name drivers/pinctrl/pinctrl-rockchip.c

[PATCH v5 2/2] pinctrl: rockchip: only enable gpio clock when it setting

2015-08-11 Thread Lin Huang
gpio can keep state even the clock disable, for save power consumption, only enable gpio clock when it setting Signed-off-by: Lin Huang h...@rock-chips.com Reviewed-by: Heiko Stuebner he...@sntech.de --- Changes in v5: -rebase patch drivers/pinctrl/pinctrl-rockchip.c | 55

[PATCH v5 1/2] clk: rockchip: add pclk_pd_pmu to the list of rk3288 critical clocks

2015-08-11 Thread Lin Huang
From: Heiko Stuebner he...@sntech.de pclk_pd_pmu needs to keep running and with the upcoming gpio clock handling this is not always the case anymore. So add it to the list of critical clocks for now. Signed-off-by: Heiko Stuebner he...@sntech.de Signed-off-by: Lin Huang h...@rock-chips.com

[PATCH v4 2/2] pinctrl: rockchip: only enable gpio clock when it setting

2015-08-07 Thread Lin Huang
gpio can keep state even the clock disable, for save power consumption, only enable gpio clock when it setting Signed-off-by: Lin Huang h...@rock-chips.com Reviewed-by: Heiko Stuebner he...@sntech.de --- Changes in v4: -delete some unrelated new blank line drivers/pinctrl/pinctrl-rockchip.c

[PATCH v4 1/2] clk: rockchip: add pclk_pd_pmu to the list of rk3288 critical clocks

2015-08-07 Thread Lin Huang
pclk_pd_pmu needs to keep running and with the upcoming gpio clock handling this is not always the case anymore. So add it to the list of critical clocks for now. From: Heiko Stuebner he...@sntech.de Signed-off-by: Lin Huang h...@rock-chips.com --- Changes in v4: - Add From: Heiko Stuebner he

[PATCH 2/2] devfreq: rockchip: support rk3399 dmc devfreq

2015-11-19 Thread Lin Huang
rk3399 do ddr frequency scaling use devfreq framework, use simple_ondemand policy, and use rk3399 dfi controller to get ddr busy time. Signed-off-by: Lin Huang <h...@rock-chips.com> --- drivers/devfreq/Kconfig | 1 + drivers/devfreq/Makefile | 1 + drivers/d

[PATCH 1/2] clk: rockchip: dmc: support rk3399 dmc clock driver

2015-11-19 Thread Lin Huang
support rk3399 dmc clock driver. Note, ddr set rate function will use dcf controller which run in ATF, it need to fishish it when rk3399 arm trust firmware ready. Signed-off-by: Lin Huang <h...@rock-chips.com> --- drivers/clk/rockchip/Makefile | 1 + drivers/clk/rockchip/clk-

[PATCH 0/2] Bring up rk3399 ddr frequency scaling

2015-11-19 Thread Lin Huang
these patchset bring up rk3399 ddr frequency scaling flow, use devfreq framework and simple_ondemand policy. Ddr set rate function will implement in dcf controller which run in the ATF, and rk3399 ATF not ready now, so we need finish it when rk3399 ATF ready. Lin Huang (2): clk: rockchip: dmc

[RFC PATCH v2 3/6] clk: rockchip: rk3399: add ddrc clock support

2016-06-06 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 v2: - remove clk_ddrc_dpll_src from critical clock list Changes in v1: - remove ddrc source CLK_IGNORE_UNUSED flag - move cl

[RFC PATCH v2 1/6] clk: rockchip: add new clock-type for the ddrclk

2016-06-06 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 v2: - use GENMASK instead va

[RFC PATCH v2 4/6] PM / devfreq: event: support rockchip dfi controller

2016-06-06 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 v2: - use clk_disable_unprepare and clk_enable_prep

[RFC PATCH v2 0/6] rk3399 support ddr frequency scaling

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

[RFC PATCH v2 2/6] clk: rockchip: rk3399: add SCLK_DDRCLK ID for ddrc

2016-06-06 Thread Lin Huang
Signed-off-by: Lin Huang <h...@rock-chips.com> --- 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-bindings/clock/rk3399-cru.h b/include/dt-bindings/clock/rk3399-cru.h index 50a44cf..8a

[RFC PATCH v2 6/6] drm/rockchip: Add dmc notifier in vop driver

2016-06-06 Thread Lin Huang
when in ddr frequency scaling process, vop can not do enable or disable operate, since dcf will base on vop vblank time to do frequency scaling and need to get vop irq if there have vop enabled. So need register to dmc notifier, and we can get the dmc status. Signed-off-by: Lin Huang <h...@r

[RFC PATCH v2 5/6] PM / devfreq: rockchip: add devfreq driver for rk3399 dmc

2016-06-06 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> --- Changes in v2: - None Changes in v1: - move dfi controller to event - fix set voltage sequence when set rat

[RFC PATCH v1 2/6] clk: rockchip: rk3399: add SCLK_DDRCLK ID for ddrc

2016-06-03 Thread Lin Huang
Signed-off-by: Lin Huang <h...@rock-chips.com> --- Changes in v1: - None include/dt-bindings/clock/rk3399-cru.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/dt-bindings/clock/rk3399-cru.h b/include/dt-bindings/clock/rk3399-cru.h index 50a44cf..8a0f0442 100644 --- a/incl

[RFC PATCH v1 6/6] drm/rockchip: Add dmc notifier in vop driver

2016-06-03 Thread Lin Huang
when in ddr frequency scaling process, vop can not do enable or disable operate, since dcf will base on vop vblank time to do frequency scaling and need to get vop irq if there have vop enabled. So need register to dmc notifier, and we can get the dmc status. Signed-off-by: Lin Huang <h...@r

[RFC PATCH v1 5/6] PM / devfreq: rockchip: add devfreq driver for rk3399 dmc

2016-06-03 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> --- Changes in v1: - move dfi controller to event, Suggestion by Chanwoo Choi - fix set voltage sequence when set rat

[RFC PATCH v1 1/6] rockchip: rockchip: add new clock-type for the ddrclk

2016-06-03 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 v1: - None drivers/clk/ro

[RFC PATCH v1 0/6] rk3399 support ddr frequency scaling

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

[RFC PATCH v1 4/6] PM / devfreq: event: support rockchip dfi controller

2016-06-03 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> --- Changes in v1: - NOne drivers/devfreq/event/Kconfig| 7 + drivers/devfreq/event/Makefile | 1 + d

[RFC PATCH v1 3/6] clk: rockchip: rk3399: add ddrc clock support

2016-06-03 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 v1: - remove ddrc source CLK_IGNORE_UNUSED flag, Suggestion by Doug - move clk_ddrc and clk_ddrc_dpll_src to critical, Suggestion b

[RFC PATCH 1/4] rockchip: rockchip: add new clock-type for the ddrclk

2016-06-01 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> --- drivers/clk/rockchip/Makefile | 1 + d

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

2016-06-01 Thread Lin Huang
there is dfi controller on rk3399 platform, it can monitor ddr load, register this controller to devfreq framework, and default to use simple_ondeamnd policy, and do ddr frequency scaling base on this result. Signed-off-by: Lin Huang <h...@rock-chips.com> --- drivers/devfreq/K

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

2016-06-01 Thread Lin Huang
when in ddr frequency scaling process, vop can not do enable or disable operate, since dcf will base on vop vblank time to do frequency scaling and need to get vop irq if there have vop enabled. So need register to dmc notifier, and we can get the dmc status. Signed-off-by: Lin Huang <h...@r

[RFC PATCH 0/4] rk3399 support ddr frequency scaling

2016-06-01 Thread Lin Huang
low | | | | wait dcf interrupt<---trigger dcf interrupt | | return Lin Huang (4): rockchip: rockchip: add new clock-type for the ddrclk clk: rockchip: rk3399: add ddrc clock support PM / d

[RFC PATCH 2/4] clk: rockchip: rk3399: add ddrc clock support

2016-06-01 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> --- drivers/clk/rockchip/clk-rk3399.c | 16 include/dt-bindings/clock/rk3399-cru.h | 1 + 2 files changed, 17 insertions(+) diff

[PATCH] clk: rockchip: add clock flag parameter when register pll

2016-07-22 Thread Lin Huang
From: Heiko St??bner <he...@sntech.de> add clock flag parameter so we can pass specific clock flag (like CLK_GET_RATE_NOCACHE etc..)to pll driver. Change-Id: I1e076b3efa6b5da082b6e68e2e2a4c9dfd93e3d4 Signed-off-by: Heiko St??bner <he...@sntech.de> Signed-off-by: Lin Huang <h...

[PATCH v4 3/7] clk: rockchip: rk3399: add SCLK_DDRCLK ID for ddrc

2016-07-29 Thread Lin Huang
Signed-off-by: Lin Huang <h...@rock-chips.com> --- 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-bindings/clock/rk3399-cru.h b/include/dt-bi

[PATCH v4 4/7] clk: rockchip: rk3399: add ddrc clock support

2016-07-29 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 v4: - None Changes in v3: - None Changes in v2: - remove clk_ddrc_dpll_src from critical clock list Changes in v1: - remove ddrc

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

2016-07-29 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> --- Changes in v4: - register notifier to devfreq_register_notifier - use DEVFREQ_PRECHANGE and DEVFREQ_POST

[PATCH v4 6/7] PM / devfreq: rockchip: add devfreq driver for rk3399 dmc

2016-07-29 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> --- Changes in v4: - use arm_smccc_smc() function talk to bl31 - delete rockchip_dmc.c file and config - delete dmc_

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

2016-07-29 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 v4: - None Changes in v3: - None Changes

[PATCH v4 2/7] clk: rockchip: add new clock-type for the ddrclk

2016-07-29 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 v4: - use arm_smccc_smc() to se

[PATCH v4 1/7] clk: rockchip: add clock flag parameter when register pll

2016-07-29 Thread Lin Huang
From: Heiko Stübner <he...@sntech.de> add clock flag parameter so we can pass specific clock flag (like CLK_GET_RATE_NOCACHE etc..)to pll driver. Signed-off-by: Heiko Stübner <he...@sntech.de> Signed-off-by: Lin Huang <h...@rock-chips.com> --- Changes in v4: - None Cha

[PATCH v4 0/7] rk3399 support ddr frequency scaling

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

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

2016-08-09 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> --- Changes in v5: - improve dmc driver suggest by Chanwoo Choi Changes in v4: - use arm_smccc_smc() function talk t

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

2016-08-09 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 v5: - fit for the ddr type Changes in v4: - None Changes in v3: - None Changes in v2: - remove clk_ddrc_dpll_src from critical cloc

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

2016-08-09 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 v5: -None Changes in v4: -None Changes in v3: -None C

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

2016-08-09 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> --- Changes in v5: - improve some nits Changes in v4: - register notifier to devfreq_register_notifier

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

2016-08-09 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 v5 1/8] clk: rockchip: add new clock-type for the ddrclk

2016-08-09 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 v5: - delete unuse mux_flag

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

2016-08-09 Thread Lin Huang
This patch adds the documentation for rockchip rk3399 dmc driver. Signed-off-by: Lin Huang <h...@rock-chips.com> --- Changes in v5: -None Changes in v4: -None Changes in v3: -None Changes in v2: -None Changes in v1: -None .../devicetree/bindings/devfreq/rk3399_dmc.txt

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

2016-08-09 Thread Lin Huang
Signed-off-by: Lin Huang <h...@rock-chips.com> --- 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-bindings/clock/rk3399-cr

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

2016-08-09 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 v5: -None Changes in v4: -None Changes in v3: -None Changes in v2: -None Changes in v1: -None .../bindings/devfreq/event/rockchip-dfi.txt

[PATCH v3 0/7] rk3399 support ddr frequency scaling

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

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

2016-07-22 Thread Lin Huang
when in ddr frequency scaling process, vop can not do enable or disable operate, since dcf will base on vop vblank time to do frequency scaling and need to get vop irq if there have vop enabled. So need register to dmc notifier, and we can get the dmc status. Signed-off-by: Lin Huang <h...@r

[PATCH v3 4/7] clk: rockchip: rk3399: add ddrc clock support

2016-07-22 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 v3: - None Changes in v2: - remove clk_ddrc_dpll_src from critical clock list Changes in v1: - remove ddrc source CLK_IGNORE_UNUSED flag

[PATCH v3 2/7] clk: rockchip: add new clock-type for the ddrclk

2016-07-22 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 v3: - use sip call to set/read dd

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

2016-07-22 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 v3: - None Changes in v2: - use clk_disab

[PATCH v3 6/7] PM / devfreq: rockchip: add devfreq driver for rk3399 dmc

2016-07-22 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> --- Changes in v3: - operate dram setting through sip call - imporve set rate flow Changes in v2: - None Changes

[PATCH v3 3/7] clk: rockchip: rk3399: add SCLK_DDRCLK ID for ddrc

2016-07-22 Thread Lin Huang
Signed-off-by: Lin Huang <h...@rock-chips.com> --- 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-bindings/clock/rk3399-cru.h b/include/dt-bindings/clock/rk3399-cru.h

  1   2   3   4   >