The latest Raspbian Stretch (wheezy has expired, Jessie has retired) includes two Raspberry Pi Foundation dtb overlays for 1-wire devices. Before continuing with your stuff, try those.
The souce for both of those is available at https://github.com/raspberrypi/linux
Microprocessor, Raspberry Pi & Arduino Hacker
Mainframe database troubleshooter
Since 2012: 1B*5, 2B*2, B+, A+, Zero*2, 3B*3
Please post ALL technical questions on the forum. Do not send private messages.