Subject: Patch "ARM: dts: gpio-ranges property is now required" has been added to the 5.4-stable tree

From: <[email-masked]>
Date: Thu, 27 Jan 2022 17:01:49 +0100

This is a note to let you know that I've just added the patch titled

    ARM: dts: gpio-ranges property is now required

to the 5.4-stable tree which can be found at:
    http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary

The filename of the patch is:
     arm-dts-gpio-ranges-property-is-now-required.patch
and it can be found in the queue-5.4 subdirectory.

If you, or anyone else, feels it should not be added to the stable tree,
please let <[email-masked]> know about it.

>From foo@baz Thu Jan 27 04:40:37 PM CET 2022
From: Florian Fainelli <[email-masked]>
Date: Tue, 25 Jan 2022 11:42:22 -0800
Subject: ARM: dts: gpio-ranges property is now required
To: [email-masked]
Cc: Phil Elwell <[email-masked]>, Stefan Wahren <[email-masked]>, Florian Fainelli <[email-masked]>, Jan Kiszka <[email-masked]>, Linus Walleij <[email-masked]>, Olof Johansson <[email-masked]>, Rob Herring <[email-masked]>, Mark Rutland <[email-masked]>, Ray Jui <[email-masked]>, Scott Branden <[email-masked]>, [email-masked] (maintainer:BROADCOM BCM281XX/BCM11XXX/BCM216XX ARM ARCHITE...), Eric Anholt <[email-masked]>, Stefan Wahren <[email-masked]>, Nicolas Saenz Julienne <[email-masked]>, [email-masked] (open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS), [email-masked] (open list), [email-masked] (open list:PIN CONTROL SUBSYSTEM), [email-masked] (moderated list:BROADCOM BCM2711/BCM2835 ARM ARCHITECTURE), [email-masked] (moderated list:BROADCOM BCM2711/BCM2835 ARM ARCHITECTURE)
Message-ID: <[email-masked]>

From: Phil Elwell <[email-masked]>

commit c8013355ead68dce152cf426686f8a5f80d88b40 upstream

Since [1], added in 5.7, the absence of a gpio-ranges property has
prevented GPIOs from being restored to inputs when released.
Add those properties for BCM283x and BCM2711 devices.

[1] commit 2ab73c6d8323 ("gpio: Support GPIO controllers without
    pin-ranges")

Link: https://lore.kernel.org/r/[email-masked]
Fixes: 2ab73c6d8323 ("gpio: Support GPIO controllers without pin-ranges")
Fixes: 266423e60ea1 ("pinctrl: bcm2835: Change init order for gpio hogs")
Reported-by: Stefan Wahren <[email-masked]>
Reported-by: Florian Fainelli <[email-masked]>
Reported-by: Jan Kiszka <[email-masked]>
Signed-off-by: Phil Elwell <[email-masked]>
Acked-by: Florian Fainelli <[email-masked]>
Reviewed-by: Linus Walleij <[email-masked]>
Link: https://lore.kernel.org/r/[email-masked]
Signed-off-by: Linus Walleij <[email-masked]>
Acked-by: Florian Fainelli <[email-masked]>
Signed-off-by: Olof Johansson <[email-masked]>
[florian: Remove bcm2711.dtsi hunk which does not exist in 5.4]
Signed-off-by: Florian Fainelli <[email-masked]>
Signed-off-by: Greg Kroah-Hartman <[email-masked]>
---
 arch/arm/boot/dts/bcm283x.dtsi |    1 +
 1 file changed, 1 insertion(+)

--- a/arch/arm/boot/dts/bcm283x.dtsi
+++ b/arch/arm/boot/dts/bcm283x.dtsi
@@ -183,6 +183,7 @@
 
 			interrupt-controller;
 			#interrupt-cells = <2>;
+			gpio-ranges = <&gpio 0 0 54>;
 
 			/* Defines pin muxing groups according to
 			 * BCM2835-ARM-Peripherals.pdf page 102.

Patches currently in stable-queue which might be from [email-masked] are

queue-5.4/pinctrl-bcm2835-drop-unused-define.patch
queue-5.4/arm-dts-gpio-ranges-property-is-now-required.patch
queue-5.4/pinctrl-bcm2835-add-support-for-wake-up-interrupts.patch
queue-5.4/pinctrl-bcm2835-change-init-order-for-gpio-hogs.patch
queue-5.4/pinctrl-bcm2835-refactor-platform-data.patch
queue-5.4/pinctrl-bcm2835-match-bcm7211-compatible-string.patch
queue-5.4/pinctrl-bcm2835-add-support-for-all-gpios-on-bcm2711.patch

_______________________________________________
linux-arm-kernel mailing list
[email-masked]
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel