]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
arm64: tegra: Add current monitors for Jetson Xavier
authorJon Hunter <jonathanh@nvidia.com>
Tue, 20 Feb 2024 12:17:12 +0000 (12:17 +0000)
committerThierry Reding <treding@nvidia.com>
Fri, 23 Feb 2024 17:20:02 +0000 (18:20 +0100)
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>
arch/arm64/boot/dts/nvidia/tegra194-p2888.dtsi
arch/arm64/boot/dts/nvidia/tegra194-p3668.dtsi

index 5b59c1986e9b5fe886ba3e6fb8541044a2842f7d..e8b296d9e0d3e66a6739ad085ee38cc73f86e0fe 100644 (file)
                        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";
                };
index 58f190b0f868724176ccb3a1b27551aaf8a7c9f2..59860d19f0f6a5a32719dcdb7f868b60c2551a1f 100644 (file)
                        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";
                };