Jump to content

mtr46

Members
  • Posts

    9
  • Joined

  • Last visited

Reputation Activity

  1. Like
    mtr46 got a reaction from Myy in RK3288 device tree overlays   
    The problem has been solved.
    I rewrote the DTS as follows:
     
    / {
        w1 {
            compatible = "w1-gpio";
            pinctrl-names = "default";
            pinctrl-0 = <&w1_gpio_pins>;
            gpios = <&gpio0 17 0>;
        };
    };
    &pinctrl {
        onewire {
            w1_gpio_pins: w1-gpio-pins {
                rockchip,pins = <0 17 0 &pcfg_pull_up>;
            };
        };
    };
     
    I am now able to use 1-wire.
     
    results:
    root@tinkerboard:/sys/bus/w1/devices# ll
    total 0
    drwxr-xr-x 2 root root 0 Apr 23 19:49 .
    drwxr-xr-x 4 root root 0 Apr 23 19:49 ..
    lrwxrwxrwx 1 root root 0 Apr 23 19:50 28-031590341bff -> ../../../devices/w1_bus_master1/28-031590341bff
    lrwxrwxrwx 1 root root 0 Apr 23 19:50 28-0416505667ff -> ../../../devices/w1_bus_master1/28-0416505667ff
    lrwxrwxrwx 1 root root 0 Apr 23 19:49 w1_bus_master1 -> ../../../devices/w1_bus_master1
    root@tinkerboard:/sys/bus/w1/devices# cat 28-031590341bff/w1_slave
    61 01 4b 46 7f ff 0c 10 57 : crc=57 YES
    61 01 4b 46 7f ff 0c 10 57 t=22062
     
    Regards,
     
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines