lorforlinux

BBAI_BB-UART5-00A0.dts - 6/17/20

Jun 17th, 2020
43
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.31 KB | None | 0 0
  1. /*
  2. * Copyright (C) 2020 Deepak Khatri <[email protected]>
  3. *
  4. * Virtual cape for BBAI UART5 on connector pins P9.13 (TX) P9.11 (RX)
  5. *
  6. * This program is free software; you can redistribute it and/or modify
  7. * it under the terms of the GNU General Public License version 2 as
  8. * published by the Free Software Foundation.
  9. */
  10.  
  11. /dts-v1/;
  12. /plugin/;
  13.  
  14. #include <dt-bindings/gpio/gpio.h>
  15. #include <dt-bindings/pinctrl/dra.h>
  16. #include <dt-bindings/interrupt-controller/irq.h>
  17.  
  18. &{/chosen} {
  19. overlays {
  20. BBAI_BB-UART5-00A0 = __TIMESTAMP__;
  21. };
  22. };
  23.  
  24. &dra7_pmx_core {
  25. bb_uart5_pins: pinmux_bb_uart5_pins {
  26. pinctrl-single,pins = <
  27. DRA7XX_CORE_IOPAD(BBAI_P9_13A, PIN_OUTPUT | MUX_MODE4) /* mcasp3_axr1.uart5_txd */
  28. DRA7XX_CORE_IOPAD(BBAI_P9_13B, MUX_MODE15)
  29. DRA7XX_CORE_IOPAD(BBAI_P9_11A, PIN_INPUT | MUX_MODE4) /* mcasp3_axr0.uart5_rxd */
  30. DRA7XX_CORE_IOPAD(BBAI_P9_11B, MUX_MODE15)
  31. // DRA7XX_CORE_IOPAD(BBAI_P8_06, PIN_OUTPUT | MUX_MODE2) /* mmc3_dat3.uart5_rtsn */
  32. // DRA7XX_CORE_IOPAD(BBAI_P8_05, PIN_INPUT | MUX_MODE2) /* mmc3_dat2.uart5_ctsn */
  33. >;
  34. };
  35. };
  36.  
  37. &uart5 {
  38. status = "okay";
  39. pinctrl-names = "default";
  40. pinctrl-0 = <&bb_uart5_pins>;
  41. symlink = "bone/uart/4";
  42. };
Add Comment
Please, Sign In to add comment