ARM: tegra: nyan: Add gpio-restart node
authorTomeu Vizoso <tomeu.vizoso@collabora.com>
Wed, 18 Mar 2015 09:52:26 +0000 (10:52 +0100)
committerThierry Reding <treding@nvidia.com>
Tue, 24 Mar 2015 09:51:48 +0000 (10:51 +0100)
The Nyan Chromebooks have a GPIO line dedicated to restarting the
system. Using this line will make sure that the TPM is restarted as
well.

Signed-off-by: Tomeu Vizoso <tomeu.vizoso@collabora.com>
Acked-by: Stephen Warren <swarren@nvidia.com>
Reviewed-by: Alexandre Courbot <acourbot@nvidia.com>
Signed-off-by: Thierry Reding <treding@nvidia.com>
arch/arm/boot/dts/tegra124-nyan.dtsi

index 9b3fca8..0b130cb 100644 (file)
                nvidia,mic-det-gpios =
                                <&gpio TEGRA_GPIO(R, 7) GPIO_ACTIVE_HIGH>;
        };
+
+       gpio-restart {
+               compatible = "gpio-restart";
+               gpios = <&gpio TEGRA_GPIO(I, 5) GPIO_ACTIVE_LOW>;
+               priority = <200>;
+       };
 };
 
 #include "cros-ec-keyboard.dtsi"