summaryrefslogtreecommitdiffstats
path: root/sys/boot
diff options
context:
space:
mode:
authorloos <loos@FreeBSD.org>2014-05-17 19:06:46 +0000
committerloos <loos@FreeBSD.org>2014-05-17 19:06:46 +0000
commit7e7928763170f8b10771c099cf46224daaf67bca (patch)
tree836e93aec06dd9083febeae2d2b6642897e6ace0 /sys/boot
parent1253f26158ac37c8e2dbe8087203a2059aa2bb56 (diff)
downloadFreeBSD-src-7e7928763170f8b10771c099cf46224daaf67bca.zip
FreeBSD-src-7e7928763170f8b10771c099cf46224daaf67bca.tar.gz
Adds the ADC driver for TI AM3xxx SoC family.
The ADC has a 12bit resolution and its raw output can be read via sysctl(8) interface. The driver allows the setup of ADC clock, samples average and open delay (the number of clock cycles to wait before start the conversion). The TSC_ADC module is set in the general purpose mode (no touchscreen support). Tested on Beaglebone-black. Written based on AM335x TRM.
Diffstat (limited to 'sys/boot')
-rw-r--r--sys/boot/fdt/dts/arm/am335x.dtsi7
1 files changed, 7 insertions, 0 deletions
diff --git a/sys/boot/fdt/dts/arm/am335x.dtsi b/sys/boot/fdt/dts/arm/am335x.dtsi
index 35cecf2..a016385 100644
--- a/sys/boot/fdt/dts/arm/am335x.dtsi
+++ b/sys/boot/fdt/dts/arm/am335x.dtsi
@@ -75,6 +75,13 @@
interrupt-parent = <&AINTC>;
};
+ adc0: adc@44E0D000 {
+ compatible = "ti,adc";
+ reg = <0x44E0D000 0x2000>;
+ interrupts = < 16 >;
+ interrupt-parent = <&AINTC>;
+ };
+
GPIO: gpio {
#gpio-cells = <3>;
compatible = "ti,gpio";
OpenPOWER on IntegriCloud