]> git.baikalelectronics.ru Git - arm-tf.git/commit
fix(stm32mp15-fdts): use /omit-if-no-ref/ for spi and i2c
authorVyacheslav Yurkov <uvv.mail@gmail.com>
Tue, 4 Apr 2023 18:58:13 +0000 (20:58 +0200)
committerVyacheslav Yurkov <uvv.mail@gmail.com>
Wed, 5 Apr 2023 17:46:21 +0000 (19:46 +0200)
commitd480df2116fc0d629d52f654bc218ee36251cb33
tree018dd21318b5f26b8ecea4e252d3a2cf0489f228
parentc38a17ed04132449ccb085c06ecb10d70aa0044c
fix(stm32mp15-fdts): use /omit-if-no-ref/ for spi and i2c

Use /omit-if-no-ref/ keyword in DT to remove extra device nodes only
when they are not used / not referenced.

If the board device tree only defines subnodes, dtc does not consider it
as usage, you have to specifically mention device's phandle, e.g.:

\ {
i2c6-phandle = <&i2c6>;
};

or in aliases section
aliases {
i2c6 = &i2c6;
};

Signed-off-by: Vyacheslav Yurkov <uvv.mail@gmail.com>
Change-Id: I431ecd93576f97fd021d82d23b93c659fc8f26b8
fdts/stm32mp15-bl2.dtsi
fdts/stm32mp15-bl32.dtsi