[openwrt/openwrt] lantiq: VR9: fix gpio-hog by defining the GPIO ranges

LEDE Commits lede-commits at lists.infradead.org
Sat Apr 3 18:17:38 BST 2021


hauke pushed a commit to openwrt/openwrt.git, branch master:
https://git.openwrt.org/754eb75a8c9ef318fa01adb1d5b9054954ee3913

commit 754eb75a8c9ef318fa01adb1d5b9054954ee3913
Author: Joachim Cerny <cocktail_yogi at web.de>
AuthorDate: Tue Dec 8 17:41:56 2020 +0100

    lantiq: VR9: fix gpio-hog by defining the GPIO ranges
    
    defined gpio-ranges according to Reference: https://github.com/torvalds/linux/blob/master/drivers/pinctrl/pinctrl-xway.c#L864
    This change is needed by gpio-hog on Fritzbox 3390
    thx to @abajk
    
    Acked-by: Aleksander Jan Bajkowski A.Bajkowski at stud.elka.pw.edu.pl
    Signed-off-by: Andreas Böhler <dev at aboehler.at>
    Signed-off-by: Joachim Cerny <cocktail_yogi at web.de>
---
 target/linux/lantiq/files/arch/mips/boot/dts/lantiq/vr9.dtsi | 1 +
 1 file changed, 1 insertion(+)

diff --git a/target/linux/lantiq/files/arch/mips/boot/dts/lantiq/vr9.dtsi b/target/linux/lantiq/files/arch/mips/boot/dts/lantiq/vr9.dtsi
index 85c584c1f1..3bb0b7e837 100644
--- a/target/linux/lantiq/files/arch/mips/boot/dts/lantiq/vr9.dtsi
+++ b/target/linux/lantiq/files/arch/mips/boot/dts/lantiq/vr9.dtsi
@@ -223,6 +223,7 @@
 			compatible = "lantiq,xrx200-pinctrl";
 			#gpio-cells = <2>;
 			gpio-controller;
+			gpio-ranges = <&gpio 0 0 50>;
 			reg = <0xe100b10 0xa0>;
 
 			gphy0_led0_pins: gphy0-led0 {



More information about the lede-commits mailing list