On Mon, 24 Aug 2026 17:12:57 +0400, Alexey Charkov wrote:
> U-Boot's copy of the libfdt Python bindings in
> scripts/dtc/pylibfdt/libfdt.i_shipped was last synced wholesale in 2019,
> by commit 903fe17aa8c8 ("pylibfdt: Sync up with upstream"), against dtc
> commit 430419c28100. Since then it has only picked up individual fixes,
> so it has drifted a long way behind dtc, which is now at v1.8.1-19.
>
> Tom asked for an audit of the divergence when reviewing the FdtSw growth
> patch [1]; this is the result. Bring in every missing change from upstream
> as an individual commit, referencing its upstream sibling.
>
> [...]
Applied to u-boot/next, thanks!
[01/17] pylibfdt: Cast property length to Py_ssize_t
commit: 9f6d57eaef77a17fafe0d28e4a103786ae2de55f
[02/17] pylibfdt: Restore the upstream bytearray() in getprop()
commit: b737e5cf2bc8d9bd545451a3a2876465bbafb8fa
[03/17] pylibfdt: Fix Python crash on getprop deallocation
commit: 04e670ea3630efadd654a940d893137a3c6c2c9e
[04/17] pylibfdt: Add Property.as_stringlist()
commit: d0c7b9e65bfd30b93aadbd5d0143b2911f8278c1
[05/17] pylibfdt: Add Property.as_*int*_array()
commit: f41cecc1fe9442939f1a81684db1f467f3bd4aba
[06/17] pylibfdt: Add FdtRo.get_path()
commit: 66ccb13a8180bf7d09d79ca136b18301e020ae5e
[07/17] pylibfdt: Work-around SWIG limitations with flexible arrays
commit: ba6d20256305ecff8c879e2acb169aa5b0fba933
[08/17] pylibfdt: Add size_hint parameter for get_path
commit: 69c95e9e4f576b811e640d1bf0ee95cf070dd542
[09/17] pylibfdt: Support boolean properties
commit: 3bf9e7e72ab545d08d9ae30bcb45027ad24609bb
[10/17] pylibfdt: Fix get_mem_rsv for newer Python versions
commit: 5b7d682e1d28383318c6d649d11aef45ed604ce8
[11/17] pylibfdt: Fix backwards compatibility of return values
commit: 0e9f9fda2e4568aae651147c1e59a0b4c394df55
[12/17] pylibfdt: Fix a typo in the next_node() docstring
commit: dfba3eff563cc0bb779791b10e8f78a124f4182e
[13/17] pylibfdt: Grow the FdtSw buffer geometrically
commit: f3e00d4b7f365929e18395194049d569d2288f31
[14/17] pylibfdt: Add address_cells() and size_cells()
commit: 34fddfa16d47bd97f5b11d6b36dcbda91037e02f
[15/17] pylibfdt: Add add_mem_rsv() and del_mem_rsv()
commit: 388137abfd0442c1bbe3df92277823d9070a2747
[16/17] pylibfdt: Document that FdtSw.property() takes bytes
commit: 44a2a718fbe62d703a8ce2ff576d2252c7444087
[17/17] dtoc: Add tests for the pylibfdt bindings dtoc does not use
commit: 01fb2b4d7368483f95b6018b2c069de0b8ebadeb
--
Tom