Re: [PATCH v13 0/9] MIPS: JZ4780 and CI20 HDMI

2022-02-12 Thread H. Nikolaus Schaller
Hi,

> Am 09.02.2022 um 15:02 schrieb Paul Cercueil :
> 
> Hi,
> 
> Le mer., févr. 9 2022 at 14:51:12 +0100, H. Nikolaus Schaller 
>  a écrit :
>> Paul,
>>> Am 09.02.2022 um 12:52 schrieb Paul Cercueil :
>>> Hi Nikolaus,
>>> I tried applying patches 1-2, but they don't apply cleanly on top of 
>>> drm-misc/drm-misc-next.
>> Ok I had rebased to linux-next some days ago and it appears that patch 1/9 
>> has now arrived in drm-misc/drm-misc-next.
>> So we can drop 1/9.
> 
> Yes, some weeks ago I did apply patch 1/9 from one of your previous 
> patchsets. Patch 2 was applied as well (commit b807fd2c43fe ("drm/ingenic: 
> Add support for JZ4780 and HDMI output")), but you then said that it didn't 
> work and needed a fix.
> 
> For this patchset you should always base on top of drm-misc/drm-misc-next, 
> and not on linux-next; they have different schedules. You can drop patch #1, 
> and rework patch #2 so that it only fixes the previously incorrect behaviour.
> 
>>> Could you rebase on top of that tree?
>> Sure.
>> Unfortunatley my v14 breaks the display again. It is not much fun to develop 
>> on top of such a moving target...
> 
> I can imagine...

Have found it. Was a typo in a rebase conflict resolution...

So, v14 can come now.

BR and thanks,
Nikolaus



Re: [PATCH v13 0/9] MIPS: JZ4780 and CI20 HDMI

2022-02-09 Thread Paul Cercueil

Hi,

Le mer., févr. 9 2022 at 14:51:12 +0100, H. Nikolaus Schaller 
 a écrit :

Paul,


 Am 09.02.2022 um 12:52 schrieb Paul Cercueil :

 Hi Nikolaus,

 I tried applying patches 1-2, but they don't apply cleanly on top 
of drm-misc/drm-misc-next.


Ok I had rebased to linux-next some days ago and it appears that 
patch 1/9 has now arrived in drm-misc/drm-misc-next.

So we can drop 1/9.


Yes, some weeks ago I did apply patch 1/9 from one of your previous 
patchsets. Patch 2 was applied as well (commit b807fd2c43fe 
("drm/ingenic: Add support for JZ4780 and HDMI output")), but you then 
said that it didn't work and needed a fix.


For this patchset you should always base on top of 
drm-misc/drm-misc-next, and not on linux-next; they have different 
schedules. You can drop patch #1, and rework patch #2 so that it only 
fixes the previously incorrect behaviour.






 Could you rebase on top of that tree?


Sure.

Unfortunatley my v14 breaks the display again. It is not much fun to 
develop on top of such a moving target...


I can imagine...

Cheers,
-Paul

So I have to find out first what was broken this time before I can 
send out a new version.


BR,
Nikolaus





Re: [PATCH v13 0/9] MIPS: JZ4780 and CI20 HDMI

2022-02-09 Thread H. Nikolaus Schaller
Paul,

> Am 09.02.2022 um 12:52 schrieb Paul Cercueil :
> 
> Hi Nikolaus,
> 
> I tried applying patches 1-2, but they don't apply cleanly on top of 
> drm-misc/drm-misc-next.

Ok I had rebased to linux-next some days ago and it appears that patch 1/9 has 
now arrived in drm-misc/drm-misc-next.
So we can drop 1/9.

> 
> Could you rebase on top of that tree?

Sure.

Unfortunatley my v14 breaks the display again. It is not much fun to develop on 
top of such a moving target...
So I have to find out first what was broken this time before I can send out a 
new version.

BR,
Nikolaus

Re: [PATCH v13 0/9] MIPS: JZ4780 and CI20 HDMI

2022-02-09 Thread Paul Cercueil

Hi Nikolaus,

I tried applying patches 1-2, but they don't apply cleanly on top of 
drm-misc/drm-misc-next.


Could you rebase on top of that tree?

Cheers,
-Paul


Le mer., févr. 2 2022 at 17:31:14 +0100, H. Nikolaus Schaller 
 a écrit :

PATCH V13 2022-02-02 17:31:22:
* 7/9: remove call to gpiod_set_value() because of GPIOD_OUT_HIGH (by 
p...@crapouillou.net)

* 4/9: replace ".." by "." (by p...@crapouillou.net)
* 3/9: remove old hdmi-5v-power in the example (by 
p...@crapouillou.net)
* 2/9: disable handling of plane f0 only for jz4780 (by 
p...@crapouillou.net)


PATCH V12 2022-01-31 13:26:54:
This version reworks how hdmi ddc power is controlled by connector 
and not

by ddc/hdmi bridge driver.

Also some patches of the previous version of this series have been 
removed

since they are already applied to mips-next/linux/next/v5.17-rc1.

Fixes and changes:

- repair interworking of dw-hdmi with connector-hdmi (by 
h...@goldelico.com)
- fix JZ_REG_LCD_OSDC setup for jz4780 (by h...@goldelico.com and 
p...@crapouillou.net)
- adjustments for ci20.dts to use connector gpio for +5v (suggested 
by several)
- to add control of "ddc-en-gpios" to hdmi-connector driver (by 
h...@goldelico.com)
- regulator code removed because we now use the "ddc-en-gpios" of the 
connector

  driver (suggested by p...@crapouillou.net)
- bindings: addition of "ddc-i2c-bus" and "hdmi-5v-supply" removed 
(suggested by robh...@kernel.org)

- rebase on v5.17-rc2

PATCH V11 2021-12-02 19:39:52:
- patch 4/8: change devm_regulator_get_optional to devm_regulator_get 
and

 remove NULL check (requested by broo...@kernel.org)
- patch 3/8: make hdmi-5v-supply required (requested by 
broo...@kernel.org)


PATCH V10 2021-11-30 22:26:41:
- patch 3/8: fix $id and $ref paths (found by r...@kernel.org)

PATCH V9 2021-11-24 22:29:14:
- patch 6/8: remove optional <0> for assigned-clocks and 
unintentionally included "unwedge" setup (found by 
p...@crapouillou.net)

- patch 4/8: some cosmetics
 make regulator enable/disable only if not NULL (found by 
p...@crapouillou.net)
 simplify/fix error handling and driver cleanup on remove 
(proposed by p...@crapouillou.net)
- patch 3/8: fix #include path in example (found by 
p...@crapouillou.net)
 fix missing "i" in unevaluatedProperties (found by 
r...@kernel.org)
 fix 4 spaces indentation for required: property (found 
by r...@kernel.org)


PATCH V8 2021-11-23 19:14:00:
- fix a bad editing result from patch 2/8 (found by 
p...@crapouillou.net)


PATCH V7 2021-11-23 18:46:23:
- changed gpio polarity of hdmi_power to 0 (suggested by 
p...@crapouillou.net)

- fixed LCD1 irq number (bug found by p...@crapouillou.net)
- removed "- 4" for calculating max_register (suggested by 
p...@crapouillou.net)
- use unevaluatedPropertes instead of additionalProperties (suggested 
by r...@kernel.org)
- moved and renamed ingenic,jz4780-hdmi.yaml (suggested by 
r...@kernel.org)
- adjusted assigned-clocks changes to upstream which added some for 
SSI (by h...@goldelico.com)
- rebased and tested with v5.16-rc2 + patch set drm/ingenic by 
p...@crapouillou.net (by h...@goldelico.com)


PATCH V6 2021-11-10 20:43:33:
- changed CONFIG_DRM_INGENIC_DW_HDMI to "m" (by h...@goldelico.com)
- made ingenic-dw-hdmi an independent platform driver which can be 
compiled as module
  and removed error patch fixes for IPU (suggested by 
p...@crapouillou.net)
- moved assigned-clocks from jz4780.dtsi to ci20.dts (suggested by 
p...@crapouillou.net)
- fixed reg property in jz4780.dtsi to cover all registers incl. 
gamma and vee (by h...@goldelico.com)
- added a base patch to calculate regmap size from DTS reg property 
(requested by p...@crapouillou.net)
- restored resetting all bits except one in LCDOSDC (requested by 
p...@crapouillou.net)

- clarified setting of cpos (suggested by p...@crapouillou.net)
- moved bindings definition for ddc-i2c-bus (suggested by 
p...@crapouillou.net)
- simplified mask definitions for JZ_LCD_DESSIZE (requested by 
p...@crapouillou.net)
- removed setting alpha premultiplication (suggested by 
p...@crapouillou.net)

- removed some comments (suggested by p...@crapouillou.net)

PATCH V5 2021-10-05 14:28:44:
- dropped mode_fixup and timings support in dw-hdmi as it is no 
longer needed in this V5 (by h...@goldelico.com)
- dropped "drm/ingenic: add some jz4780 specific features" 
(stimulated by p...@crapouillou.net)
- fixed typo in commit subject: "synopsis" -> "synopsys" (by 
h...@goldelico.com)
- swapped clocks in jz4780.dtsi to match synopsys,dw-hdmi.yaml (by 
h...@goldelico.com)
- improved, simplified, fixed, dtbschecked ingenic-jz4780-hdmi.yaml 
and made dependent of bridge/synopsys,dw-hdmi.yaml (based on 
suggestions by max...@cerno.tech)
- fixed binding vs. driver&DTS use of hdmi-5v regulator (suggested by 
max...@cerno.tech)
- dropped "drm/bridge: synopsis: Fix to properly handle HPD" - was a 
no longer needed workaround for a previous version

  (sugge

[PATCH v13 0/9] MIPS: JZ4780 and CI20 HDMI

2022-02-02 Thread H. Nikolaus Schaller
PATCH V13 2022-02-02 17:31:22:
* 7/9: remove call to gpiod_set_value() because of GPIOD_OUT_HIGH (by 
p...@crapouillou.net)
* 4/9: replace ".." by "." (by p...@crapouillou.net)
* 3/9: remove old hdmi-5v-power in the example (by p...@crapouillou.net)
* 2/9: disable handling of plane f0 only for jz4780 (by p...@crapouillou.net)

PATCH V12 2022-01-31 13:26:54:
This version reworks how hdmi ddc power is controlled by connector and not
by ddc/hdmi bridge driver.

Also some patches of the previous version of this series have been removed
since they are already applied to mips-next/linux/next/v5.17-rc1.

Fixes and changes:

- repair interworking of dw-hdmi with connector-hdmi (by h...@goldelico.com)
- fix JZ_REG_LCD_OSDC setup for jz4780 (by h...@goldelico.com and 
p...@crapouillou.net)
- adjustments for ci20.dts to use connector gpio for +5v (suggested by several)
- to add control of "ddc-en-gpios" to hdmi-connector driver (by 
h...@goldelico.com)
- regulator code removed because we now use the "ddc-en-gpios" of the connector
  driver (suggested by p...@crapouillou.net)
- bindings: addition of "ddc-i2c-bus" and "hdmi-5v-supply" removed (suggested 
by robh...@kernel.org)
- rebase on v5.17-rc2

PATCH V11 2021-12-02 19:39:52:
- patch 4/8: change devm_regulator_get_optional to devm_regulator_get and
 remove NULL check (requested by broo...@kernel.org)
- patch 3/8: make hdmi-5v-supply required (requested by broo...@kernel.org)

PATCH V10 2021-11-30 22:26:41:
- patch 3/8: fix $id and $ref paths (found by r...@kernel.org)

PATCH V9 2021-11-24 22:29:14:
- patch 6/8: remove optional <0> for assigned-clocks and unintentionally 
included "unwedge" setup (found by p...@crapouillou.net)
- patch 4/8: some cosmetics
 make regulator enable/disable only if not NULL (found by 
p...@crapouillou.net)
 simplify/fix error handling and driver cleanup on remove (proposed 
by p...@crapouillou.net)
- patch 3/8: fix #include path in example (found by p...@crapouillou.net)
 fix missing "i" in unevaluatedProperties (found by r...@kernel.org)
 fix 4 spaces indentation for required: property (found by 
r...@kernel.org)

PATCH V8 2021-11-23 19:14:00:
- fix a bad editing result from patch 2/8 (found by p...@crapouillou.net)

PATCH V7 2021-11-23 18:46:23:
- changed gpio polarity of hdmi_power to 0 (suggested by p...@crapouillou.net)
- fixed LCD1 irq number (bug found by p...@crapouillou.net)
- removed "- 4" for calculating max_register (suggested by p...@crapouillou.net)
- use unevaluatedPropertes instead of additionalProperties (suggested by 
r...@kernel.org)
- moved and renamed ingenic,jz4780-hdmi.yaml (suggested by r...@kernel.org)
- adjusted assigned-clocks changes to upstream which added some for SSI (by 
h...@goldelico.com)
- rebased and tested with v5.16-rc2 + patch set drm/ingenic by 
p...@crapouillou.net (by h...@goldelico.com)

PATCH V6 2021-11-10 20:43:33:
- changed CONFIG_DRM_INGENIC_DW_HDMI to "m" (by h...@goldelico.com)
- made ingenic-dw-hdmi an independent platform driver which can be compiled as 
module
  and removed error patch fixes for IPU (suggested by p...@crapouillou.net)
- moved assigned-clocks from jz4780.dtsi to ci20.dts (suggested by 
p...@crapouillou.net)
- fixed reg property in jz4780.dtsi to cover all registers incl. gamma and vee 
(by h...@goldelico.com)
- added a base patch to calculate regmap size from DTS reg property (requested 
by p...@crapouillou.net)
- restored resetting all bits except one in LCDOSDC (requested by 
p...@crapouillou.net)
- clarified setting of cpos (suggested by p...@crapouillou.net)
- moved bindings definition for ddc-i2c-bus (suggested by p...@crapouillou.net)
- simplified mask definitions for JZ_LCD_DESSIZE (requested by 
p...@crapouillou.net)
- removed setting alpha premultiplication (suggested by p...@crapouillou.net)
- removed some comments (suggested by p...@crapouillou.net)

PATCH V5 2021-10-05 14:28:44:
- dropped mode_fixup and timings support in dw-hdmi as it is no longer needed 
in this V5 (by h...@goldelico.com)
- dropped "drm/ingenic: add some jz4780 specific features" (stimulated by 
p...@crapouillou.net)
- fixed typo in commit subject: "synopsis" -> "synopsys" (by h...@goldelico.com)
- swapped clocks in jz4780.dtsi to match synopsys,dw-hdmi.yaml (by 
h...@goldelico.com)
- improved, simplified, fixed, dtbschecked ingenic-jz4780-hdmi.yaml and made 
dependent of bridge/synopsys,dw-hdmi.yaml (based on suggestions by 
max...@cerno.tech)
- fixed binding vs. driver&DTS use of hdmi-5v regulator (suggested by 
max...@cerno.tech)
- dropped "drm/bridge: synopsis: Fix to properly handle HPD" - was a no longer 
needed workaround for a previous version
  (suggested by max...@cerno.tech)

PATCH V4 2021-09-27 18:44:38:
- fix setting output_port = 1 (issue found by p...@crapouillou.net)
- ci20.dts: convert to use hdmi-connector (by h...@goldelico.com)
- add a hdmi-regulator to control +5V power (by h...@goldelico.com)
- added a fix to