Home
last modified time | relevance | path

Searched hist:f1f7c58eeb86edb6ff3d57d657f56273864f26f5 (Results 1 – 1 of 1) sorted by relevance

/optee_os/core/kernel/
H A Ddt_driver.cf1f7c58eeb86edb6ff3d57d657f56273864f26f5 Tue Mar 29 13:42:49 UTC 2022 Clément Léger <clement.leger@bootlin.com> core: dt_driver: allow parsing of phandle == 0

In Linux, it is allowed to specify a null phandle which means it should
be skipped. Add support for this specific case by simply skipping over
it. This is needed to parse assigned-clock-parents which can use such
syntax. This is specified in the clock bindings [1] which says the
following:

To skip setting parent or rate of a clock its corresponding entry
should be set to 0, or can be omitted if it is not followed by any
non-zero entry

For example this is a valid device-tree description:

assigned-clocks = <foo>, <bar>;
assigned-clock-parents = <0> <bar_parent>;
assigned-clock-rates = <1000>;

Link: [1] https://www.kernel.org/doc/Documentation/devicetree/bindings/clock/clock-bindings.txt
Reviewed-by: Etienne Carriere <etienne.carriere@linaro.org>
Acked-by: Jens Wiklander <jens.wiklander@linaro.org>
Signed-off-by: Clément Léger <clement.leger@bootlin.com>