fdtgrep: Allow propagating properties up to supernodes
authorSimon Glass <sjg@chromium.org>
Sun, 17 Dec 2023 16:36:22 +0000 (09:36 -0700)
committerSimon Glass <sjg@chromium.org>
Sun, 31 Dec 2023 14:21:02 +0000 (07:21 -0700)
commit7a06cc2027c0169c462da63a68fa269c0d59a950
tree3f585f308a1e44f27e25e6b9572d28c57871452f
parent0b2e47be2c6b37e6026e36ed3a8656a7ed598ce1
fdtgrep: Allow propagating properties up to supernodes

The existing bootph binding is defined such that properties in a
subnode are also implied in the supernode also, as in this example:

   buttons {
      /* bootph,pre-ram is implied by btn1 */
      compatible = "gpio-keys";

      btn1 {
         bootph,pre-ram;
         gpios = <&gpio_a 3 0>;
         label = "button1";
         linux,code = <BTN_1>;
      };

Provide an option to implement this in fdtgrep.

Signed-off-by: Simon Glass <sjg@chromium.org>
tools/fdtgrep.c