[U-Boot] [PATCH 09/27] arm64: zynqmp: Add label property to all ina226 on m-a2197-01

Michal Simek michal.simek at xilinx.com
Mon Oct 14 10:16:12 UTC 2019


Label property is adding capability to distiguish chips from each other
when iio framework is used.

Signed-off-by: Michal Simek <michal.simek at xilinx.com>
---

 arch/arm/dts/zynqmp-m-a2197-01-revA.dts | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/arch/arm/dts/zynqmp-m-a2197-01-revA.dts b/arch/arm/dts/zynqmp-m-a2197-01-revA.dts
index bfa86afddb28..4e41b6dfde16 100644
--- a/arch/arm/dts/zynqmp-m-a2197-01-revA.dts
+++ b/arch/arm/dts/zynqmp-m-a2197-01-revA.dts
@@ -209,36 +209,42 @@
 			vcc_aux: ina226 at 42 { /* u86 */
 				compatible = "ti,ina226";
 				#io-channel-cells = <1>;
+				label = "ina226-vcc-aux";
 				reg = <0x42>;
 				shunt-resistor = <5000>;
 			};
 			vcc_ram: ina226 at 43 { /* u81 */
 				compatible = "ti,ina226";
 				#io-channel-cells = <1>;
+				label = "ina226-vcc-ram";
 				reg = <0x43>;
 				shunt-resistor = <5000>;
 			};
 			vcc1v1_lp4: ina226 at 46 { /* u96 */
 				compatible = "ti,ina226";
 				#io-channel-cells = <1>;
+				label = "ina226-vcc1v1-lp4";
 				reg = <0x46>;
 				shunt-resistor = <5000>;
 			};
 			vcc1v2_lp4: ina226 at 47 { /* u98 */
 				compatible = "ti,ina226";
 				#io-channel-cells = <1>;
+				label = "ina226-vcc1v2-lp4";
 				reg = <0x47>;
 				shunt-resistor = <5000>;
 			};
 			vdd1_1v8_lp4: ina226 at 48 { /* u100 */
 				compatible = "ti,ina226";
 				#io-channel-cells = <1>;
+				label = "ina226-vdd1-1v8-lp4";
 				reg = <0x48>;
 				shunt-resistor = <5000>;
 			};
 			vcc0v6_lp4: ina226 at 49 { /* u101 */
 				compatible = "ti,ina226";
 				#io-channel-cells = <1>;
+				label = "ina226-vcc0v6-lp4";
 				reg = <0x49>;
 				shunt-resistor = <5000>;
 			};
-- 
2.17.1



More information about the U-Boot mailing list