dm: Add a test for of-platdata parent information
authorSimon Glass <sjg@chromium.org>
Sat, 3 Oct 2020 17:31:36 +0000 (11:31 -0600)
committerSimon Glass <sjg@chromium.org>
Thu, 29 Oct 2020 20:42:18 +0000 (14:42 -0600)
commitfbe27a54ebbe7433bbccf242f4edda61e2c1ba3e
tree1a47ecbb74a274b162553efefc07d23eb36bc51d
parente41651fffda7da55f6d74afdf4b784088184c543
dm: Add a test for of-platdata parent information

Add a simple test that we can obtain the correct parent for an I2C
device. This requires updating the driver names to match the compatible
strings, adding them to the devicetree and enabling a few options.

Signed-off-by: Simon Glass <sjg@chromium.org>
arch/sandbox/dts/sandbox.dts
arch/sandbox/dts/sandbox.dtsi
configs/sandbox_spl_defconfig
drivers/i2c/sandbox_i2c.c
drivers/rtc/sandbox_rtc.c
test/dm/of_platdata.c