Standard Device Tree Properties

Learning Rust with Songs · 3:26

Listen on 93

Lyrics

[Verse 1]
When the kernel boots and needs to know
What hardware lives where, here's how we show
The device tree speaks in properties clear
Compatible strings make the driver appear
Matching names that bridge the gap
Between silicon and software map

[Chorus]
Compatible reg interrupts status too
These four properties will see you through
Compatible tells us what device this is
Reg shows the address where memory lives
Interrupts connect the hardware call
Status says if it works at all

[Verse 2]
The reg property holds the treasure map
Memory addresses where registers snap
Base address first then the size
Thirty-two bit pairs before your eyes
Physical addresses in the space
Where memory-mapped registers take their place

[Chorus]
Compatible reg interrupts status too
These four properties will see you through
Compatible tells us what device this is
Reg shows the address where memory lives
Interrupts connect the hardware call
Status says if it works at all

[Verse 3]
When hardware needs to signal fast
Interrupt numbers help the message last
Controller parent and the line number
Wakes the CPU from its slumber
Edge or level, high or low
The binding docs will let you know

[Bridge]
Status property keeps it simple and clean
Okay means go and disabled means
Skip this node and move along
Even when the hardware's strong
Sometimes boards just don't connect
What the chip designer did perfect

[Chorus]
Compatible reg interrupts status too
These four properties will see you through
Compatible tells us what device this is
Reg shows the address where memory lives
Interrupts connect the hardware call
Status says if it works at all

[Outro]
From bootloader through kernel init
These properties make the hardware fit
Device tree standard properties shine
Bridging hardware to software design

← Device Tree Source Syntax Basics | Device Tree Compilation Process →