It's alright to me! The official charging head of the HomePod mini is 20w fast charging head, which can be used to charge the iPhone with a data cable. However, make sure your iPhone supports fast charging (iPhone 11 and above). Try not to use other iPhone models, because it will cause damage to the iPhone battery. For reference only
Apple homepod mini is equipped with a 20w fast charging head, which can be used by Apple phones