[PATCH v3 06/11] platform: Add test managed platform_device/driver APIs