All of lore.kernel.org
 help / color / mirror / Atom feed
* Dynamic Loading and unnloading of Device tree(dtb)
@ 2016-07-25 11:17 ` Raul Piper
  0 siblings, 0 replies; 6+ messages in thread
From: Raul Piper @ 2016-07-25 11:17 UTC (permalink / raw)
  To: kernelnewbies

Hi,
Where can I find the example for the  dynamic Loading of the device
tree and its corresponding device driver.
How can I build the dts with or without the kernel source.

I am getting this error whenever I am trying to build the below sample
dts file using the dtc compiler.

dtc -O dtb -o leds-ns2.dtb leds-ns2.dts


Error: leds-ns2.dts:1.1-2 syntax error
FATAL ERROR: Unable to parse input tree

Below is the content  of the leds-ns2.dts

#include <dt-bindings/leds/leds-ns2.h>

 ns2-leds {
          compatible = "lacie,ns2-leds";

          blue-sata {
                  label = "ns2:blue:sata";
                  slow-gpio = <&gpio0 29 0>;
                  cmd-gpio = <&gpio0 30 0>;
                  modes-map = <NS_V2_LED_OFF  0 1
                               NS_V2_LED_ON   1 0
                               NS_V2_LED_ON   0 0
                               NS_V2_LED_SATA 1 1>;
          };
  };

Thanks,
R

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2016-08-04  3:53 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-07-25 11:17 Dynamic Loading and unnloading of Device tree(dtb) Raul Piper
2016-07-25 11:17 ` Raul Piper
2016-08-03 19:36 ` Frank Rowand
2016-08-03 19:36   ` Frank Rowand
2016-08-04  3:53   ` Raul Piper
2016-08-04  3:53     ` Raul Piper

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.