forked from ProjectHexapod/bbbStuff
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
added the original sources for the ADC and am33xx overlays
- Loading branch information
Showing
2 changed files
with
133 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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"; | ||
}; | ||
}; | ||
}; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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"; | ||
}; | ||
}; | ||
}; |