]> rtime.felk.cvut.cz Git - sojka/nv-tegra/linux-3.10.git/commitdiff
arm64: t210: jetson-e: add support for INA3221x
authorShardar Shariff Md <smohammed@nvidia.com>
Fri, 27 Feb 2015 14:52:15 +0000 (20:22 +0530)
committerLaxman Dewangan <ldewangan@nvidia.com>
Mon, 2 Mar 2015 06:14:34 +0000 (22:14 -0800)
Add support for INA3221x (Power monitor device)
on jetson-e

Change-Id: I6b40526ac3114768f34c3a96e5aeabf55c84bdfd
Signed-off-by: Shardar Shariff Md <smohammed@nvidia.com>
Reviewed-on: http://git-master/r/712007
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
arch/arm64/boot/dts/tegra210-jetson-e-p2595-0000-a00-00.dts
arch/arm64/boot/dts/tegra210-platforms/tegra210-jetson-e-powermon-p2530-0930-e03.dtsi [new file with mode: 0644]

index c92140b01f1175617986bd2ceeb053fa0bca0f47..44033784fab2cac3222e7b8837b4cc924154c61c 100644 (file)
@@ -45,6 +45,7 @@
 #include "tegra210-platforms/tegra210-audio.dtsi"
 #include "tegra210-platforms/tegra210-thermal-nct72-p2530.dtsi"
 #include "tegra210-platforms/tegra210-thermal-Tboard-Tdiode.dtsi"
+#include "tegra210-platforms/tegra210-jetson-e-powermon-p2530-0930-e03.dtsi"
 
 
 / {
diff --git a/arch/arm64/boot/dts/tegra210-platforms/tegra210-jetson-e-powermon-p2530-0930-e03.dtsi b/arch/arm64/boot/dts/tegra210-platforms/tegra210-jetson-e-powermon-p2530-0930-e03.dtsi
new file mode 100644 (file)
index 0000000..b7c4197
--- /dev/null
@@ -0,0 +1,47 @@
+/*
+ * Copyright (c) 2015, NVIDIA CORPORATION.  All rights reserved.
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful, but WITHOUT
+ * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
+ * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for
+ * more details.
+ *
+ * You should have received a copy of the GNU General Public License along
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
+ */
+
+/ {
+       i2c@7000c400 {
+               ina3221x@40 {
+                       compatible = "ti,ina3221x";
+                       reg = <0x40>;
+                       ti,trigger-config = <0x7003>;
+                       ti,continuous-config = <0x7607>;
+                       #address-cells = <1>;
+                       #size-cells = <0>;
+
+                       channel@0 {
+                               reg = <0x0>;
+                               ti,rail-name = "VDD_BAT";
+                               ti,shunt-resistor-mohm = <5>;
+                       };
+
+                       channel@1 {
+                               reg = <0x1>;
+                               ti,rail-name = "VDD_5V0";
+                               ti,shunt-resistor-mohm = <5>;
+                       };
+
+                       channel@2 {
+                               reg = <0x2>;
+                               ti,rail-name = "VDD_SYS_CPU";
+                               ti,shunt-resistor-mohm = <5>;
+                       };
+               };
+       };
+};