Skip to content

Commit 029b4b7

Browse files
pelwellpopcornmix
authored andcommitted
overlays: Add and document i2c_csi_dsi0 parameters
Add "i2c_csi_dsi0" parameters to overlays that already have an "i2c_csi_dsi" parameter. The I2C bus and GPIO mapping of i2c_csi_dsi and i2c_csi_dsi0 varies between platforms. Document the associations against the dtparams "i2c_csi_dsi" and "i2c_csi_dsi0" - run "dtparam -h i2c_csi_dsi" and "dtparam -h i2c_csi_dsi0" to read it. Signed-off-by: Phil Elwell <phil@raspberrypi.com>
1 parent 2b2af83 commit 029b4b7

12 files changed

+113
-12
lines changed

arch/arm/boot/dts/overlays/README

Lines changed: 91 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -301,10 +301,31 @@ Params:
301301
i2c_baudrate An alias for i2c_arm_baudrate
302302

303303
i2c_csi_dsi Set to "on" to enable the i2c_csi_dsi interface
304+
The I2C bus and GPIOs are platform specific:
305+
B rev 1:
306+
i2c-1 on 2 & 3
307+
B rev 2, B+, CM, Zero, Zero W, 2B, CM2, CM3,
308+
CM4S:
309+
i2c-0 on 28 & 29
310+
3B, 3B+, Zero 2W, 4B, 400, CM4:
311+
i2c-0 on 44 & 45
312+
5, 500:
313+
i2c-11/i2c-4 on 40 & 41
314+
CM5 on CM5IO:
315+
i2c-0 on 0 & 1
316+
CM5 on CM4IO:
317+
i2c-10/i2c-6 on 38 & 39
304318

305319
i2c_csi_dsi0 Set to "on" to enable the i2c_csi_dsi0 interface
320+
The I2C bus and GPIOs are platform specific:
321+
B rev 1 & 2, B+, CM, Zero, Zero W, 2B, CM2,
322+
CM3, CM4S, 3B, 3B+, Zero 2W, 4B, 400, CM4,
323+
CM5 on CM4IO:
324+
i2c-0 on 0 & 1
325+
5, 500, CM5 on CM5IO:
326+
i2c-10/i2c-6 on 38 & 39
306327

307-
i2c_csi_dsi1 Set to "on" to enable the i2c_csi_dsi1 interface
328+
i2c_csi_dsi1 A Pi 5 family-specific alias for i2c_csi_dsi.
308329

309330
i2c_vc Set to "on" to enable the i2c interface
310331
usually reserved for the VideoCore processor
@@ -546,7 +567,12 @@ Params: addr I2C bus address of device. Set based on how the
546567
Amplifier for this channel. (Default 1 sets the
547568
full scale of the channel to 4.096 Volts)
548569
i2c0 Choose the I2C0 bus on GPIOs 0&1
549-
i2c_csi_dsi Choose the I2C0 bus on GPIOs 44&45
570+
i2c_csi_dsi Choose the I2C bus connected to the main
571+
camera/display connector.
572+
See "dtparam -h i2c_csi_dsi" for details.
573+
i2c_csi_dsi0 Choose the I2C bus connected to the second
574+
camera/display connector, if present.
575+
See "dtparam -h i2c_csi_dsi0" for details.
550576
i2c3 Choose the I2C3 bus (configure with the i2c3
551577
overlay - BCM2711 only)
552578
i2c4 Choose the I2C4 bus (configure with the i2c4
@@ -2101,7 +2127,13 @@ Params: addr Sets the address for the fan controller. Note
21012127

21022128
i2c0 Choose the I2C0 bus on GPIOs 0&1
21032129

2104-
i2c_csi_dsi Choose the I2C0 bus on GPIOs 44&45
2130+
i2c_csi_dsi Choose the I2C bus connected to the main
2131+
camera/display connector.
2132+
See "dtparam -h i2c_csi_dsi" for details.
2133+
2134+
i2c_csi_dsi0 Choose the I2C bus connected to the second
2135+
camera/display connector, if present.
2136+
See "dtparam -h i2c_csi_dsi0" for details.
21052137

21062138
i2c3 Choose the I2C3 bus (configure with the i2c3
21072139
overlay - BCM2711 only)
@@ -2173,7 +2205,13 @@ Params: pca9542 Select the NXP PCA9542 device
21732205

21742206
i2c0 Choose the I2C0 bus on GPIOs 0&1
21752207

2176-
i2c_csi_dsi Choose the I2C0 bus on GPIOs 44&45
2208+
i2c_csi_dsi Choose the I2C bus connected to the main
2209+
camera/display connector.
2210+
See "dtparam -h i2c_csi_dsi" for details.
2211+
2212+
i2c_csi_dsi0 Choose the I2C bus connected to the second
2213+
camera/display connector, if present.
2214+
See "dtparam -h i2c_csi_dsi0" for details.
21772215

21782216
i2c3 Choose the I2C3 bus (configure with the i2c3
21792217
overlay - BCM2711 only)
@@ -2201,7 +2239,12 @@ Info: Adds support for an NXP PCA9685A I2C PWM controller on i2c_arm
22012239
Load: dtoverlay=i2c-pwm-pca9685a,<param>=<val>
22022240
Params: addr I2C address of PCA9685A (default 0x40)
22032241
i2c0 Choose the I2C0 bus on GPIOs 0&1
2204-
i2c_csi_dsi Choose the I2C0 bus on GPIOs 44&45
2242+
i2c_csi_dsi Choose the I2C bus connected to the main
2243+
camera/display connector.
2244+
See "dtparam -h i2c_csi_dsi" for details.
2245+
i2c_csi_dsi0 Choose the I2C bus connected to the second
2246+
camera/display connector, if present.
2247+
See "dtparam -h i2c_csi_dsi0" for details.
22052248
i2c3 Choose the I2C3 bus (configure with the i2c3
22062249
overlay - BCM2711 only)
22072250
i2c4 Choose the I2C3 bus (configure with the i2c3
@@ -2266,7 +2309,13 @@ Params: abx80x Select one of the ABx80x family:
22662309

22672310
i2c0 Choose the I2C0 bus on GPIOs 0&1
22682311

2269-
i2c_csi_dsi Choose the I2C0 bus on GPIOs 44&45
2312+
i2c_csi_dsi Choose the I2C bus connected to the main
2313+
camera/display connector.
2314+
See "dtparam -h i2c_csi_dsi" for details.
2315+
2316+
i2c_csi_dsi0 Choose the I2C bus connected to the second
2317+
camera/display connector, if present.
2318+
See "dtparam -h i2c_csi_dsi0" for details.
22702319

22712320
i2c3 Choose the I2C3 bus (configure with the i2c3
22722321
overlay - BCM2711 only)
@@ -2549,7 +2598,12 @@ Params: addr Set the address for the ADT7410, AS73211,
25492598

25502599
i2c0 Choose the I2C0 bus on GPIOs 0&1
25512600

2552-
i2c_csi_dsi Choose the I2C0 bus on GPIOs 44&45
2601+
i2c_csi_dsi Choose the I2C bus connected to the main
2602+
camera/display connector.
2603+
See "dtparam -h i2c_csi_dsi" for details.
2604+
i2c_csi_dsi0 Choose the I2C bus connected to the second
2605+
camera/display connector, if present.
2606+
See "dtparam -h i2c_csi_dsi0" for details.
25532607

25542608
i2c3 Choose the I2C3 bus (configure with the i2c3
25552609
overlay - BCM2711 only)
@@ -3176,7 +3230,12 @@ Params: gpiopin Gpio pin connected to the INTA output of the
31763230
mcp23008 Configure an MCP23008 instead.
31773231
noints Disable the interrupt GPIO line.
31783232
i2c0 Choose the I2C0 bus on GPIOs 0&1
3179-
i2c_csi_dsi Choose the I2C0 bus on GPIOs 44&45
3233+
i2c_csi_dsi Choose the I2C bus connected to the main
3234+
camera/display connector.
3235+
See "dtparam -h i2c_csi_dsi" for details.
3236+
i2c_csi_dsi0 Choose the I2C bus connected to the second
3237+
camera/display connector, if present.
3238+
See "dtparam -h i2c_csi_dsi0" for details.
31803239
i2c3 Choose the I2C3 bus (configure with the i2c3
31813240
overlay - BCM2711 only)
31823241
i2c4 Choose the I2C4 bus (configure with the i2c4
@@ -3636,7 +3695,12 @@ Params: addr I2C address of expander. Default 0x20.
36363695
pca9654 Select the Onnn PCA9654 (8 bit)
36373696
xra1202 Select the Exar XRA1202 (8 bit)
36383697
i2c0 Choose the I2C0 bus on GPIOs 0&1
3639-
i2c_csi_dsi Choose the I2C0 bus on GPIOs 44&45
3698+
i2c_csi_dsi Choose the I2C bus connected to the main
3699+
camera/display connector.
3700+
See "dtparam -h i2c_csi_dsi" for details.
3701+
i2c_csi_dsi0 Choose the I2C bus connected to the second
3702+
camera/display connector, if present.
3703+
See "dtparam -h i2c_csi_dsi0" for details.
36403704
i2c3 Choose the I2C3 bus (configure with the i2c3
36413705
overlay - BCM2711 only)
36423706
i2c4 Choose the I2C3 bus (configure with the i2c3
@@ -3658,7 +3722,12 @@ Params: addr I2C address of expander. Default
36583722
pcf8575 Select the NXP PCF8575 (16 bit)
36593723
pca8574 Select the NXP PCA8574 (8 bit)
36603724
i2c0 Choose the I2C0 bus on GPIOs 0&1
3661-
i2c_csi_dsi Choose the I2C0 bus on GPIOs 44&45
3725+
i2c_csi_dsi Choose the I2C bus connected to the main
3726+
camera/display connector.
3727+
See "dtparam -h i2c_csi_dsi" for details.
3728+
i2c_csi_dsi0 Choose the I2C bus connected to the second
3729+
camera/display connector, if present.
3730+
See "dtparam -h i2c_csi_dsi0" for details.
36623731
i2c3 Choose the I2C3 bus (configure with the i2c3
36633732
overlay - BCM2711 only)
36643733
i2c4 Choose the I2C3 bus (configure with the i2c3
@@ -4330,7 +4399,12 @@ Params: int_pin GPIO used for IRQ (default 24)
43304399
addr Address (default 0x48)
43314400
xtal On-board crystal frequency (default 14745600)
43324401
i2c0 Choose the I2C0 bus on GPIOs 0&1
4333-
i2c_csi_dsi Choose the I2C0 bus on GPIOs 44&45
4402+
i2c_csi_dsi Choose the I2C bus connected to the main
4403+
camera/display connector.
4404+
See "dtparam -h i2c_csi_dsi" for details.
4405+
i2c_csi_dsi0 Choose the I2C bus connected to the second
4406+
camera/display connector, if present.
4407+
See "dtparam -h i2c_csi_dsi0" for details.
43344408
i2c3 Choose the I2C3 bus (configure with the i2c3
43354409
overlay - BCM2711 only)
43364410
i2c4 Choose the I2C4 bus (configure with the i2c4
@@ -4359,7 +4433,12 @@ Params: int_pin GPIO used for IRQ (default 24)
43594433
addr Address (default 0x48)
43604434
xtal On-board crystal frequency (default 14745600)
43614435
i2c0 Choose the I2C0 bus on GPIOs 0&1
4362-
i2c_csi_dsi Choose the I2C0 bus on GPIOs 44&45
4436+
i2c_csi_dsi Choose the I2C bus connected to the main
4437+
camera/display connector.
4438+
See "dtparam -h i2c_csi_dsi" for details.
4439+
i2c_csi_dsi0 Choose the I2C bus connected to the second
4440+
camera/display connector, if present.
4441+
See "dtparam -h i2c_csi_dsi0" for details.
43634442
i2c3 Choose the I2C3 bus (configure with the i2c3
43644443
overlay - BCM2711 only)
43654444
i2c4 Choose the I2C4 bus (configure with the i2c4

arch/arm/boot/dts/overlays/ads1115-overlay.dts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,8 @@
123123
i2c0 = <&frag100>, "target:0=",<&i2c0>;
124124
i2c_csi_dsi = <&frag100>, "target:0=",<&i2c_csi_dsi>,
125125
<0>,"+101+102";
126+
i2c_csi_dsi0 = <&frag100>, "target:0=",<&i2c_csi_dsi0>,
127+
<0>,"+101+102";
126128
i2c3 = <&frag100>, "target?=0",
127129
<&frag100>, "target-path=i2c3";
128130
i2c4 = <&frag100>, "target?=0",

arch/arm/boot/dts/overlays/i2c-fan-overlay.dts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,8 @@
8585
i2c0 = <&frag100>,"target:0=",<&i2c0>;
8686
i2c_csi_dsi = <&frag100>,"target:0=",<&i2c_csi_dsi>,
8787
<0>,"+101+102";
88+
i2c_csi_dsi0 = <&frag100>, "target:0=",<&i2c_csi_dsi0>,
89+
<0>,"+101+102";
8890
i2c3 = <&frag100>, "target?=0",
8991
<&frag100>, "target-path=i2c3";
9092
i2c4 = <&frag100>, "target?=0",

arch/arm/boot/dts/overlays/i2c-mux-overlay.dts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -167,6 +167,8 @@
167167
<0>,"+101+102";
168168
i2c_csi_dsi = <&frag100>, "target:0=",<&i2c_csi_dsi>,
169169
<0>,"+101+102";
170+
i2c_csi_dsi0 = <&frag100>, "target:0=",<&i2c_csi_dsi0>,
171+
<0>,"+101+102";
170172
i2c3 = <&frag100>, "target?=0",
171173
<&frag100>, "target-path=i2c3";
172174
i2c4 = <&frag100>, "target?=0",

arch/arm/boot/dts/overlays/i2c-pwm-pca9685a-overlay.dts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,8 @@
4949
<0>,"+101+102";
5050
i2c_csi_dsi = <&frag100>, "target:0=",<&i2c_csi_dsi>,
5151
<0>,"+101+102";
52+
i2c_csi_dsi0 = <&frag100>, "target:0=",<&i2c_csi_dsi0>,
53+
<0>,"+101+102";
5254
i2c3 = <&frag100>, "target?=0",
5355
<&frag100>, "target-path=i2c3";
5456
i2c4 = <&frag100>, "target?=0",

arch/arm/boot/dts/overlays/i2c-rtc-overlay.dts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,8 @@
3030
i2c0 = <&frag100>, "target:0=",<&i2c0>;
3131
i2c_csi_dsi = <&frag100>, "target:0=",<&i2c_csi_dsi>,
3232
<0>,"+101+102";
33+
i2c_csi_dsi0 = <&frag100>, "target:0=",<&i2c_csi_dsi0>,
34+
<0>,"+101+102";
3335
i2c3 = <&frag100>, "target?=0",
3436
<&frag100>, "target-path=i2c3";
3537
i2c4 = <&frag100>, "target?=0",

arch/arm/boot/dts/overlays/i2c-sensor-overlay.dts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,8 @@
3030
i2c0 = <&frag100>, "target:0=",<&i2c0>;
3131
i2c_csi_dsi = <&frag100>, "target:0=",<&i2c_csi_dsi>,
3232
<0>,"+101+102";
33+
i2c_csi_dsi0 = <&frag100>, "target:0=",<&i2c_csi_dsi0>,
34+
<0>,"+101+102";
3335
i2c3 = <&frag100>, "target?=0",
3436
<&frag100>, "target-path=i2c3";
3537
i2c4 = <&frag100>, "target?=0",

arch/arm/boot/dts/overlays/mcp23017-overlay.dts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,8 @@
9090
i2c0 = <&frag100>, "target:0=",<&i2c0>;
9191
i2c_csi_dsi = <&frag100>, "target:0=",<&i2c_csi_dsi>,
9292
<0>,"+101+102";
93+
i2c_csi_dsi0 = <&frag100>, "target:0=",<&i2c_csi_dsi0>,
94+
<0>,"+101+102";
9395
i2c3 = <&frag100>, "target?=0",
9496
<&frag100>, "target-path=i2c3";
9597
i2c4 = <&frag100>, "target?=0",

arch/arm/boot/dts/overlays/pca953x-overlay.dts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -254,6 +254,8 @@
254254
<0>,"+100+101";
255255
i2c_csi_dsi = <&frag0>, "target:0=",<&i2c_csi_dsi>,
256256
<0>,"+100+101";
257+
i2c_csi_dsi0 = <&frag0>, "target:0=",<&i2c_csi_dsi0>,
258+
<0>,"+100+101";
257259
i2c3 = <&frag0>, "target?=0",
258260
<&frag0>, "target-path=i2c3";
259261
i2c4 = <&frag0>, "target?=0",

arch/arm/boot/dts/overlays/pcf857x-overlay.dts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,8 @@
4646
<0>,"+100+101";
4747
i2c_csi_dsi = <&frag0>, "target:0=",<&i2c_csi_dsi>,
4848
<0>,"+100+101";
49+
i2c_csi_dsi0 = <&frag0>, "target:0=",<&i2c_csi_dsi0>,
50+
<0>,"+100+101";
4951
i2c3 = <&frag0>, "target?=0",
5052
<&frag0>, "target-path=i2c3";
5153
i2c4 = <&frag0>, "target?=0",

0 commit comments

Comments
 (0)