* [PATCH] arm64: tegra: Correct location of INA219 for IGX Orin
@ 2024-07-12 12:48 Jon Hunter
2024-07-12 13:20 ` [PATCH V2] arm64: tegra: Correct location of power-sensors " Jon Hunter
0 siblings, 1 reply; 3+ messages in thread
From: Jon Hunter @ 2024-07-12 12:48 UTC (permalink / raw)
To: Rob Herring, Krzysztof Kozlowski, Conor Dooley, Thierry Reding
Cc: Vedant Deshpande, Brad Griffis, yiweiw, devicetree, linux-tegra,
Jon Hunter
The INA219 power-sensor is located on the carrier board and not the
module board and so update the IGX Orin device-tree files to fix this.
Fixes: 9152ed09309d ("arm64: tegra: Add power-sensors for Tegra234 boards")
Signed-off-by: Jon Hunter <jonathanh@nvidia.com>
---
arch/arm64/boot/dts/nvidia/tegra234-p3701-0008.dtsi | 6 ------
arch/arm64/boot/dts/nvidia/tegra234-p3740-0002.dtsi | 8 ++++++++
2 files changed, 8 insertions(+), 6 deletions(-)
diff --git a/arch/arm64/boot/dts/nvidia/tegra234-p3701-0008.dtsi b/arch/arm64/boot/dts/nvidia/tegra234-p3701-0008.dtsi
index 553fa4ba1cd4..b58b9c496988 100644
--- a/arch/arm64/boot/dts/nvidia/tegra234-p3701-0008.dtsi
+++ b/arch/arm64/boot/dts/nvidia/tegra234-p3701-0008.dtsi
@@ -69,12 +69,6 @@ input@2 {
shunt-resistor-micro-ohms = <2000>;
};
};
-
- power-sensor@44 {
- compatible = "ti,ina219";
- reg = <0x44>;
- shunt-resistor = <2000>;
- };
};
rtc@c2a0000 {
diff --git a/arch/arm64/boot/dts/nvidia/tegra234-p3740-0002.dtsi b/arch/arm64/boot/dts/nvidia/tegra234-p3740-0002.dtsi
index 527f2f3aee3a..03bdb71ae0cf 100644
--- a/arch/arm64/boot/dts/nvidia/tegra234-p3740-0002.dtsi
+++ b/arch/arm64/boot/dts/nvidia/tegra234-p3740-0002.dtsi
@@ -183,6 +183,14 @@ usb@3610000 {
phy-names = "usb2-0", "usb2-1", "usb2-2", "usb2-3",
"usb3-0", "usb3-1", "usb3-2";
};
+
+ i2c@c250000 {
+ power-sensor@44 {
+ compatible = "ti,ina219";
+ reg = <0x44>;
+ shunt-resistor = <2000>;
+ };
+ };
};
vdd_3v3_dp: regulator-vdd-3v3-dp {
--
2.34.1
^ permalink raw reply related [flat|nested] 3+ messages in thread
* [PATCH V2] arm64: tegra: Correct location of power-sensors for IGX Orin
2024-07-12 12:48 [PATCH] arm64: tegra: Correct location of INA219 for IGX Orin Jon Hunter
@ 2024-07-12 13:20 ` Jon Hunter
2024-08-27 14:28 ` Thierry Reding
0 siblings, 1 reply; 3+ messages in thread
From: Jon Hunter @ 2024-07-12 13:20 UTC (permalink / raw)
To: Rob Herring, Krzysztof Kozlowski, Conor Dooley, Thierry Reding
Cc: Vedant Deshpande, Brad Griffis, yiweiw, devicetree, linux-tegra,
Jon Hunter
The power-sensors are located on the carrier board and not the
module board and so update the IGX Orin device-tree files to fix this.
Fixes: 9152ed09309d ("arm64: tegra: Add power-sensors for Tegra234 boards")
Signed-off-by: Jon Hunter <jonathanh@nvidia.com>
---
Changes since V1:
- Updated subject from "arm64: tegra: Correct location of INA219 for IGX Orin"
- Moved both the INA219 and INA3221 power-sensors
.../boot/dts/nvidia/tegra234-p3701-0008.dtsi | 33 -------------------
.../boot/dts/nvidia/tegra234-p3740-0002.dtsi | 33 +++++++++++++++++++
2 files changed, 33 insertions(+), 33 deletions(-)
diff --git a/arch/arm64/boot/dts/nvidia/tegra234-p3701-0008.dtsi b/arch/arm64/boot/dts/nvidia/tegra234-p3701-0008.dtsi
index 553fa4ba1cd4..62c4fdad0b60 100644
--- a/arch/arm64/boot/dts/nvidia/tegra234-p3701-0008.dtsi
+++ b/arch/arm64/boot/dts/nvidia/tegra234-p3701-0008.dtsi
@@ -44,39 +44,6 @@ i2c@c240000 {
status = "okay";
};
- i2c@c250000 {
- power-sensor@41 {
- compatible = "ti,ina3221";
- reg = <0x41>;
- #address-cells = <1>;
- #size-cells = <0>;
-
- input@0 {
- reg = <0x0>;
- label = "CVB_ATX_12V";
- shunt-resistor-micro-ohms = <2000>;
- };
-
- input@1 {
- reg = <0x1>;
- label = "CVB_ATX_3V3";
- shunt-resistor-micro-ohms = <2000>;
- };
-
- input@2 {
- reg = <0x2>;
- label = "CVB_ATX_5V";
- shunt-resistor-micro-ohms = <2000>;
- };
- };
-
- power-sensor@44 {
- compatible = "ti,ina219";
- reg = <0x44>;
- shunt-resistor = <2000>;
- };
- };
-
rtc@c2a0000 {
status = "okay";
};
diff --git a/arch/arm64/boot/dts/nvidia/tegra234-p3740-0002.dtsi b/arch/arm64/boot/dts/nvidia/tegra234-p3740-0002.dtsi
index 527f2f3aee3a..377f518bd3e5 100644
--- a/arch/arm64/boot/dts/nvidia/tegra234-p3740-0002.dtsi
+++ b/arch/arm64/boot/dts/nvidia/tegra234-p3740-0002.dtsi
@@ -183,6 +183,39 @@ usb@3610000 {
phy-names = "usb2-0", "usb2-1", "usb2-2", "usb2-3",
"usb3-0", "usb3-1", "usb3-2";
};
+
+ i2c@c250000 {
+ power-sensor@41 {
+ compatible = "ti,ina3221";
+ reg = <0x41>;
+ #address-cells = <1>;
+ #size-cells = <0>;
+
+ input@0 {
+ reg = <0x0>;
+ label = "CVB_ATX_12V";
+ shunt-resistor-micro-ohms = <2000>;
+ };
+
+ input@1 {
+ reg = <0x1>;
+ label = "CVB_ATX_3V3";
+ shunt-resistor-micro-ohms = <2000>;
+ };
+
+ input@2 {
+ reg = <0x2>;
+ label = "CVB_ATX_5V";
+ shunt-resistor-micro-ohms = <2000>;
+ };
+ };
+
+ power-sensor@44 {
+ compatible = "ti,ina219";
+ reg = <0x44>;
+ shunt-resistor = <2000>;
+ };
+ };
};
vdd_3v3_dp: regulator-vdd-3v3-dp {
--
2.34.1
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH V2] arm64: tegra: Correct location of power-sensors for IGX Orin
2024-07-12 13:20 ` [PATCH V2] arm64: tegra: Correct location of power-sensors " Jon Hunter
@ 2024-08-27 14:28 ` Thierry Reding
0 siblings, 0 replies; 3+ messages in thread
From: Thierry Reding @ 2024-08-27 14:28 UTC (permalink / raw)
To: Rob Herring, Krzysztof Kozlowski, Conor Dooley, Thierry Reding,
Jon Hunter
Cc: Vedant Deshpande, Brad Griffis, yiweiw, devicetree, linux-tegra
From: Thierry Reding <treding@nvidia.com>
On Fri, 12 Jul 2024 14:20:20 +0100, Jon Hunter wrote:
> The power-sensors are located on the carrier board and not the
> module board and so update the IGX Orin device-tree files to fix this.
>
>
Applied, thanks!
[1/1] arm64: tegra: Correct location of power-sensors for IGX Orin
commit: b93679b8f165467e1584f9b23055db83f45c32ce
Best regards,
--
Thierry Reding <treding@nvidia.com>
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2024-08-27 14:28 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-07-12 12:48 [PATCH] arm64: tegra: Correct location of INA219 for IGX Orin Jon Hunter
2024-07-12 13:20 ` [PATCH V2] arm64: tegra: Correct location of power-sensors " Jon Hunter
2024-08-27 14:28 ` Thierry Reding
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).