Melt the butter in a large saucepan over medium heat. Cook the onion until fragrant, about 2 minutes. Add the ginger, garlic, and squash; cook, stirring occasionally, until fragrant, 6 to 8 minutes. Stir in 4 cups water. Bring to a boil; reduce the heat. Simmer until the squash is tender, about 20 minutes.