arm64: tegra: Wire up power sensors on Jetson TX1 DevKit
authorTomasz Maciej Nowak <tmn505@gmail.com>
Wed, 21 Aug 2024 18:58:03 +0000 (20:58 +0200)
committerThierry Reding <treding@nvidia.com>
Thu, 29 Aug 2024 15:34:48 +0000 (17:34 +0200)
One INA3221 sensor is located on P2180 module and the other two are on
P2597 base board.

Signed-off-by: Tomasz Maciej Nowak <tmn505@gmail.com>
Signed-off-by: Thierry Reding <treding@nvidia.com>
arch/arm64/boot/dts/nvidia/tegra210-p2180.dtsi
arch/arm64/boot/dts/nvidia/tegra210-p2597.dtsi

index 0ae5a44f7d07002f5b0742185b3e4419751ce539..f8b20af1fd3d6754ff249e47af00d321a659c9a2 100644 (file)
                status = "okay";
        };
 
+       i2c@7000c400 {
+               status = "okay";
+
+               power-sensor@40 {
+                       compatible = "ti,ina3221";
+                       reg = <0x40>;
+                       #address-cells = <1>;
+                       #size-cells = <0>;
+
+                       input@0 {
+                               reg = <0x0>;
+                               label = "VDD_IN";
+                               shunt-resistor-micro-ohms = <20000>;
+                       };
+
+                       input@1 {
+                               reg = <0x1>;
+                               label = "VDD_GPU";
+                               shunt-resistor-micro-ohms = <10000>;
+                       };
+
+                       input@2 {
+                               reg = <0x2>;
+                               label = "VDD_CPU";
+                               shunt-resistor-micro-ohms = <10000>;
+                       };
+               };
+       };
+
        i2c@7000c500 {
                status = "okay";
 
index 73ae63628f839bb574f03f9f8bf5ed4e7df0089f..63b94a04308e86bd442d6c1d6558bdcf2fc65825 100644 (file)
                status = "okay";
                clock-frequency = <100000>;
 
+               power-sensor@42 {
+                       compatible = "ti,ina3221";
+                       reg = <0x42>;
+                       #address-cells = <1>;
+                       #size-cells = <0>;
+
+                       input@0 {
+                               reg = <0x0>;
+                               label = "VDD_MUX";
+                               shunt-resistor-micro-ohms = <20000>;
+                       };
+
+                       input@1 {
+                               reg = <0x1>;
+                               label = "VDD_5V_IO_SYS";
+                               shunt-resistor-micro-ohms = <5000>;
+                       };
+
+                       input@2 {
+                               reg = <0x2>;
+                               label = "VDD_3V3_SYS";
+                               shunt-resistor-micro-ohms = <10000>;
+                       };
+               };
+
+               power-sensor@43 {
+                       compatible = "ti,ina3221";
+                       reg = <0x43>;
+                       #address-cells = <1>;
+                       #size-cells = <0>;
+
+                       input@0 {
+                               reg = <0x0>;
+                               label = "VDD_3V3_IO";
+                               shunt-resistor-micro-ohms = <10000>;
+                       };
+
+                       input@1 {
+                               reg = <0x1>;
+                               label = "VDD_1V8_IO";
+                               shunt-resistor-micro-ohms = <10000>;
+                       };
+
+                       input@2 {
+                               reg = <0x2>;
+                               label = "VDD_M2_IN";
+                               shunt-resistor-micro-ohms = <10000>;
+                       };
+               };
+
                exp1: gpio@74 {
                        compatible = "ti,tca9539";
                        reg = <0x74>;