summaryrefslogtreecommitdiff
path: root/cmd
diff options
context:
space:
mode:
authorLucien.Jheng <[email protected]>2026-04-25 16:06:49 +0800
committerJerome Forissier <[email protected]>2026-05-06 11:07:22 +0200
commit615c5367170272b5dda8b7ceae515f18dcfcafbf (patch)
tree76a0f2ccf1b5f0be4e55704ffa9875d55e00db21 /cmd
parentc008ffdf61c01d0be99719adc8795ac00c55f90a (diff)
test: dm: add PHY common props unit tests and sandbox DT nodes
Add sandbox DM unit tests for the PHY common properties library and the corresponding device tree test nodes to arch/sandbox/dts/test.dts. Also enable CONFIG_PHY_COMMON_PROPS in configs/sandbox_defconfig so the tests are built and run in the sandbox environment. The test file covers rx/tx polarity lookups for all relevant cases: - missing property (defaults to PHY_POL_NORMAL) - single value without names array (applies to all modes) - count mismatch between values and names arrays (-EINVAL) - name found by exact match - name not found with no "default" fallback (-EINVAL) - name not found with a "default" entry (uses fallback value) - unsupported polarity value (-EOPNOTSUPP) Ported from Linux KUnit test: linux/drivers/phy/phy-common-props-test.c Signed-off-by: Lucien.Jheng <[email protected]>
Diffstat (limited to 'cmd')
0 files changed, 0 insertions, 0 deletions