[PATCH v6 5/8] platform: Add test managed platform_device/driver APIs