RK_GPIO(4)

πŸ“¦ version 15.1, in freebsd 14.5, freebsd 15.1

πŸ’– rk_gpio β€” the RockChip GPIO driver, explained bestie-style πŸ’–

okay so this is rk_gpio(4), and it lives in the Kernel Interfaces Manual section of the FreeBSD docs (section 4 = kernel interfaces, iykyk). it's a device driver page, it's short, it's iconic, and honestly the way it does exactly one thing and does it well is main character energy. let's get into it ✨


🌸 NAME 🌸

rk_gpio β€” the driver for the gpio controller on RockChip SoCs 🫢

like, SoC = system on a chip, and this little guy is the one talking to the GPIO controller on RockChip ones. that's it. that's the whole vibe. πŸ’…


πŸŽ€ SYNOPSIS πŸŽ€

options SOC_ROCKCHIP_RK3328

yes bestie, that's the whole synopsis. one line. it's giving minimalist. you drop that options SOC_ROCKCHIP_RK3328 into your kernel config and boom, you're in business. no cap. πŸ”₯


πŸ¦‹ DESCRIPTION πŸ¦‹

so the rk_gpio device driver provides support for the gpio controller device that's present on RockChip SoC. 🌈

that's literally it β€” that's the job, that's the whole assignment, and it ate. it handles GPIO on RockChip silicon, which means pins you can poke at from userspace (hi gpioctl(8), we'll get to you πŸ‘€). lowkey a glow-up for your board. ✨


πŸ’œ HARDWARE πŸ’œ

the current version of the rk_gpio driver supports the gpio banks with one of the following compatible strings:

  • rockchip,gpio-bank ⭐
so fr fr, if your device tree has that compatible string, the driver's gonna vibe check it and say "yeah that's mine." if it doesn't, don't come crying to me. πŸ₯²

πŸ” SEE ALSO πŸ”

  • gpiobus(4) β€” the bus your gpio stuff hangs out on 🚌
  • gpioctl(8) β€” the userspace tool where you actually poke the pins πŸ‘†

go read them, they're friends of this page. iykyk. πŸ’–


πŸ•°οΈ HISTORY πŸ•°οΈ

the rk_gpio device driver first appeared in FreeBSD 12.0. πŸŽ€

a classic, an original, a founding mother. we respect her. πŸ‘‘


πŸ‘‘ AUTHORS πŸ‘‘

the rk_gpio device driver and this manpage were written by Emmanuel Vadot <manu@freebsd.org>. 🫢

writing the driver AND the docs? that's not just main character energy, that's main character energy with a side of "i'll do it myself." we stan a contributor who documents their own work. πŸ’œ


🌟 cute sign-off 🌟

and that's the page, bestie! this one came to you from the Debian side of things, dated Apr 26, 2018, and it's the RK_GPIO(4) manual page β€” no cap, go forth and blink an LED for me. πŸ¦‹πŸŒΈπŸ’…

reminder: the facts above are the facts above β€” every option, string, version and name was kept exactly, i just added the sparkle ✨
πŸ“¦ where this page comes from