SCMDI2C(4)
π 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 withSCMD_DEBUG, this node will appear, and you can use it to set the debugging level. noSCMD_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:
iic(4)spi(4)scmdi2c(4)(yes, it references itself. main character energy, we stan π)scmdspi(4)scmdctl(1)sysctl(8)
π 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
- nixpkgs unstable: netbsd-source 11.0
- Copyright (c) 2021 Brad Spencer <brad@anduin.eldar.org>
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms