QDrives , 01-21-2025, 08:45 PM
You place Gnd vias close to the IC pin to reduce the impedance and therefor the voltage drop as seen by the IC.
The same goes for the capacitor.
As a result, you can have multiple vias connected together on copper top.
Both 1 and 2 are ok.
Ground loops, as @Denis mentioned, are of **no** concern.