Wow even betterAnyone having problems with OneWire on Pi 5, please try this trial kernel with the final version of jdb's patch (https://github.com/raspberrypi/linux/pull/5882):
Code: Select all
$ sudo rpi-update pulls/5882
Code:
daniel@pi5:/sys/bus/w1 $ uname -aLinux pi5 6.6.13-v8-16k+ #1 SMP PREEMPT Wed Jan 24 11:00:26 UTC 2024 aarch64 GNU/Linuxdaniel@pi5:/sys/bus/w1 $ sudo tail -n 3 /boot/config.txtdtoverlay=w1-gpio,gpiopin=4daniel@pi5:/sys/bus/w1 $ dmesg | grep w1_gpio[ 5.021013] Modules linked in: pisp_be v4l2_mem2mem i2c_brcmstb spi_bcm2835 snd_soc_core w1_gpio(+) videobuf2_dma_contig videobuf2_memops wire cn gpio_keys(+) videobuf2_v4l2 snd_compress videodev snd_pcm_dmaengine snd_pcm pwm_fan videobuf2_common rfkill(+) snd_timer snd v3d sg gpu_sched drm_shmem_helper raspberrypi_gpiomem mc hid_logitech_dj(+) rp1_adc nvmem_rmem uio_pdrv_genirq uio drm i2c_dev drm_panel_orientation_quirks backlight fuse dm_mod ip_tables x_tables ipv6[ 5.084265] pc : w1_gpio_probe+0x90/0x208 [w1_gpio][ 5.089175] lr : w1_gpio_probe+0x84/0x208 [w1_gpio][ 5.171584] w1_gpio_probe+0x90/0x208 [w1_gpio][ 5.215708] w1_gpio_driver_init+0x28/0x3ff8 [w1_gpio]daniel@pi5:/sys/bus/w1 $ ls devicesdaniel@pi5:/sys/bus/w1 $daniel@pi5:/sys/bus/w1 $
Not working at all!
I did look at the pull difference and I'm sure is not just the pull up stuff.
I think it is a timing issue !
In my bitbanging using pull up or not it doesn't matter. Works all the time event with the new kernel!
Code:
flag=gpiod_line_request_output_flags(gpioline[pin],"ardEmul", GPIOD_LINE_REQUEST_FLAG_OPEN_DRAIN,1)==0; case OPENDRAIN_PULLUP: flag=gpiod_line_request_output_flags(gpioline[pin],"ardEmul", GPIOD_LINE_REQUEST_FLAG_OPEN_DRAIN|GPIOD_LINE_REQUEST_FLAG_BIAS_PULL_UP,1)==0;
Statistics: Posted by danjperron — Fri Jan 26, 2024 5:09 pm