]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
arm64: tegra: Define pinmuxing for gpio pads on Tegra210
authorDiogo Ivo <diogo.ivo@tecnico.ulisboa.pt>
Mon, 24 Feb 2025 12:17:37 +0000 (12:17 +0000)
committerThierry Reding <treding@nvidia.com>
Fri, 7 Mar 2025 17:38:29 +0000 (18:38 +0100)
As the gpio pads are capable of operating at either 1.8V or 3.3V add
both options to the pinmuxing so that the appropriate level can be set
depending on the voltage of the regulator driving the pads.

Signed-off-by: Diogo Ivo <diogo.ivo@tecnico.ulisboa.pt>
Link: https://lore.kernel.org/r/20250224-diogo-gpio_exp-v1-2-80fb84ac48c6@tecnico.ulisboa.pt
Signed-off-by: Thierry Reding <treding@nvidia.com>
arch/arm64/boot/dts/nvidia/tegra210.dtsi

index 942e3a0f81ed768021d2ac25f6369998a9fbfd76..b6c84d195c0ef9ae90721fada09ffd46a9c11fa3 100644 (file)
                                pins = "sdmmc3";
                                power-source = <TEGRA_IO_PAD_VOLTAGE_3V3>;
                        };
+
+                       gpio_1v8: gpio-1v8 {
+                               pins = "gpio";
+                               power-source = <TEGRA_IO_PAD_VOLTAGE_1V8>;
+                       };
+
+                       gpio_3v3: gpio-3v3 {
+                               pins = "gpio";
+                               power-source = <TEGRA_IO_PAD_VOLTAGE_3V3>;
+                       };
                };
 
                powergates {