From e54fafbb6ac87dfb8587748ca592c5efed5158f2 Mon Sep 17 00:00:00 2001 From: Max Krummenacher Date: Mon, 18 Aug 2014 16:45:26 +0200 Subject: stmpe-adc: enable it for Colibri/Apalis iMX6 imx6qdl-apalis.dtsi: enable stmpe-adc in device tree defconfig: add stmpe-adc to minimal defconfig --- arch/arm/boot/dts/imx6qdl-apalis.dtsi | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) (limited to 'arch/arm/boot') diff --git a/arch/arm/boot/dts/imx6qdl-apalis.dtsi b/arch/arm/boot/dts/imx6qdl-apalis.dtsi index 3c809132db51..f6e7ab6ef259 100644 --- a/arch/arm/boot/dts/imx6qdl-apalis.dtsi +++ b/arch/arm/boot/dts/imx6qdl-apalis.dtsi @@ -364,7 +364,7 @@ id = <0>; blocks = <0x5>; irq-trigger = <0x1>; - stmpe_touchscreen { + stmpe_touchscreen { compatible = "st,stmpe-ts"; reg = <0>; /* 3.25 MHz ADC clock speed */ @@ -389,6 +389,17 @@ /* 5 ms touch detect interrupt delay */ st,touch-det-delay = <5>; }; + stmpe_adc { + compatible = "st,stmpe-adc"; + /* 3.25 MHz ADC clock speed */ + st,adc-freq = <1>; + /* 12-bit ADC */ + st,mod-12b = <1>; + /* internal ADC reference */ + st,ref-sel = <0>; + /* ADC converstion time: 80 clocks */ + st,sample-time = <4>; + }; }; }; -- cgit v1.2.3