aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarcel Ziswiler <marcel.ziswiler@toradex.com>2018-02-09 20:38:04 -0500
committerThierry Reding <treding@nvidia.com>2018-03-08 10:15:34 -0500
commit818e8729e1038e3847a4cb2ed7ad8003a1d037ab (patch)
tree66c90eddeda02f53a1c10c9f5d1a5db8b4380103
parent405698f07271ee116892579c30494efa53dee333 (diff)
ARM: tegra: apalis-tk1: Hog group for ethernet, PCIe, reset GPIOs
The Apalis TK1 module uses some dedicated GPIOs as I210 gigabit Ethernet controller reset and to control RESET_MOCI aka reset module output carrier input on MXM3 pin 26. The Apalis Evaluation Board furthermore uses Apalis GPIO7 on MXM3 pin 15 as reset signal for its PLX PEX 8605 PCIe Switch. Signed-off-by: Marcel Ziswiler <marcel.ziswiler@toradex.com> Signed-off-by: Thierry Reding <treding@nvidia.com>
-rw-r--r--arch/arm/boot/dts/tegra124-apalis-eval.dts10
-rw-r--r--arch/arm/boot/dts/tegra124-apalis.dtsi18
2 files changed, 28 insertions, 0 deletions
diff --git a/arch/arm/boot/dts/tegra124-apalis-eval.dts b/arch/arm/boot/dts/tegra124-apalis-eval.dts
index af6c566e8ac4..f1010cefb993 100644
--- a/arch/arm/boot/dts/tegra124-apalis-eval.dts
+++ b/arch/arm/boot/dts/tegra124-apalis-eval.dts
@@ -275,3 +275,13 @@
275 vin-supply = <&reg_5v0>; 275 vin-supply = <&reg_5v0>;
276 }; 276 };
277}; 277};
278
279&gpio {
280 /* Apalis GPIO7 MXM3 pin 15 PLX PEX 8605 PCIe Switch Reset */
281 pex_perst_n {
282 gpio-hog;
283 gpios = <TEGRA_GPIO(DD, 1) GPIO_ACTIVE_HIGH>;
284 output-high;
285 line-name = "PEX_PERST_N";
286 };
287};
diff --git a/arch/arm/boot/dts/tegra124-apalis.dtsi b/arch/arm/boot/dts/tegra124-apalis.dtsi
index 44c31176ce90..b7648ce4565d 100644
--- a/arch/arm/boot/dts/tegra124-apalis.dtsi
+++ b/arch/arm/boot/dts/tegra124-apalis.dtsi
@@ -2070,3 +2070,21 @@
2070 }; 2070 };
2071 }; 2071 };
2072}; 2072};
2073
2074&gpio {
2075 /* I210 Gigabit Ethernet Controller Reset */
2076 lan_reset_n {
2077 gpio-hog;
2078 gpios = <TEGRA_GPIO(S, 2) GPIO_ACTIVE_HIGH>;
2079 output-high;
2080 line-name = "LAN_RESET_N";
2081 };
2082
2083 /* Control MXM3 pin 26 Reset Module Output Carrier Input */
2084 reset_moci_ctrl {
2085 gpio-hog;
2086 gpios = <TEGRA_GPIO(U, 4) GPIO_ACTIVE_HIGH>;
2087 output-high;
2088 line-name = "RESET_MOCI_CTRL";
2089 };
2090};