On Saturday, August 30, 2014 12:01:18 PM UTC+1, Michaël Vaes wrote: > > Hi - > > I'm stuck getting my DS18B20 temperature sensor working on my Beaglebone > Black. I installed and loaded the DTC overlay but Im not getting the '28-*' > files in my '/sys/devices/w1_bus_master1/' directory. > > The dts file I used (on a 3.8 kernel) was:
/* ** Copyright (C) 2012 Texas Instruments Incorporated - http://www.ti.com/ ** ** This program is free software; you can redistribute it and/or modify ** it under the terms of the GNU General Public License version 2 as ** published by the Free Software Foundation. */ /dts-v1/; /plugin/; / { compatible = "ti,beaglebone", "ti,beaglebone-black"; part-number = "BB-W1"; version = "00A0"; /* Resources used */ exclusive-use = /* the pin header */ "P8.11", /* The first pin is the data pin. The second ** (optional) pin enables an external pull-up. */ "gpio1_13"; fragment@0 { target = <&am33xx_pinmux>; __overlay__ { w1_pins: pinmux_w1_pins { pinctrl-single,pins = < 0x34 0x37 /* gpmc_ad13.gpio1_13 P8_11, OMAP_PIN_INPUT_PULLUP | OMAP_MUX_MODE7 */ >; }; }; }; fragment@1 { target = <&ocp>; __overlay__ { onewire@0 { compatible = "w1-gpio"; pinctrl-names = "default"; pinctrl-0 = <&w1_pins>; status = "okay"; /* nb. gpio index is (resources index + 1) */ gpios = <&gpio2 13 0>; }; }; }; }; /* ** eof */ I built the dtbo file with: #!/bin/bash dtc -O dtb -o BB-W1-00A0.dtbo -b 0 -@ w1.dts # Copy the dtbo file into /lib/firmware and then loaded it with: #!/bin/bash echo BB-W1 >/sys/devices/bone_capemgr.8/slots I could then read the DS18B20 with: #!/bin/bash cat /sys/devices/w1_bus_master1/28-000003e6b937/w1_slave Good luck - Will -- For more options, visit http://beagleboard.org/discuss --- You received this message because you are subscribed to the Google Groups "BeagleBoard" group. To unsubscribe from this group and stop receiving emails from it, send an email to beagleboard+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.