Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
test for correctness
debian@beaglebone:~$ more /lib/firmware/PRU-GPIO-EXAMPLE2.dts
/dts-v1/;
/plugin/;
/ {
compatible = "ti,beaglebone", "ti,beaglebone-black", "ti,beaglebone-green";
// identification
part-number = "PRU-GPIO-EXAMPLE2";
version = "00A0";
// resources
exclusive-use =
"P8.11",
"P8.13",
"P8.12",
"pru0",
"P9.12",
"P9.24",
"pru1";
// pinmux
fragment@0 {
target = <&am33xx_pinmux>;
__overlay__ {
pinctrl_test: PRU-GPIO-EXAMPLE2-pins{
pinctrl-single,pins= <
0x078 0x07 /* p9_12 60 op m7 */
0x184 0x2f /* p9_24 15 in m7 */
0x034 0x37 /* p8_11 45 in m7 */
0x030 0x27 /* p8_12 44 in m7 */
0x024 0x2f /* p8_13 23 in m7 */
>;
};
};
};
// PRU
fragment@1 {
target = <&ocp>;
__overlay__ {
test_helper: helper {
compatible = "bone-pinmux-helper";
status = "okay";
pinctrl-names = "default", "gpio";
pinctrl-0 = <&pinctrl_test>;
};
};
};
fragment@2 {
target = <&pruss>;
__overlay__ {
status = "okay";
};
};
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.