Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 8035

Device Tree • Re: i2c-sensor overlay - clarification on 'i2c-bus' parameter needed

$
0
0

Code:

$ dtoverlay -h i2c-sensorName:   i2c-sensorInfo:   Adds support for a number of I2C barometric pressure, temperature,        light level and chemical sensors on i2c_armUsage:  dtoverlay=i2c-sensor,<param>=<val>Params: addr                    Set the address for the ADT7410, AS73211,                                AS7331, BH1750, BME280, BME680, BMP280, BMP380,                                CCS811, DS1621, HDC100X, HDC3020, JC42, LM75,                                MCP980x, MPU6050, MPU9250, MS5637, MS5803,                                MS5805, MS5837, MS8607, SHT3x or TMP102        i2c-bus                 Supports all the standard I2C bus selection                                parameters - see "dtoverlay -h i2c-bus"...

Code:

$ dtoverlay -h i2c-busName:   i2c-busInfo:   This is not a real overlay. Many overlays support the use of a variety        of I2C buses, and this is where the relevant parameters are documented.Usage:  <Documentation>Params: i2c0                    Choose the I2C0 bus on GPIOs 0&1        i2c1                    Choose the I2C1 bus on GPIOs 2&3        i2c2                    Choose the I2C2 bus (configure with the i2c2                                overlay - BCM2711 only)        i2c3                    Choose the I2C3 bus (configure with the i2c3                                overlay - BCM2711 only)        i2c4                    Choose the I2C4 bus (configure with the i2c4                                overlay - BCM2711 only)        i2c5                    Choose the I2C5 bus (configure with the i2c5                                overlay - BCM2711 only)        i2c6                    Choose the I2C6 bus (configure with the i2c6                                overlay - BCM2711 only)        i2c_csi_dsi             Choose the I2C bus connected to the main                                camera/display connector.                                See "dtparam -h i2c_csi_dsi" for details.        i2c_csi_dsi0            Choose the I2C bus connected to the second                                camera/display connector, if present.                                See "dtparam -h i2c_csi_dsi0" for details.        i2c-path                Override I2C path to allow for i2c-gpio buses
So in your case you should use:

Code:

dtoverlay=i2c-sensor,i2c6,mpu6050,int_pin=6

Statistics: Posted by PhilE — Wed Mar 05, 2025 9:56 am



Viewing all articles
Browse latest Browse all 8035

Trending Articles