[PATCH v2 10/10] drm/hisilicon: Add support for external bridge

2015-12-02 Thread Archit Taneja
On 12/01/2015 08:20 PM, Xinliang Liu wrote: > On 1 December 2015 at 17:04, Archit Taneja wrote: >> >> >> On 11/28/2015 04:09 PM, Xinliang Liu wrote: >>> >>> Add support for external HDMI bridge. >>> >>> Signed-off-by: Xinliang Liu >

[PATCH v3 12/12] dt-bindings: msm/dsi: Add DSIv2 documentation

2015-12-01 Thread Archit Taneja
Add additional property info needed for DSIv2 DT. Cc: devicetree at vger.kernel.org Cc: Rob Herring Signed-off-by: Archit Taneja --- Documentation/devicetree/bindings/display/msm/dsi.txt | 4 1 file changed, 4 insertions(+) diff --git a/Documentation/devicetree/bindings/display/msm

[PATCH v3 11/12] dt-bindings: msm/dsi: Fix the order in which clocks are listed

2015-12-01 Thread Archit Taneja
List the clocks in the order that's used in DT. We don't have mdp/dsi DT nodes for any SoC in upstream yet, but we align with the order we intend to use. Cc: devicetree at vger.kernel.org Cc: Rob Herring Signed-off-by: Archit Taneja --- Documentation/devicetree/bindings/display/m

[PATCH v3 10/12] drm/msm/dsi: Enable MMSS SPFB port via syscon

2015-12-01 Thread Archit Taneja
For DSIv2 to work, we need to enable MMSS_AHB_ARB_MASTER_PORT in MMSS_SFPB. We enable the required bitfield by retrieving MMSS_SFPB regmap pointer via syscon. Signed-off-by: Archit Taneja --- drivers/gpu/drm/msm/dsi/dsi_host.c | 33 + 1 file changed, 33

[PATCH v3 09/12] drm/msm/dsi: Don't use iommu for command TX buffer for DSIv2

2015-12-01 Thread Archit Taneja
We currently use iommu allocated DMA buffers for sending DSI commands. DSIv2 doesn't have a port connected to the MDP iommu. Therefore, it can't use iommu allocated buffers to fetch DSI commands. Use a regular contiguous DMA buffer if we are DSIv2. Signed-off-by: Archit Taneja --- d

[PATCH v3 08/12] drm/msm/dsi: Add dsi_cfg for APQ8064

2015-12-01 Thread Archit Taneja
Add a dsi_cfg entry for APQ8064. Since this is the first DSIv2 chip to be supported, add a list of bus clocks that are required by the DSIv2 block. Signed-off-by: Archit Taneja --- drivers/gpu/drm/msm/dsi/dsi_cfg.c | 19 --- drivers/gpu/drm/msm/dsi/dsi_cfg.h | 2 ++ 2 files

[PATCH v3 07/12] drm/msm/dsi: Set up link clocks for DSIv2

2015-12-01 Thread Archit Taneja
nfigured before esc_clk, and src_clk before pixel_clk. We create two different link_enable funcs for DSI6G and DSIv2 since the sequences are different. We also obtain two extra source clocks (dsi_src_clk and esc_src_clk) and set their parent to the clocks provided by DSI PLL. Signed-off-by

[PATCH v3 06/12] drm/msm/dsi: Parse bus clocks from a list

2015-12-01 Thread Archit Taneja
DSI for MSM8916(this is DSI6G too, but there is no MMSS_CC specific clock since there is no MMSS clock controller on 8916). Signed-off-by: Archit Taneja --- drivers/gpu/drm/msm/dsi/dsi.h | 1 + drivers/gpu/drm/msm/dsi/dsi_cfg.c | 16 +- drivers/gpu/drm/msm/dsi/dsi_cfg.h | 2

[PATCH v3 05/12] drm/msm/dsi: Delay dsi_clk_init

2015-12-01 Thread Archit Taneja
o get the interface clock, and then put it after it is used. Signed-off-by: Archit Taneja --- drivers/gpu/drm/msm/dsi/dsi_host.c | 32 ++-- 1 file changed, 22 insertions(+), 10 deletions(-) diff --git a/drivers/gpu/drm/msm/dsi/dsi_host.c b/drivers/gpu/drm/ms

[PATCH v3 04/12] drm/msm/dsi: Use a better way to figure out DSI version

2015-12-01 Thread Archit Taneja
l register dumps I'vc seen, holds 0 all the time. Modify dsi_get_version to read REG_DSI_VERSION to determine whether we are DSI6G or DSIv2. Signed-off-by: Archit Taneja --- drivers/gpu/drm/msm/dsi/dsi_host.c | 24 ++-- 1 file changed, 18 insertions(+), 6 deletions(-

[PATCH v3 03/12] drm/msm/dsi: Add DSI PLL for 28nm 8960 PHY

2015-12-01 Thread Archit Taneja
for dsixpllbyte to ensure that the parent (VCO) is set at this rate. An additional divider (POSTDIV1) generates the bitclk. Since bit clock can be derived from byteclock, we calculate it internally, and don't expose it as a clock. Cc: Stephen Boyd Signed-off-by: Archit Taneja --- driver

[PATCH v3 02/12] drm/msm/dsi: Add support for 28nm PHY on 8960

2015-12-01 Thread Archit Taneja
DSI PHY on MSM8960 and APQ8064 is a 28nm PHY that's different from the supported 28nm LP PHY found in newer chips. Add support for the new PHY. Signed-off-by: Archit Taneja --- drivers/gpu/drm/msm/Kconfig | 8 + drivers/gpu/drm/msm/Makefile

[PATCH v3 01/12] drm/msm/dsi: Don't get byte/pixel source clocks from DT

2015-12-01 Thread Archit Taneja
to the dsi host. Fortunately, there is a static parent-child link between the byte_clk_src/pixel_clk_src and byte_clk/pixel_clk clocks. So, we can retrieve the source clocks via clk_get_parent. Do this instead of retrieving via DT. Cc: Rob Herring Cc: Stephen Boyd Signed-off-by: Archit Taneja --

[PATCH v3 00/12] drm/msm/dsi: Add support for DSI on MSM8960/APQ8064

2015-12-01 Thread Archit Taneja
ed to provide source clocks (RCG clocks) via DT, as suggested by Rob Herring. - Make cleaner dt-binding doc patches. Changes in v2: - Incorporated Stephen's comments for the DSI PLL patch. - The dsi.xml.h and sfpb.xml.h changes were already picked up by Rob. Removed those patches. Archit

[PATCH v2 10/10] drm/hisilicon: Add support for external bridge

2015-12-01 Thread Archit Taneja
On 11/28/2015 04:09 PM, Xinliang Liu wrote: > Add support for external HDMI bridge. > > Signed-off-by: Xinliang Liu > Signed-off-by: Xinwei Kong > Signed-off-by: Andy Green > --- > drivers/gpu/drm/hisilicon/hisi_drm_dsi.c | 51 > > 1 file changed, 51 insert

[PATCH v2 08/10] drm/hisilicon: Add dsi encoder driver

2015-12-01 Thread Archit Taneja
On 11/28/2015 04:09 PM, Xinliang Liu wrote: > Add dsi encoder driver for hi6220 SoC. > > Signed-off-by: Xinliang Liu > Signed-off-by: Xinwei Kong > Signed-off-by: Andy Green > --- > drivers/gpu/drm/hisilicon/Kconfig| 1 + > drivers/gpu/drm/hisilicon/Makefile | 3 +- > dri

[PATCH v3 5/5] drm/dsi: Get DSI host by DT device node

2015-11-30 Thread Archit Taneja
f all the hosts DSI that are currently registered. This list will be used to find the mipi_dsi_host corresponding to the device_node passed in of_find_mipi_dsi_host_by_node. Reviewed-by: Andrzej Hajda Signed-off-by: Archit Taneja --- drivers/gpu/drm/drm_mipi_dsi.c

[PATCH v3 4/5] drm/dsi: Add routine to unregister dsi device

2015-11-30 Thread Archit Taneja
A driver calling mipi_dsi_device_new might want to unregister the device once it's done. It might also require it in an error handling path in case something didn't go right. Signed-off-by: Archit Taneja --- include/drm/drm_mipi_dsi.h | 5 + 1 file changed, 5 insertions(+) di

[PATCH v3 3/5] drm/dsi: Check for used channels

2015-11-30 Thread Archit Taneja
e populated via DT. Now that we also support creating devices manually, we could end up in a situation where a driver tries to create a device with a virtual channel already taken by a device populated in DT. Reviewed-by: Andrzej Hajda Signed-off-by: Archit Taneja --- drivers/gpu/drm/drm_

[PATCH v3 2/5] drm/dsi: Try to match non-DT dsi devices

2015-11-30 Thread Archit Taneja
7;t used for the dsi bus. Reviewed-by: Andrzej Hajda Signed-off-by: Archit Taneja --- drivers/gpu/drm/drm_mipi_dsi.c | 25 - include/drm/drm_mipi_dsi.h | 6 ++ 2 files changed, 30 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/drm_mipi_dsi.c b/drivers/gp

[PATCH v3 1/5] drm/dsi: Refactor device creation

2015-11-30 Thread Archit Taneja
device_new as a standalone way to create a dsi device not available via DT. The new device creation process tries to closely follow what's been done in i2c_new_device in i2c-core. Reviewed-by: Andrzej Hajda Signed-off-by: Archit Taneja --- drivers/gpu/drm

[PATCH v3 0/5] drm/dsi: DSI for devices with different control bus

2015-11-30 Thread Archit Taneja
vices without the need of them to have a DT node. [1]: https://lkml.org/lkml/2015/6/30/42 Changes from v2 to v3: - Incorporated misc comments by Andrzej. Changed from RFC to a PATCH set. - Fixed htmldocs warnings. Archit Taneja (5): drm/dsi: Refactor device creation drm/dsi: Try to match non-D

[PATCH v2 10/10] dt-bindings: Add DSIv2 documentation

2015-11-23 Thread Archit Taneja
On 11/21/2015 1:29 AM, Rob Herring wrote: > +Stephen > > On Wed, Nov 18, 2015 at 9:24 AM, Archit Taneja > wrote: >> Hi Rob, >> >> On 11/18/2015 6:48 PM, Rob Herring wrote: >>> >>> +dt list >>> >>> On Wed, Nov 18, 2015 at 4:55 AM

[PATCH 6/6] drm/msm/adreno: Remove CONFIG_OF checks

2015-11-18 Thread Archit Taneja
On 11/18/2015 8:15 PM, Rob Clark wrote: > On Wed, Nov 18, 2015 at 6:19 AM, Archit Taneja > wrote: >> Remove CONFIG_OF checks in adreno_device.c. The downstream bus scaling >> stuff is included only when CONFIG_OF is not set. So, remove that too. >> >>

[PATCH 3/6] dt-bindings: drm/msm: Update MDP bindings

2015-11-18 Thread Archit Taneja
+dt list On 11/18/2015 4:49 PM, Archit Taneja wrote: > Update DT bindings for mdp. We now have a more uniform and future-proof > set of compatible strings. > > MDP5 bindings were missing. Add those and update details on the > clock-names properties. > > Signed-

[PATCH v2 10/10] dt-bindings: Add DSIv2 documentation

2015-11-18 Thread Archit Taneja
Hi Rob, On 11/18/2015 6:48 PM, Rob Herring wrote: > +dt list > > On Wed, Nov 18, 2015 at 4:55 AM, Archit Taneja > wrote: >> Add additional property info needed for DSIv2 DT. > > Please use get_maintainers.pl. Sorry about that, missed out doing that posting this t

[PATCH 5/5] drm/msm/mdp4: Initialize DSI encoders

2015-11-18 Thread Archit Taneja
Create DSI encoders during modeset_init. The 2 encoders should ideally be one command mode and one video mode DSI encoder respectively, but we don't support command mode yet. We just create 2 of the same because the dsi driver expects it, we end up using only the first one. Signed-off-by: A

[PATCH 4/5] drm/msm/mdp4: Call custom round_pixclk helper only if the encoder type is TMDS

2015-11-18 Thread Archit Taneja
e in their case. Signed-off-by: Archit Taneja --- drivers/gpu/drm/msm/mdp/mdp4/mdp4_kms.c | 9 - 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/msm/mdp/mdp4/mdp4_kms.c b/drivers/gpu/drm/msm/mdp/mdp4/mdp4_kms.c index 6c9dd28..ddfcc51 100644 --- a/drivers/gpu/d

[PATCH 3/5] drm/msm/dsi: Add a mdp4 encoder for DSI

2015-11-18 Thread Archit Taneja
From: Vinay Simha BN Create an mdp4 incoder for DSI. Only DSI video mode is supported as of now. Signed-off-by: Archit Taneja Signed-off-by: Vinay Simha BN --- drivers/gpu/drm/msm/Makefile| 1 + drivers/gpu/drm/msm/mdp/mdp4/mdp4_dsi_encoder.c | 198

[PATCH 2/5] drm/msm/mdp4: Initialize LCDC encoder even if panel driver isn't available

2015-11-18 Thread Archit Taneja
panel usable even if the drm_panel driver is inserted as a module later on. Signed-off-by: Archit Taneja --- drivers/gpu/drm/msm/mdp/mdp4/mdp4_kms.c| 38 ++ drivers/gpu/drm/msm/mdp/mdp4/mdp4_kms.h| 4 +-- drivers/gpu/drm/msm/mdp/mdp4/mdp4_l

[PATCH 1/5] drm/msm/mdp4: Clean up modeset_init

2015-11-18 Thread Archit Taneja
modeset_init() for mdp4 isn't very flexible. That makes it hard to add more interfaces. Split out the encoder/connector creation code in modeset_init into a separate function. This is similar to what's done in modeset_init for mdp5. Signed-off-by: Archit Taneja --- drivers/gpu/drm/ms

[PATCH 0/5] drm/msm: DSI support on MDP4

2015-11-18 Thread Archit Taneja
video mode. We also don't have proper support for the DMA_S crtc yet. So, only one of the two interfaces (DSI or LVDS) would run at a time. We can add support for DMA_S later if we need it. Archit Taneja (4): drm/msm/mdp4: Clean up modeset_init drm/msm/mdp4: Initialize LCDC encoder even if pa

[PATCH 6/6] drm/msm/adreno: Remove CONFIG_OF checks

2015-11-18 Thread Archit Taneja
Remove CONFIG_OF checks in adreno_device.c. The downstream bus scaling stuff is included only when CONFIG_OF is not set. So, remove that too. Signed-off-by: Archit Taneja --- drivers/gpu/drm/msm/adreno/adreno_device.c | 52 -- 1 file changed, 52 deletions(-) diff

[PATCH 5/6] drm/msm/hdmi: remove CONFIG_OF checks

2015-11-18 Thread Archit Taneja
We now only care about kernels that support DT. Remote the non-DT stuff. While we're at it, use of_device_get_match_data to retrieve match data. Signed-off-by: Archit Taneja --- drivers/gpu/drm/msm/hdmi/hdmi.c | 87 - 1 file changed, 16 insertions(+

[PATCH 4/6] drm/msm/mdp: Remove CONFIG_OF checks from MDP drivers

2015-11-18 Thread Archit Taneja
We don't intend to use downstream non-DT kernels anymore, so remove CONFIG_OF checks. Update the TODO comment so that we don't forget about max_clk setting for non APQ8064 chips having MDP4. Signed-off-by: Archit Taneja --- drivers/gpu/drm/msm/mdp/mdp4/mdp4_

[PATCH 3/6] dt-bindings: drm/msm: Update MDP bindings

2015-11-18 Thread Archit Taneja
Update DT bindings for mdp. We now have a more uniform and future-proof set of compatible strings. MDP5 bindings were missing. Add those and update details on the clock-names properties. Signed-off-by: Archit Taneja --- .../devicetree/bindings/display/msm/mdp.txt| 26

[PATCH 2/6] drm/msm: Update compatible strings for mdp

2015-11-18 Thread Archit Taneja
Create distinct compatible strings for mdp4 and mdp5. Keep "qcom,mdss_mdp" as is to support downstream kernels. Signed-off-by: Archit Taneja --- drivers/gpu/drm/msm/msm_drv.c | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/msm/msm_drv.c b/d

[PATCH 1/6] drm/msm: Remove non-DT code in msm_drv

2015-11-18 Thread Archit Taneja
ff-by: Archit Taneja --- drivers/gpu/drm/msm/msm_drv.c | 74 --- drivers/gpu/drm/msm/msm_drv.h | 7 +--- 2 files changed, 15 insertions(+), 66 deletions(-) diff --git a/drivers/gpu/drm/msm/msm_drv.c b/drivers/gpu/drm/msm/msm_drv.c index b88ce51..06df8aa 1

[PATCH 0/6] drm/msm: Work only with DT supported kernels

2015-11-18 Thread Archit Taneja
which removes CONFIG_OF checks for adreno is something I'm not sure about. It can be discarded if it isn't right. Archit Taneja (6): drm/msm: Remove non-DT code in msm_drv drm/msm: Update compatible strings for mdp dt-bindings: drm/msm: Update MDP bindings drm/msm/mdp: Remove CONFIG

[PATCH v2 10/10] dt-bindings: Add DSIv2 documentation

2015-11-18 Thread Archit Taneja
Add additional property info needed for DSIv2 DT. Signed-off-by: Archit Taneja --- Documentation/devicetree/bindings/display/msm/dsi.txt | 10 +- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/Documentation/devicetree/bindings/display/msm/dsi.txt b/Documentation

[PATCH v2 09/10] drm/msm/dsi: Enable MMSS SPFB port via syscon

2015-11-18 Thread Archit Taneja
For DSIv2 to work, we need to enable MMSS_AHB_ARB_MASTER_PORT in MMSS_SFPB. We enable the required bitfield by retrieving MMSS_SFPB regmap pointer via syscon. Signed-off-by: Archit Taneja --- drivers/gpu/drm/msm/dsi/dsi_host.c | 33 + 1 file changed, 33

[PATCH v2 08/10] drm/msm/dsi: Don't use iommu for command TX buffer for DSIv2

2015-11-18 Thread Archit Taneja
We currently use iommu allocated DMA buffers for sending DSI commands. DSIv2 doesn't have a port connected to the MDP iommu. Therefore, it can't use iommu allocated buffers to fetch DSI commands. Use a regular contiguous DMA buffer if we are DSIv2. Signed-off-by: Archit Taneja --- d

[PATCH v2 07/10] drm/msm/dsi: Add dsi_cfg for APQ8064

2015-11-18 Thread Archit Taneja
Add a dsi_cfg entry for APQ8064. Since this is the first DSIv2 chip to be supported, add a list of bus clocks that are required by the DSIv2 block. Signed-off-by: Archit Taneja --- drivers/gpu/drm/msm/dsi/dsi_cfg.c | 19 --- drivers/gpu/drm/msm/dsi/dsi_cfg.h | 2 ++ 2 files

[PATCH v2 06/10] drm/msm/dsi: Set up link clocks for DSIv2

2015-11-18 Thread Archit Taneja
nfigured before esc_clk, and src_clk before pixel_clk. We create two different link_enable funcs for DSI6G and DSIv2 since the sequences are different. We also obtain two extra source clocks (dsi_src_clk and esc_src_clk) and set their parent to the clocks provided by DSI PLL. Signed-off-by

[PATCH v2 05/10] drm/msm/dsi: Parse bus clocks from a list

2015-11-18 Thread Archit Taneja
DSI for MSM8916(this is DSI6G too, but there is no MMSS_CC specific clock since there is no MMSS clock controller on 8916). Signed-off-by: Archit Taneja --- drivers/gpu/drm/msm/dsi/dsi.h | 1 + drivers/gpu/drm/msm/dsi/dsi_cfg.c | 16 +- drivers/gpu/drm/msm/dsi/dsi_cfg.h | 2

[PATCH v2 04/10] drm/msm/dsi: Delay dsi_clk_init

2015-11-18 Thread Archit Taneja
o get the interface clock, and then put it after it is used. Signed-off-by: Archit Taneja --- drivers/gpu/drm/msm/dsi/dsi_host.c | 32 ++-- 1 file changed, 22 insertions(+), 10 deletions(-) diff --git a/drivers/gpu/drm/msm/dsi/dsi_host.c b/drivers/gpu/drm/ms

[PATCH v2 03/10] drm/msm/dsi: Use a better way to figure out DSI version

2015-11-18 Thread Archit Taneja
l register dumps I'vc seen, holds 0 all the time. Modify dsi_get_version to read REG_DSI_VERSION to determine whether we are DSI6G or DSIv2. Signed-off-by: Archit Taneja --- drivers/gpu/drm/msm/dsi/dsi_host.c | 24 ++-- 1 file changed, 18 insertions(+), 6 deletions(-

[PATCH v2 02/10] drm/msm/dsi: Add DSI PLL for 28nm 8960 PHY

2015-11-18 Thread Archit Taneja
for dsixpllbyte to ensure that the parent (VCO) is set at this rate. An additional divider (POSTDIV1) generates the bitclk. Since bit clock can be derived from byteclock, we calculate it internally, and don't expose it as a clock. Cc: Stephen Boyd Signed-off-by: Archit Taneja --- driver

[PATCH v2 01/10] drm/msm/dsi: Add support for 28nm PHY on 8960

2015-11-18 Thread Archit Taneja
DSI PHY on MSM8960 and APQ8064 is a 28nm PHY that's different from the supported 28nm LP PHY found in newer chips. Add support for the new PHY. Signed-off-by: Archit Taneja --- drivers/gpu/drm/msm/Kconfig | 8 + drivers/gpu/drm/msm/Makefile

[PATCH v2 00/10] drm/msm/dsi: Add support for DSI on MSM8960/APQ8064

2015-11-18 Thread Archit Taneja
mments for the DSI PLL patch. - The dsi.xml.h and sfpb.xml.h changes were already picked up by Rob. Removed those patches. Archit Taneja (10): drm/msm/dsi: Add support for 28nm PHY on 8960 drm/msm/dsi: Add DSI PLL for 28nm 8960 PHY drm/msm/dsi: Use a better way to figure out DSI version d

[PATCH v2 2/2] drm/panel: Add Sharp LS043T1LE01 MIPI DSI panel

2015-11-05 Thread Archit Taneja
On 10/31/2015 04:04 AM, Bjorn Andersson wrote: > From: Werner Johansson > > This adds support for the Sharp panel found on the Qualcomm > Snapdragon 800 Dragonboard (APQ8074) > > Signed-off-by: Werner Johansson > Signed-off-by: Bjorn Andersson Reviewed-by: Archit Tane

[PATCH v3 0/3] drm: fb emulation: Remove remaining driver level fb emulation configs

2015-11-04 Thread Archit Taneja
On 10/30/2015 03:57 PM, Daniel Vetter wrote: > On Tue, Oct 27, 2015 at 01:40:56PM +0530, Archit Taneja wrote: >> Instead of using a custom legacy fbdev emulation config option, use the >> top level DRM_FBDEV_EMULATION config option. >> >> There are 3 drivers which use

[RFC v2 5/5] drm/dsi: Get DSI host by DT device node

2015-11-03 Thread Archit Taneja
On 11/02/2015 04:20 PM, Andrzej Hajda wrote: > On 10/06/2015 11:24 AM, Archit Taneja wrote: >> mipi_dsi_devices are inherently aware of their host because they >> share a parent-child hierarchy in the device tree. >> >> Non-dsi drivers that create a dummy dsi device

[RFC v2 4/5] drm/dsi: Add routine to unregister dsi device

2015-11-03 Thread Archit Taneja
On 11/02/2015 04:12 PM, Andrzej Hajda wrote: > On 11/02/2015 07:28 AM, Archit Taneja wrote: >> >> On 10/30/2015 07:51 PM, Andrzej Hajda wrote: >>> On 10/06/2015 11:24 AM, Archit Taneja wrote: >>>> A driver calling mipi_dsi_device_new might want to unregiste

[RFC v2 4/5] drm/dsi: Add routine to unregister dsi device

2015-11-02 Thread Archit Taneja
On 10/30/2015 07:51 PM, Andrzej Hajda wrote: > On 10/06/2015 11:24 AM, Archit Taneja wrote: >> A driver calling mipi_dsi_device_new might want to unregister the device >> once it's done. It might also require it in an error handling path in >> case something didn'

[RFC v2 3/5] drm/dsi: Check for used channels

2015-11-02 Thread Archit Taneja
On 10/30/2015 06:22 PM, Andrzej Hajda wrote: > On 10/06/2015 11:24 AM, Archit Taneja wrote: >> We don't check whether a previously registered mipi_dsi_device under the >> same host shares the same virtual channel. >> >> Before registering, check if any o

[RFC v2 2/5] drm/dsi: Try to match non-DT dsi devices

2015-11-02 Thread Archit Taneja
On 10/30/2015 06:12 PM, Andrzej Hajda wrote: > On 10/06/2015 11:24 AM, Archit Taneja wrote: >> Add a device name field in mipi_dsi_device. This name is different from >> the actual dev name (which is of the format "hostname.reg"). When the >> device is created

[PATCH v3 2/3] drm/sti: Remove local fbdev emulation Kconfig option

2015-10-30 Thread Archit Taneja
ort to enable/disable fbdev at runtime in the helper, >> see >> >> commit f64c5573d253ab3f9c01b4056c5f75a889d18502 >> Author: Daniel Vetter >> Date: Tue Aug 25 15:45:13 2015 +0200 >> >> drm/fb-helper: Add module option to disable fbdev emulation >>

[PATCH v3 3/3] drm/tegra: Remove local fbdev emulation Kconfig option

2015-10-27 Thread Archit Taneja
DRM_TEGRA_FBDEV config is currently used to enable/disable legacy fbdev emulation for the tegra kms driver. Remove this local config option and use the top level DRM_FBDEV_EMULATION config option instead. Signed-off-by: Archit Taneja --- drivers/gpu/drm/tegra/Kconfig | 12 drivers

[PATCH v3 2/3] drm/sti: Remove local fbdev emulation Kconfig option

2015-10-27 Thread Archit Taneja
bably okay to get remove the #ifdef itself, but just left it here for now to be safe. It can be removed after some testing. Signed-off-by: Archit Taneja --- drivers/gpu/drm/sti/Kconfig | 6 -- drivers/gpu/drm/sti/sti_drv.c | 2 +- 2 files changed, 1 insertion(+), 7 deletions(-) diff --

[PATCH v3 1/3] drm/imx: Remove local fbdev emulation Kconfig option

2015-10-27 Thread Archit Taneja
in certain places. Tested-by: Philipp Zabel Signed-off-by: Archit Taneja --- drivers/gpu/drm/imx/Kconfig| 9 - drivers/gpu/drm/imx/imx-drm-core.c | 12 +++- 2 files changed, 3 insertions(+), 18 deletions(-) diff --git a/drivers/gpu/drm/imx/Kconfig b/drivers/gpu/drm/imx

[PATCH v3 0/3] drm: fb emulation: Remove remaining driver level fb emulation configs

2015-10-27 Thread Archit Taneja
config options in order to have a single config option. Archit Taneja (3): drm/imx: Remove local fbdev emulation Kconfig option drm/sti: Remove local fbdev emulation Kconfig option drm/tegra: Remove local fbdev emulation Kconfig option drivers/gpu/drm/imx/Kconfig| 9 - drivers

[PATCH] drm/msm/mdp5: high precision vblank timestamp support

2015-10-27 Thread Archit Taneja
On 10/27/2015 05:33 AM, Rob Clark wrote: > On Mon, Oct 26, 2015 at 5:54 AM, Archit Taneja > wrote: >> MDP5 has line count and frame count registers for each interface. Enable >> these counters and use them to implement the get_vblank_timestamp drm >> driver op. >&

[PATCH] drm/msm/mdp5: high precision vblank timestamp support

2015-10-26 Thread Archit Taneja
to determine whether we're in blanking period or not, and an adjusted value of this counter is used to get vpos as expected by get_scanout_position. Since there is no way to calculate hpos, we always set it to 0. Signed-off-by: Archit Taneja --- drivers/gpu/drm/msm/mdp/mdp5/mdp5_encoder.c

[PATCH 03/12] drm/msm/dsi: Add DSI PLL for 28nm 8960 PHY

2015-10-16 Thread Archit Taneja
On 10/15/2015 02:05 AM, Stephen Boyd wrote: > On 10/14, Archit Taneja wrote: >> diff --git a/drivers/gpu/drm/msm/dsi/pll/dsi_pll_28nm_8960.c >> b/drivers/gpu/drm/msm/dsi/pll/dsi_pll_28nm_8960.c >> new file mode 100644 >> index 000..e71b4ee >> --- /dev/null

[PATCH 2/2] rnndb/dsi: Populate bitfields for SFPB_CFG register

2015-10-14 Thread Archit Taneja
Signed-off-by: Archit Taneja --- rnndb/dsi/sfpb.xml | 8 +++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/rnndb/dsi/sfpb.xml b/rnndb/dsi/sfpb.xml index f42f867..a08c82f 100644 --- a/rnndb/dsi/sfpb.xml +++ b/rnndb/dsi/sfpb.xml @@ -5,7 +5,13 @@ xsi:schemaLocation="

[PATCH 1/2] rnndb/dsi: Create proper domains for 8960 DSI

2015-10-14 Thread Archit Taneja
8960 DSI PHY/PLL is crumpled into one piece. Split it out into domains, similar to the way we do for the 28nm/20nm DSI PHY/PLL domains. Signed-off-by: Archit Taneja --- rnndb/dsi/dsi.xml | 171 -- 1 file changed, 114 insertions(+), 57

[PATCH 0/2] rnndb: dsi: Some updates for DSIv2

2015-10-14 Thread Archit Taneja
Archit Taneja (2): rnndb/dsi: Create proper domains for 8960 DSI rnndb/dsi: Populate bitfields for SFPB_CFG register rnndb/dsi/dsi.xml | 171 +++-- rnndb/dsi/sfpb.xml | 8 ++- 2 files changed, 121 insertions(+), 58 deletions(-) -- The

[PATCH 12/12] dt-bindings: Add DSIv2 documentation

2015-10-14 Thread Archit Taneja
Add additional property info needed for DSIv2 DT. Signed-off-by: Archit Taneja --- Documentation/devicetree/bindings/drm/msm/dsi.txt | 10 +- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/Documentation/devicetree/bindings/drm/msm/dsi.txt b/Documentation/devicetree

[PATCH 11/12] drm/msm/dsi: Enable MMSS SPFB port via syscon

2015-10-14 Thread Archit Taneja
For DSIv2 to work, we need to enable MMSS_AHB_ARB_MASTER_PORT in MMSS_SFPB. We enable the required bitfield by retrieving MMSS_SFPB regmap pointer via syscon. Signed-off-by: Archit Taneja --- drivers/gpu/drm/msm/dsi/dsi_host.c | 33 + 1 file changed, 33

[PATCH 10/12] drm/msm/dsi: SFPB: Update generated headers

2015-10-14 Thread Archit Taneja
Update SFPB register data now that we intend to use it. Signed-off-by: Archit Taneja --- drivers/gpu/drm/msm/dsi/sfpb.xml.h | 26 ++ 1 file changed, 14 insertions(+), 12 deletions(-) diff --git a/drivers/gpu/drm/msm/dsi/sfpb.xml.h b/drivers/gpu/drm/msm/dsi/sfpb.xml.h

[PATCH 09/12] drm/msm/dsi: Don't use iommu for command TX buffer for DSIv2

2015-10-14 Thread Archit Taneja
We currently use iommu allocated DMA buffers for sending DSI commands. DSIv2 doesn't have a port connected to the MDP iommu. Therefore, it can't use iommu allocated buffers to fetch DSI commands. Use a regular contiguous DMA buffer if we are DSIv2. Signed-off-by: Archit Taneja --- d

[PATCH 08/12] drm/msm/dsi: Add dsi_cfg for APQ8064

2015-10-14 Thread Archit Taneja
Add a dsi_cfg entry for APQ8064. Since this is the first DSIv2 chip to be supported, add a list of bus clocks that are required by the DSIv2 block. Signed-off-by: Archit Taneja --- drivers/gpu/drm/msm/dsi/dsi_cfg.c | 19 --- drivers/gpu/drm/msm/dsi/dsi_cfg.h | 2 ++ 2 files

[PATCH 07/12] drm/msm/dsi: Set up link clocks for DSIv2

2015-10-14 Thread Archit Taneja
nfigured before esc_clk, and src_clk before pixel_clk. We create two different link_enable funcs for DSI6G and DSIv2 since the sequences are different. We also obtain two extra source clocks (dsi_src_clk and esc_src_clk) and set their parent to the clocks provided by DSI PLL. Signed-off-by

[PATCH 06/12] drm/msm/dsi: Parse bus clocks from a list

2015-10-14 Thread Archit Taneja
DSI for MSM8916(this is DSI6G too, but there is no MMSS_CC specific clock since there is no MMSS clock controller on 8916). Signed-off-by: Archit Taneja --- drivers/gpu/drm/msm/dsi/dsi.h | 1 + drivers/gpu/drm/msm/dsi/dsi_cfg.c | 16 +- drivers/gpu/drm/msm/dsi/dsi_cfg.h | 2

[PATCH 05/12] drm/msm/dsi: Delay dsi_clk_init

2015-10-14 Thread Archit Taneja
o get the interface clock, and then put it after it is used. Signed-off-by: Archit Taneja --- drivers/gpu/drm/msm/dsi/dsi_host.c | 32 ++-- 1 file changed, 22 insertions(+), 10 deletions(-) diff --git a/drivers/gpu/drm/msm/dsi/dsi_host.c b/drivers/gpu/drm/ms

[PATCH 04/12] drm/msm/dsi: Use a better way to figure out DSI version

2015-10-14 Thread Archit Taneja
l register dumps I'vc seen, holds 0 all the time. Modify dsi_get_version to read REG_DSI_VERSION to determine whether we are DSI6G or DSIv2. Signed-off-by: Archit Taneja --- drivers/gpu/drm/msm/dsi/dsi_host.c | 24 ++-- 1 file changed, 18 insertions(+), 6 deletions(-

[PATCH 03/12] drm/msm/dsi: Add DSI PLL for 28nm 8960 PHY

2015-10-14 Thread Archit Taneja
for dsixpllbyte to ensure that the parent (VCO) is set at this rate. An additional divider (POSTDIV1) generates the bitclk. Since bit clock can be derived from byteclock, we calculate it internally, and don't expose it as a clock. Cc: Stephen Boyd Signed-off-by: Archit Taneja --- driver

[PATCH 02/12] drm/msm/dsi: Add support for 28nm PHY on 8960

2015-10-14 Thread Archit Taneja
DSI PHY on MSM8960 and APQ8064 is a 28nm PHY that's different from the supported 28nm LP PHY found in newer chips. Add support for the new PHY. Signed-off-by: Archit Taneja --- drivers/gpu/drm/msm/Kconfig | 8 + drivers/gpu/drm/msm/Makefile

[PATCH 01/12] drm/msm/dsi: Update generated header for 8960

2015-10-14 Thread Archit Taneja
The DSI PLL and PHY registers are already there for 8960, but their offsets are relative to the top level DSI controller base. Make the offsets relative to the individual sub blocks. Add "28nm" in the register names while we're at it. Signed-off-by: Archit Taneja --- drivers/

[PATCH 00/12] drm/msm/dsi: Add support for DSI on MSM8960/APQ8064

2015-10-14 Thread Archit Taneja
Add support for DSI on 8960/8064. The DSI IP used in these chips is an older version(DSIv2) of what we have right now(DSI6G). The bulk of the additions come thanks to a different PHY/PLL. The DSI host in itself doesn't have too many changes. Archit Taneja (12): drm/msm/dsi: Update gene

[RFC v2 5/5] drm/dsi: Get DSI host by DT device node

2015-10-06 Thread Archit Taneja
list of all the hosts DSI that are currently registered. This list will be used to find the mipi_dsi_host corresponding to the device_node passed in of_find_mipi_dsi_host_by_node. Signed-off-by: Archit Taneja --- drivers/gpu/drm/drm_mipi_dsi.c | 30 ++ includ

[RFC v2 4/5] drm/dsi: Add routine to unregister dsi device

2015-10-06 Thread Archit Taneja
be removed. This does leave the possibility of the host removing the dsi device without the peripheral driver being aware of it. I don't know a good way to solve this. Some suggestions here would be of help too. Signed-off-by: Archit Taneja --- drivers/gpu/drm/drm_mipi_dsi.c | 7 +

[RFC v2 3/5] drm/dsi: Check for used channels

2015-10-06 Thread Archit Taneja
e populated via DT. Now that we also support creating devices manually, we could end up in a situation where a driver tries to create a device with a virtual channel already taken by a device populated in DT. Signed-off-by: Archit Taneja --- drivers/gpu/drm/drm_mipi_dsi.c | 26 +++

[RFC v2 2/5] drm/dsi: Try to match non-DT dsi devices

2015-10-06 Thread Archit Taneja
pi) perform a non-DT match by comparing the device name and entries in the driver's id_table. The id_table structs for different buses are defined in "include/linux/mod_devicetable.h", I didn't want to touch that for now. Signed-off-by: Archit Taneja

[RFC v2 1/5] drm/dsi: Refactor device creation

2015-10-06 Thread Archit Taneja
device_new as a standalone way to create a dsi device not available via DT. The new device creation process tries to closely follow what's been done in i2c_new_device in i2c-core. Signed-off-by: Archit Taneja --- drivers/gpu/drm/drm_mipi_dsi.c | 61 +--

[RFC v2 0/5] drm/dsi: DSI for devices with different control bus

2015-10-06 Thread Archit Taneja
peripheral driver might have an unregistered device pointer without being aware of it. Some comments on these would help. [1]: https://lkml.org/lkml/2015/6/30/42 Archit Taneja (5): drm/dsi: Refactor device creation drm/dsi: Try to match non-DT dsi devices drm/dsi: Check for used channels dr

[PATCH RFC 5/8] drm: hisilicon: fill interface function of encoder\connector part

2015-09-17 Thread Archit Taneja
On 9/15/2015 3:07 PM, Xinwei Kong wrote: > This patch enables the adv7533 module which is connecting hisilicon SOC > by dsi module. while using DSI module and adv7533 module to implement the > encoder/connector interface of DRM\KMS. > > Signed-off-by: Xinliang Liu > Signed-off-by: Xinwei Kong >

[PATCH RFC 2/8] drm: hisilicon: Add new DRM driver for hisilicon Soc

2015-09-17 Thread Archit Taneja
Hi, On 9/15/2015 3:07 PM, Xinwei Kong wrote: > This patch creates this driver itself and register all the sub-components > which is from DTS inode, this driver uses components framework mechanism > to bind all the sub-components. > > This patch also introduces a memory manager for hisilison drm. A

[PATCH 2/2] drm/mgag200: Fix driver_load error handling

2015-09-17 Thread Archit Taneja
ng path. Link: http://lkml.kernel.org/r/55F6E68D.8070800 at codeaurora.org Reported-by: Ingo Molnar Cc: Daniel Vetter Cc: Dave Airlie Cc: David Airlie Cc: Linus Torvalds Cc: Peter Zijlstra Cc: Sudip Mukherjee Cc: Thomas Gleixner Cc: dri-devel Signed-off-by: Archit Taneja --- drivers/gpu/drm/mgag200

[PATCH 1/2] drm/mgag200: Fix error handling paths in fbdev driver

2015-09-17 Thread Archit Taneja
Molnar Cc: Daniel Vetter Cc: Dave Airlie Cc: David Airlie Cc: Linus Torvalds Cc: Peter Zijlstra Cc: Sudip Mukherjee Cc: Thomas Gleixner Cc: dri-devel Signed-off-by: Archit Taneja --- drivers/gpu/drm/mgag200/mgag200_fb.c | 31 +++ 1 file changed, 23 insertions

[PATCH] drm/mgag200: Fix calling drm_fb_helper_fini() twice

2015-09-17 Thread Archit Taneja
On 9/17/2015 2:04 PM, Ingo Molnar wrote: > > > * Ingo Molnar wrote: > > > >> So this patch was whitespace damaged - I applied it by hand and made the >> commit > >> below. This has solved the crash, thanks Archit! > > > > Spoke too soon - the attached (allyesconfig-ish) config still crashes, fi

[RFC 0/2] drm/dsi: DSI for devices with different control bus

2015-09-17 Thread Archit Taneja
On 9/15/2015 9:13 PM, Rob Herring wrote: > On 09/15/2015 05:32 AM, Archit Taneja wrote: >> Hi Rob, Mark, >> >> We've been trying to figure out the right way to represent a class >> of display encoder devices in DT. > > I've been meaning to reply on t

[PATCH RFC 1/8] dt-bindings: Document the hi6220 bindings for DRM driver

2015-09-16 Thread Archit Taneja
Hi, On 09/16/2015 02:04 PM, Xinwei Kong wrote: > hi architt > > On 2015/9/16 2:11, Rob Herring wrote: >> On 09/15/2015 04:37 AM, Xinwei Kong wrote: >>> This adds documentation of device tree bindings for the >>> Graphics Processing Unit of hi6220 SOC. >>> >>> Signed-off-by: Xinliang Liu >>> Signe

[RFC 0/2] drm/dsi: DSI for devices with different control bus

2015-09-15 Thread Archit Taneja
the problem. There were some more nitty gritties discussed in this thread before. Thierry, Andrzej, Lucas, Please feel free to add your comments if I have missed out on something. Thanks, Archit On 09/10/2015 01:02 PM, Thierry Reding wrote: > On Thu, Sep 10, 2015 at 11:45:35AM +0530, Archit Ta

[RFC 0/2] drm/dsi: DSI for devices with different control bus

2015-09-15 Thread Archit Taneja
the problem. There were some more nitty gritties discussed in this thread before. Thierry, Andrzej, Lucas, Please feel free to add your comments if I have missed out on something. Thanks, Archit On 09/10/2015 01:02 PM, Thierry Reding wrote: > On Thu, Sep 10, 2015 at 11:45:35AM +0530, Archit Ta

[PATCH] drm/mgag200: fix memory leak

2015-09-14 Thread Archit Taneja
ported >>> hardware, if >>> CONFIG_DRM_MGAG200=y (built into the kernel). >> >> Archit, I'm guessing this is some fallout from the fbdev changes. >> >> There is no reason we should need CONFIG_FB_LITTLE_ENDIAN I don't think. It looks like the mg

[RFC 0/2] drm/dsi: DSI for devices with different control bus

2015-09-10 Thread Archit Taneja
On 09/08/2015 03:57 PM, Andrzej Hajda wrote: > On 09/07/2015 01:46 PM, Archit Taneja wrote: >> Thierry, >> >> On 08/21/2015 11:39 AM, Archit Taneja wrote: >>> >>> >>> On 08/20/2015 05:18 PM, Thierry Reding wrote: >>>> On Thu, Aug

[RFC 0/2] drm/dsi: DSI for devices with different control bus

2015-09-07 Thread Archit Taneja
Thierry, On 08/21/2015 11:39 AM, Archit Taneja wrote: > > > On 08/20/2015 05:18 PM, Thierry Reding wrote: >> On Thu, Aug 20, 2015 at 09:46:14AM +0530, Archit Taneja wrote: >>> Hi Thierry, Lucas, >>> >>> >>> On 08/19/2015 08:32 PM, Thierry Re

[PATCH v2 5/5] drm/i2c: adv7511: Add dsi driver for adv7533

2015-09-07 Thread Archit Taneja
pointer to it by getting the corresponding i2c client device's data. Signed-off-by: Archit Taneja --- drivers/gpu/drm/i2c/adv7511.c | 98 ++- 1 file changed, 97 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/i2c/adv7511.c b/drivers/gpu/drm/i2c/ad

<    5   6   7   8   9   10   11   12   13   14   >