Skip to content

Commit

Permalink
added the original sources for the ADC and am33xx overlays
Browse files Browse the repository at this point in the history
  • Loading branch information
dunmatt committed Mar 3, 2014
1 parent 4b83a32 commit 31e775d
Show file tree
Hide file tree
Showing 2 changed files with 133 additions and 0 deletions.
59 changes: 59 additions & 0 deletions overlays/BB-ADC-00A0.dts
Original file line number Diff line number Diff line change
@@ -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";
};
};
};
};
74 changes: 74 additions & 0 deletions overlays/am33xx_pwm-00A0.dts
Original file line number Diff line number Diff line change
@@ -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";
};
};
};

0 comments on commit 31e775d

Please sign in to comment.