ARM64: t210: hawkeye: provide commands for power off from bootrom
Laxman Dewangan [Fri, 6 Nov 2015 14:26:11 +0000 (19:26 +0530)]
Add support to power off system via bootrom. Add required commands
for bootrom from DT so that bootrom can issue the I2C commands.

bug 200146310

Change-Id: I8bba75d25a748ef2bd43031880d761965de1f2c9
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/829399

arch/arm64/boot/dts/tegra210-platforms/tegra210-hawkeye-power-tree-p2290-1100-a00.dtsi

index 01a3adf..8cfdccd 100644 (file)
 
        pmc@7000e400 {
                bootrom-commands {
-                       nvidia,command-retries-count = <2>;
-                       nvidia,delay-between-commands-us = <10>;
-                       nvidia,wait-before-start-bus-clear-us = <10>;
-                       #address-cells = <1>;
-                       #size-cells = <0>;
-                       commands@4-003c {
-                               nvidia,command-names = "pmic-rails";
-                               reg = <0x3c>;
-                               nvidia,enable-8bit-register;
-                               nvidia,enable-8bit-data;
-                               nvidia,controller-type-i2c;
-                               nvidia,controller-id = <4>;
-                               nvidia,enable-controller-reset;
-                               nvidia,write-commands = <0x00000016 0x00000020>;
+                       reset-commands {
+                               nvidia,command-retries-count = <2>;
+                               nvidia,delay-between-commands-us = <10>;
+                               nvidia,wait-before-start-bus-clear-us = <10>;
+                               #address-cells = <1>;
+                               #size-cells = <0>;
+                               commands@4-003c {
+                                       nvidia,command-names = "pmic-rails";
+                                       reg = <0x3c>;
+                                       nvidia,enable-8bit-register;
+                                       nvidia,enable-8bit-data;
+                                       nvidia,controller-type-i2c;
+                                       nvidia,controller-id = <4>;
+                                       nvidia,enable-controller-reset;
+                                       nvidia,write-commands = <0x00000016 0x00000020>;
+                               };
+                       };
+                       power-off-commands {
+                               nvidia,command-retries-count = <2>;
+                               nvidia,delay-between-commands-us = <10>;
+                               nvidia,wait-before-start-bus-clear-us = <10>;
+                               #address-cells = <1>;
+                               #size-cells = <0>;
+                               commands@4-003c {
+                                       nvidia,command-names = "pmic-rails";
+                                       reg = <0x3c>;
+                                       nvidia,enable-8bit-register;
+                                       nvidia,enable-8bit-data;
+                                       nvidia,controller-type-i2c;
+                                       nvidia,controller-id = <4>;
+                                       nvidia,enable-controller-reset;
+                                       nvidia,write-commands = <0x3B 0x01
+                                                               0x42 0x5B
+                                                               0x41 0xF8>;
+                               };
                        };
                };
        };