Zephyr™ OS Configuration via Device Tree
Andy Gross - Linaro IoT
Zephyr is a trademark of the Linux Foundation. *Other names and brands may be claimed as the property of others.
Zephyr OS Configuration via Device Tree Andy Gross - Linaro IoT - - PowerPoint PPT Presentation
Zephyr OS Configuration via Device Tree Andy Gross - Linaro IoT Zephyr is a trademark of the Linux Foundation. *Other names and brands may be claimed as the property of others. Configuration in Zephyr today Configuration is spread out
Zephyr is a trademark of the Linux Foundation. *Other names and brands may be claimed as the property of others.
Collect include information Preprocess and replace Final DTS containing raw data Build data structures
*Other names and brands may be claimed as the property of others.
DTS and DTSI files YAML Include files Compiled DTS Generated Include
properties:
type: string category: required description: compatible strings constraint: "arm,cmsdk-uart"
type: array description: mmio register space generation: define category: required
type: array category: required description: required interrupts generation: define ...
uart0: uart@40004000 { compatible = "arm,cmsdk-uart"; reg = <0x40004000 0x14>; interrupts = <0>; zephyr,irq-prio = <3>; baud-rate = <115200>; };
/* uart@40004000 */ #define ARM_CMSDK_UART_40004000_BASE_ADDRESS_0 #define ARM_CMSDK_UART_40004000_BAUD_RATE #define ARM_CMSDK_UART_40004000_IRQ_0 #define ARM_CMSDK_UART_40004000_SIZE_0 #define ARM_CMSDK_UART_40004000_ZEPHYR_IRQ_PRIO #define ARM_CMSDK_UART_40004000_BASE_ADDRESS #define ARM_CMSDK_UART_40004000_SIZE /* Fixup */ #define CMSDK_APB_UART_0_IRQ #define CONFIG_UART_CMSDK_APB_PORT0_IRQ_PRI #define CONFIG_UART_CMSDK_APB_PORT0_BAUD_RATE 0x40004000 115200 20 3 ARM_CMSDK_UART_40004000_BASE_ADDRESS_0 ARM_CMSDK_UART_40004000_SIZE_0 ARM_CMSDK_UART_40004000_IRQ_0 ARM_CMSDK_UART_40004000_ZEPHYR_IRQ_PRIO ARM_CMSDK_UART_40004000_BAUD_RATE
*Other names and brands may be claimed as the property of others.