All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/4] Add new helpers to pylibfdt
@ 2021-12-25 13:25 Luca Weiss
       [not found] ` <20211225132558.167123-1-luca-IfPCFPJWly+lVyrhU4qvOw@public.gmane.org>
  0 siblings, 1 reply; 19+ messages in thread
From: Luca Weiss @ 2021-12-25 13:25 UTC (permalink / raw)
  To: devicetree-compiler-u79uwXL29TY76Z2rM5mHXA; +Cc: Luca Weiss

Allow decoding properties as stringlist and {u,}int{32,64} arrays,
wrap fdt_get_path from the C library and add a useful helper
getprop_or_none that returns None instead of throwing an exception when
a property isn't found.

Luca Weiss (4):
  pylibfdt: add Property.as_stringlist()
  pylibfdt: add Property.as_*int*_array()
  pylibfdt: add FdtRo.get_path()
  pylibfdt: add FdtRo.getprop_or_none()

 pylibfdt/libfdt.i       | 53 +++++++++++++++++++++++++++++++++++++++++
 tests/pylibfdt_tests.py | 33 +++++++++++++++++++++++++
 tests/test_props.dts    |  4 ++++
 3 files changed, 90 insertions(+)

-- 
2.34.1


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

end of thread, other threads:[~2022-01-25  4:50 UTC | newest]

Thread overview: 19+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-12-25 13:25 [PATCH 0/4] Add new helpers to pylibfdt Luca Weiss
     [not found] ` <20211225132558.167123-1-luca-IfPCFPJWly+lVyrhU4qvOw@public.gmane.org>
2021-12-25 13:25   ` [PATCH 1/4] pylibfdt: add Property.as_stringlist() Luca Weiss
     [not found]     ` <20211225132558.167123-2-luca-IfPCFPJWly+lVyrhU4qvOw@public.gmane.org>
2021-12-28  4:29       ` David Gibson
2022-01-05 22:48       ` Rob Herring
     [not found]         ` <CAL_JsqLvQdm1kqMED8G03LEsm+xgyY2A+F+FD8DYeAy5o+eiGg-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2022-01-18 10:08           ` David Gibson
2022-01-20 19:24             ` Luca Weiss
2022-01-21  0:12               ` David Gibson
2021-12-25 13:25   ` [PATCH 2/4] pylibfdt: add Property.as_*int*_array() Luca Weiss
     [not found]     ` <20211225132558.167123-3-luca-IfPCFPJWly+lVyrhU4qvOw@public.gmane.org>
2021-12-28  4:30       ` David Gibson
2021-12-25 13:25   ` [PATCH 3/4] pylibfdt: add FdtRo.get_path() Luca Weiss
     [not found]     ` <20211225132558.167123-4-luca-IfPCFPJWly+lVyrhU4qvOw@public.gmane.org>
2021-12-28  4:33       ` David Gibson
2021-12-25 13:25   ` [PATCH 4/4] pylibfdt: add FdtRo.getprop_or_none() Luca Weiss
     [not found]     ` <20211225132558.167123-5-luca-IfPCFPJWly+lVyrhU4qvOw@public.gmane.org>
2021-12-28  5:20       ` David Gibson
2021-12-28  8:34       ` Simon Glass
     [not found]         ` <CAPnjgZ3wun92Q1vMSEem9CH6A8MWNbKZNaepf4j4Ttmf-GNPtQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2022-01-22 10:36           ` Luca Weiss
2022-01-24 17:57             ` Simon Glass
     [not found]               ` <CAPnjgZ1NX2Q884T_LNUOLJT8=RKZXEj2z7uxzQF4MrHiKObZvA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2022-01-24 20:50                 ` Luca Weiss
2022-01-24 21:28                   ` Simon Glass
2022-01-25  4:50             ` David Gibson

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.