dm: ofnode: add ofnode_device_is_compatible() helper