[1/6] ARM: dts: meson8m2: use the Meson8m2 specific SAR ADC compatible
diff mbox series

Message ID 20190112130649.23838-2-martin.blumenstingl@googlemail.com
State Mainlined
Commit c0ad99a2deacc7eab5f9bd9dd176bd4cbeea91e2
Headers show
Series
  • ARM: dts: meson: chip temperature (hwmon) support
Related show

Commit Message

Martin Blumenstingl Jan. 12, 2019, 1:06 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(+)

Patch
diff mbox series

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";
 };