]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
arm64: tegra: Enable PMC wake events on Tegra186
authorThierry Reding <treding@nvidia.com>
Wed, 28 Nov 2018 17:19:54 +0000 (18:19 +0100)
committerThierry Reding <treding@nvidia.com>
Mon, 3 Dec 2018 15:31:33 +0000 (16:31 +0100)
Wake events are a feature that allows the interrupt and GPIO controllers
to be powered off as part of system sleep. The PMC which is always on is
monitoring these wake events and can power up subsequent controllers as
necessary to process them.

Signed-off-by: Thierry Reding <treding@nvidia.com>
arch/arm64/boot/dts/nvidia/tegra186.dtsi

index 2f3c8e29520d344304423ac1daa3a27d2329f1b6..6b7528a670b139dbde3c35dbda943b54b4c64f6c 100644 (file)
@@ -407,7 +407,7 @@ gpio_aon: gpio@c2f0000 {
                #interrupt-cells = <2>;
        };
 
-       pmc@c360000 {
+       pmc: pmc@c360000 {
                compatible = "nvidia,tegra186-pmc";
                reg = <0 0x0c360000 0 0x10000>,
                      <0 0x0c370000 0 0x10000>,
@@ -415,6 +415,9 @@ pmc@c360000 {
                      <0 0x0c390000 0 0x10000>;
                reg-names = "pmc", "wake", "aotag", "scratch";
 
+               #interrupt-cells = <2>;
+               interrupt-controller;
+
                sdmmc1_3v3: sdmmc1-3v3 {
                        pins = "sdmmc1-hv";
                        power-source = <TEGRA_IO_PAD_VOLTAGE_3V3>;