Creating a new photoshop document with some pixel, make a dot (1x1 px) and fill into your layer.
Next step, using marquee tool to select the dot and make it as pattern. Now you have got a pattern and you can fill to layers, it will create dotted lines as you expected wihout using brush or brush presets..