Skip to contentSkip to conversation

arm64: dts: allwinner: a64-amarula-relic: Add STLM75 sensor

PATCH In review Jagan Teki 2 participants 2 messages Mar 1, 2019 – Mar 4, 2019

Subsystems (2)
lore
Share & tools
lore

Jagan Teki

author
#0 lore raw

PATCH v2 1/1 arm64: dts: allwinner: a64-amarula-relic: Add STLM75 sensor

Amarula A64 Relic has STLM75 sensor for digital temperature and thermal watchdog.

Add support for it.

---
Changes for v2:
- change node name from temp to sensor
- compatible patches applied in linux-next,
fyi:
https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/commit/?id=985e225142cf0cb826401f5448763f13ee712b3a

 .../dts/allwinner/sun50i-a64-amarula-relic.dts    | 15 +++++++++++++++
 1 file changed, 15 insertions(+)
arch/arm64/boot/dts/allwinner/sun50i-a64-amarula-relic.dts +15 -0
index 6cb2b7f0c817..3575db216016 100644
@@ -34,6 +34,21 @@
 	status = "okay";
 };
 
+&i2c0 {
+	pinctrl-names = "default";
+	pinctrl-0 = <&i2c0_pins>;
+	status = "okay";
+
+	sensor@48 {
+		compatible = "st,stlm75";
+		reg = <0x48>;
+	};
+};
+
+&i2c0_pins {
+	bias-pull-up;
+};
+
 &mmc1 {
 	pinctrl-names = "default";
 	pinctrl-0 = <&mmc1_pins>;
Signature · 1 line
2.18.0.321.gffc6fa0e3
#1 lore raw
Quoted 6 lines · Jagan Teki

Amarula A64 Relic has STLM75 sensor for digital temperature and thermal watchdog.

Add support for it.

Applied thanks

Maxime

Signature · 3 lines
Maxime Ripard, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com