Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add ingenic-gpio package #1228

Merged
merged 1 commit into from
Jan 3, 2024
Merged

add ingenic-gpio package #1228

merged 1 commit into from
Jan 3, 2024

Conversation

gtxaspec
Copy link
Contributor

@gtxaspec gtxaspec commented Jan 3, 2024

add ingenic-gpio package for controlling gpio pinmux

root@openipc-t31:~# ingenic-gpio  
Usage: ingenic-gpio <show|[GPIO_DEF [COMMAND VALUE]]>
GPIO diagnostic tool for Ingenic Tomahawk Series SoCs.

Commands:
  inl                        Read input level
  int                        Set interrupt
  msk                        Set mask
  pat0                       Set pattern 0 (data)
  pat1                       Set pattern 1 (direction)
  gpio_input                 Shortcut of `int 0', `msk 1', `pat1 1'
  gpio_output                Shortcut of `int 0', `msk 1', `pat1 0'
  read                       Shortcut of `inl'
  write                      Shortcut of `pat0'
  func                       Shortcut of `int 0', `msk 0', `pat1 <1>', `pat0 <0>'
  drive <value>              Set drive strength (0-3 for 2ma, 4ma, 8ma, 12ma)

Examples:
  ingenic-gpio show
  ingenic-gpio  pc23 gpio_input
  ingenic-gpio  pc23 read
  ingenic-gpio  pa00 gpio_output
  ingenic-gpio  pa00 write 1
  ingenic-gpio  pb27 func 0  # Set PB27 as 24MHz clock output on X1000

Copy link
Member

@flyrouter flyrouter left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you

@flyrouter flyrouter merged commit d3a4d68 into OpenIPC:master Jan 3, 2024
93 checks passed
@gtxaspec gtxaspec deleted the jzdiag1 branch January 9, 2024 00:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants