Skip to contentSkip to conversation

ARM: dts: imx51-babbage: Add MC13892 ADC support

PATCH New Fabio Estevam 2 participants 3 messages Jul 26, 2018 – Aug 27, 2018

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/2 ARM: dts: imx51-babbage: Add MC13892 ADC support

The MC13892 Analog-to-Digital input pins (ADIN5-7) are exposed on the imx51-babbage board.

Pass the "fsl,mc13xxx-uses-adc" property so that the MC13892 ADC block can work.

---
 arch/arm/boot/dts/imx51-babbage.dts | 1 +
 1 file changed, 1 insertion(+)
arch/arm/boot/dts/imx51-babbage.dts +1 -0
index ba60b0c..35ee1b4 100644
@@ -204,6 +204,7 @@
 		reg = <0>;
 		interrupt-parent = <&gpio1>;
 		interrupts = <8 IRQ_TYPE_LEVEL_HIGH>;
+		fsl,mc13xxx-uses-adc;
 		fsl,mc13xxx-uses-rtc;
 
 		regulators {
Signature · 1 line
2.7.4
#1 lore raw

PATCH 2/2 ARM: imx_v6_v7_defconfig: Select CONFIG_SENSORS_MC13783_ADC

Select the MC13783/MC13892 ADC functionality by default.

---
 arch/arm/configs/imx_v6_v7_defconfig | 1 +
 1 file changed, 1 insertion(+)
arch/arm/configs/imx_v6_v7_defconfig +1 -0
index e2c1276..dda3910 100644
@@ -211,6 +211,7 @@ CONFIG_POWER_RESET=y
 CONFIG_POWER_RESET_SYSCON=y
 CONFIG_POWER_RESET_SYSCON_POWEROFF=y
 CONFIG_POWER_SUPPLY=y
+CONFIG_SENSORS_MC13783_ADC=y
 CONFIG_SENSORS_GPIO_FAN=y
 CONFIG_SENSORS_IIO_HWMON=y
 CONFIG_THERMAL_WRITABLE_TRIPS=y
Signature · 1 line
2.7.4
Applied
#2 lore raw

PATCH 1/2 ARM: dts: imx51-babbage: Add MC13892 ADC support

In reply to Fabio Estevam
Quoted 7 lines · Fabio Estevam

The MC13892 Analog-to-Digital input pins (ADIN5-7) are exposed on the imx51-babbage board.

Pass the "fsl,mc13xxx-uses-adc" property so that the MC13892 ADC block can work.

Applied both, thanks.