drm: add convenience function to create an range property