Update 'Default/standard mode'
parent
4e03b45390
commit
4aed0c959d
|
@ -51,7 +51,7 @@ JTAG, if OpenOCD doesn't specify a default to the probe.
|
||||||
|
|
||||||
### SPI
|
### SPI
|
||||||
|
|
||||||
The SPI interface can be used in two ways: using a serprog USB-CDC interface, mostly useful for interacting with SPI flash chips, and a kernel module, for generic SPI operations, though the Linux `spidev` interface.
|
The SPI interface can be used in two ways: using a serprog USB-CDC interface, mostly useful for interacting with SPI flash chips, and [a kernel module](Linux-kernel-modules), for generic SPI operations, though the Linux `spidev` interface.
|
||||||
|
|
||||||
For Serprog, use the following `flashrom` options (if `/dev/ttyACM1` is the USB
|
For Serprog, use the following `flashrom` options (if `/dev/ttyACM1` is the USB
|
||||||
serial device on your machine corresponding to the Serprog CDC interface of the
|
serial device on your machine corresponding to the Serprog CDC interface of the
|
||||||
|
@ -67,7 +67,7 @@ analyzer, but I don't have a SPI flash chip to test it on.
|
||||||
|
|
||||||
### I2C
|
### I2C
|
||||||
|
|
||||||
I2C is exposed only through a Linux kernel module, which can then be used by standard Linux I2C tools (such as utilities from the `i2c-tools` package, eg. `i2cget`, `i2cset`, `i2cdetect`). The `i2c-dev` module needs to be loaded for this to work.
|
I2C is exposed only through [a Linux kernel module](Linux-kernel-modules), which can then be used by standard Linux I2C tools (such as utilities from the `i2c-tools` package, eg. `i2cget`, `i2cset`, `i2cdetect`). The `i2c-dev` module needs to be loaded for this to work.
|
||||||
|
|
||||||
Using `i2cdetect -l`, you should be able to see which I2C device belongs to
|
Using `i2cdetect -l`, you should be able to see which I2C device belongs to
|
||||||
the tool:
|
the tool:
|
||||||
|
@ -84,7 +84,7 @@ i2c-13 i2c AUX C/DDI C/PHY C I2C adapter
|
||||||
|
|
||||||
### Temperature sensor
|
### Temperature sensor
|
||||||
|
|
||||||
If the board/MCU has a temperature sensor, it is made available as a Linux hwmon kernel module, making the output available for use in `lm_sensors` output.
|
If the board/MCU has a temperature sensor, it is made available as [a Linux hwmon kernel module](Linux-kernel-modules), making the output available for use in `lm_sensors` output.
|
||||||
|
|
||||||
Additionally, it can also be configured to appear on the device's I2C bus as an emulated I2C device, pretending to be a JC42-compliant temperature sensor (more precisely, the Microchip MCP9808). This can be achieved using [`dmctl tempsensor`](dmctl#tempsensor) (with `BUSNUM` the number from the above
|
Additionally, it can also be configured to appear on the device's I2C bus as an emulated I2C device, pretending to be a JC42-compliant temperature sensor (more precisely, the Microchip MCP9808). This can be achieved using [`dmctl tempsensor`](dmctl#tempsensor) (with `BUSNUM` the number from the above
|
||||||
`i2cdetect -l` output):
|
`i2cdetect -l` output):
|
||||||
|
|
Loading…
Reference in New Issue