NetBSD-Users archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: I cannot make i2c work in raspberry pi Zero W
ea1abz%gmail.com@localhost (Ramiro Aceves) writes:
>I have connected a BMP280 pressure sensor to my piZeroW just to learn a li=
>ttle of i2c programming on NetBSD=2E Before doing real programming I issued=
> a i2scan command to ensure the system works, but a lot of inexistent devic=
>es are detected (even if nothing is connected to the pi)
Yes, the i2scan behaviour is unfortunate.
The BMP280 should respond on address 0x76 or 0x77.
The i2c interface for the GPIO port is /soc/i2c@7e804000
If your kernel configures more than one device, you
can use this to check if it is the right one:
% drvctl -p iic0 device-parent
bsciic0
% drvctl -p bsciic0 fdt-path
/soc/i2c@7e804000
Home |
Main Index |
Thread Index |
Old Index