mbox series

[00/13] Convert omapfb drivers to gpiod API

Message ID 20221103-omapfb-gpiod-v1-0-c3d53ca7988f@gmail.com
Headers show
Series Convert omapfb drivers to gpiod API | expand

Message

Dmitry Torokhov Nov. 3, 2022, 10:46 p.m. UTC
This series converts various OMAPFB drivers to use the newer gpiod API
that respects line polarity specified in DTS.

Unfortunately existing DTS files specify incorrect (active high) polarity
for reset lines. As discussed in [1] we will not try to correct existing
DTSes, but instead follow the path established by DRM drivers for the same
components, and continue using inverted polarity in the FB drivers.

[1] https://lore.kernel.org/all/20221004213503.848262-1-dmitry.torokhov@gmail.com/

To: Helge Deller <deller@gmx.de>
To: Tony Lindgren <tony@atomide.com>
To: Tomi Valkeinen <tomi.valkeinen@ideasonboard.com>
To: Sebastian Reichel <sre@kernel.org>
Cc: linux-omap@vger.kernel.org
Cc: linux-fbdev@vger.kernel.org
Cc: dri-devel@lists.freedesktop.org
Cc: linux-kernel@vger.kernel.org

---
Dmitry Torokhov (13):
      omapfb: connector-hdmi: switch to using gpiod API
      omapfb: panel-sony-acx565akm: remove support for platform data
      omapfb: panel-sony-acx565akm: switch to using gpiod API
      omapfb: encoder-tfp410: switch to using gpiod API
      omapfb: panel-dsi-cm: switch to using gpiod API
      omapfb: panel-tpo-td043mtea1: switch to using gpiod API
      omapfb: panel-nec-nl8048hl11: switch to using gpiod API
      omapfb: panel-dpi: remove support for platform data
      omapfb: connector-analog-tv: remove support for platform data
      omapfb: encoder-opa362: fix included headers
      omapfb: panel-lgphilips-lb035q02: remove backlight GPIO handling
      omapfb: panel-tpo-td028ttec1: stop including gpio.h
      omapfb: panel-sharp-ls037v7dw01: fix included headers

 .../omap2/omapfb/displays/connector-analog-tv.c    |  60 ++---------
 .../fbdev/omap2/omapfb/displays/connector-hdmi.c   |  49 +++------
 .../fbdev/omap2/omapfb/displays/encoder-opa362.c   |   4 +-
 .../fbdev/omap2/omapfb/displays/encoder-tfp410.c   |  67 ++++--------
 .../video/fbdev/omap2/omapfb/displays/panel-dpi.c  |  83 ++-------------
 .../fbdev/omap2/omapfb/displays/panel-dsi-cm.c     | 116 ++++++++-------------
 .../omapfb/displays/panel-lgphilips-lb035q02.c     |  21 +---
 .../omap2/omapfb/displays/panel-nec-nl8048hl11.c   |  72 ++++---------
 .../omapfb/displays/panel-sharp-ls037v7dw01.c      |   3 +-
 .../omap2/omapfb/displays/panel-sony-acx565akm.c   | 105 ++++++-------------
 .../omap2/omapfb/displays/panel-tpo-td028ttec1.c   |   1 -
 .../omap2/omapfb/displays/panel-tpo-td043mtea1.c   |  59 +++--------
 include/video/omap-panel-data.h                    |  71 -------------
 13 files changed, 170 insertions(+), 541 deletions(-)
---
base-commit: 61c3426aca2c71052ddcd06c32e29d92304990fd
change-id: 20221103-omapfb-gpiod-87ca2550bd90

Comments

Dmitry Torokhov Nov. 3, 2022, 10:49 p.m. UTC | #1
On Thu, Nov 03, 2022 at 03:46:35PM -0700, Dmitry Torokhov wrote:
> This series converts various OMAPFB drivers to use the newer gpiod API
> that respects line polarity specified in DTS.
> 
> Unfortunately existing DTS files specify incorrect (active high) polarity
> for reset lines. As discussed in [1] we will not try to correct existing
> DTSes, but instead follow the path established by DRM drivers for the same
> components, and continue using inverted polarity in the FB drivers.
> 
> [1] https://lore.kernel.org/all/20221004213503.848262-1-dmitry.torokhov@gmail.com/

Sorry, it looks like I did not clear temporary directory, so there is a
bit of mess in the patches. I'll resend properly in a second.

> 
> To: Helge Deller <deller@gmx.de>
> To: Tony Lindgren <tony@atomide.com>
> To: Tomi Valkeinen <tomi.valkeinen@ideasonboard.com>
> To: Sebastian Reichel <sre@kernel.org>
> Cc: linux-omap@vger.kernel.org
> Cc: linux-fbdev@vger.kernel.org
> Cc: dri-devel@lists.freedesktop.org
> Cc: linux-kernel@vger.kernel.org
> 
> ---
> Dmitry Torokhov (13):
>       omapfb: connector-hdmi: switch to using gpiod API
>       omapfb: panel-sony-acx565akm: remove support for platform data
>       omapfb: panel-sony-acx565akm: switch to using gpiod API
>       omapfb: encoder-tfp410: switch to using gpiod API
>       omapfb: panel-dsi-cm: switch to using gpiod API
>       omapfb: panel-tpo-td043mtea1: switch to using gpiod API
>       omapfb: panel-nec-nl8048hl11: switch to using gpiod API
>       omapfb: panel-dpi: remove support for platform data
>       omapfb: connector-analog-tv: remove support for platform data
>       omapfb: encoder-opa362: fix included headers
>       omapfb: panel-lgphilips-lb035q02: remove backlight GPIO handling
>       omapfb: panel-tpo-td028ttec1: stop including gpio.h
>       omapfb: panel-sharp-ls037v7dw01: fix included headers
> 
>  .../omap2/omapfb/displays/connector-analog-tv.c    |  60 ++---------
>  .../fbdev/omap2/omapfb/displays/connector-hdmi.c   |  49 +++------
>  .../fbdev/omap2/omapfb/displays/encoder-opa362.c   |   4 +-
>  .../fbdev/omap2/omapfb/displays/encoder-tfp410.c   |  67 ++++--------
>  .../video/fbdev/omap2/omapfb/displays/panel-dpi.c  |  83 ++-------------
>  .../fbdev/omap2/omapfb/displays/panel-dsi-cm.c     | 116 ++++++++-------------
>  .../omapfb/displays/panel-lgphilips-lb035q02.c     |  21 +---
>  .../omap2/omapfb/displays/panel-nec-nl8048hl11.c   |  72 ++++---------
>  .../omapfb/displays/panel-sharp-ls037v7dw01.c      |   3 +-
>  .../omap2/omapfb/displays/panel-sony-acx565akm.c   | 105 ++++++-------------
>  .../omap2/omapfb/displays/panel-tpo-td028ttec1.c   |   1 -
>  .../omap2/omapfb/displays/panel-tpo-td043mtea1.c   |  59 +++--------
>  include/video/omap-panel-data.h                    |  71 -------------
>  13 files changed, 170 insertions(+), 541 deletions(-)
> ---
> base-commit: 61c3426aca2c71052ddcd06c32e29d92304990fd
> change-id: 20221103-omapfb-gpiod-87ca2550bd90
> 
> -- 
> Dmitry
>