SCMDI2C(4)

πŸ“¦ version 11.0, in nixpkgs unstable

πŸ’… SCMDI2C(4) β€” the Kernel Interfaces Manual page, but make it make sense πŸŽ€

ok so bestie, this is scmdi2c, section 4 of the Kernel Interfaces Manual, and it is literally the glow-up era for talking to a motor driver. sit down, grab a boba, we're going in πŸ§‹βœ¨


✨ NAME ✨

scmdi2c β€” the I2C frontend to the Sparkfun Serial Controlled Motor Driver. yep, that's the whole vibe. it's the little connector piece that lets your kernel chat with the SCMD over I2C πŸ¦‹


🌸 SYNOPSIS 🌸

scmd* at iic? addr 0x58
scmd* at iic? addr 0x59
scmd* at iic? addr 0x5a
scmd* at iic? addr 0x5b
scmd* at iic? addr 0x5c
scmd* at iic? addr 0x5d
scmd* at iic? addr 0x5e
scmd* at iic? addr 0x5f
scmd* at iic? addr 0x60
scmd* at iic? addr 0x61

ten whole addresses, bestie. 0x58 through 0x61, all lined up like a little squad. pick your fave, they're all valid πŸ’–


πŸ‘‘ DESCRIPTION πŸ‘‘

okay so here's the tea β˜• β€” the scmdi2c driver provides the I2C frontend attachment for the Sparkfun SCMD device. that's it, that's the job. it's the I2C-flavored side of the operation, the frontend, the vibe liaison. it's giving "I'm the connector, not the whole personality" and honestly? respect 🫢


⭐ SYSCTL VARIABLES ⭐

the following sysctl(3) variables are inherited from scmd(4). yes, inherited. like a hand-me-down but make it kernel 🧚

  • hw.scmd0.debug β€” if the driver is compiled with SCMD_DEBUG, this node will appear, and you can use it to set the debugging level. no SCMD_DEBUG? no node. that's the deal πŸ™ˆ
lowkey important: this node only exists when SCMD_DEBUG was compiled in. don't go looking for it otherwise, you'll just be confused and sad 😭

πŸŽ€ FILES πŸŽ€

  • /dev/scmdu β€” character device allowing access to the register space of a main u, SCMD device. that's your backstage pass to the registers, slay πŸ’…

πŸ”₯ SEE ALSO πŸ”₯

run don't walk to these besties:


🌈 HISTORY 🌈

the scmdi2c driver first appeared in NetBSD 10.0. a debut. an era. periodt ✨


πŸ’œ AUTHORS πŸ’œ

the scmdi2c driver was written by Brad Spencer <brad@anduin.eldar.org>. thank you for your service, king πŸ«‘πŸ’–


aaaand that's the page, bestie πŸ¦‹ ngl this one was short and sweet and I am obsessed. this little writeup is from the scmdi2c(4) page as shipped on Debian, dated December 1, 2021 β€” so if you're reading it later, hi from the past, hope your I2C bus is termination-happy πŸŽ€πŸ’€βœ¨

πŸ“¦ where this page comes from