arm: mvebu: Add gpio-ranges into Armada 38x device tree file
authorPali Rohár <pali@kernel.org>
Mon, 25 Jul 2022 11:56:10 +0000 (13:56 +0200)
committerStefan Roese <sr@denx.de>
Thu, 28 Jul 2022 06:41:45 +0000 (08:41 +0200)
This allows U-Boot mvebu-gpio.c driver to switch particular MPP pin into
GPIO mode and enable GPIO support.

Signed-off-by: Pali Rohár <pali@kernel.org>
Reviewed-by: Stefan Roese <sr@denx.de>
arch/arm/dts/armada-38x.dtsi

index 061bd78..7d76df3 100644 (file)
                                reg-names = "gpio", "pwm";
                                ngpios = <32>;
                                gpio-controller;
+                               gpio-ranges = <&pinctrl 0 0 32>;
                                #gpio-cells = <2>;
                                #pwm-cells = <2>;
                                interrupt-controller;
                                reg-names = "gpio", "pwm";
                                ngpios = <28>;
                                gpio-controller;
+                               gpio-ranges = <&pinctrl 0 32 28>;
                                #gpio-cells = <2>;
                                #pwm-cells = <2>;
                                interrupt-controller;