Skip to content

pinctrl: meson: Fix gpio-ranged for GPIO Hog

Neil Armstrong linux-amlogic linux-arm-kernel linux-devicetree linux-gpio lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest6 patches 12 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/6ARM64: dts: meson-gxbb: Add gpio-ranges propertiesarch/arm64/boot/dts/amlogic/meson-gxbb.dtsi+2 -01 reply
2/6ARM64: dts: meson-gxl: Add gpio-ranges propertiesarch/arm64/boot/dts/amlogic/meson-gxl.dtsi+2 -01 reply
3/6ARM: dts: meson8: Add gpio-ranges propertiesarch/arm/boot/dts/meson8.dtsi+2 -01 reply
4/6ARM: dts: meson8b: Add gpio-ranges propertiesarch/arm/boot/dts/meson8b.dtsi+2 -01 reply
5/6pinctrl: meson: use gpio-ranges from DTdrivers/pinctrl/meson/pinctrl-meson.c+1 -136 replies
6/6ARM64: dts: meson-gxbb: Add USB Hub GPIO hogarch/arm64/boot/dts/amlogic/meson-gxbb-odroidc2.dts+15 -01 reply

Reviews trailers per patch

5 of 6 patches have a Reviewed-by or Acked-by.

PatchKevin HilmanLinus Walleij
SeriesT-b
1/6R-b
2/6R-b
3/6R-b
4/6R-b
5/6
6/6R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [RFT PATCH 0/6] pinctrl: meson: Fix gpio-ranged for GPIO Hog

Whem trying to add a gpio hog to enable the USB Hub on the Odroid-C2, I encountered a strange bug where when calling gpiochip_add_data() the gpiolib code was trying to add the Hog but failed because the gpio ranges were missing.

In the meson-pinctrl driver, the gpio ranges are added manually /after/ the call to gpiochip_add_data().
The arch/arm meson8 and meson8b patches has not been tested, this is why this patchset is an RFT.

So this patchset uses the DT gpio-ranges attribute instead and solves the issue.

The final patch is the actual GPIO Hog for the Odroid-C2 board, which is an ugly hack but is necessary to have USB Ports working on the board until the generic power sequence framework is merged.

Neil Armstrong (6):
ARM64: dts: meson-gxbb: Add gpio-ranges properties
ARM64: dts: meson-gxl: Add gpio-ranges properties
ARM: dts: meson8: Add gpio-ranges properties
ARM: dts: meson8b: Add gpio-ranges properties
pinctrl: meson: use gpio-ranges from DT
ARM64: dts: meson-gxbb: Add USB Hub GPIO hog

 arch/arm/boot/dts/meson8.dtsi                       |  2 ++
 arch/arm/boot/dts/meson8b.dtsi                      |  2 ++
 arch/arm64/boot/dts/amlogic/meson-gxbb-odroidc2.dts | 15 +++++++++++++++
 arch/arm64/boot/dts/amlogic/meson-gxbb.dtsi         |  2 ++
 arch/arm64/boot/dts/amlogic/meson-gxl.dtsi          |  2 ++
 drivers/pinctrl/meson/pinctrl-meson.c               | 14 +-------------
 6 files changed, 24 insertions(+), 13 deletions(-)
Signature · 1 line
1.9.1