]> rtime.felk.cvut.cz Git - sojka/nv-tegra/linux-3.10.git/commitdiff
arm64:tegra:loki: Set PMIC gpio2 to output high
authorAnkita Garg <ankitag@nvidia.com>
Tue, 9 Sep 2014 01:26:22 +0000 (18:26 -0700)
committerRaymond Poudrier <rapoudrier@nvidia.com>
Wed, 10 Sep 2014 07:35:29 +0000 (00:35 -0700)
Need to pull up the pmic gpio2 to enable the hall sensor
pin going into the button board of loki. This is also needed
to enable the touch button board on Loki.

Bug 1550153

Change-Id: Ia7b1dd9f95a58ffd048e66f7e4f7680b4535ca22
Signed-off-by: Ankita Garg <ankitag@nvidia.com>
Reviewed-on: http://git-master/r/496718
Reviewed-by: Raymond Poudrier <rapoudrier@nvidia.com>
Tested-by: Raymond Poudrier <rapoudrier@nvidia.com>
arch/arm64/boot/dts/tegra210-platforms/tegra210-ers-pmic-e2174-1101-a00.dtsi

index de84372d032cf687538f291b3805cdb0b03a9210..0195fee398abeb6b115c01393cac9d957c063e70 100644 (file)
@@ -78,6 +78,9 @@
                        pinctrl-names = "default";
                        pinctrl-0 = <&max77620_default>;
 
+                       gpio-init-names = "default";
+                       gpio-init-0 = <&max77620_gpio_default>;
+
                        max77620_default: pinmux@0 {
                                pin_gpio0 {
                                        pins = "gpio0";
 
                        };
 
+                       max77620_gpio_default:gpio_default {
+                               gpio-output-high = <2>;
+                       };
+
                        watchdog {
                                maxim,wdt-timeout = <16>;
                                maxim,wdt-clear-time = <13>;