LKML Archive on lore.kernel.org
help / color / mirror / Atom feed
* Custom module to add device tree overlay - kernel 4.14-rc4
@ 2018-04-26 13:07 Kévin Carli
  0 siblings, 0 replies; only message in thread
From: Kévin Carli @ 2018-04-26 13:07 UTC (permalink / raw)
  To: linux-kernel

Hi,

I made a custom module using the kernel API (of_fdt_unflatten_tree + 
of_resolve_phandles + of_overlay_create ) to dynamically (after my 
kernel has booted) insert an overlay.

It seems to work just fine, I can see the result in /proc/device-tree, 
but theses changes are not propagated to /dev or to 
/sys/devices/plateform. So I can't use what I have added using my overlay.

I first though that the device/plateform driver was not re-probed, but 
even if I include a line like this one :

platform_device_register_simple("at91_rtc", -1, NULL, 0);

it does not work :/.

So I was wondering if someone knows a way to dynamically add an overlay 
and can see the changes. (not only in /proc/device-tree).

PS: I don't use U-Boot, nor configfs, and I don't want to use my overlay 
through the bootloader.

Best regards,
Carli-K

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2018-04-26 13:07 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-04-26 13:07 Custom module to add device tree overlay - kernel 4.14-rc4 Kévin Carli

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).