Skip to contentSkip to conversation

arm64: dts: ls208xa: add power monitor chip node

PATCH New Yuantian Tang 2 participants 2 messages Dec 25, 2017 – Dec 26, 2017

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 arm64: dts: ls208xa: add power monitor chip node

Ina220 chip was used on ls208xardb platform to monitor power comsumption. So add ina220 chip node in dts to enable power consumption monitor feature.

---
 arch/arm64/boot/dts/freescale/fsl-ls208xa-rdb.dtsi |   11 +++++++++++
 1 files changed, 11 insertions(+), 0 deletions(-)
arch/arm64/boot/dts/freescale/fsl-ls208xa-rdb.dtsi +11 -0
index 9a1d0d2..a75132c 100644
@@ -95,6 +95,17 @@
 			};
 		};
 
+		i2c at 2 {
+			#address-cells = <1>;
+			#size-cells = <0>;
+			reg = <0x02>;
+			ina220 at 40 {
+				compatible = "ti,ina220";
+				reg = <0x40>;
+				shunt-resistor = <500>;
+			};
+		};
+
 		i2c at 3 {
 			#address-cells = <1>;
 			#size-cells = <0>;
Signature · 1 line
1.7.1
#1 lore raw

PATCH 1/1 arm64: dts: ls208xa: add power monitor chip node

Quoted 14 lines · Yuantian Tang

Ina220 chip was used on ls208xardb platform to monitor power comsumption. So add ina220 chip node in dts to enable power consumption monitor feature.

---
 arch/arm64/boot/dts/freescale/fsl-ls208xa-rdb.dtsi |   11 +++++++++++
 1 files changed, 11 insertions(+), 0 deletions(-)
arch/arm64/boot/dts/freescale/fsl-ls208xa-rdb.dtsi +0 -0
index 9a1d0d2..a75132c 100644

arch/arm64/boot/dts/freescale/fsl-ls208xa-rdb.dtsi line 101

Quoted 7 lines
arch/arm64/boot/dts/freescale/fsl-ls208xa-rdb.dtsi +4 -0
@@ -95,6 +95,17 @@
 			};
 		};
 
+		i2c at 2 {
+			#address-cells = <1>;
+			#size-cells = <0>;
+			reg = <0x02>;

We generally have a newline between property list and child node. I fixed it up and applied the patch.

Shawn

Quoted 18 lines
arch/arm64/boot/dts/freescale/fsl-ls208xa-rdb.dtsi +7 -0
+			ina220 at 40 {
+				compatible = "ti,ina220";
+				reg = <0x40>;
+				shunt-resistor = <500>;
+			};
+		};
+
 		i2c at 3 {
 			#address-cells = <1>;
 			#size-cells = <0>;
Signature · 7 lines
1.7.1


_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel at lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel