lantiq: VR9: fix gpio-hog by defining the GPIO ranges
authorJoachim Cerny <cocktail_yogi@web.de>
Tue, 8 Dec 2020 16:41:56 +0000 (17:41 +0100)
committerHauke Mehrtens <hauke@hauke-m.de>
Sat, 3 Apr 2021 16:56:02 +0000 (18:56 +0200)
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@stud.elka.pw.edu.pl
Signed-off-by: Andreas Böhler <dev@aboehler.at>
Signed-off-by: Joachim Cerny <cocktail_yogi@web.de>
target/linux/lantiq/files/arch/mips/boot/dts/lantiq/vr9.dtsi

index 85c584c1f1686728919e2e493a5e8d0012ab1646..3bb0b7e8371f3098096b758a78652e474fdf3895 100644 (file)
                        compatible = "lantiq,xrx200-pinctrl";
                        #gpio-cells = <2>;
                        gpio-controller;
+                       gpio-ranges = <&gpio 0 0 50>;
                        reg = <0xe100b10 0xa0>;
 
                        gphy0_led0_pins: gphy0-led0 {