Advertisement
Guest User

Untitled

a guest
Jan 23rd, 2015
260
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.27 KB | None | 0 0
  1. DTO:
  2. /*
  3. * pru dts file BB-BONE-PRU-00A0.dts
  4. */
  5. /dts-v1/;
  6. /plugin/;
  7.  
  8. / {
  9. compatible = "ti,beaglebone", "ti,beaglebone-black";
  10.  
  11. /* identification */
  12. part-number = "BB-BONE-PRU";
  13. version = "00A0";
  14.  
  15. exclusive-use =
  16. "P8.12";
  17.  
  18. fragment@0 {
  19. target = <&am33xx_pinmux>;
  20. __overlay__ {
  21. mygpio: pinmux_mygpio{
  22. pinctrl-single,pins = <
  23. 0x30 0x06
  24. >;
  25. };
  26. };
  27. };
  28.  
  29. fragment@1 {
  30. target = <&ocp>;
  31. __overlay__ {
  32. test_helper: helper {
  33. compatible = "bone-pinmux-helper";
  34. pinctrl-names = "default";
  35. pinctrl-0 = <&mygpio>;
  36. status = "okay";
  37. };
  38. };
  39. };
  40.  
  41. fragment@2{
  42. target = <&pruss>;
  43. __overlay__ {
  44. status = "okay";
  45. };
  46. };
  47. };
  48.  
  49.  
  50. =========================
  51. Load DTO:
  52. sudo sh -c "echo cape-bone-pru > /sys/devices/bone_capemgr.9/slots"
  53.  
  54. =========================
  55. Also enable PRU (?):
  56. # echo BB-BONE-PRU-01 > /sys/devices/bone_capemgr.*/slots
  57.  
  58. ==========================
  59. See if Switch attached to P8.12 is pressed:
  60. TODO:
  61. QBBC TODO, r31.t14
  62. MOV R31.b0, PRU0_ARM_INTERRUPT+16
  63. HALT
  64.  
  65.  
  66. =========================
  67. RESULT: the interrupt is never fired (note, if the qbbc is removed, the interrupt does work)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement