Skip to contentSkip to conversation

arm64: dts: ls1028a: Add temperature sensor node

PATCH Superseded Yuantian Tang 2 participants 2 messages May 28, 2019 – Jun 5, 2019

Subsystems (2)

v2 of 3 Superseded Latest is v3 →

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 arm64: dts: ls1028a: Add temperature sensor node

Add nxp sa56004 chip node for temperature monitor.

---
v2:
- change the node name and add vcc-supply

 arch/arm64/boot/dts/freescale/fsl-ls1028a-qds.dts | 15 +++++++++++++++
 arch/arm64/boot/dts/freescale/fsl-ls1028a-rdb.dts | 15 +++++++++++++++
 2 files changed, 30 insertions(+)
arch/arm64/boot/dts/freescale/fsl-ls1028a-qds.dts +15 -0
index 6571d0483c7a..f12e4f510d6e 100644
@@ -47,6 +47,15 @@
 		regulator-always-on;
 	};
 
+	sb_3v3: regulator-sb3v3 {
+		compatible = "regulator-fixed";
+		regulator-name = "3v3_vbus";
+		regulator-min-microvolt = <3300000>;
+		regulator-max-microvolt = <3300000>;
+		regulator-boot-on;
+		regulator-always-on;
+	};
+
 	sound {
 		compatible = "simple-audio-card";
 		simple-audio-card,format = "i2s";
@@ -147,6 +156,12 @@
 				compatible = "atmel,24c512";
 				reg = <0x57>;
 			};
+
+			temperature-sensor@4c {
+				compatible = "nxp,sa56004";
+				reg = <0x4c>;
+				vcc-supply = <&sb_3v3>;
+			};
 		};
 
 		i2c@5 {
arch/arm64/boot/dts/freescale/fsl-ls1028a-rdb.dts +15 -0
index 235ca3a83dc3..e64c28983ec9 100644
@@ -43,6 +43,15 @@
 		regulator-always-on;
 	};
 
+	sb_3v3: regulator-sb3v3 {
+		compatible = "regulator-fixed";
+		regulator-name = "3v3_vbus";
+		regulator-min-microvolt = <3300000>;
+		regulator-max-microvolt = <3300000>;
+		regulator-boot-on;
+		regulator-always-on;
+	};
+
 	sound {
 		compatible = "simple-audio-card";
 		simple-audio-card,format = "i2s";
@@ -132,6 +141,12 @@
 				compatible = "nxp,pcf2129";
 				reg = <0x51>;
 			};
+
+			temperature-sensor@4c {
+				compatible = "nxp,sa56004";
+				reg = <0x4c>;
+				vcc-supply = <&sb_3v3>;
+			};
 		};
 	};
 };
Signature · 1 line
2.17.1
#1 lore raw
Quoted 32 lines · Yuantian Tang

Add nxp sa56004 chip node for temperature monitor.

---
v2:
- change the node name and add vcc-supply

 arch/arm64/boot/dts/freescale/fsl-ls1028a-qds.dts | 15 +++++++++++++++
 arch/arm64/boot/dts/freescale/fsl-ls1028a-rdb.dts | 15 +++++++++++++++
 2 files changed, 30 insertions(+)
arch/arm64/boot/dts/freescale/fsl-ls1028a-qds.dts +9 -0
index 6571d0483c7a..f12e4f510d6e 100644
@@ -47,6 +47,15 @@
 		regulator-always-on;
 	};
 
+	sb_3v3: regulator-sb3v3 {
+		compatible = "regulator-fixed";
+		regulator-name = "3v3_vbus";
+		regulator-min-microvolt = <3300000>;
+		regulator-max-microvolt = <3300000>;
+		regulator-boot-on;
+		regulator-always-on;
+	};
+
 	sound {
 		compatible = "simple-audio-card";
 		simple-audio-card,format = "i2s";

arch/arm64/boot/dts/freescale/fsl-ls1028a-qds.dts line 160

Quoted 5 lines
arch/arm64/boot/dts/freescale/fsl-ls1028a-qds.dts +2 -0
@@ -147,6 +156,12 @@
 				compatible = "atmel,24c512";
 				reg = <0x57>;
 			};
+
+			temperature-sensor@4c {

Keep these i2c devices sort in unit-address order.

Shawn

Quoted 43 lines
arch/arm64/boot/dts/freescale/fsl-ls1028a-qds.dts +4 -0
+				compatible = "nxp,sa56004";
+				reg = <0x4c>;
+				vcc-supply = <&sb_3v3>;
+			};
 		};
 
 		i2c@5 {
arch/arm64/boot/dts/freescale/fsl-ls1028a-rdb.dts +15 -0
index 235ca3a83dc3..e64c28983ec9 100644
@@ -43,6 +43,15 @@
 		regulator-always-on;
 	};
 
+	sb_3v3: regulator-sb3v3 {
+		compatible = "regulator-fixed";
+		regulator-name = "3v3_vbus";
+		regulator-min-microvolt = <3300000>;
+		regulator-max-microvolt = <3300000>;
+		regulator-boot-on;
+		regulator-always-on;
+	};
+
 	sound {
 		compatible = "simple-audio-card";
 		simple-audio-card,format = "i2s";
@@ -132,6 +141,12 @@
 				compatible = "nxp,pcf2129";
 				reg = <0x51>;
 			};
+
+			temperature-sensor@4c {
+				compatible = "nxp,sa56004";
+				reg = <0x4c>;
+				vcc-supply = <&sb_3v3>;
+			};
 		};
 	};
 };
Signature · 1 line
2.17.1