From 31e775d93d7293eff83093cb09f921b084a360ea Mon Sep 17 00:00:00 2001 From: "M@" Date: Sun, 2 Mar 2014 23:11:07 -0500 Subject: [PATCH] added the original sources for the ADC and am33xx overlays --- overlays/BB-ADC-00A0.dts | 59 ++++++++++++++++++++++++++++ overlays/am33xx_pwm-00A0.dts | 74 ++++++++++++++++++++++++++++++++++++ 2 files changed, 133 insertions(+) create mode 100644 overlays/BB-ADC-00A0.dts create mode 100644 overlays/am33xx_pwm-00A0.dts diff --git a/overlays/BB-ADC-00A0.dts b/overlays/BB-ADC-00A0.dts new file mode 100644 index 0000000..88f6fc6 --- /dev/null +++ b/overlays/BB-ADC-00A0.dts @@ -0,0 +1,59 @@ +/* + * Copyright (C) 2012 Texas Instruments Incorporated - http://www.ti.com/ + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License version 2 as + * published by the Free Software Foundation. + */ +/dts-v1/; +/plugin/; + +/ { + compatible = "ti,beaglebone", "ti,beaglebone-black"; + + /* identification */ + part-number = "BB-ADC"; + + /* state the resources this cape uses */ + exclusive-use = + /* the pin header uses */ + "P9.39", /* AIN0 */ + "P9.40", /* AIN1 */ + "P9.37", /* AIN2 */ + "P9.38", /* AIN3 */ + "P9.33", /* AIN4 */ + "P9.36", /* AIN5 */ + "P9.35", /* AIN6 */ + /* the hardware IP uses */ + "tscadc"; + + fragment@0 { + target = <&ocp>; + __overlay__ { + /* avoid stupid warning */ + #address-cells = <1>; + #size-cells = <1>; + + tscadc { + compatible = "ti,ti-tscadc"; + reg = <0x44e0d000 0x1000>; + + interrupt-parent = <&intc>; + interrupts = <16>; + ti,hwmods = "adc_tsc"; + status = "okay"; + + adc { + ti,adc-channels = <0 1 2 3 4 5 6 7>; + }; + }; + + test_helper: helper { + compatible = "bone-iio-helper"; + vsense-name = "AIN0", "AIN1", "AIN2", "AIN3", "AIN4", "AIN5", "AIN6", "AIN7"; + vsense-scale = <100 100 100 100 100 100 100 100>; + status = "okay"; + }; + }; + }; +}; diff --git a/overlays/am33xx_pwm-00A0.dts b/overlays/am33xx_pwm-00A0.dts new file mode 100644 index 0000000..fa8d770 --- /dev/null +++ b/overlays/am33xx_pwm-00A0.dts @@ -0,0 +1,74 @@ +/* + * Copyright (C) 2013 CircuitCo + * Copyright (C) 2013 Texas Instruments + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License version 2 as + * published by the Free Software Foundation. + */ +/dts-v1/; +/plugin/; + +/ { + compatible = "ti,beaglebone", "ti,beaglebone-black"; + + /* identification */ + part-number = "test1"; + version = "00A0"; + + fragment@0 { + target = <&epwmss0>; + __overlay__ { + status = "okay"; + }; + }; + + fragment@1 { + target = <&ehrpwm0>; + __overlay__ { + status = "okay"; + }; + }; + + fragment@2 { + target = <&ecap0>; + __overlay__ { + status = "okay"; + }; + }; + + fragment@3 { + target = <&epwmss1>; + __overlay__ { + status = "okay"; + }; + }; + + fragment@4 { + target = <&ehrpwm1>; + __overlay__ { + status = "okay"; + }; + }; + + fragment@5 { + target = <&epwmss2>; + __overlay__ { + status = "okay"; + }; + }; + + fragment@6 { + target = <&ehrpwm2>; + __overlay__ { + status = "okay"; + }; + }; + + fragment@7 { + target = <&ecap2>; + __overlay__ { + status = "okay"; + }; + }; +};