]> rtime.felk.cvut.cz Git - sojka/nv-tegra/linux-3.10.git/commitdiff
arm64: tegra: Enable the INA226 on Loki-E/Foster-E
authorAly Hirani <ahirani@nvidia.com>
Wed, 24 Sep 2014 19:01:51 +0000 (12:01 -0700)
committerRaymond Poudrier <rapoudrier@nvidia.com>
Mon, 13 Oct 2014 18:58:01 +0000 (11:58 -0700)
On Loki-E/Foster-E, there is an INA226 that is stuffed only on the FFPB
but not on the FFD (to measure DDR power). Since we currently use the
same dts file between the two, this change keeps the INA226 disabled
and enables it using the shim.

Bug 200038547

Change-Id: Iae977e3c7701dcdb06e60150b325d2966cbbbbc3
Signed-off-by: Aly Hirani <ahirani@nvidia.com>
Reviewed-on: http://git-master/r/538525
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Raymond Poudrier <rapoudrier@nvidia.com>
arch/arm64/boot/dts/tegra210-platforms/tegra210-foster-powermon-p2530-0930-e00.dtsi
arch/arm64/boot/dts/tegra210-platforms/tegra210-loki-e-powermon.dtsi

index 5cda2598f71c4a12285e9189ddec14abd8255470..b4a05b56fa0870510a2dbae6cc93ba12d7c80486 100644 (file)
@@ -17,7 +17,7 @@
  */
 / {
        i2c@7000c400 {
-       ina3221x: ina3221x@40 {
+               ina3221x: ina3221x@40 {
                        compatible = "ti,ina3221x";
                        reg = <0x40>;
                        ti,trigger-config = <0x7003>;
                                ti,shunt-resistor-mohm = <5>;
                        };
                };
+
+               ina226@46 {
+                       status = "disabled";
+                       compatible = "ti,ina226x";
+                       reg = <0x46>;
+                       ti,rail-name = "VDD_DDR";
+                       ti,continuous-config = <0x0407>;
+                       ti,trigger-config = <0x0403>;
+                       ti,resistor = <10>;
+                       ti,calibration-data = <0x0DF1>;
+                       ti,power-lsb = <143>;
+                       ti,divisor = <25>;
+                       ti,precision-multiplier = <1000>;
+               };
        };
 };
index 5b9b8fe5068bdb2d3a5383c6bed28c76c5ea5320..7f6629f1f33f8757cd0eda4c499b091ee6bdb542 100644 (file)
@@ -1,3 +1,20 @@
+/*
+ * Copyright (c) 2014, 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 {
                                ti,shunt-resistor-mohm = <5>;
                        };
                };
+
+               ina226@46 {
+                       status = "disabled";
+                       compatible = "ti,ina226x";
+                       reg = <0x46>;
+                       ti,rail-name = "VDD_DDR";
+                       ti,continuous-config = <0x0407>;
+                       ti,trigger-config = <0x0403>;
+                       ti,resistor = <10>;
+                       ti,calibration-data = <0x0DF1>;
+                       ti,power-lsb = <143>;
+                       ti,divisor = <25>;
+                       ti,precision-multiplier = <1000>;
+               };
        };
 };