Skip to content

Commit

Permalink
I2C device tree descriptions in TOML (#238)
Browse files Browse the repository at this point in the history
This work adds a description of I2C in TOML as part of an application
definition, allowing this description to be pulled out of hand-written
code, and into code that is automatically generated as part of the
build process. This allows for Humility to know the I2C device tree
based on the archive -- which in turn allows for much more robust
tooling for I2C and I2C-based protcols like PMBus. In addition to
adding support for I2C in TOML and definitions for every platform that
supports I2C, this work also:

- Adds a preliminary Sidecar image
- Adds QSPI support for the Nucleo board
- Eliminates the notion of `Port::Default`
- Adds a HIF sleep function and I2C bulk write function
- Adds a HIF QSPI function to verify an image
- Corrects the HIF QSPI error conditions
  • Loading branch information
bcantrill committed Nov 5, 2021
1 parent 87fcc58 commit 7a1f2d5
Show file tree
Hide file tree
Showing 45 changed files with 2,792 additions and 1,206 deletions.
146 changes: 144 additions & 2 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ members = [
"kern",
"ringbuf",
"userlib",
"sidecar",
"stage0",
"hypocalls",
"lpc55_romapi",
Expand Down
15 changes: 15 additions & 0 deletions build-i2c/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
[package]
name = "build-i2c"
version = "0.1.0"
authors = ["Bryan Cantrill <bryan@oxide.computer>"]
edition = "2018"

[dependencies]
build-util = {path = "../build-util"}
serde = { version = "1.0.114", features = ["derive"] }
indexmap = { version = "1.4.0", features = ["serde-1"] }
anyhow = "1.0.31"
cfg-if = "0.1.10"
multimap = "0.8.3"
convert_case = "0.4"

Loading

0 comments on commit 7a1f2d5

Please sign in to comment.