05-29-2016, 10:36 PM
(05-29-2016, 03:49 PM)martinayotte Wrote: Just to let people know that I've finally got the "w1-gpio" working on Pin64 with a DS18B20.
The issue that I was facing is a discrepancy in DTS that I've not seen in other ARM boards but only on Pine64, but after doing kernel debugging, I've found a simple workaround in DTS.
Mainly, here it is :
Code:onewire_device@0 { compatible = "w1-gpio"; gpio = <0x30 0x2 0x8 0x0>; // gpios = <0x30 0x2 0x8 0x0 0x0 0x0 0x0>; pinctrl-names = "default"; pinctrl-0 = <0xba>; status = "okay"; };
The issue is when using "gpios = <0x30 0x2 0x8 0x0>;", the DT parser give out this error : "arguments longer than property", it seems that plural "gpios" means you need to provide multiple gpios, not only one. Removing the "s" seems to do identical job with a single gpio.
Thanks on your tips.

