of: dynamic: Add interfaces for creating device node dynamically
authorLizhi Hou <lizhi.hou@amd.com>
Tue, 15 Aug 2023 17:19:56 +0000 (10:19 -0700)
committerRob Herring <robh@kernel.org>
Tue, 22 Aug 2023 19:56:09 +0000 (14:56 -0500)
commitb544fc2b8606d718d0cc788ff2ea2492871df488
tree1445d3452f3152d6763edce639e81268d466baef
parentef04d2801c5d239b83932f8ce97af1d4a1ec1cf7
of: dynamic: Add interfaces for creating device node dynamically

of_changeset_create_node() creates device node dynamically and attaches
the newly created node to a changeset.

Expand of_changeset APIs to handle specific types of properties.
    of_changeset_add_prop_string()
    of_changeset_add_prop_string_array()
    of_changeset_add_prop_u32_array()

Signed-off-by: Clément Léger <clement.leger@bootlin.com>
Signed-off-by: Lizhi Hou <lizhi.hou@amd.com>
Link: https://lore.kernel.org/r/1692120000-46900-2-git-send-email-lizhi.hou@amd.com
Signed-off-by: Rob Herring <robh@kernel.org>
drivers/of/dynamic.c
drivers/of/unittest.c
include/linux/of.h