Re: tutorial on how to use iic on raspberry pi?

2020-02-13 Thread Michael van Elst
michael.chepo...@gmail.com (Michael Cheponis) writes: >dtc -I dtb -O dts bcm2710-rpi-3-b-plus.dtb does produce similar output as >you mention. But only similar. Check the 'status' line for each entry, it probably says 'disabled' and not 'okay'. You can either modify the DTB or add overlay files

Re: tutorial on how to use iic on raspberry pi?

2020-02-12 Thread Michael Cheponis
Not too long ago, in order to get -current to boot, a new .dtb needs to be used. # cat config.txt # Boot options, see https://www.raspberrypi.org/documentation/configuration/config-txt/boot.md # device_tree=bcm2710-rpi-3-b-plus.dtb kernel_address=0x0140 # # UART settings, see

Re: tutorial on how to use iic on raspberry pi?

2020-02-12 Thread Michael van Elst
michael.chepo...@gmail.com (Michael Cheponis) writes: -rwxr-xr-x 1 root wheel 22630 Jun 16 2019 bcm2837-rpi-3-b-plus.dtb* > Raspberry Pi 3 Model B Plus Rev 1.3 - so I'm not sure which of the >highlighted dtb files is used. That one would have i2c enabled. You can disassemble the dtb files

Re: tutorial on how to use iic on raspberry pi?

2020-02-12 Thread Michael Cheponis
What combination of RPI model, kernel (and dtb files) you try to use ? I'm using -current *NetBSD 9.99.46 (GENERIC) *figuring it probably has the latest & greatest. Raspberry Pi 3 Model B Plus Rev 1.3 - so I'm not sure which of the highlighted dtb files is used. *# cd /boot* *# ls -l

Re: tutorial on how to use iic on raspberry pi?

2020-02-12 Thread Michael van Elst
michael.chepo...@gmail.com (Michael Cheponis) writes: >Hi all, I want to hook up a sensor using iic on an RPi. Is there a >tutorial somewhere on how to do this? Do I have to compile a specific >config to enable iic because GENERIC doesn't? netbsd-9 has it defined in GENERIC and the dtb files