diff mbox series

[v2,2/7] ARM: dts: meson8m2: use the Meson8m2 specific SAR ADC compatible

Message ID 20190118225227.6516-3-martin.blumenstingl@googlemail.com (mailing list archive)
State Mainlined
Commit c0ad99a2deacc7eab5f9bd9dd176bd4cbeea91e2
Headers show
Series ARM: dts: meson: chip temperature (hwmon) support | expand

Commit Message

Martin Blumenstingl Jan. 18, 2019, 10:52 p.m. UTC
The SAR ADC on Meson8m2 is slightly different compared to Meson8. The
ADC functionality is identical but the calibration of the internal
thermal sensor is different.

Use the Meson8m2 specific compatible so the temperature sensor is
calibrated correctly on boards using the Meson8m2 SoC.

Signed-off-by: Martin Blumenstingl <martin.blumenstingl@googlemail.com>
---
 arch/arm/boot/dts/meson8m2.dtsi | 4 ++++
 1 file changed, 4 insertions(+)
diff mbox series

Patch

diff --git a/arch/arm/boot/dts/meson8m2.dtsi b/arch/arm/boot/dts/meson8m2.dtsi
index d1a28c2adac5..bb87b251e16d 100644
--- a/arch/arm/boot/dts/meson8m2.dtsi
+++ b/arch/arm/boot/dts/meson8m2.dtsi
@@ -50,6 +50,10 @@ 
 	};
 };
 
+&saradc {
+	compatible = "amlogic,meson8m2-saradc", "amlogic,meson-saradc";
+};
+
 &wdt {
 	compatible = "amlogic,meson8m2-wdt", "amlogic,meson8b-wdt";
 };