]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commitdiff
ARM: dts: aspeed-g5: Fixe gpio-ranges upper limit
authorOscar A Perez <linux@neuralgames.com>
Wed, 1 May 2019 13:26:43 +0000 (13:26 +0000)
committerKhalid Elmously <khalid.elmously@canonical.com>
Fri, 14 Feb 2020 05:29:37 +0000 (00:29 -0500)
BugLink: https://bugs.launchpad.net/bugs/1863019
[ Upstream commit 89b97c429e2e77d695b5133572ca12ec256a4ea4 ]

According to the AST2500/AST2520 specs, these SoCs support up to 228 GPIO
pins. However, 'gpio-ranges' value in 'aspeed-g5.dtsi' file is currently
setting the upper limit to 220 which isn't allowing access to all their
GPIOs. The correct upper limit value is 232 (actual number is 228 plus a
4-GPIO hole in GPIOAB). Without this patch, GPIOs AC5 and AC6 do not work
correctly on a AST2500 BMC running Linux Kernel v4.19

Fixes: 2039f90d136c ("ARM: dts: aspeed-g5: Add gpio controller to devicetree")
Signed-off-by: Oscar A Perez <linux@neuralgames.com>
Reviewed-by: Andrew Jeffery <andrew@aj.id.au>
Signed-off-by: Joel Stanley <joel@jms.id.au>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Khalid Elmously <khalid.elmously@canonical.com>
arch/arm/boot/dts/aspeed-g5.dtsi

index ddf4a993de5f1c882afb6b94f85c22f17d0de5b3..8cc0bf6dc9f5973c3d709bf13a1ff7561016ae79 100644 (file)
                                compatible = "aspeed,ast2500-gpio";
                                reg = <0x1e780000 0x1000>;
                                interrupts = <20>;
-                               gpio-ranges = <&pinctrl 0 0 220>;
+                               gpio-ranges = <&pinctrl 0 0 232>;
                                interrupt-controller;
                        };