Difference between revisions of "Spi device tree source code"
Jump to navigation
Jump to search
(Created page with "2022-08-11 Thursday Notes on SPI device tree source, with goal to add SPI device to modified RPi Pico DTS files, which build firmware to run on Sparkfun DEV-18288 board. I...") |
m (Add sample device bindings file in yaml format.) |
||
| Line 5: | Line 5: | ||
| − | In Zephyr RTOS' supported board dts files find | + | In Zephyr RTOS' supported board dts files find . . . |
| + | |||
| + | |||
| + | |||
| + | |||
| + | == [[#top|^]] YAML device bindings files == | ||
| + | |||
| + | To support a typical development kit or custom board with multiple peripherals we need a device bindings file comparable to this ... bindings file: | ||
| + | |||
| + | # ~/projects-sandbox/workspace-for-rpi/zephyr/boards/arm/nrf9160dk_nrf9160/nrf9160dk_nrf9160.yaml | ||
| + | |||
| + | <pre> | ||
| + | identifier: nrf9160dk_nrf9160 | ||
| + | name: nRF9160-DK-NRF9160 | ||
| + | type: mcu | ||
| + | arch: arm | ||
| + | toolchain: | ||
| + | - gnuarmemb | ||
| + | - xtools | ||
| + | - zephyr | ||
| + | ram: 88 | ||
| + | flash: 256 | ||
| + | supported: | ||
| + | - arduino_gpio | ||
| + | - arduino_i2c | ||
| + | - gpio | ||
| + | - i2c | ||
| + | - pwm | ||
| + | - spi | ||
| + | - watchdog | ||
| + | - counter | ||
| + | </pre> | ||
| + | |||
| + | |||
| + | |||
| + | <!-- comentario --> | ||
Revision as of 22:18, 11 August 2022
2022-08-11 Thursday
Notes on SPI device tree source, with goal to add SPI device to modified RPi Pico DTS files, which build firmware to run on Sparkfun DEV-18288 board.
In Zephyr RTOS' supported board dts files find . . .
^ YAML device bindings files
To support a typical development kit or custom board with multiple peripherals we need a device bindings file comparable to this ... bindings file:
- ~/projects-sandbox/workspace-for-rpi/zephyr/boards/arm/nrf9160dk_nrf9160/nrf9160dk_nrf9160.yaml
identifier: nrf9160dk_nrf9160 name: nRF9160-DK-NRF9160 type: mcu arch: arm toolchain: - gnuarmemb - xtools - zephyr ram: 88 flash: 256 supported: - arduino_gpio - arduino_i2c - gpio - i2c - pwm - spi - watchdog - counter