On Tue, 24 Nov 2026 08:26:00 +0100 "H. Nikolaus Schaller" <[email protected]> wrote:
> The Pandora backlight is now described in the device tree and driven by > pwm-backlight. The sound card also uses device-tree descriptions for its > codec and amplifier GPIOs instead of legacy GPIO lookup tables. > > Remove omap3_pandora_legacy_init(), its backlight platform device and > audio GPIO lookup table, and the associated board compatibility entries. > These platform-data quirks are no longer needed. > > Signed-off-by: H. Nikolaus Schaller <[email protected]> > --- > > Notes: > Changes against V1: > - Andreas Kemnade raised bisectability and intermediate driver > availability concerns for the V1 pdata-quirks removal. > - Correct the legacy backlight name and explain removal of both backlight > platform data and audio GPIO lookup tables. > - Commit-message review assisted by ChatGPT. > > arch/arm/mach-omap2/pdata-quirks.c | 23 ----------------------- > 1 file changed, 23 deletions(-) > > diff --git a/arch/arm/mach-omap2/pdata-quirks.c > b/arch/arm/mach-omap2/pdata-quirks.c > index b947bacf23a37..aca7097a692ed 100644 > --- a/arch/arm/mach-omap2/pdata-quirks.c > +++ b/arch/arm/mach-omap2/pdata-quirks.c > @@ -268,27 +268,6 @@ static void __init omap3_logicpd_torpedo_init(void) > omap3_gpio126_127_129(); > } > > -/* omap3pandora legacy devices */ > - > -static struct platform_device pandora_backlight = { > - .name = "pandora-backlight", > - .id = -1, > -}; > - > -static struct gpiod_lookup_table pandora_soc_audio_gpios = { > - .dev_id = "soc-audio", > - .table = { > - GPIO_LOOKUP("gpio-112-127", 6, "dac", GPIO_ACTIVE_HIGH), > - GPIO_LOOKUP("gpio-0-15", 14, "amp", GPIO_ACTIVE_HIGH), > - { } > - }, > -}; > - > -static void __init omap3_pandora_legacy_init(void) > -{ maybe ask here for pwm-backlight node? Then this all can be untangled a bit. so something like if (of_find_compatible_node(NULL, NULL,"pwm-backlight")) if that node is available do not register that device. Such a change can go in as soon as we have consensous that pwm-backlight is the way to go. After all is in, in a final cleanup step, remove the pandora_bl and the quirk. > - platform_device_register(&pandora_backlight); > - gpiod_add_lookup_table(&pandora_soc_audio_gpios); > -} > #endif /* CONFIG_ARCH_OMAP3 */ > > #ifdef CONFIG_SOC_DRA7XX > @@ -514,8 +493,6 @@ static struct pdata_init pdata_quirks[] __initdata = { > { "ti,omap3-evm-37xx", omap3_evm_legacy_init, }, > { "ti,am3517-evm", am3517_evm_legacy_init, }, > { "technexion,omap3-tao3530", omap3_tao3530_legacy_init, }, > - { "openpandora,omap3-pandora-600mhz", omap3_pandora_legacy_init, }, > - { "openpandora,omap3-pandora-1ghz", omap3_pandora_legacy_init, }, > #endif > { /* sentinel */ }, > }; Regards, Andreas
