]> git.baikalelectronics.ru Git - uboot.git/commitdiff
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 061bd78520812a0e18dfef2bbdd0a11337821fd9..7d76df3f9ce71a857a42a7d1e179ad0b2d4def73 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;