aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/boot
diff options
context:
space:
mode:
authorSamuel Ortiz <sameo@linux.intel.com>2013-06-13 06:14:59 -0400
committerSamuel Ortiz <sameo@linux.intel.com>2013-06-13 06:14:59 -0400
commitd8c5d658f425bd25bbfb137f2617f59ed4fdee7d (patch)
treeba1607f9cc0fb8c3ac246a78490d3e5b8438f44e /arch/arm/boot
parenta1ace0aac5a83b859c2ddeb5dfb032b9b6dcd9cf (diff)
parent1460c152c53335b5403045d056502eda1204c33a (diff)
Merge tag 'am335x_tsc-adc' of git://breakpoint.cc/bigeasy/linux
A complete refurbished series inclunding: - DT support for the MFD, TSC and ADC driver & platform device support, which has no users, has been killed. - iio_map from last series is gone and replaced by proper nodes in the device tree. - suspend fixes which means correct data structs are taken and no interrupt storm - fifo split which should problem with TSC & ADC beeing used at the same time - The ADC channels are now checked before blindly applied. That means the touch part reads X, Y and Z coordinates and does not mix them up. Same goes for the IIO ADC driver. - The IIO ADC driver now creates files named in_voltageX_raw where X represents the ADC line instead of a number starting at 0. A read from this file can return -EBUSY in case touch is busy and the ADC didn't collect a value.
Diffstat (limited to 'arch/arm/boot')
-rw-r--r--arch/arm/boot/dts/am335x-evm.dts14
-rw-r--r--arch/arm/boot/dts/am33xx.dtsi18
2 files changed, 32 insertions, 0 deletions
diff --git a/arch/arm/boot/dts/am335x-evm.dts b/arch/arm/boot/dts/am335x-evm.dts
index 0423298a26fe..0fa4c7f9539f 100644
--- a/arch/arm/boot/dts/am335x-evm.dts
+++ b/arch/arm/boot/dts/am335x-evm.dts
@@ -244,3 +244,17 @@
244&cpsw_emac1 { 244&cpsw_emac1 {
245 phy_id = <&davinci_mdio>, <1>; 245 phy_id = <&davinci_mdio>, <1>;
246}; 246};
247
248&tscadc {
249 status = "okay";
250 tsc {
251 ti,wires = <4>;
252 ti,x-plate-resistance = <200>;
253 ti,coordiante-readouts = <5>;
254 ti,wire-config = <0x00 0x11 0x22 0x33>;
255 };
256
257 adc {
258 ti,adc-channels = <4 5 6 7>;
259 };
260};
diff --git a/arch/arm/boot/dts/am33xx.dtsi b/arch/arm/boot/dts/am33xx.dtsi
index 1460d9b88adf..4ad7797b97b6 100644
--- a/arch/arm/boot/dts/am33xx.dtsi
+++ b/arch/arm/boot/dts/am33xx.dtsi
@@ -404,6 +404,24 @@
404 ti,hwmods = "wkup_m3"; 404 ti,hwmods = "wkup_m3";
405 }; 405 };
406 406
407 tscadc: tscadc@44e0d000 {
408 compatible = "ti,am3359-tscadc";
409 reg = <0x44e0d000 0x1000>;
410 interrupt-parent = <&intc>;
411 interrupts = <16>;
412 ti,hwmods = "adc_tsc";
413 status = "disabled";
414
415 tsc {
416 compatible = "ti,am3359-tsc";
417 };
418 am335x_adc: adc {
419 #io-channel-cells = <1>;
420 compatible = "ti,am3359-adc";
421 };
422
423 };
424
407 gpmc: gpmc@50000000 { 425 gpmc: gpmc@50000000 {
408 compatible = "ti,am3352-gpmc"; 426 compatible = "ti,am3352-gpmc";
409 ti,hwmods = "gpmc"; 427 ti,hwmods = "gpmc";