]> rtime.felk.cvut.cz Git - sojka/nv-tegra/linux-3.10.git/blob - arch/arm64/boot/dts/tegra210-platforms/tegra210-jetson-cv-powermon-p2180-1000-a00.dtsi
arm64: dts: enable INA3221 in P2180
[sojka/nv-tegra/linux-3.10.git] / arch / arm64 / boot / dts / tegra210-platforms / tegra210-jetson-cv-powermon-p2180-1000-a00.dtsi
1 /*
2  * Copyright (c) 2015, NVIDIA CORPORATION.  All rights reserved.
3  *
4  * This program is free software; you can redistribute it and/or modify
5  * it under the terms of the GNU General Public License as published by
6  * the Free Software Foundation; either version 2 of the License, or
7  * (at your option) any later version.
8  *
9  * This program is distributed in the hope that it will be useful, but WITHOUT
10  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for
12  * more details.
13  *
14  * You should have received a copy of the GNU General Public License along
15  * along with this program. If not, see <http://www.gnu.org/licenses/>.
16  */
17
18 / {
19         i2c@7000c400 {
20                 ina3221x@40 {
21                         compatible = "ti,ina3221x";
22                         reg = <0x40>;
23                         ti,trigger-config = <0x7003>;
24                         ti,continuous-config = <0x7607>;
25                         ti,enable-forced-continuous;
26                         #io-channel-cells = <1>;
27                         #address-cells = <1>;
28                         #size-cells = <0>;
29
30                         channel@0 {
31                                 reg = <0x0>;
32                                 ti,rail-name = "VDD_IN";
33                                 ti,shunt-resistor-mohm = <20>;
34                                 ti,current-critical-limit-ma = <2105>;
35                         };
36
37                         channel@1 {
38                                 reg = <0x1>;
39                                 ti,rail-name = "VDD_GPU";
40                                 ti,shunt-resistor-mohm = <10>;
41                         };
42
43                         channel@2 {
44                                 reg = <0x2>;
45                                 ti,rail-name = "VDD_CPU";
46                                 ti,shunt-resistor-mohm = <10>;
47                         };
48                 };
49         };
50 };