STRUCT TEGRA_PINGROUP(9)
π struct tegra_pingroup(9) β kernel API manual, but make it make sense
okay so bestie, this is the page for struct tegra_pingroup from the kernel API manual (yes, the manual name is literally struct tegra_pingroup(9), we're doing this β¨). It's the little struct that describes one group of pins inside the Tegra pin controller, and honestly? It ate. Let's get into it π
πΈ NAME πΈ
struct tegra_pingroup β the Tegra pin group π
Breaking down the doc-comment fields real quick, because they're part of the name blurb and we don't skip:
@nameβ the name of the pin group.@pinsβ an array of pin IDs included in this pin group.@npinsβ the number of entries in@pins.@funcsβ the mux functions which can be muxed onto this group.
periodt. now the actual struct π
β¨ SYNOPSIS β¨
struct tegra_pingroup {
const char *name;
const unsigned *pins;
u8 npins;
u8 funcs[4];
s32 mux_reg;
s32 pupd_reg;
s32 tri_reg;
s32 drv_reg;
u32 mux_bank:2;
u32 pupd_bank:2;
u32 tri_bank:2;
u32 drv_bank:2;
s32 mux_bit:6;
s32 pupd_bit:6;
s32 tri_bit:6;
s32 einput_bit:6;
s32 odrain_bit:6;
s32 lock_bit:6;
s32 ioreset_bit:6;
s32 rcv_sel_bit:6;
s32 hsm_bit:6;
s32 sfsel_bit:6;
s32 schmitt_bit:6;
s32 lpmd_bit:6;
s32 drvdn_bit:6;
s32 drvup_bit:6;
s32 slwr_bit:6;
s32 slwf_bit:6;
s32 lpdr_bit:6;
s32 drvtype_bit:6;
s32 drvdn_width:6;
s32 drvup_width:6;
s32 slwr_width:6;
s32 slwf_width:6;
u32 parked_bitmask;
};
look at all those bitfields, she's got range ππ₯
π¦ Members π¦
okay, storytime for every single one of these, no skips, no cap:
mux_regβ Mux register offset. This register contains the mux, einput, odrain, lock, ioreset, rcv_sel parameters. the icon of the group fr.pupd_regβ Pull-up/down register offset.tri_regβ Tri-state register offset.drv_regβ Drive fields register offset. This register contains hsm, schmitt, lpmd, drvdn, drvup, slwr, slwf, and drvtype parameters. she's carrying the whole drive squad πmux_bankβ Mux register bank.pupd_bankβ Pull-up/down register bank.tri_bankβ Tri-state register bank.drv_bankβ Drive fields register bank.mux_bitβ Mux register bit.pupd_bitβ Pull-up/down register bit.tri_bitβ Tri-state register bit.einput_bitβ Enable-input register bit.odrain_bitβ Open-drain register bit.lock_bitβ Lock register bit.ioreset_bitβ IO reset register bit.rcv_sel_bitβ Receiver select bit.hsm_bitβ High Speed Mode register bit.sfsel_bitβ GPIO/SFIO selection register bit.schmitt_bitβ Schmitt register bit.lpmd_bitβ Low Power Mode register bit.drvdn_bitβ Drive Down register bit.drvup_bitβ Drive Up register bit.slwr_bitβ Slew Rising register bit.slwf_bitβ Slew Falling register bit.lpdr_bitβ Base driver enabling bit.drvtype_bitβ Drive type register bit.drvdn_widthβ Drive Down field width.drvup_widthβ Drive Up field width.slwr_widthβ Slew Rising field width.slwf_widthβ Slew Falling field width.parked_bitmaskβ Parked register mask.0if unsupported. (so if you see a0, she simply doesn't do that, don't come for her π)
π Description π
okay this is the important lore, bestie, listen up π«Ά
-1 in a *_reg field means that feature is unsupported for this group. *_bank and *_reg values are irrelevant when *_reg is -1. And when *_reg is valid, *_bit may be -1 to indicate an unsupported feature. so like, -1 is the universal "not my department" flag, iykyk π
Now the big picture: this struct is a representation of a group of pins (possibly just one pin β yes, a group of one, she's quirky like that) in the Tegra pin controller. Each group allows some parameter or parameters to be configured. The most common is mux function selection. Many others exist such as pull-up/down, tri-state, etc.
And here's the why: Tegra's pin controller is complex; certain groups may only support configuring certain parameters, hence each parameter is optional. it's giving "every group is a main character with her own boundaries" π
fr fr though β everything here is optional by design. don't assume a group can do a thing just because some other group can. vibe check the -1s first.
π SEE ALSO π
- Kernel file
./drivers/pinctrl/tegra/pinctrl-tegra.h struct tegra_function(9)struct tegra_pinctrl_soc_data(9)
go read those next, bestie, they're the friend group π§β¨
and that's the whole page! π this came from ./drivers/pinctrl/tegra, dated October 2026 β mwah, slay, drink water, and go configure some pins ππ¦π
π¦ where this page comes from
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms