forked from RobertCNelson/bb.org-overlays
-
Notifications
You must be signed in to change notification settings - Fork 175
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
b8dcdfb
commit 48677f7
Showing
1 changed file
with
40 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,40 @@ | ||
/* | ||
* Copyright (C) 2020 Deepak Khatri <deepaklorkhatri7@gmail.com> | ||
* | ||
* Virtual cape for /dev/bone/pwm/2 | ||
* | ||
* 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/; | ||
|
||
/* | ||
* Helper to show loaded overlays under: /proc/device-tree/chosen/overlays/ | ||
*/ | ||
&{/chosen} { | ||
overlays { | ||
BONE-PWM2-00A0 = __TIMESTAMP__; | ||
}; | ||
}; | ||
|
||
/* | ||
* Update the default pinmux of the pins. | ||
*/ | ||
&ocp { | ||
P8_19_pinmux { pinctrl-0 = <&P8_19_pwm_pin>; }; /* PWM A */ | ||
P8_13_pinmux { pinctrl-0 = <&P8_13_pwm_pin>; }; /* PWM B */ | ||
}; | ||
|
||
// See these files for the definition | ||
// https://github.com/beagleboard/BeagleBoard-DeviceTrees/src/arm/bbai-bone-buses.dtsi | ||
// https://github.com/beagleboard/BeagleBoard-DeviceTrees/src/arm/bbb-bone-buses.dtsi | ||
&bone_pwmss_2 { | ||
status = "okay"; | ||
}; | ||
|
||
&bone_pwm_2 { | ||
status = "okay"; | ||
}; |