arm64: tegra: Add current monitors for Jetson Xavier

Add the INA3221 current monitors that are present on the Jetson AGX
Xavier and Jetson Xavier NX boards.

Signed-off-by: Jon Hunter <jonathanh@nvidia.com>
Signed-off-by: Thierry Reding <treding@nvidia.com>
This commit is contained in:
Jon Hunter
2024-02-20 12:17:12 +00:00
committed by Thierry Reding
parent 81695da63b
commit 32ecead6a5
2 changed files with 77 additions and 0 deletions

View File

@@ -53,6 +53,56 @@
status = "okay";
};
i2c@c240000 {
status = "okay";
power-sensor@40 {
compatible = "ti,ina3221";
reg = <0x40>;
#address-cells = <1>;
#size-cells = <0>;
input@0 {
reg = <0x0>;
label = "GPU";
shunt-resistor-micro-ohms = <5000>;
};
input@1 {
reg = <0x1>;
label = "CPU";
shunt-resistor-micro-ohms = <5000>;
};
input@2 {
reg = <0x2>;
label = "SOC";
shunt-resistor-micro-ohms = <5000>;
};
};
power-sensor@41 {
compatible = "ti,ina3221";
reg = <0x41>;
#address-cells = <1>;
#size-cells = <0>;
input@0 {
reg = <0x0>;
label = "CV";
shunt-resistor-micro-ohms = <5000>;
};
input@1 {
reg = <0x1>;
label = "VDDRQ";
shunt-resistor-micro-ohms = <5000>;
};
input@2 {
reg = <0x2>;
label = "SYS5V";
shunt-resistor-micro-ohms = <5000>;
};
};
};
serial@3110000 {
status = "okay";
};

View File

@@ -50,6 +50,33 @@
status = "okay";
};
i2c@c250000 {
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 = <5000>;
};
input@1 {
reg = <0x1>;
label = "VDD_CPU_GPU_CV";
shunt-resistor-micro-ohms = <5000>;
};
input@2 {
reg = <0x2>;
label = "VDD_SOC";
shunt-resistor-micro-ohms = <5000>;
};
};
};
serial@3100000 {
status = "okay";
};