The farmhouse landing on Nanny Ogg, and the subsequent events involving dwarfs looking for ruby-coloured footwear are references to The Wizard of Oz.
All Terry’s references are to the movie version, incidentally, not the book. In the book Dorothy obtains Silver Shoes instead of Ruby Slippers, doesn’t say anything approaching “… we’re not in Kansas any more”, and of course the book doesn’t have a ‘dingdong’ song.