[PATCH] drm/msm/dsi: Updata LNn_CFG4 register settings for 28nm PHY

2015-09-11 Thread Hai Li
The current settings for 28nm PHY data lane CFG4 registers do not work with certain panels. This change is to modify them to hw recommended values. Signed-off-by: Hai Li --- drivers/gpu/drm/msm/dsi/phy/dsi_phy_28nm.c | 6 ++ 1 file changed, 2 insertions(+), 4 deletions(-) diff --git

[PATCH] drm/msm/dsi: Updata LNn_CFG4 register settings for 28nm PHY

2015-09-11 Thread Hai Li
The current settings for 28nm PHY data lane CFG4 registers do not work with certain panels. This change is to modify them to hw recommended values. Signed-off-by: Hai Li <h...@codeaurora.org> --- drivers/gpu/drm/msm/dsi/phy/dsi_phy_28nm.c | 6 ++ 1 file changed, 2 insertions(+), 4 del

[PATCH] drm/msm/dsi: Parse lane swap information from DT

2015-09-03 Thread Hai Li
Lane swap configuration is based on the board design. This change allows the DSI host to get this information from device tree, instead of hardcoding in driver. Signed-off-by: Hai Li --- Documentation/devicetree/bindings/drm/msm/dsi.txt | 13 ++ drivers/gpu/drm/msm/dsi/dsi_host.c

[PATCH] drm/msm/dsi: Parse lane swap information from DT

2015-09-03 Thread Hai Li
Lane swap configuration is based on the board design. This change allows the DSI host to get this information from device tree, instead of hardcoding in driver. Signed-off-by: Hai Li <h...@codeaurora.org> --- Documentation/devicetree/bindings/drm/msm/dsi.txt | 13 ++ drivers/gpu/drm/m

[PATCH] drm/msm/dsi: Introduce DSI configuration module

2015-08-13 Thread Hai Li
With more platforms supported, the DSI host configuration array keeps expanding. This change moves those to a separate dsi_cfg module. Signed-off-by: Hai Li --- drivers/gpu/drm/msm/Makefile | 1 + drivers/gpu/drm/msm/dsi/dsi_cfg.c | 92 ++ drivers/gpu/drm/msm/dsi

[PATCH 2/5] drm/msm/dsi: Specify bitmask to set source PLL

2015-08-13 Thread Hai Li
The bit position to configure source PLL will change on new types of PHYs. The caller should pass down this information. Signed-off-by: Hai Li --- drivers/gpu/drm/msm/dsi/dsi_phy.c | 16 +++- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/drivers/gpu/drm/msm/dsi

[PATCH 1/5] drm/msm/dsi: Update generated header file for DSI PHY

2015-08-13 Thread Hai Li
This change is to update DSI register definition changes introduced by the following change: rnndb/dsi: Add more bits for DSI PHY More registers and bit fields are added for PHY timings and bitclk source selection. Signed-off-by: Hai Li --- drivers/gpu/drm/msm/dsi/dsi.xml.h | 5

[PATCH 4/5] drm/msm/dsi: Split PHY drivers to separate files

2015-08-13 Thread Hai Li
This change moves each PHY type specific code into separate files. Signed-off-by: Hai Li --- drivers/gpu/drm/msm/Makefile | 6 +- drivers/gpu/drm/msm/dsi/dsi_phy.c | 756 - drivers/gpu/drm/msm/dsi/phy/dsi_phy.c | 448

[PATCH 5/5] drm/msm/dsi: Make each PHY type compilation independent

2015-08-13 Thread Hai Li
On a certain platform, only one type of DSI PHY is used. This change allows the user to only compile the PHY type which is being used. Signed-off-by: Hai Li --- drivers/gpu/drm/msm/Kconfig | 14 ++ drivers/gpu/drm/msm/Makefile | 11 +++ drivers/gpu/drm/msm

[PATCH 3/5] drm/msm/dsi: Return void from msm_dsi_phy_disable()

2015-08-13 Thread Hai Li
We are not checking the return value from msm_dsi_phy_disable(). Change the return type to void. Signed-off-by: Hai Li --- drivers/gpu/drm/msm/dsi/dsi.h | 2 +- drivers/gpu/drm/msm/dsi/dsi_phy.c | 16 +--- 2 files changed, 6 insertions(+), 12 deletions(-) diff --git a/drivers

[PATCH 0/5] drm/msm/dsi: Split different types of PHY drivers

2015-08-13 Thread Hai Li
The DSI PHY driver currently includes the implementation of all PHY types. To support more types in the future, this patch series is moving each PHY code into a separate file and making them compile independent. Some clean up patches for DSI PHY are also included. Hai Li (5): drm/msm/dsi

[PATCH] rnndb/dsi: Add more bits for DSI PHY

2015-08-13 Thread Hai Li
More registers and bit fields are added for PHY timings and bitclk source selection. Signed-off-by: Hai Li --- rnndb/dsi/dsi.xml | 11 +-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/rnndb/dsi/dsi.xml b/rnndb/dsi/dsi.xml index 02cfa3b..956f3ff 100644 --- a/rnndb/dsi

[PATCH 0/5] drm/msm/dsi: Split different types of PHY drivers

2015-08-13 Thread Hai Li
The DSI PHY driver currently includes the implementation of all PHY types. To support more types in the future, this patch series is moving each PHY code into a separate file and making them compile independent. Some clean up patches for DSI PHY are also included. Hai Li (5): drm/msm/dsi

[PATCH] drm/msm/dsi: Introduce DSI configuration module

2015-08-13 Thread Hai Li
With more platforms supported, the DSI host configuration array keeps expanding. This change moves those to a separate dsi_cfg module. Signed-off-by: Hai Li h...@codeaurora.org --- drivers/gpu/drm/msm/Makefile | 1 + drivers/gpu/drm/msm/dsi/dsi_cfg.c | 92 ++ drivers

[PATCH] rnndb/dsi: Add more bits for DSI PHY

2015-08-13 Thread Hai Li
More registers and bit fields are added for PHY timings and bitclk source selection. Signed-off-by: Hai Li h...@codeaurora.org --- rnndb/dsi/dsi.xml | 11 +-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/rnndb/dsi/dsi.xml b/rnndb/dsi/dsi.xml index 02cfa3b..956f3ff 100644

[PATCH 4/5] drm/msm/dsi: Split PHY drivers to separate files

2015-08-13 Thread Hai Li
This change moves each PHY type specific code into separate files. Signed-off-by: Hai Li h...@codeaurora.org --- drivers/gpu/drm/msm/Makefile | 6 +- drivers/gpu/drm/msm/dsi/dsi_phy.c | 756 - drivers/gpu/drm/msm/dsi/phy/dsi_phy.c | 448

[PATCH 2/5] drm/msm/dsi: Specify bitmask to set source PLL

2015-08-13 Thread Hai Li
The bit position to configure source PLL will change on new types of PHYs. The caller should pass down this information. Signed-off-by: Hai Li h...@codeaurora.org --- drivers/gpu/drm/msm/dsi/dsi_phy.c | 16 +++- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/drivers

[PATCH 1/5] drm/msm/dsi: Update generated header file for DSI PHY

2015-08-13 Thread Hai Li
This change is to update DSI register definition changes introduced by the following change: rnndb/dsi: Add more bits for DSI PHY More registers and bit fields are added for PHY timings and bitclk source selection. Signed-off-by: Hai Li h...@codeaurora.org --- drivers/gpu/drm/msm

[PATCH 5/5] drm/msm/dsi: Make each PHY type compilation independent

2015-08-13 Thread Hai Li
On a certain platform, only one type of DSI PHY is used. This change allows the user to only compile the PHY type which is being used. Signed-off-by: Hai Li h...@codeaurora.org --- drivers/gpu/drm/msm/Kconfig | 14 ++ drivers/gpu/drm/msm/Makefile | 11

[PATCH 3/5] drm/msm/dsi: Return void from msm_dsi_phy_disable()

2015-08-13 Thread Hai Li
We are not checking the return value from msm_dsi_phy_disable(). Change the return type to void. Signed-off-by: Hai Li h...@codeaurora.org --- drivers/gpu/drm/msm/dsi/dsi.h | 2 +- drivers/gpu/drm/msm/dsi/dsi_phy.c | 16 +--- 2 files changed, 6 insertions(+), 12 deletions

[PATCH v2] drm/msm: Enable clocks during enable/disable_vblank() callbacks

2015-07-27 Thread Hai Li
AHB clock should be enabled before accessing registers during enable/disable_vblank(). Since these 2 callbacks are called in atomic context while clk_prepare may cause thread sleep, a work is scheduled to control vblanks. v2: fixup spinlock initialization Signed-off-by: Hai Li --- drivers/gpu

[PATCH v2] drm/msm: Enable clocks during enable/disable_vblank() callbacks

2015-07-27 Thread Hai Li
AHB clock should be enabled before accessing registers during enable/disable_vblank(). Since these 2 callbacks are called in atomic context while clk_prepare may cause thread sleep, a work is scheduled to control vblanks. v2: fixup spinlock initialization Signed-off-by: Hai Li h

[PATCH] drm/msm: Enable clocks during enable/disable_vblank() callbacks

2015-07-10 Thread Hai Li
AHB clock should be enabled before accessing registers during enable/disable_vblank(). Since these 2 callbacks are called in atomic context while clk_prepare may cause thread sleep, a work is scheduled to control vblanks. Signed-off-by: Hai Li --- drivers/gpu/drm/msm/mdp/mdp4/mdp4_irq.c | 9

[PATCH] drm/msm: Enable clocks during enable/disable_vblank() callbacks

2015-07-10 Thread Hai Li
AHB clock should be enabled before accessing registers during enable/disable_vblank(). Since these 2 callbacks are called in atomic context while clk_prepare may cause thread sleep, a work is scheduled to control vblanks. Signed-off-by: Hai Li h...@codeaurora.org --- drivers/gpu/drm/msm/mdp/mdp4

[PATCH v2] clk: qcom: Use parent rate when set rate to pixel RCG clock

2015-07-06 Thread Hai Li
Since the parent rate has been recalculated, pixel RCG clock should rely on it to find the correct M/N values during set_rate, instead of calling __clk_round_rate() to its parent again. v2: Rebase on clk-next and avoid build warning Signed-off-by: Hai Li Tested-by: Archit Taneja Fixes

[PATCH v2] clk: qcom: Use parent rate when set rate to pixel RCG clock

2015-07-06 Thread Hai Li
Since the parent rate has been recalculated, pixel RCG clock should rely on it to find the correct M/N values during set_rate, instead of calling __clk_round_rate() to its parent again. v2: Rebase on clk-next and avoid build warning Signed-off-by: Hai Li h...@codeaurora.org Tested-by: Archit

[PATCH] drm/msm/dsi: Save/Restore PLL status across PHY reset

2015-07-03 Thread Hai Li
to match HW status with cached status in clock driver. Signed-off-by: Hai Li --- drivers/gpu/drm/msm/dsi/dsi.h | 9 +++ drivers/gpu/drm/msm/dsi/dsi_manager.c | 21 +++ drivers/gpu/drm/msm/dsi/pll/dsi_pll.c | 42 +- drivers/gpu/drm/msm

[PATCH] drm/msm/dsi: Save/Restore PLL status across PHY reset

2015-07-03 Thread Hai Li
to match HW status with cached status in clock driver. Signed-off-by: Hai Li h...@codeaurora.org --- drivers/gpu/drm/msm/dsi/dsi.h | 9 +++ drivers/gpu/drm/msm/dsi/dsi_manager.c | 21 +++ drivers/gpu/drm/msm/dsi/pll/dsi_pll.c | 42

[PATCH 2/2] drm/msm/mdp5: Allocate CTL0/1 for dual DSI single FLUSH

2015-06-26 Thread Hai Li
This change takes advantage of a HW feature that synchronize flush operation on CTL1 to CTL0, to keep dual DSI pipes in sync. Signed-off-by: Hai Li --- drivers/gpu/drm/msm/mdp/mdp5/mdp5_ctl.c | 140 drivers/gpu/drm/msm/mdp/mdp5/mdp5_ctl.h | 4 +- drivers

[PATCH 1/2] drm/msm/mdp5: Allocate CTL for each display interface

2015-06-26 Thread Hai Li
is to associate a CTL with each interface. Signed-off-by: Hai Li --- drivers/gpu/drm/msm/mdp/mdp5/mdp5_cmd_encoder.c | 12 -- drivers/gpu/drm/msm/mdp/mdp5/mdp5_crtc.c| 26 +++-- drivers/gpu/drm/msm/mdp/mdp5/mdp5_ctl.c | 49 + drivers/gpu/drm/msm/mdp/mdp5

[PATCH 0/2] drm/msm/mdp5: Refactor CTL code

2015-06-26 Thread Hai Li
Instead of allocating CTL for each CRTC, we start to associate CTL to each display interface, which reflects real HW requirement. It also helps in making use of HW single FLUSH feature to sync between dual DSI pipes. Hai Li (2): drm/msm/mdp5: Allocate CTL for each display interface drm/msm

[PATCH 1/2] drm/msm/mdp5: Allocate CTL for each display interface

2015-06-26 Thread Hai Li
is to associate a CTL with each interface. Signed-off-by: Hai Li h...@codeaurora.org --- drivers/gpu/drm/msm/mdp/mdp5/mdp5_cmd_encoder.c | 12 -- drivers/gpu/drm/msm/mdp/mdp5/mdp5_crtc.c| 26 +++-- drivers/gpu/drm/msm/mdp/mdp5/mdp5_ctl.c | 49 + drivers/gpu

[PATCH 0/2] drm/msm/mdp5: Refactor CTL code

2015-06-26 Thread Hai Li
Instead of allocating CTL for each CRTC, we start to associate CTL to each display interface, which reflects real HW requirement. It also helps in making use of HW single FLUSH feature to sync between dual DSI pipes. Hai Li (2): drm/msm/mdp5: Allocate CTL for each display interface drm/msm

[PATCH 2/2] drm/msm/mdp5: Allocate CTL0/1 for dual DSI single FLUSH

2015-06-26 Thread Hai Li
This change takes advantage of a HW feature that synchronize flush operation on CTL1 to CTL0, to keep dual DSI pipes in sync. Signed-off-by: Hai Li h...@codeaurora.org --- drivers/gpu/drm/msm/mdp/mdp5/mdp5_ctl.c | 140 drivers/gpu/drm/msm/mdp/mdp5/mdp5_ctl.h

[PATCH] clk: qcom: Use parent rate when set rate to pixel RCG clock

2015-06-25 Thread Hai Li
Since the parent rate has been recalculated, pixel RCG clock should rely on it to find the correct M/N values during set_rate, instead of calling __clk_round_rate() to its parent again. Signed-off-by: Hai Li --- drivers/clk/qcom/clk-rcg2.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion

[PATCH] clk: qcom: Use parent rate when set rate to pixel RCG clock

2015-06-25 Thread Hai Li
Since the parent rate has been recalculated, pixel RCG clock should rely on it to find the correct M/N values during set_rate, instead of calling __clk_round_rate() to its parent again. Signed-off-by: Hai Li h...@codeaurora.org --- drivers/clk/qcom/clk-rcg2.c | 3 ++- 1 file changed, 2

[PATCH] drm/msm: Set different display size limitation on each target

2015-06-24 Thread Hai Li
and treat it as the whole pipe's limitation for MDP5. The size limit on MDP4 is not changed. Signed-off-by: Hai Li --- drivers/gpu/drm/msm/mdp/mdp4/mdp4_kms.c | 5 + drivers/gpu/drm/msm/mdp/mdp5/mdp5_cfg.c | 8 drivers/gpu/drm/msm/mdp/mdp5/mdp5_cfg.h | 2 ++ drivers/gpu/drm/msm/mdp/mdp5

[PATCH] drm/msm: Set different display size limitation on each target

2015-06-24 Thread Hai Li
and treat it as the whole pipe's limitation for MDP5. The size limit on MDP4 is not changed. Signed-off-by: Hai Li h...@codeaurora.org --- drivers/gpu/drm/msm/mdp/mdp4/mdp4_kms.c | 5 + drivers/gpu/drm/msm/mdp/mdp5/mdp5_cfg.c | 8 drivers/gpu/drm/msm/mdp/mdp5/mdp5_cfg.h | 2 ++ drivers/gpu

[PATCH 2/2] drm/msm/dsi: Add support for msm8x94

2015-06-18 Thread Hai Li
DSI controller on msm8x94 is version 1.3, which requires different power supplies and works with 20nm DSI PHY. This change is to add the basic support for this version. Signed-off-by: Hai Li --- Documentation/devicetree/bindings/drm/msm/dsi.txt | 7 ++ drivers/gpu/drm/msm/dsi/dsi.h

[PATCH 0/2] drm/msm/dsi: msm8x94 configuration and support

2015-06-18 Thread Hai Li
Hai Li (2): drm/msm/dsi: Update generated headers with 20nm PHY support drm/msm/dsi: Add support for msm8x94 Documentation/devicetree/bindings/drm/msm/dsi.txt | 7 + drivers/gpu/drm/msm/dsi/dsi.h | 1 + drivers/gpu/drm/msm/dsi/dsi.xml.h | 192

[PATCH 1/2] drm/msm/dsi: Update generated headers with 20nm PHY support

2015-06-18 Thread Hai Li
Signed-off-by: Hai Li --- drivers/gpu/drm/msm/dsi/dsi.xml.h | 192 +++--- 1 file changed, 181 insertions(+), 11 deletions(-) diff --git a/drivers/gpu/drm/msm/dsi/dsi.xml.h b/drivers/gpu/drm/msm/dsi/dsi.xml.h index 9791ea0..9bb63a9 100644 --- a/drivers/gpu/drm

[PATCH] rnndb/dsi: Add register descriptions for 20nm PHY

2015-06-18 Thread Hai Li
This change introduces new domains of PHY and PHY_REGULATOR for 20nm DSI PHY registers. Signed-off-by: Hai Li --- rnndb/dsi/dsi.xml | 91 +++ 1 file changed, 91 insertions(+) diff --git a/rnndb/dsi/dsi.xml b/rnndb/dsi/dsi.xml index d19bea9

[PATCH] rnndb/dsi: Add register descriptions for 20nm PHY

2015-06-18 Thread Hai Li
This change introduces new domains of PHY and PHY_REGULATOR for 20nm DSI PHY registers. Signed-off-by: Hai Li h...@codeaurora.org --- rnndb/dsi/dsi.xml | 91 +++ 1 file changed, 91 insertions(+) diff --git a/rnndb/dsi/dsi.xml b/rnndb/dsi

[PATCH 1/2] drm/msm/dsi: Update generated headers with 20nm PHY support

2015-06-18 Thread Hai Li
Signed-off-by: Hai Li h...@codeaurora.org --- drivers/gpu/drm/msm/dsi/dsi.xml.h | 192 +++--- 1 file changed, 181 insertions(+), 11 deletions(-) diff --git a/drivers/gpu/drm/msm/dsi/dsi.xml.h b/drivers/gpu/drm/msm/dsi/dsi.xml.h index 9791ea0..9bb63a9 100644

[PATCH 0/2] drm/msm/dsi: msm8x94 configuration and support

2015-06-18 Thread Hai Li
Hai Li (2): drm/msm/dsi: Update generated headers with 20nm PHY support drm/msm/dsi: Add support for msm8x94 Documentation/devicetree/bindings/drm/msm/dsi.txt | 7 + drivers/gpu/drm/msm/dsi/dsi.h | 1 + drivers/gpu/drm/msm/dsi/dsi.xml.h | 192

[PATCH 2/2] drm/msm/dsi: Add support for msm8x94

2015-06-18 Thread Hai Li
DSI controller on msm8x94 is version 1.3, which requires different power supplies and works with 20nm DSI PHY. This change is to add the basic support for this version. Signed-off-by: Hai Li h...@codeaurora.org --- Documentation/devicetree/bindings/drm/msm/dsi.txt | 7 ++ drivers/gpu/drm/msm

[PATCH] drm/msm/dsi: Use pinctrl in DSI driver

2015-06-11 Thread Hai Li
Some targets use pinctrl framework to configure some pins. This change allows DSI driver to set default and sleep pinctrl status. Signed-off-by: Hai Li --- Documentation/devicetree/bindings/drm/msm/dsi.txt | 7 +++ drivers/gpu/drm/msm/dsi/dsi_host.c| 12 2

[PATCH] drm/msm/dsi: Use pinctrl in DSI driver

2015-06-11 Thread Hai Li
Some targets use pinctrl framework to configure some pins. This change allows DSI driver to set default and sleep pinctrl status. Signed-off-by: Hai Li h...@codeaurora.org --- Documentation/devicetree/bindings/drm/msm/dsi.txt | 7 +++ drivers/gpu/drm/msm/dsi/dsi_host.c| 12

[PATCH 2/2] drm/msm/dsi: Rename *dual panel* to *dual DSI*

2015-06-10 Thread Hai Li
The current term of *dual panel* in DSI driver code causes confusion. It is supposed to indicate the panel using two DSI links. Rename it to *dual DSI*. Signed-off-by: Hai Li --- Documentation/devicetree/bindings/drm/msm/dsi.txt | 12 ++-- drivers/gpu/drm/msm/dsi/dsi_manager.c | 84

[PATCH 1/2] drm/msm/dsi: Update source PLL selection in DSI PHY

2015-06-10 Thread Hai Li
manager and PHY. With this change, PLL selection can be supported on different targets. Signed-off-by: Hai Li --- drivers/gpu/drm/msm/dsi/dsi.h | 14 +- drivers/gpu/drm/msm/dsi/dsi_manager.c | 15 ++- drivers/gpu/drm/msm/dsi/dsi_phy.c | 34

[PATCH 0/2] drm/msm/dsi: Miscellaneous patches

2015-06-10 Thread Hai Li
These changes are for code cleanup and better support new targets in the future. Hai Li (2): drm/msm/dsi: Update source PLL selection in DSI PHY drm/msm/dsi: Rename *dual panel* to *dual DSI* Documentation/devicetree/bindings/drm/msm/dsi.txt | 12 +-- drivers/gpu/drm/msm/dsi/dsi.h

[PATCH 1/2] drm/msm/dsi: Update source PLL selection in DSI PHY

2015-06-10 Thread Hai Li
manager and PHY. With this change, PLL selection can be supported on different targets. Signed-off-by: Hai Li h...@codeaurora.org --- drivers/gpu/drm/msm/dsi/dsi.h | 14 +- drivers/gpu/drm/msm/dsi/dsi_manager.c | 15 ++- drivers/gpu/drm/msm/dsi/dsi_phy.c | 34

[PATCH 2/2] drm/msm/dsi: Rename *dual panel* to *dual DSI*

2015-06-10 Thread Hai Li
The current term of *dual panel* in DSI driver code causes confusion. It is supposed to indicate the panel using two DSI links. Rename it to *dual DSI*. Signed-off-by: Hai Li h...@codeaurora.org --- Documentation/devicetree/bindings/drm/msm/dsi.txt | 12 ++-- drivers/gpu/drm/msm/dsi

[PATCH 0/2] drm/msm/dsi: Miscellaneous patches

2015-06-10 Thread Hai Li
These changes are for code cleanup and better support new targets in the future. Hai Li (2): drm/msm/dsi: Update source PLL selection in DSI PHY drm/msm/dsi: Rename *dual panel* to *dual DSI* Documentation/devicetree/bindings/drm/msm/dsi.txt | 12 +-- drivers/gpu/drm/msm/dsi/dsi.h

[PATCH] drm/msm/mdp5: Always generate active-high sync signals for DSI

2015-05-22 Thread Hai Li
DSI video mode engine can only take active-high sync signals. This change prevents MDP5 sending active-low sync signals to DSI in any case. Signed-off-by: Hai Li --- drivers/gpu/drm/msm/mdp/mdp5/mdp5_encoder.c | 12 1 file changed, 8 insertions(+), 4 deletions(-) diff --git

[PATCH] drm/msm/mdp5: Always generate active-high sync signals for DSI

2015-05-22 Thread Hai Li
DSI video mode engine can only take active-high sync signals. This change prevents MDP5 sending active-low sync signals to DSI in any case. Signed-off-by: Hai Li h...@codeaurora.org --- drivers/gpu/drm/msm/mdp/mdp5/mdp5_encoder.c | 12 1 file changed, 8 insertions(+), 4 deletions

[PATCH 3/3] drm/msm/dsi: Separate PHY to another platform device

2015-05-15 Thread Hai Li
and clock consumer make DSI driver better fit into common clock framework. Signed-off-by: Hai Li --- Documentation/devicetree/bindings/drm/msm/dsi.txt | 59 +++-- drivers/gpu/drm/msm/dsi/dsi.c | 45 +++- drivers/gpu/drm/msm/dsi/dsi.h | 25 +- drivers/gpu/drm/msm

[PATCH 2/3] drm/msm/dsi: Enable PLL driver in MSM DSI

2015-05-15 Thread Hai Li
This change activates PLL driver for DSI to work with common clock framework. Signed-off-by: Hai Li --- drivers/gpu/drm/msm/dsi/dsi.c | 14 +++ drivers/gpu/drm/msm/dsi/dsi.h | 43 --- drivers/gpu/drm/msm/dsi/dsi_host.c| 60

[PATCH 1/3] drm/msm/dsi: Add DSI PLL clock driver support

2015-05-15 Thread Hai Li
DSI byte clock and pixel clocks are sourced from DSI PLL. This change adds the DSI PLL source clock driver under common clock framework. This change handles DSI 28nm PLL only. Signed-off-by: Hai Li Signed-off-by: Archit Taneja Signed-off-by: Stephane Viau Signed-off-by: Wentao Xu

[PATCH 0/3] drm/msm/dsi: Add DSI PLL driver under common clock framework

2015-05-15 Thread Hai Li
DSI PLL driver can work with common clock framework and provide source of DSI byte clock and pixel clock, as a clock provider. Hai Li (3): drm/msm/dsi: Add DSI PLL clock driver support drm/msm/dsi: Enable PLL driver in MSM DSI drm/msm/dsi: Separate PHY to another platform device

[PATCH 2/3] drm/msm/dsi: Enable PLL driver in MSM DSI

2015-05-15 Thread Hai Li
This change activates PLL driver for DSI to work with common clock framework. Signed-off-by: Hai Li h...@codeaurora.org --- drivers/gpu/drm/msm/dsi/dsi.c | 14 +++ drivers/gpu/drm/msm/dsi/dsi.h | 43 --- drivers/gpu/drm/msm/dsi/dsi_host.c| 60

[PATCH 1/3] drm/msm/dsi: Add DSI PLL clock driver support

2015-05-15 Thread Hai Li
DSI byte clock and pixel clocks are sourced from DSI PLL. This change adds the DSI PLL source clock driver under common clock framework. This change handles DSI 28nm PLL only. Signed-off-by: Hai Li h...@codeaurora.org Signed-off-by: Archit Taneja arch...@codeaurora.org Signed-off-by: Stephane

[PATCH 3/3] drm/msm/dsi: Separate PHY to another platform device

2015-05-15 Thread Hai Li
and clock consumer make DSI driver better fit into common clock framework. Signed-off-by: Hai Li h...@codeaurora.org --- Documentation/devicetree/bindings/drm/msm/dsi.txt | 59 +++-- drivers/gpu/drm/msm/dsi/dsi.c | 45 +++- drivers/gpu/drm/msm/dsi/dsi.h | 25

[PATCH 0/3] drm/msm/dsi: Add DSI PLL driver under common clock framework

2015-05-15 Thread Hai Li
DSI PLL driver can work with common clock framework and provide source of DSI byte clock and pixel clock, as a clock provider. Hai Li (3): drm/msm/dsi: Add DSI PLL clock driver support drm/msm/dsi: Enable PLL driver in MSM DSI drm/msm/dsi: Separate PHY to another platform device

[PATCH] rnndb: Add 28nm PLL register description

2015-05-11 Thread Hai Li
for more bit fields - Rebase on change "rnndb: dsi: Add DSI_LANE_CTRL info" Signed-off-by: Stephane Viau Signed-off-by: Hai Li --- rnndb/dsi/dsi.xml | 80 + rnndb/edp/edp.xml | 51 ++ rnndb/hdmi/hdm

[PATCH] drm/msm: Update generated headers (PLL registers)

2015-05-11 Thread Hai Li
registers may not be implemented the same way for each interface PHY. v2: - Add description for more bit fields - Rebase on change "rnndb: dsi: Add DSI_LANE_CTRL info" Signed-off-by: Stephane Viau Signed-off-by: Hai Li --- drivers/gpu/drm/msm/dsi/dsi.xml

[PATCH] rnndb: Add 28nm PLL register description

2015-05-11 Thread Hai Li
: - Add description for more bit fields - Rebase on change rnndb: dsi: Add DSI_LANE_CTRL info Signed-off-by: Stephane Viau sv...@codeaurora.org Signed-off-by: Hai Li h...@codeaurora.org --- rnndb/dsi/dsi.xml | 80 + rnndb/edp/edp.xml | 51

[PATCH] drm/msm: Update generated headers (PLL registers)

2015-05-11 Thread Hai Li
registers may not be implemented the same way for each interface PHY. v2: - Add description for more bit fields - Rebase on change rnndb: dsi: Add DSI_LANE_CTRL info Signed-off-by: Stephane Viau sv...@codeaurora.org Signed-off-by: Hai Li h...@codeaurora.org --- drivers/gpu/drm

[PATCH 2/2] drm/msm/dsi: Simplify the code to get the number of read byte

2015-04-29 Thread Hai Li
the data type to detect error. Signed-off-by: Hai Li --- drivers/gpu/drm/msm/dsi/dsi_host.c | 14 -- 1 file changed, 4 insertions(+), 10 deletions(-) diff --git a/drivers/gpu/drm/msm/dsi/dsi_host.c b/drivers/gpu/drm/msm/dsi/dsi_host.c index 473d417..72d4d5f 100644 --- a/drivers/gpu

[PATCH 1/2] drm/msm/dsi: Fixup missing *break* statement during cmd rx

2015-04-29 Thread Hai Li
Signed-off-by: Hai Li --- drivers/gpu/drm/msm/dsi/dsi_host.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/gpu/drm/msm/dsi/dsi_host.c b/drivers/gpu/drm/msm/dsi/dsi_host.c index fdc54e3..473d417 100644 --- a/drivers/gpu/drm/msm/dsi/dsi_host.c +++ b/drivers/gpu/drm/msm/dsi

[PATCH 0/2] drm/msm/dsi: Fix issues during cmd rx

2015-04-29 Thread Hai Li
These 2 patches are to fix the issues during DSI command rx. Hai Li (2): drm/msm/dsi: Fixup missing *break* statement during cmd rx drm/msm/dsi: Simplify the code to get the number of read byte drivers/gpu/drm/msm/dsi/dsi_host.c | 15 +-- 1 file changed, 5 insertions(+), 10

[PATCH 0/2] drm/msm/dsi: Fix issues during cmd rx

2015-04-29 Thread Hai Li
These 2 patches are to fix the issues during DSI command rx. Hai Li (2): drm/msm/dsi: Fixup missing *break* statement during cmd rx drm/msm/dsi: Simplify the code to get the number of read byte drivers/gpu/drm/msm/dsi/dsi_host.c | 15 +-- 1 file changed, 5 insertions(+), 10

[PATCH 2/2] drm/msm/dsi: Simplify the code to get the number of read byte

2015-04-29 Thread Hai Li
the data type to detect error. Signed-off-by: Hai Li h...@codeaurora.org --- drivers/gpu/drm/msm/dsi/dsi_host.c | 14 -- 1 file changed, 4 insertions(+), 10 deletions(-) diff --git a/drivers/gpu/drm/msm/dsi/dsi_host.c b/drivers/gpu/drm/msm/dsi/dsi_host.c index 473d417..72d4d5f

[PATCH 1/2] drm/msm/dsi: Fixup missing *break* statement during cmd rx

2015-04-29 Thread Hai Li
Signed-off-by: Hai Li h...@codeaurora.org --- drivers/gpu/drm/msm/dsi/dsi_host.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/gpu/drm/msm/dsi/dsi_host.c b/drivers/gpu/drm/msm/dsi/dsi_host.c index fdc54e3..473d417 100644 --- a/drivers/gpu/drm/msm/dsi/dsi_host.c +++ b/drivers/gpu

[PATCH v2 1/2] drm/msm: Use customized function to wait for atomic commit done

2015-04-28 Thread Hai Li
*_wait_for_commit_done functions to wait for FLUSH register cleared at vsync, before commit completion. Signed-off-by: Hai Li --- drivers/gpu/drm/msm/mdp/mdp4/mdp4_crtc.c | 39 ++ drivers/gpu/drm/msm/mdp/mdp4/mdp4_kms.c | 7 drivers/gpu/drm/msm/mdp/mdp4/mdp4_kms.h | 1

[PATCH v2 0/2] drm/msm: Customize wait for atomic commit done function

2015-04-28 Thread Hai Li
flag to differentiate cmd mode wait function from video mode. (From Rob Clark) Hai Li (2): drm/msm: Use customized function to wait for atomic commit done drm/msm/mdp5: Wait for PP_DONE irq for command mode CRTC atomic commit drivers/gpu/drm/msm/mdp/mdp4/mdp4_crtc.c| 39

[PATCH v2 2/2] drm/msm/mdp5: Wait for PP_DONE irq for command mode CRTC atomic commit

2015-04-28 Thread Hai Li
CRTCs in DSI command mode data path should wait for pingpong done, instead of vblank, to finish atomic commit. This change is to enable PP_DONE irq on command mode CRTCs and wait for this irq happens before atomic commit completion. Signed-off-by: Hai Li --- drivers/gpu/drm/msm/mdp/mdp5

[PATCH v2 1/2] drm/msm: Use customized function to wait for atomic commit done

2015-04-28 Thread Hai Li
*_wait_for_commit_done functions to wait for FLUSH register cleared at vsync, before commit completion. Signed-off-by: Hai Li h...@codeaurora.org --- drivers/gpu/drm/msm/mdp/mdp4/mdp4_crtc.c | 39 ++ drivers/gpu/drm/msm/mdp/mdp4/mdp4_kms.c | 7 drivers/gpu/drm/msm/mdp/mdp4

[PATCH v2 0/2] drm/msm: Customize wait for atomic commit done function

2015-04-28 Thread Hai Li
flag to differentiate cmd mode wait function from video mode. (From Rob Clark) Hai Li (2): drm/msm: Use customized function to wait for atomic commit done drm/msm/mdp5: Wait for PP_DONE irq for command mode CRTC atomic commit drivers/gpu/drm/msm/mdp/mdp4/mdp4_crtc.c| 39

[PATCH v2 2/2] drm/msm/mdp5: Wait for PP_DONE irq for command mode CRTC atomic commit

2015-04-28 Thread Hai Li
CRTCs in DSI command mode data path should wait for pingpong done, instead of vblank, to finish atomic commit. This change is to enable PP_DONE irq on command mode CRTCs and wait for this irq happens before atomic commit completion. Signed-off-by: Hai Li h...@codeaurora.org --- drivers/gpu/drm

[PATCH 1/2] drm/msm: Use customized function to wait for atomic commit done

2015-04-24 Thread Hai Li
*_wait_for_commit_done functions to wait for FLUSH register cleared at vsync, before commit completion. Signed-off-by: Hai Li --- drivers/gpu/drm/msm/mdp/mdp4/mdp4_crtc.c | 46 drivers/gpu/drm/msm/mdp/mdp4/mdp4_kms.c | 7 drivers/gpu/drm/msm/mdp/mdp4/mdp4_kms.h | 1

[PATCH 0/2] drm/msm: Customize wait for atomic commit done function

2015-04-24 Thread Hai Li
The current way to wait for atomic commit done may cause unnecessary wait for another vsync for video mode path. Also, for command mode path, we need to wait for PP_DONE event other than vsync before finish. This patch series is to fix these issues. Hai Li (2): drm/msm: Use customized function

[PATCH 2/2] drm/msm/mdp5: Wait for PP_DONE irq for command mode CRTC atomic commit

2015-04-24 Thread Hai Li
CRTCs in DSI command mode data path should wait for pingpong done, instead of vblank, to finish atomic commit. This change is to enable PP_DONE irq on command mode CRTCs and wait for this irq happens before atomic commit completion. Signed-off-by: Hai Li --- drivers/gpu/drm/msm/mdp/mdp5

[PATCH 2/2] drm/msm/mdp5: Wait for PP_DONE irq for command mode CRTC atomic commit

2015-04-24 Thread Hai Li
CRTCs in DSI command mode data path should wait for pingpong done, instead of vblank, to finish atomic commit. This change is to enable PP_DONE irq on command mode CRTCs and wait for this irq happens before atomic commit completion. Signed-off-by: Hai Li h...@codeaurora.org --- drivers/gpu/drm

[PATCH 0/2] drm/msm: Customize wait for atomic commit done function

2015-04-24 Thread Hai Li
The current way to wait for atomic commit done may cause unnecessary wait for another vsync for video mode path. Also, for command mode path, we need to wait for PP_DONE event other than vsync before finish. This patch series is to fix these issues. Hai Li (2): drm/msm: Use customized function

[PATCH 1/2] drm/msm: Use customized function to wait for atomic commit done

2015-04-24 Thread Hai Li
*_wait_for_commit_done functions to wait for FLUSH register cleared at vsync, before commit completion. Signed-off-by: Hai Li h...@codeaurora.org --- drivers/gpu/drm/msm/mdp/mdp4/mdp4_crtc.c | 46 drivers/gpu/drm/msm/mdp/mdp4/mdp4_kms.c | 7 drivers/gpu/drm/msm/mdp/mdp4

[PATCH] drm/msm: Attach assigned encoder to eDP and DSI connectors

2015-04-23 Thread Hai Li
drm_mode_connector_attach_encoder() function call is missing during eDP and DSI connector initialization. As a result, no encoder is returned by DRM_IOCTL_MODE_GETCONNECTOR system call. This change is to fix this issue. Signed-off-by: Hai Li --- drivers/gpu/drm/msm/dsi/dsi.c | 10

[PATCH] drm/msm: Attach assigned encoder to eDP and DSI connectors

2015-04-23 Thread Hai Li
drm_mode_connector_attach_encoder() function call is missing during eDP and DSI connector initialization. As a result, no encoder is returned by DRM_IOCTL_MODE_GETCONNECTOR system call. This change is to fix this issue. Signed-off-by: Hai Li h...@codeaurora.org --- drivers/gpu/drm/msm/dsi/dsi.c

[PATCH 2/2] dt-bindings: Add MSM eDP controller documentation

2015-04-15 Thread Hai Li
Signed-off-by: Hai Li --- Documentation/devicetree/bindings/drm/msm/edp.txt | 61 +++ 1 file changed, 61 insertions(+) create mode 100644 Documentation/devicetree/bindings/drm/msm/edp.txt diff --git a/Documentation/devicetree/bindings/drm/msm/edp.txt b/Documentation

[PATCH 1/2] dt-bindings: Add MSM DSI controller documentation

2015-04-15 Thread Hai Li
Signed-off-by: Hai Li --- Documentation/devicetree/bindings/drm/msm/dsi.txt | 97 +++ 1 file changed, 97 insertions(+) create mode 100644 Documentation/devicetree/bindings/drm/msm/dsi.txt diff --git a/Documentation/devicetree/bindings/drm/msm/dsi.txt b/Documentation

[PATCH 1/2] dt-bindings: Add MSM DSI controller documentation

2015-04-15 Thread Hai Li
Signed-off-by: Hai Li h...@codeaurora.org --- Documentation/devicetree/bindings/drm/msm/dsi.txt | 97 +++ 1 file changed, 97 insertions(+) create mode 100644 Documentation/devicetree/bindings/drm/msm/dsi.txt diff --git a/Documentation/devicetree/bindings/drm/msm/dsi.txt b

[PATCH 2/2] dt-bindings: Add MSM eDP controller documentation

2015-04-15 Thread Hai Li
Signed-off-by: Hai Li h...@codeaurora.org --- Documentation/devicetree/bindings/drm/msm/edp.txt | 61 +++ 1 file changed, 61 insertions(+) create mode 100644 Documentation/devicetree/bindings/drm/msm/edp.txt diff --git a/Documentation/devicetree/bindings/drm/msm/edp.txt b

Re: [PATCH v3 3/3] clk: qcom: Introduce parent_map tables

2015-04-01 Thread Hai Li
Hi Djakov, Georgi Djakov linaro.org> writes: > > In the current parent mapping code, we can get duplicate or inconsistent > indexes, which leads to discrepancy between the number of elements in the > array and the number of parents. Until now, this was solved with some > reordering but this

Re: [PATCH v3 3/3] clk: qcom: Introduce parent_map tables

2015-04-01 Thread Hai Li
Hi Djakov, Georgi Djakov georgi.djakov at linaro.org writes: In the current parent mapping code, we can get duplicate or inconsistent indexes, which leads to discrepancy between the number of elements in the array and the number of parents. Until now, this was solved with some reordering

[PATCH v3] drm/msm: Initial add DSI connector support

2015-03-31 Thread Hai Li
This change adds the DSI connector support in msm drm driver. v1: Initial change v2: - Address comments from Archit + minor clean-ups - Rebase to not depend on msm_drm_sub_dev change [Rob's comment] v3: Fix issues when initialization is failed Signed-off-by: Hai Li --- drivers/gpu/drm/msm

[PATCH v3] drm/msm: Initial add DSI connector support

2015-03-31 Thread Hai Li
This change adds the DSI connector support in msm drm driver. v1: Initial change v2: - Address comments from Archit + minor clean-ups - Rebase to not depend on msm_drm_sub_dev change [Rob's comment] v3: Fix issues when initialization is failed Signed-off-by: Hai Li h...@codeaurora.org

[PATCH v2 4/4] drm/msm/mdp5: Enable DSI connector in msm drm driver

2015-03-26 Thread Hai Li
to not depend on msm_drm_sub_dev change Signed-off-by: Hai Li --- drivers/gpu/drm/msm/Makefile| 3 +- drivers/gpu/drm/msm/mdp/mdp5/mdp5_cfg.c | 4 + drivers/gpu/drm/msm/mdp/mdp5/mdp5_cmd_encoder.c | 343 drivers/gpu/drm/msm/mdp/mdp5/mdp5_crtc.c

[PATCH v2 3/4] drm/msm: Initial add DSI connector support

2015-03-26 Thread Hai Li
This change adds the DSI connector support in msm drm driver. v1: Initial change v2: - Address comments from Archit + minor clean-ups - Rebase to not depend on msm_drm_sub_dev change [Rob's comment] Signed-off-by: Hai Li --- drivers/gpu/drm/msm/Kconfig | 11 + drivers/gpu/drm/msm

[PATCH v2 0/4] drm/msm: Initial add DSI support

2015-03-26 Thread Hai Li
Resending initial MSM DSI patches DSI is supported by both mdp4 and mdp5. This patch series adds the common DSI controller driver and also enable it in mdp5. Hai Li (4): drm/msm/mdp5: Move *_modeset_init out of construct_encoder function drm/msm: Add split display interface drm/msm: Initial

[PATCH v2 2/4] drm/msm: Add split display interface

2015-03-26 Thread Hai Li
This change is to add an interface to MDP for connector devices setting split display information. Signed-off-by: Hai Li --- drivers/gpu/drm/msm/msm_kms.h | 4 1 file changed, 4 insertions(+) diff --git a/drivers/gpu/drm/msm/msm_kms.h b/drivers/gpu/drm/msm/msm_kms.h index 3a78cb4..a9f17bd

  1   2   >