diff options
author | Max Krummenacher <max.krummenacher@toradex.com> | 2014-08-18 16:45:26 +0200 |
---|---|---|
committer | Max Krummenacher <max.krummenacher@toradex.com> | 2014-08-20 11:45:30 +0200 |
commit | e54fafbb6ac87dfb8587748ca592c5efed5158f2 (patch) | |
tree | c79ed1bcc9600ae46ca97cf4c59fa869cb1dddbf /arch/arm/boot | |
parent | d518ee721d4f1cd35c913c17bf9f89a84532f37e (diff) |
stmpe-adc: enable it for Colibri/Apalis iMX6
imx6qdl-apalis.dtsi: enable stmpe-adc in device tree
defconfig: add stmpe-adc to minimal defconfig
Diffstat (limited to 'arch/arm/boot')
-rw-r--r-- | arch/arm/boot/dts/imx6qdl-apalis.dtsi | 13 |
1 files changed, 12 insertions, 1 deletions
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>; + }; }; }; |