lorforlinux

P2.32 pruin pulldown - custom overlay - 6/24/20

Jun 24th, 2020
56
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.96 KB | None | 0 0
  1. /* custom overlay
  2. * cd to /opt/source/bb.org-overlays
  3. * create file -> $ vi /src/arm/custom-00A0.dts
  4. * Copy and paste the content there
  5. * make it -> $ make src/arm/custom-00A0.dtbo
  6. * now install it -> $ cp src/arm/custom-00A0.dtbo /lib/firmware/
  7. * update /bot/uEnv.txt, add this to any addr*
  8. * reboot your board
  9. */
  10. /dts-v1/;
  11. /plugin/;
  12.  
  13. #include <dt-bindings/gpio/gpio.h>
  14. #include <dt-bindings/pinctrl/am33xx.h>
  15. #include <dt-bindings/interrupt-controller/irq.h>
  16.  
  17. /*
  18. * Helper to show loaded overlays under: /proc/device-tree/chosen/overlays/
  19. */
  20. &{/chosen} {
  21. overlays {
  22. custom-00A0 = __TIMESTAMP__;
  23. };
  24. };
  25.  
  26. /*
  27. * Free up the pins used by the cape from the pinmux helpers.
  28. */
  29.  
  30. &ocp {
  31. P2_32_pinmux { status = "disabled"; };
  32. };
  33.  
  34. &am33xx_pinmux {
  35. custom_pins: pinmux_custom_pins {
  36. pinctrl-single,pins = <
  37. AM33XX_IOPAD(0x0998, PIN_INPUT_PULLDOWN | MUX_MODE6) /* mcasp0_axr0.pru0_in2 */
  38. >;
  39. };
  40. };
Add Comment
Please, Sign In to add comment