public inbox for linux-acpi@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH v5 0/4] ARM: omap1: use real firmware node lookup for GPIOs on Nokia 770
@ 2026-04-02 14:15 Bartosz Golaszewski
  2026-04-02 14:15 ` [PATCH v5 1/4] kernel: ksysfs: initialize kernel_kobj earlier Bartosz Golaszewski
                   ` (5 more replies)
  0 siblings, 6 replies; 15+ messages in thread
From: Bartosz Golaszewski @ 2026-04-02 14:15 UTC (permalink / raw)
  To: Greg Kroah-Hartman, Rafael J. Wysocki, Danilo Krummrich,
	Andy Shevchenko, Daniel Scally, Heikki Krogerus, Sakari Ailus,
	Aaro Koskinen, Janusz Krzysztofik, Tony Lindgren, Russell King,
	Dmitry Torokhov, Kevin Hilman, Arnd Bergmann
  Cc: brgl, driver-core, linux-kernel, linux-acpi, linux-arm-kernel,
	linux-omap, Bartosz Golaszewski

Mergin strategy: It would be awesome if patches 1-3 could make v7.1
through the driver core tree after which the final patch could go
through ARM-SoC separately in v7.2.

This converts Nokia 770 to using real firmware node lookup for GPIOs by
attaching the software nodes describing GPIO controllers to their target
devices.

As determined by Aaro's testing, both omap16xx_gpio_init() and
software_node_init() run in postcore_initcall() so we need to make
software nodes available earlier hence the new patches in v4.

Please note that while the goal of this series is to allow Nokia 770 to
use software nodes earlier, we're not modifying core kernel code just to
accomodate an old ARM platform - more such conversions are coming up so
the change will be useful to more consumers of the software node API.

Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@oss.qualcomm.com>
---
Changes in v5:
- Put ksysfs_init() in a separate new header
- Remove software_node_exit() in a separate patch
- Link to v4: https://patch.msgid.link/20260330-nokia770-gpio-swnodes-v4-0-b68592e977d0@oss.qualcomm.com

Changes in v4:
- Add patches making software nodes available earlier
- Remove stray newline
- Link to v3: https://lore.kernel.org/all/20260212112508.73500-1-bartosz.golaszewski@oss.qualcomm.com/

Changes in v3:
- fix references to the MPU node

Changes in v2:
- fix build with CONFIG_I2C_CBUS_GPIO
- only export the two symbols that are actually required by the nokia
  board file

---
Bartosz Golaszewski (4):
      kernel: ksysfs: initialize kernel_kobj earlier
      software node: remove software_node_exit()
      driver core: make software nodes available earlier
      ARM: omap1: enable real software node lookup of GPIOs on Nokia 770

 MAINTAINERS                          |  1 +
 arch/arm/mach-omap1/board-nokia770.c | 30 +++++-------------------------
 arch/arm/mach-omap1/common.h         |  3 +++
 arch/arm/mach-omap1/gpio16xx.c       | 28 +++++++++++++++++++++++++++-
 drivers/base/base.h                  |  1 +
 drivers/base/init.c                  |  1 +
 drivers/base/swnode.c                | 13 ++-----------
 include/linux/ksysfs.h               |  8 ++++++++
 init/main.c                          |  2 ++
 kernel/ksysfs.c                      |  9 ++++-----
 10 files changed, 54 insertions(+), 42 deletions(-)
---
base-commit: bd0f139e5fc11182777b81cefc3893ea508544ec
change-id: 20260330-nokia770-gpio-swnodes-5da8ba35946e

Best regards,
-- 
Bartosz Golaszewski <bartosz.golaszewski@oss.qualcomm.com>


^ permalink raw reply	[flat|nested] 15+ messages in thread

end of thread, other threads:[~2026-04-04 13:47 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-04-02 14:15 [PATCH v5 0/4] ARM: omap1: use real firmware node lookup for GPIOs on Nokia 770 Bartosz Golaszewski
2026-04-02 14:15 ` [PATCH v5 1/4] kernel: ksysfs: initialize kernel_kobj earlier Bartosz Golaszewski
2026-04-02 16:39   ` Danilo Krummrich
2026-04-02 16:40     ` Bartosz Golaszewski
2026-04-02 14:15 ` [PATCH v5 2/4] software node: remove software_node_exit() Bartosz Golaszewski
2026-04-02 16:19   ` Andy Shevchenko
2026-04-02 19:46     ` Dmitry Torokhov
2026-04-02 14:15 ` [PATCH v5 3/4] driver core: make software nodes available earlier Bartosz Golaszewski
2026-04-02 16:20   ` Andy Shevchenko
2026-04-02 14:15 ` [PATCH v5 4/4] ARM: omap1: enable real software node lookup of GPIOs on Nokia 770 Bartosz Golaszewski
2026-04-02 16:23   ` Andy Shevchenko
2026-04-02 17:32   ` Dmitry Torokhov
2026-04-03  7:23     ` Bartosz Golaszewski
2026-04-02 16:29 ` [PATCH v5 0/4] ARM: omap1: use real firmware node lookup for " Danilo Krummrich
2026-04-04 13:47 ` (subset) " Danilo Krummrich

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox