From 51e7c559672b7f1d73d264ecc1feea7af5ed885c Mon Sep 17 00:00:00 2001 From: Ulf Magnusson Date: Thu, 26 Dec 2019 12:40:53 +0100 Subject: [PATCH] doc: dts: Fix outdated list of generated macro names The *_ON_DEV_NAME macros generated from /chosen properties changed prefix from DT_* to CONFIG_* in commit 8ce0cf0126 ("kconfig: Convert device tree chosen properties to new kconfigfunctions"), but the devicetree documentation still lists the old names. Update the documentation with the correct anmes. Also remove an outdated reference to DT_SRAM_SIZE/DT_SRAM_BASE_REFERENCE, and give a complete list of generated macros. Signed-off-by: Ulf Magnusson --- doc/guides/dts/index.rst | 21 ++++++++++----------- 1 file changed, 10 insertions(+), 11 deletions(-) diff --git a/doc/guides/dts/index.rst b/doc/guides/dts/index.rst index f21d28bf925..9f54bb234b0 100644 --- a/doc/guides/dts/index.rst +++ b/doc/guides/dts/index.rst @@ -476,27 +476,26 @@ The full set of Zephyr-specific ``chosen`` nodes follows: :header-rows: 1 * - ``chosen`` node name - - Generated symbol + - Generated macros * - ``zephyr,flash`` - - ``CONFIG_FLASH`` + - ``DT_FLASH_BASE_ADDRESS``/``DT_FLASH_SIZE``/``DT_FLASH_ERASE_BLOCK_SIZE``/``DT_FLASH_WRITE_BLOCK_SIZE`` * - ``zephyr,sram`` - - ``CONFIG_SRAM_SIZE``/``CONFIG_SRAM_BASE_ADDRESS`` - (via ``DT_SRAM_SIZE``/``DT_SRAM_BASE_ADDRESS``) + - ``CONFIG_SRAM_BASE_ADDRESS``/``CONFIG_SRAM_SIZE`` * - ``zephyr,ccm`` - - ``DT_CCM`` + - ``DT_CCM_BASE_ADDRESS``/``DT_CCM_SIZE`` * - ``zephyr,console`` - - ``DT_UART_CONSOLE_ON_DEV_NAME`` + - ``CONFIG_UART_CONSOLE_ON_DEV_NAME`` * - ``zephyr,shell-uart`` - - ``DT_UART_SHELL_ON_DEV_NAME`` + - ``CONFIG_UART_SHELL_ON_DEV_NAME`` * - ``zephyr,bt-uart`` - - ``DT_BT_UART_ON_DEV_NAME`` + - ``CONFIG_BT_UART_ON_DEV_NAME`` * - ``zephyr,uart-pipe`` - - ``DT_UART_PIPE_ON_DEV_NAME`` + - ``CONFIG_UART_PIPE_ON_DEV_NAME`` * - ``zephyr,bt-mon-uart`` - - ``DT_BT_MONITOR_ON_DEV_NAME`` + - ``CONFIG_BT_MONITOR_ON_DEV_NAME`` * - ``zephyr,uart-mcumgr`` - - ``DT_UART_MCUMGR_ON_DEV_NAME`` + - ``CONFIG_UART_MCUMGR_ON_DEV_NAME`` Adding support for devicetree in drivers