public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [PATCH v2 0/8] led: update LED boot/activity to new property implementation
@ 2024-11-10 11:50 Christian Marangi
  2024-11-10 11:50 ` [PATCH v2 1/8] dm: core: implement oftree variant of parse_phandle OPs Christian Marangi
                   ` (9 more replies)
  0 siblings, 10 replies; 22+ messages in thread
From: Christian Marangi @ 2024-11-10 11:50 UTC (permalink / raw)
  To: Simon Glass, Tom Rini, Christian Marangi, Sean Anderson,
	Sughosh Ganu, Caleb Connolly, Mattijs Korpershoek,
	Patrick Rudolph, Yang Xiwen, Mikhail Kshevetskiy,
	Rasmus Villemoes, Marek Vasut, Michael Polyntsov, u-boot

This series is split in 2 part.

While adapting the LED boot and activity code to the new property
accepted by Rob in dt-schema repository, a big BUG was discovered.

The reason wasn't clear at start and took me some days to figure it
out.

This was triggered by adding a new phandle in the test.dts to
introduce test for the new OPs.

This single addition caused the sandbox CI test to fail in the
dm_test_ofnode_phandle_ot test.

This doesn't make sense as reverting the change made the CI test
to correctly finish. Also moving the uboot node down
after the first phandle (in test.dts the gpio one) also made
the CI test to correctly finish.

A little bit of searching and debugging made me realize the
parse phandle OPs didn't support other.dts at all and they
were still referencing phandle index from test.dts.
(more info in the related commit)

In short the test was broken all along and was working by
pure luck. The first 4 patch address and fix the problem for good.

The other 4 patch expand and address the property change for
LED boot/activity.

Posting in a single series as changes are trivial and just
to speedup review process. (and also because the second
part depends on the first)

All CI tested with azure pipeline.

Changes v2:
- Fix handling of flat tree for phandle
- Fix test and other.dts changes

Christian Marangi (8):
  dm: core: implement oftree variant of parse_phandle OPs
  test: dm: fix broken dm_test_ofnode_phandle_ot and get_by_phandle_ot
  dm: core: implement ofnode/tree_parse_phandle() helper
  test: dm: Expand dm_test_ofnode_phandle(_ot) with new
    ofnode/tree_parse_phandle
  dm: core: implement phandle ofnode_options helper
  test: dm: Add test for ofnode options phandle helper
  led: update LED boot/activity to new property implementation
  test: dm: Update test for LED activity and boot

 arch/sandbox/dts/other.dts |  31 ++++++++-
 arch/sandbox/dts/test.dts  |  16 +++--
 drivers/core/of_access.c   |  61 ++++++++++++-----
 drivers/core/ofnode.c      | 124 ++++++++++++++++++++++++++++++++-
 drivers/led/led-uclass.c   |  30 +++++---
 include/dm/of_access.h     |  86 +++++++++++++++++++++++
 include/dm/ofnode.h        | 107 +++++++++++++++++++++++++++++
 test/dm/led.c              |  18 +++--
 test/dm/ofnode.c           | 136 ++++++++++++++++++++++++++++++++-----
 9 files changed, 551 insertions(+), 58 deletions(-)

-- 
2.45.2


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

end of thread, other threads:[~2024-12-06 22:30 UTC | newest]

Thread overview: 22+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-11-10 11:50 [PATCH v2 0/8] led: update LED boot/activity to new property implementation Christian Marangi
2024-11-10 11:50 ` [PATCH v2 1/8] dm: core: implement oftree variant of parse_phandle OPs Christian Marangi
2024-11-20 13:46   ` Simon Glass
2024-11-10 11:50 ` [PATCH v2 2/8] test: dm: fix broken dm_test_ofnode_phandle_ot and get_by_phandle_ot Christian Marangi
2024-11-20 13:46   ` Simon Glass
2024-11-10 11:50 ` [PATCH v2 3/8] dm: core: implement ofnode/tree_parse_phandle() helper Christian Marangi
2024-11-20 13:48   ` Simon Glass
2024-11-10 11:50 ` [PATCH v2 4/8] test: dm: Expand dm_test_ofnode_phandle(_ot) with new ofnode/tree_parse_phandle Christian Marangi
2024-11-20 13:48   ` Simon Glass
2024-11-10 11:50 ` [PATCH v2 5/8] dm: core: implement phandle ofnode_options helper Christian Marangi
2024-11-20 13:48   ` Simon Glass
2024-11-10 11:50 ` [PATCH v2 6/8] test: dm: Add test for ofnode options phandle helper Christian Marangi
2024-11-20 13:48   ` Simon Glass
2024-11-10 11:50 ` [PATCH v2 7/8] led: update LED boot/activity to new property implementation Christian Marangi
2024-11-10 11:50 ` [PATCH v2 8/8] test: dm: Update test for LED activity and boot Christian Marangi
2024-11-20 13:48   ` Simon Glass
2024-11-13 18:00 ` [PATCH v2 0/8] led: update LED boot/activity to new property implementation Tom Rini
2024-11-13 20:24   ` Christian Marangi
2024-11-23  2:41     ` Tom Rini
2024-12-06 17:30       ` Christian Marangi
2024-12-06 17:56         ` Tom Rini
2024-12-06 22:30 ` Tom Rini

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox