devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v3 0/3] Add 'ngpios' and 'gpio-reserved-ranges' for vf610-gpio driver
@ 2025-05-20  3:46 Haibo Chen
  2025-05-20  3:46 ` [PATCH v3 1/3] dt-bindings: gpio: vf610: add ngpios and gpio-reserved-ranges Haibo Chen
                   ` (4 more replies)
  0 siblings, 5 replies; 15+ messages in thread
From: Haibo Chen @ 2025-05-20  3:46 UTC (permalink / raw)
  To: Rob Herring, Krzysztof Kozlowski, Conor Dooley, Shawn Guo,
	Sascha Hauer, Pengutronix Kernel Team, Fabio Estevam,
	Stefan Agner, Linus Walleij, Bartosz Golaszewski
  Cc: devicetree, imx, linux-arm-kernel, linux-kernel, linux-gpio,
	Haibo Chen, peng.fan, wahrenst, conor, Frank Li

Not all GPIO ports have 32 pads, so add 'ngpios' property to specify
the number. This can save some memory when alloc bitmap for GPIO,
besides GPIO tools like gpioinfo will show the correct information.

Some GPIO ports even more special, e.g. GPIO7 on imx94, it only support
IO0~IO9 and IO16~IO27, so add 'gpio-reserved-ranges' property.

Signed-off-by: Haibo Chen <haibo.chen@nxp.com>
---
Changes in v3:
- switch PATCH1 and PATCH2, move the binding changes before the DTS changes, to avoid temporary DT build warnings.
- put arm64 and arm dts changes in separated patches.
- add default value for ngpios in binding doc.
- add Frank Li's reviewed by tag
- Link to v2: https://lore.kernel.org/r/20250519-gpio-dts-v2-0-b9e77173e9c5@nxp.com

Changes in v2:
- No changes for PATCH1.
- Add PATCH2 in this verson to avoid dt-binding check.
- Link to v1: https://lore.kernel.org/r/20250516-gpio-dts-v1-1-a9c3505f54c5@nxp.com

---
Haibo Chen (3):
      dt-bindings: gpio: vf610: add ngpios and gpio-reserved-ranges
      ARM: dts: add ngpios for vf610 compatible gpio controllers
      ARM64: dts: add ngpios for vf610 compatible gpio controllers

 Documentation/devicetree/bindings/gpio/gpio-vf610.yaml | 7 +++++++
 arch/arm/boot/dts/nxp/imx/imx7ulp.dtsi                 | 4 ++++
 arch/arm/boot/dts/nxp/vf/vfxxx.dtsi                    | 5 +++++
 arch/arm64/boot/dts/freescale/imx8ulp.dtsi             | 3 +++
 arch/arm64/boot/dts/freescale/imx93.dtsi               | 4 ++++
 arch/arm64/boot/dts/freescale/imx94.dtsi               | 7 +++++++
 arch/arm64/boot/dts/freescale/imx95.dtsi               | 5 +++++
 7 files changed, 35 insertions(+)
---
base-commit: 484803582c77061b470ac64a634f25f89715be3f
change-id: 20250516-gpio-dts-408311b633c4

Best regards,
-- 
Haibo Chen <haibo.chen@nxp.com>


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

end of thread, other threads:[~2025-06-19  4:05 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-05-20  3:46 [PATCH v3 0/3] Add 'ngpios' and 'gpio-reserved-ranges' for vf610-gpio driver Haibo Chen
2025-05-20  3:46 ` [PATCH v3 1/3] dt-bindings: gpio: vf610: add ngpios and gpio-reserved-ranges Haibo Chen
2025-05-21 15:18   ` Conor Dooley
2025-05-20  3:46 ` [PATCH v3 2/3] ARM: dts: add ngpios for vf610 compatible gpio controllers Haibo Chen
2025-05-20 10:54   ` Stefan Wahren
2025-05-20 22:14     ` Linus Walleij
2025-05-21  8:40       ` Stefan Wahren
2025-06-17  3:02   ` Bough Chen
2025-06-19  3:51   ` Shawn Guo
2025-05-20  3:46 ` [PATCH v3 3/3] ARM64: " Haibo Chen
2025-05-21  8:44   ` Stefan Wahren
2025-06-17  3:02   ` Bough Chen
2025-06-19  3:53   ` Shawn Guo
2025-05-20 22:09 ` [PATCH v3 0/3] Add 'ngpios' and 'gpio-reserved-ranges' for vf610-gpio driver Linus Walleij
2025-05-21 15:51 ` (subset) " Bartosz Golaszewski

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).