mbox series

[v9,00/11] Genericize DW MIPI DSI bridge and add i.MX 6 driver

Message ID 20200609174959.955926-1-adrian.ratiu@collabora.com (mailing list archive)
Headers show
Series Genericize DW MIPI DSI bridge and add i.MX 6 driver | expand

Message

Adrian Ratiu June 9, 2020, 5:49 p.m. UTC
[Re-submitting to cc dri-devel, sorry about the noise]

Hello all,

v9 cleanly applies on top of latest next-20200609 tree.

v9 does not depend on other patches as the last binding doc has been merged.

All feedback up to this point has been addressed. Specific details in
individual patch changelogs.

The biggest changes are the deprecation of the Synopsys DW bridge bind()
API in favor of of_drm_find_bridge() and .attach callbacks, the addition
of a TODO entry which outlines future planned bridge driver refactorings
and a reordering of some i.MX 6 patches to appease checkpatch.

The idea behind the TODO is to get this regmap and i.MX 6 driver merged
and then do the rest of refactorings in-tree because it's easier and the
refactorings themselves are out-of-scope of this series which is adding
i.MX 6 support and is quite big already, so please, if there are more
refactoring ideas, let's add them to the TODO doc. :) I intend to tackle
those after this series is merged to avoid two complex inter-dependent
simultaneous series.

As always more testing is welcome especially on Rockchip and STM SoCs.

Big thank you to everyone who has contributed to this up to now,
Adrian

Adrian Ratiu (11):
  drm: bridge: dw_mipi_dsi: add initial regmap infrastructure
  drm: bridge: dw_mipi_dsi: abstract register access using reg_fields
  drm: bridge: dw_mipi_dsi: add dsi v1.01 support
  drm: bridge: dw_mipi_dsi: remove bind/unbind API
  dt-bindings: display: add i.MX6 MIPI DSI host controller doc
  ARM: dts: imx6qdl: add missing mipi dsi properties
  drm: imx: Add i.MX 6 MIPI DSI host platform driver
  drm: stm: dw-mipi-dsi: let the bridge handle the HW version check
  drm: bridge: dw-mipi-dsi: split low power cfg register into fields
  drm: bridge: dw-mipi-dsi: fix bad register field offsets
  Documentation: gpu: todo: Add dw-mipi-dsi consolidation plan

 .../display/imx/fsl,mipi-dsi-imx6.yaml        | 112 +++
 Documentation/gpu/todo.rst                    |  25 +
 arch/arm/boot/dts/imx6qdl.dtsi                |   8 +
 drivers/gpu/drm/bridge/synopsys/Kconfig       |   1 +
 drivers/gpu/drm/bridge/synopsys/dw-mipi-dsi.c | 713 ++++++++++++------
 drivers/gpu/drm/imx/Kconfig                   |   8 +
 drivers/gpu/drm/imx/Makefile                  |   1 +
 drivers/gpu/drm/imx/dw_mipi_dsi-imx6.c        | 399 ++++++++++
 .../gpu/drm/rockchip/dw-mipi-dsi-rockchip.c   |   7 +-
 drivers/gpu/drm/stm/dw_mipi_dsi-stm.c         |  16 +-
 10 files changed, 1059 insertions(+), 231 deletions(-)
 create mode 100644 Documentation/devicetree/bindings/display/imx/fsl,mipi-dsi-imx6.yaml
 create mode 100644 drivers/gpu/drm/imx/dw_mipi_dsi-imx6.c

Comments

Neil Armstrong June 29, 2020, 8:47 a.m. UTC | #1
Hi Adrian,

On 09/06/2020 19:49, Adrian Ratiu wrote:
> [Re-submitting to cc dri-devel, sorry about the noise]
> 
> Hello all,
> 
> v9 cleanly applies on top of latest next-20200609 tree.
> 
> v9 does not depend on other patches as the last binding doc has been merged.
> 
> All feedback up to this point has been addressed. Specific details in
> individual patch changelogs.
> 
> The biggest changes are the deprecation of the Synopsys DW bridge bind()
> API in favor of of_drm_find_bridge() and .attach callbacks, the addition
> of a TODO entry which outlines future planned bridge driver refactorings
> and a reordering of some i.MX 6 patches to appease checkpatch.
> 
> The idea behind the TODO is to get this regmap and i.MX 6 driver merged
> and then do the rest of refactorings in-tree because it's easier and the
> refactorings themselves are out-of-scope of this series which is adding
> i.MX 6 support and is quite big already, so please, if there are more
> refactoring ideas, let's add them to the TODO doc. :) I intend to tackle
> those after this series is merged to avoid two complex inter-dependent
> simultaneous series.

This has been around here for a long time and you seem to have addressed all
the reviews.

> 
> As always more testing is welcome especially on Rockchip and STM SoCs.

It has been tested on STM, but I'd like a feedback on RK platform before applying
the bridge parts.

Can the imx & stm patches be applied separately ?

Neil

> 
> Big thank you to everyone who has contributed to this up to now,
> Adrian
> 
> Adrian Ratiu (11):
>   drm: bridge: dw_mipi_dsi: add initial regmap infrastructure
>   drm: bridge: dw_mipi_dsi: abstract register access using reg_fields
>   drm: bridge: dw_mipi_dsi: add dsi v1.01 support
>   drm: bridge: dw_mipi_dsi: remove bind/unbind API
>   dt-bindings: display: add i.MX6 MIPI DSI host controller doc
>   ARM: dts: imx6qdl: add missing mipi dsi properties
>   drm: imx: Add i.MX 6 MIPI DSI host platform driver
>   drm: stm: dw-mipi-dsi: let the bridge handle the HW version check
>   drm: bridge: dw-mipi-dsi: split low power cfg register into fields
>   drm: bridge: dw-mipi-dsi: fix bad register field offsets
>   Documentation: gpu: todo: Add dw-mipi-dsi consolidation plan
> 
>  .../display/imx/fsl,mipi-dsi-imx6.yaml        | 112 +++
>  Documentation/gpu/todo.rst                    |  25 +
>  arch/arm/boot/dts/imx6qdl.dtsi                |   8 +
>  drivers/gpu/drm/bridge/synopsys/Kconfig       |   1 +
>  drivers/gpu/drm/bridge/synopsys/dw-mipi-dsi.c | 713 ++++++++++++------
>  drivers/gpu/drm/imx/Kconfig                   |   8 +
>  drivers/gpu/drm/imx/Makefile                  |   1 +
>  drivers/gpu/drm/imx/dw_mipi_dsi-imx6.c        | 399 ++++++++++
>  .../gpu/drm/rockchip/dw-mipi-dsi-rockchip.c   |   7 +-
>  drivers/gpu/drm/stm/dw_mipi_dsi-stm.c         |  16 +-
>  10 files changed, 1059 insertions(+), 231 deletions(-)
>  create mode 100644 Documentation/devicetree/bindings/display/imx/fsl,mipi-dsi-imx6.yaml
>  create mode 100644 drivers/gpu/drm/imx/dw_mipi_dsi-imx6.c
>
Adrian Ratiu July 1, 2020, 6:35 a.m. UTC | #2
Hi Neil,

On Mon, 29 Jun 2020, Neil Armstrong <narmstrong@baylibre.com> 
wrote:
> Hi Adrian, 
> 
> On 09/06/2020 19:49, Adrian Ratiu wrote: 
>> [Re-submitting to cc dri-devel, sorry about the noise]  Hello 
>> all,  v9 cleanly applies on top of latest next-20200609 tree. 
>> v9 does not depend on other patches as the last binding doc has 
>> been merged.   All feedback up to this point has been 
>> addressed. Specific details in individual patch changelogs. 
>> The biggest changes are the deprecation of the Synopsys DW 
>> bridge bind() API in favor of of_drm_find_bridge() and .attach 
>> callbacks, the addition of a TODO entry which outlines future 
>> planned bridge driver refactorings and a reordering of some 
>> i.MX 6 patches to appease checkpatch.   The idea behind the 
>> TODO is to get this regmap and i.MX 6 driver merged and then do 
>> the rest of refactorings in-tree because it's easier and the 
>> refactorings themselves are out-of-scope of this series which 
>> is adding i.MX 6 support and is quite big already, so please, 
>> if there are more refactoring ideas, let's add them to the TODO 
>> doc. :) I intend to tackle those after this series is merged to 
>> avoid two complex inter-dependent simultaneous series. 
> 
> This has been around here for a long time and you seem to have 
> addressed all the reviews. 
> 
>>  As always more testing is welcome especially on Rockchip and 
>> STM SoCs. 
> 
> It has been tested on STM, but I'd like a feedback on RK 
> platform before applying the bridge parts. 
> 
> Can the imx & stm patches be applied separately ? 
>

Yes the IMX and STM patches can be applied separately, they just 
both depend on the common regmap patches.

The binding API removal change which directly touches RK can also 
be applied separately, but unfortunately I do not have access to a 
RK board with a DSI display to test it (or the bridge regmap logic 
on RK btw...), I just "eye-balled" the RK code based on the public 
docs and it LGTM.

> Neil
>
>> 
>> Big thank you to everyone who has contributed to this up to now,
>> Adrian
>> 
>> Adrian Ratiu (11):
>>   drm: bridge: dw_mipi_dsi: add initial regmap infrastructure
>>   drm: bridge: dw_mipi_dsi: abstract register access using reg_fields
>>   drm: bridge: dw_mipi_dsi: add dsi v1.01 support
>>   drm: bridge: dw_mipi_dsi: remove bind/unbind API
>>   dt-bindings: display: add i.MX6 MIPI DSI host controller doc
>>   ARM: dts: imx6qdl: add missing mipi dsi properties
>>   drm: imx: Add i.MX 6 MIPI DSI host platform driver
>>   drm: stm: dw-mipi-dsi: let the bridge handle the HW version check
>>   drm: bridge: dw-mipi-dsi: split low power cfg register into fields
>>   drm: bridge: dw-mipi-dsi: fix bad register field offsets
>>   Documentation: gpu: todo: Add dw-mipi-dsi consolidation plan
>> 
>>  .../display/imx/fsl,mipi-dsi-imx6.yaml        | 112 +++
>>  Documentation/gpu/todo.rst                    |  25 +
>>  arch/arm/boot/dts/imx6qdl.dtsi                |   8 +
>>  drivers/gpu/drm/bridge/synopsys/Kconfig       |   1 +
>>  drivers/gpu/drm/bridge/synopsys/dw-mipi-dsi.c | 713 ++++++++++++------
>>  drivers/gpu/drm/imx/Kconfig                   |   8 +
>>  drivers/gpu/drm/imx/Makefile                  |   1 +
>>  drivers/gpu/drm/imx/dw_mipi_dsi-imx6.c        | 399 ++++++++++
>>  .../gpu/drm/rockchip/dw-mipi-dsi-rockchip.c   |   7 +-
>>  drivers/gpu/drm/stm/dw_mipi_dsi-stm.c         |  16 +-
>>  10 files changed, 1059 insertions(+), 231 deletions(-)
>>  create mode 100644 Documentation/devicetree/bindings/display/imx/fsl,mipi-dsi-imx6.yaml
>>  create mode 100644 drivers/gpu/drm/imx/dw_mipi_dsi-imx6.c
>>
Neil Armstrong July 1, 2020, 7:50 a.m. UTC | #3
Hi Heiko,

Do you think someone can have a try of this patchset on a RK SoC ?

Thanks,
Neil

On 01/07/2020 08:35, Adrian Ratiu wrote:
> Hi Neil,
> 
> On Mon, 29 Jun 2020, Neil Armstrong <narmstrong@baylibre.com> wrote:
>> Hi Adrian,
>> On 09/06/2020 19:49, Adrian Ratiu wrote:
>>> [Re-submitting to cc dri-devel, sorry about the noise]  Hello all,  v9 cleanly applies on top of latest next-20200609 tree. v9 does not depend on other patches as the last binding doc has been merged.   All feedback up to this point has been addressed. Specific details in individual patch changelogs. The biggest changes are the deprecation of the Synopsys DW bridge bind() API in favor of of_drm_find_bridge() and .attach callbacks, the addition of a TODO entry which outlines future planned bridge driver refactorings and a reordering of some i.MX 6 patches to appease checkpatch.   The idea behind the TODO is to get this regmap and i.MX 6 driver merged and then do the rest of refactorings in-tree because it's easier and the refactorings themselves are out-of-scope of this series which is adding i.MX 6 support and is quite big already, so please, if there are more refactoring ideas, let's add them to the TODO doc. :) I intend to tackle those after this series is merged to
>>> avoid two complex inter-dependent simultaneous series. 
>>
>> This has been around here for a long time and you seem to have addressed all the reviews.
>>>  As always more testing is welcome especially on Rockchip and STM SoCs. 
>>
>> It has been tested on STM, but I'd like a feedback on RK platform before applying the bridge parts.
>> Can the imx & stm patches be applied separately ?
> 
> Yes the IMX and STM patches can be applied separately, they just both depend on the common regmap patches.
> 
> The binding API removal change which directly touches RK can also be applied separately, but unfortunately I do not have access to a RK board with a DSI display to test it (or the bridge regmap logic on RK btw...), I just "eye-balled" the RK code based on the public docs and it LGTM.
> 
>> Neil
>>
>>>
>>> Big thank you to everyone who has contributed to this up to now,
>>> Adrian
>>>
>>> Adrian Ratiu (11):
>>>   drm: bridge: dw_mipi_dsi: add initial regmap infrastructure
>>>   drm: bridge: dw_mipi_dsi: abstract register access using reg_fields
>>>   drm: bridge: dw_mipi_dsi: add dsi v1.01 support
>>>   drm: bridge: dw_mipi_dsi: remove bind/unbind API
>>>   dt-bindings: display: add i.MX6 MIPI DSI host controller doc
>>>   ARM: dts: imx6qdl: add missing mipi dsi properties
>>>   drm: imx: Add i.MX 6 MIPI DSI host platform driver
>>>   drm: stm: dw-mipi-dsi: let the bridge handle the HW version check
>>>   drm: bridge: dw-mipi-dsi: split low power cfg register into fields
>>>   drm: bridge: dw-mipi-dsi: fix bad register field offsets
>>>   Documentation: gpu: todo: Add dw-mipi-dsi consolidation plan
>>>
>>>  .../display/imx/fsl,mipi-dsi-imx6.yaml        | 112 +++
>>>  Documentation/gpu/todo.rst                    |  25 +
>>>  arch/arm/boot/dts/imx6qdl.dtsi                |   8 +
>>>  drivers/gpu/drm/bridge/synopsys/Kconfig       |   1 +
>>>  drivers/gpu/drm/bridge/synopsys/dw-mipi-dsi.c | 713 ++++++++++++------
>>>  drivers/gpu/drm/imx/Kconfig                   |   8 +
>>>  drivers/gpu/drm/imx/Makefile                  |   1 +
>>>  drivers/gpu/drm/imx/dw_mipi_dsi-imx6.c        | 399 ++++++++++
>>>  .../gpu/drm/rockchip/dw-mipi-dsi-rockchip.c   |   7 +-
>>>  drivers/gpu/drm/stm/dw_mipi_dsi-stm.c         |  16 +-
>>>  10 files changed, 1059 insertions(+), 231 deletions(-)
>>>  create mode 100644 Documentation/devicetree/bindings/display/imx/fsl,mipi-dsi-imx6.yaml
>>>  create mode 100644 drivers/gpu/drm/imx/dw_mipi_dsi-imx6.c
>>>
Heiko Stuebner July 1, 2020, 12:50 p.m. UTC | #4
Hi Adrian,

Am Dienstag, 9. Juni 2020, 19:49:48 CEST schrieb Adrian Ratiu:
> [Re-submitting to cc dri-devel, sorry about the noise]
> 
> Hello all,
> 
> v9 cleanly applies on top of latest next-20200609 tree.

at least it doesn't apply on top of current drm-misc-next for me
which I really don't understand.

Like patch 2/11 does

@@ -31,6 +31,7 @@
 #include <drm/drm_probe_helper.h>
.
 #define HWVER_131<----><------><------>0x31333100<---->/* IP version 1.31 */
+#define HWVER_130<----><------><------>0x31333000<---->/* IP version 1.30 */
.
 #define DSI_VERSION<--><------><------>0x00
 #define VERSION<------><------><------><------>GENMASK(31, 8)

where the file currently looks like

#include <drm/drm_atomic_helper.h>
#include <drm/drm_bridge.h>
#include <drm/drm_crtc.h>
#include <drm/drm_mipi_dsi.h>
#include <drm/drm_modes.h>
#include <drm/drm_of.h>
#include <drm/drm_print.h>

#define HWVER_131			0x31333100	/* IP version 1.31 */

#define DSI_VERSION			0x00
#define VERSION				GENMASK(31, 8)


even in Linux-next


So I guess ideally rebase on top of drm-misc-next


Thanks
Heiko
Adrian Ratiu July 1, 2020, 8:32 p.m. UTC | #5
Hi Heiko,

On Wed, 01 Jul 2020, Heiko Stübner <heiko@sntech.de> wrote:
> Hi Adrian, 
> 
> Am Dienstag, 9. Juni 2020, 19:49:48 CEST schrieb Adrian Ratiu: 
>> [Re-submitting to cc dri-devel, sorry about the noise]  Hello 
>> all,  v9 cleanly applies on top of latest next-20200609 tree. 
> 
> at least it doesn't apply on top of current drm-misc-next for me 
> which I really don't understand. 
> 
> Like patch 2/11 does 
> 
> @@ -31,6 +31,7 @@ 
>  #include <drm/drm_probe_helper.h> 
> . 
>  #define HWVER_131<----><------><------>0x31333100<---->/* IP 
>  version 1.31 */ 
> +#define HWVER_130<----><------><------>0x31333000<---->/* IP 
> version 1.30 */ . 
>  #define DSI_VERSION<--><------><------>0x00 #define 
>  VERSION<------><------><------><------>GENMASK(31, 8) 
> 
> where the file currently looks like 
> 
> #include <drm/drm_atomic_helper.h> #include <drm/drm_bridge.h> 
> #include <drm/drm_crtc.h> #include <drm/drm_mipi_dsi.h> #include 
> <drm/drm_modes.h> #include <drm/drm_of.h> #include 
> <drm/drm_print.h> 
> 
> #define HWVER_131			0x31333100	/* IP 
> version 1.31 */ 
> 
> #define DSI_VERSION			0x00 #define VERSION 
> GENMASK(31, 8) 
>  
> even in Linux-next 
>  
> So I guess ideally rebase on top of drm-misc-next

I will send a rebase on top of drm-misc-next soon (with the last 
DTS nitpick fixed and the latest acks and reviewed-by tags added).

In the meantime I also found someone within Collabora who has a RK 
with a DSI panel and found a bug (likely clock is not enabled 
early enough to access the cfg registers to get the version for 
regmap).

I'm super happy this is getting tested on RK, thank you!

>
>
> Thanks
> Heiko
Ezequiel Garcia Aug. 15, 2020, 1:05 p.m. UTC | #6
Hi Neil,

On Wed, 2020-07-01 at 09:35 +0300, Adrian Ratiu wrote:
> Hi Neil,
> 
> On Mon, 29 Jun 2020, Neil Armstrong <narmstrong@baylibre.com> 
> wrote:
> > Hi Adrian, 
> > 
> > On 09/06/2020 19:49, Adrian Ratiu wrote: 
> > > [Re-submitting to cc dri-devel, sorry about the noise]  Hello 
> > > all,  v9 cleanly applies on top of latest next-20200609 tree. 
> > > v9 does not depend on other patches as the last binding doc has 
> > > been merged.   All feedback up to this point has been 
> > > addressed. Specific details in individual patch changelogs. 
> > > The biggest changes are the deprecation of the Synopsys DW 
> > > bridge bind() API in favor of of_drm_find_bridge() and .attach 
> > > callbacks, the addition of a TODO entry which outlines future 
> > > planned bridge driver refactorings and a reordering of some 
> > > i.MX 6 patches to appease checkpatch.   The idea behind the 
> > > TODO is to get this regmap and i.MX 6 driver merged and then do 
> > > the rest of refactorings in-tree because it's easier and the 
> > > refactorings themselves are out-of-scope of this series which 
> > > is adding i.MX 6 support and is quite big already, so please, 
> > > if there are more refactoring ideas, let's add them to the TODO 
> > > doc. :) I intend to tackle those after this series is merged to 
> > > avoid two complex inter-dependent simultaneous series. 
> > 
> > This has been around here for a long time and you seem to have 
> > addressed all the reviews. 
> > 
> > >  As always more testing is welcome especially on Rockchip and 
> > > STM SoCs. 
> > 
> > It has been tested on STM, but I'd like a feedback on RK 
> > platform before applying the bridge parts. 
> > 
> > Can the imx & stm patches be applied separately ? 
> > 
> 
> Yes the IMX and STM patches can be applied separately, they just 
> both depend on the common regmap patches.
> 

It's been a month so I think it's a good idea to go forward
applying IMX and STM patches (probably with the usual
rebase dance).

As for Rockchip...

> The binding API removal change which directly touches RK can also 
> be applied separately, but unfortunately I do not have access to a 
> RK board with a DSI display to test it (or the bridge regmap logic 
> on RK btw...), I just "eye-balled" the RK code based on the public 
> docs and it LGTM.
> 

... I'll be getting some DSI hardware to help with the pending
Rockchip issues, so we can tackle Rockchip as well. I'm quite sure
we'll loop Heiko as well if needed :-)

Cheers,
Ezequiel

> > Neil
> > 
> > > Big thank you to everyone who has contributed to this up to now,
> > > Adrian
> > > 
> > > Adrian Ratiu (11):
> > >   drm: bridge: dw_mipi_dsi: add initial regmap infrastructure
> > >   drm: bridge: dw_mipi_dsi: abstract register access using reg_fields
> > >   drm: bridge: dw_mipi_dsi: add dsi v1.01 support
> > >   drm: bridge: dw_mipi_dsi: remove bind/unbind API
> > >   dt-bindings: display: add i.MX6 MIPI DSI host controller doc
> > >   ARM: dts: imx6qdl: add missing mipi dsi properties
> > >   drm: imx: Add i.MX 6 MIPI DSI host platform driver
> > >   drm: stm: dw-mipi-dsi: let the bridge handle the HW version check
> > >   drm: bridge: dw-mipi-dsi: split low power cfg register into fields
> > >   drm: bridge: dw-mipi-dsi: fix bad register field offsets
> > >   Documentation: gpu: todo: Add dw-mipi-dsi consolidation plan
> > > 
> > >  .../display/imx/fsl,mipi-dsi-imx6.yaml        | 112 +++
> > >  Documentation/gpu/todo.rst                    |  25 +
> > >  arch/arm/boot/dts/imx6qdl.dtsi                |   8 +
> > >  drivers/gpu/drm/bridge/synopsys/Kconfig       |   1 +
> > >  drivers/gpu/drm/bridge/synopsys/dw-mipi-dsi.c | 713 ++++++++++++------
> > >  drivers/gpu/drm/imx/Kconfig                   |   8 +
> > >  drivers/gpu/drm/imx/Makefile                  |   1 +
> > >  drivers/gpu/drm/imx/dw_mipi_dsi-imx6.c        | 399 ++++++++++
> > >  .../gpu/drm/rockchip/dw-mipi-dsi-rockchip.c   |   7 +-
> > >  drivers/gpu/drm/stm/dw_mipi_dsi-stm.c         |  16 +-
> > >  10 files changed, 1059 insertions(+), 231 deletions(-)
> > >  create mode 100644 Documentation/devicetree/bindings/display/imx/fsl,mipi-dsi-imx6.yaml
> > >  create mode 100644 drivers/gpu/drm/imx/dw_mipi_dsi-imx6.c
> > >
Neil Armstrong Aug. 24, 2020, 9:47 a.m. UTC | #7
Hi,


On 15/08/2020 15:05, Ezequiel Garcia wrote:
> Hi Neil,
> 
> On Wed, 2020-07-01 at 09:35 +0300, Adrian Ratiu wrote:
>> Hi Neil,
>>
>> On Mon, 29 Jun 2020, Neil Armstrong <narmstrong@baylibre.com> 
>> wrote:
>>> Hi Adrian, 
>>>
>>> On 09/06/2020 19:49, Adrian Ratiu wrote: 
[...]
>>
> 
> It's been a month so I think it's a good idea to go forward
> applying IMX and STM patches (probably with the usual
> rebase dance).
> 
> As for Rockchip...
> 
>> The binding API removal change which directly touches RK can also 
>> be applied separately, but unfortunately I do not have access to a 
>> RK board with a DSI display to test it (or the bridge regmap logic 
>> on RK btw...), I just "eye-balled" the RK code based on the public 
>> docs and it LGTM.
>>
> 
> ... I'll be getting some DSI hardware to help with the pending
> Rockchip issues, so we can tackle Rockchip as well. I'm quite sure
> we'll loop Heiko as well if needed :-)

Sure, Adrian, can you rebase on drm-misc-next so I can apply the IMX and STM patches ?

> 
> Cheers,
> Ezequiel
> 
>>> Neil
>>>
>>>> Big thank you to everyone who has contributed to this up to now,
>>>> Adrian
>>>>
>>>> Adrian Ratiu (11):
>>>>   drm: bridge: dw_mipi_dsi: add initial regmap infrastructure
>>>>   drm: bridge: dw_mipi_dsi: abstract register access using reg_fields
>>>>   drm: bridge: dw_mipi_dsi: add dsi v1.01 support
>>>>   drm: bridge: dw_mipi_dsi: remove bind/unbind API
>>>>   dt-bindings: display: add i.MX6 MIPI DSI host controller doc
>>>>   ARM: dts: imx6qdl: add missing mipi dsi properties
>>>>   drm: imx: Add i.MX 6 MIPI DSI host platform driver
>>>>   drm: stm: dw-mipi-dsi: let the bridge handle the HW version check
>>>>   drm: bridge: dw-mipi-dsi: split low power cfg register into fields
>>>>   drm: bridge: dw-mipi-dsi: fix bad register field offsets
>>>>   Documentation: gpu: todo: Add dw-mipi-dsi consolidation plan
>>>>
>>>>  .../display/imx/fsl,mipi-dsi-imx6.yaml        | 112 +++
>>>>  Documentation/gpu/todo.rst                    |  25 +
>>>>  arch/arm/boot/dts/imx6qdl.dtsi                |   8 +
>>>>  drivers/gpu/drm/bridge/synopsys/Kconfig       |   1 +
>>>>  drivers/gpu/drm/bridge/synopsys/dw-mipi-dsi.c | 713 ++++++++++++------
>>>>  drivers/gpu/drm/imx/Kconfig                   |   8 +
>>>>  drivers/gpu/drm/imx/Makefile                  |   1 +
>>>>  drivers/gpu/drm/imx/dw_mipi_dsi-imx6.c        | 399 ++++++++++
>>>>  .../gpu/drm/rockchip/dw-mipi-dsi-rockchip.c   |   7 +-
>>>>  drivers/gpu/drm/stm/dw_mipi_dsi-stm.c         |  16 +-
>>>>  10 files changed, 1059 insertions(+), 231 deletions(-)
>>>>  create mode 100644 Documentation/devicetree/bindings/display/imx/fsl,mipi-dsi-imx6.yaml
>>>>  create mode 100644 drivers/gpu/drm/imx/dw_mipi_dsi-imx6.c
>>>>
>
Neil Armstrong Sept. 15, 2020, 1:05 p.m. UTC | #8
Hi Adrian,

Gentle ping.

can you rebase on drm-misc-next so I can apply the IMX and STM patches ?

On 24/08/2020 11:47, Neil Armstrong wrote:
> Hi,
> 
> 
> On 15/08/2020 15:05, Ezequiel Garcia wrote:
>> Hi Neil,
>>
>> On Wed, 2020-07-01 at 09:35 +0300, Adrian Ratiu wrote:
>>> Hi Neil,
>>>
>>> On Mon, 29 Jun 2020, Neil Armstrong <narmstrong@baylibre.com> 
>>> wrote:
>>>> Hi Adrian, 
>>>>
>>>> On 09/06/2020 19:49, Adrian Ratiu wrote: 
> [...]
>>>
>>
>> It's been a month so I think it's a good idea to go forward
>> applying IMX and STM patches (probably with the usual
>> rebase dance).
>>
>> As for Rockchip...
>>
>>> The binding API removal change which directly touches RK can also 
>>> be applied separately, but unfortunately I do not have access to a 
>>> RK board with a DSI display to test it (or the bridge regmap logic 
>>> on RK btw...), I just "eye-balled" the RK code based on the public 
>>> docs and it LGTM.
>>>
>>
>> ... I'll be getting some DSI hardware to help with the pending
>> Rockchip issues, so we can tackle Rockchip as well. I'm quite sure
>> we'll loop Heiko as well if needed :-)
> 
> Sure, Adrian, can you rebase on drm-misc-next so I can apply the IMX and STM patches ?
> 
>>
>> Cheers,
>> Ezequiel
>>
>>>> Neil
>>>>
>>>>> Big thank you to everyone who has contributed to this up to now,
>>>>> Adrian
>>>>>
>>>>> Adrian Ratiu (11):
>>>>>   drm: bridge: dw_mipi_dsi: add initial regmap infrastructure
>>>>>   drm: bridge: dw_mipi_dsi: abstract register access using reg_fields
>>>>>   drm: bridge: dw_mipi_dsi: add dsi v1.01 support
>>>>>   drm: bridge: dw_mipi_dsi: remove bind/unbind API
>>>>>   dt-bindings: display: add i.MX6 MIPI DSI host controller doc
>>>>>   ARM: dts: imx6qdl: add missing mipi dsi properties
>>>>>   drm: imx: Add i.MX 6 MIPI DSI host platform driver
>>>>>   drm: stm: dw-mipi-dsi: let the bridge handle the HW version check
>>>>>   drm: bridge: dw-mipi-dsi: split low power cfg register into fields
>>>>>   drm: bridge: dw-mipi-dsi: fix bad register field offsets
>>>>>   Documentation: gpu: todo: Add dw-mipi-dsi consolidation plan
>>>>>
>>>>>  .../display/imx/fsl,mipi-dsi-imx6.yaml        | 112 +++
>>>>>  Documentation/gpu/todo.rst                    |  25 +
>>>>>  arch/arm/boot/dts/imx6qdl.dtsi                |   8 +
>>>>>  drivers/gpu/drm/bridge/synopsys/Kconfig       |   1 +
>>>>>  drivers/gpu/drm/bridge/synopsys/dw-mipi-dsi.c | 713 ++++++++++++------
>>>>>  drivers/gpu/drm/imx/Kconfig                   |   8 +
>>>>>  drivers/gpu/drm/imx/Makefile                  |   1 +
>>>>>  drivers/gpu/drm/imx/dw_mipi_dsi-imx6.c        | 399 ++++++++++
>>>>>  .../gpu/drm/rockchip/dw-mipi-dsi-rockchip.c   |   7 +-
>>>>>  drivers/gpu/drm/stm/dw_mipi_dsi-stm.c         |  16 +-
>>>>>  10 files changed, 1059 insertions(+), 231 deletions(-)
>>>>>  create mode 100644 Documentation/devicetree/bindings/display/imx/fsl,mipi-dsi-imx6.yaml
>>>>>  create mode 100644 drivers/gpu/drm/imx/dw_mipi_dsi-imx6.c
>>>>>
>>
>
Adrian Ratiu Oct. 23, 2020, 3:32 p.m. UTC | #9
Hi Neil,

On Tue, 15 Sep 2020, Neil Armstrong <narmstrong@baylibre.com> 
wrote:
> Hi Adrian, 
> 
> Gentle ping. 
> 
> can you rebase on drm-misc-next so I can apply the IMX and STM 
> patches ?

Sorry for the late reply, somehow missed this e-mail chain.

I have a rebase of the series but further investigation revealed 
we might regress Rockchip with a partial integration, so I'm 
getting a panel for RK to test to be sure and will re-submit.

>
> On 24/08/2020 11:47, Neil Armstrong wrote:
>> Hi,
>> 
>> 
>> On 15/08/2020 15:05, Ezequiel Garcia wrote:
>>> Hi Neil,
>>>
>>> On Wed, 2020-07-01 at 09:35 +0300, Adrian Ratiu wrote:
>>>> Hi Neil,
>>>>
>>>> On Mon, 29 Jun 2020, Neil Armstrong <narmstrong@baylibre.com> 
>>>> wrote:
>>>>> Hi Adrian, 
>>>>>
>>>>> On 09/06/2020 19:49, Adrian Ratiu wrote: 
>> [...]
>>>>
>>>
>>> It's been a month so I think it's a good idea to go forward
>>> applying IMX and STM patches (probably with the usual
>>> rebase dance).
>>>
>>> As for Rockchip...
>>>
>>>> The binding API removal change which directly touches RK can also 
>>>> be applied separately, but unfortunately I do not have access to a 
>>>> RK board with a DSI display to test it (or the bridge regmap logic 
>>>> on RK btw...), I just "eye-balled" the RK code based on the public 
>>>> docs and it LGTM.
>>>>
>>>
>>> ... I'll be getting some DSI hardware to help with the pending
>>> Rockchip issues, so we can tackle Rockchip as well. I'm quite sure
>>> we'll loop Heiko as well if needed :-)
>> 
>> Sure, Adrian, can you rebase on drm-misc-next so I can apply the IMX and STM patches ?
>> 
>>>
>>> Cheers,
>>> Ezequiel
>>>
>>>>> Neil
>>>>>
>>>>>> Big thank you to everyone who has contributed to this up to now,
>>>>>> Adrian
>>>>>>
>>>>>> Adrian Ratiu (11):
>>>>>>   drm: bridge: dw_mipi_dsi: add initial regmap infrastructure
>>>>>>   drm: bridge: dw_mipi_dsi: abstract register access using reg_fields
>>>>>>   drm: bridge: dw_mipi_dsi: add dsi v1.01 support
>>>>>>   drm: bridge: dw_mipi_dsi: remove bind/unbind API
>>>>>>   dt-bindings: display: add i.MX6 MIPI DSI host controller doc
>>>>>>   ARM: dts: imx6qdl: add missing mipi dsi properties
>>>>>>   drm: imx: Add i.MX 6 MIPI DSI host platform driver
>>>>>>   drm: stm: dw-mipi-dsi: let the bridge handle the HW version check
>>>>>>   drm: bridge: dw-mipi-dsi: split low power cfg register into fields
>>>>>>   drm: bridge: dw-mipi-dsi: fix bad register field offsets
>>>>>>   Documentation: gpu: todo: Add dw-mipi-dsi consolidation plan
>>>>>>
>>>>>>  .../display/imx/fsl,mipi-dsi-imx6.yaml        | 112 +++
>>>>>>  Documentation/gpu/todo.rst                    |  25 +
>>>>>>  arch/arm/boot/dts/imx6qdl.dtsi                |   8 +
>>>>>>  drivers/gpu/drm/bridge/synopsys/Kconfig       |   1 +
>>>>>>  drivers/gpu/drm/bridge/synopsys/dw-mipi-dsi.c | 713 ++++++++++++------
>>>>>>  drivers/gpu/drm/imx/Kconfig                   |   8 +
>>>>>>  drivers/gpu/drm/imx/Makefile                  |   1 +
>>>>>>  drivers/gpu/drm/imx/dw_mipi_dsi-imx6.c        | 399 ++++++++++
>>>>>>  .../gpu/drm/rockchip/dw-mipi-dsi-rockchip.c   |   7 +-
>>>>>>  drivers/gpu/drm/stm/dw_mipi_dsi-stm.c         |  16 +-
>>>>>>  10 files changed, 1059 insertions(+), 231 deletions(-)
>>>>>>  create mode 100644 Documentation/devicetree/bindings/display/imx/fsl,mipi-dsi-imx6.yaml
>>>>>>  create mode 100644 drivers/gpu/drm/imx/dw_mipi_dsi-imx6.c
>>>>>>
>>>
>>