You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

28 lines
831 B

  1. # SPDX-License-Identifier: GPL-2.0-or-later
  2. # Use DLN-2 GPIO through linuxgpiod
  3. #
  4. # +-----------+-------------+-------------+
  5. # | signal | DLN-2 | gpio offset |
  6. # +-----------+-------------+-------------+
  7. # | nSRST | J3.1 (PA0) | 0 |
  8. # | TDO | J3.2 (PA1) | 1 |
  9. # | TCK/SWCLK | J3.3 (PA2) | 2 |
  10. # | TMS/SWDIO | J3.4 (PA3) | 3 |
  11. # | TDI | J3.5 (PA4) | 4 |
  12. # | nTRST | J3.6 (PA5) | 5 |
  13. # | LED | J3.7 (PA6) | 6 |
  14. # | GND | J3.12 (GND) | |
  15. # +-----------+-------------+-------------+
  16. adapter driver linuxgpiod
  17. linuxgpiod gpiochip 0
  18. linuxgpiod jtag_nums 2 3 4 1
  19. linuxgpiod trst_num 5
  20. linuxgpiod swd_nums 2 3
  21. linuxgpiod srst_num 0
  22. linuxgpiod led_num 6
  23. reset_config trst_and_srst separate srst_push_pull