Hi All, 

A puzzle:

the following device tree 




/*
* 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.
*
* Modified  by Russell Senior from the weather cape's DTS file.
* Minor formatting by C W Rose. Minor additions and mistakes M.Redding
*/
/dts-v1/;
/plugin/;
 / {
    compatible = "ti,beaglebone", "ti,beaglebone-black";
    part-number = "BB-W1";
    version = "00A0";
     exclusive-use = "P9.15";
     
    fragment@0 {
        target = <&am33xx_pinmux>;
        __overlay__ {
             bb_w1_pins: pinmux_bb_w1_pins {
                 pinctrl-single,pins = <
                     0x040 0x37  /*pin P9_15 input with pullup mode 7  - 
w1-gpio */
                 >;
             };
        };
    };
     fragment@1 {
        target = <&ocp>;
        __overlay__ {
            onewire@0 {
                status          = "okay";
                compatible      = "w1-gpio";
                pinctrl-names   = "default";
                pinctrl-0       = <&bb_w1_pins>;
                 gpios = <&gpio2 16 0>; /*grrr I think this means gpio1_16 
(using 1 to 4 instread of 0-3)*/
            };
        };
    };
};




This thing loads -- on ubuntu, but does not seem to produce an accessible 
device:


ls /sys/bus/w1/

devices  drivers  drivers_autoprobe  drivers_probe  uevent

ls /sys/bus/w1/devices

w1_bus_master1


ls /sys/bus/w1/devices/w1_bus_master1
driver     uevent              w1_master_max_slave_count  w1_master_pullup 
 w1_master_slave_count
power      w1_master_add       w1_master_name             w1_master_remove 
 w1_master_slaves
subsystem  w1_master_attempts  w1_master_pointer          w1_master_search 
 w1_master_timeout


hmm .... so, any suggestions where w1_slave might be, so I can access it 
from python?

Thanks for your help

Kind regards

Matt





-- 
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 [email protected].
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to