Skip to content

Commit 4895707

Browse files
committed
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 <[email protected]>
1 parent 7aa52f3 commit 4895707

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
@@ -2086,7 +2112,13 @@ Params: addr Sets the address for the fan controller. Note
20862112

20872113
i2c0 Choose the I2C0 bus on GPIOs 0&1
20882114

2089-
i2c_csi_dsi Choose the I2C0 bus on GPIOs 44&45
2115+
i2c_csi_dsi Choose the I2C bus connected to the main
2116+
camera/display connector.
2117+
See "dtparam -h i2c_csi_dsi" for details.
2118+
2119+
i2c_csi_dsi0 Choose the I2C bus connected to the second
2120+
camera/display connector, if present.
2121+
See "dtparam -h i2c_csi_dsi0" for details.
20902122

20912123
i2c3 Choose the I2C3 bus (configure with the i2c3
20922124
overlay - BCM2711 only)
@@ -2158,7 +2190,13 @@ Params: pca9542 Select the NXP PCA9542 device
21582190

21592191
i2c0 Choose the I2C0 bus on GPIOs 0&1
21602192

2161-
i2c_csi_dsi Choose the I2C0 bus on GPIOs 44&45
2193+
i2c_csi_dsi Choose the I2C bus connected to the main
2194+
camera/display connector.
2195+
See "dtparam -h i2c_csi_dsi" for details.
2196+
2197+
i2c_csi_dsi0 Choose the I2C bus connected to the second
2198+
camera/display connector, if present.
2199+
See "dtparam -h i2c_csi_dsi0" for details.
21622200

21632201
i2c3 Choose the I2C3 bus (configure with the i2c3
21642202
overlay - BCM2711 only)
@@ -2186,7 +2224,12 @@ Info: Adds support for an NXP PCA9685A I2C PWM controller on i2c_arm
21862224
Load: dtoverlay=i2c-pwm-pca9685a,<param>=<val>
21872225
Params: addr I2C address of PCA9685A (default 0x40)
21882226
i2c0 Choose the I2C0 bus on GPIOs 0&1
2189-
i2c_csi_dsi Choose the I2C0 bus on GPIOs 44&45
2227+
i2c_csi_dsi Choose the I2C bus connected to the main
2228+
camera/display connector.
2229+
See "dtparam -h i2c_csi_dsi" for details.
2230+
i2c_csi_dsi0 Choose the I2C bus connected to the second
2231+
camera/display connector, if present.
2232+
See "dtparam -h i2c_csi_dsi0" for details.
21902233
i2c3 Choose the I2C3 bus (configure with the i2c3
21912234
overlay - BCM2711 only)
21922235
i2c4 Choose the I2C3 bus (configure with the i2c3
@@ -2251,7 +2294,13 @@ Params: abx80x Select one of the ABx80x family:
22512294

22522295
i2c0 Choose the I2C0 bus on GPIOs 0&1
22532296

2254-
i2c_csi_dsi Choose the I2C0 bus on GPIOs 44&45
2297+
i2c_csi_dsi Choose the I2C bus connected to the main
2298+
camera/display connector.
2299+
See "dtparam -h i2c_csi_dsi" for details.
2300+
2301+
i2c_csi_dsi0 Choose the I2C bus connected to the second
2302+
camera/display connector, if present.
2303+
See "dtparam -h i2c_csi_dsi0" for details.
22552304

22562305
i2c3 Choose the I2C3 bus (configure with the i2c3
22572306
overlay - BCM2711 only)
@@ -2517,7 +2566,12 @@ Params: addr Set the address for the ADT7410, BH1750, BME280,
25172566

25182567
i2c0 Choose the I2C0 bus on GPIOs 0&1
25192568

2520-
i2c_csi_dsi Choose the I2C0 bus on GPIOs 44&45
2569+
i2c_csi_dsi Choose the I2C bus connected to the main
2570+
camera/display connector.
2571+
See "dtparam -h i2c_csi_dsi" for details.
2572+
i2c_csi_dsi0 Choose the I2C bus connected to the second
2573+
camera/display connector, if present.
2574+
See "dtparam -h i2c_csi_dsi0" for details.
25212575

25222576
i2c3 Choose the I2C3 bus (configure with the i2c3
25232577
overlay - BCM2711 only)
@@ -3144,7 +3198,12 @@ Params: gpiopin Gpio pin connected to the INTA output of the
31443198
mcp23008 Configure an MCP23008 instead.
31453199
noints Disable the interrupt GPIO line.
31463200
i2c0 Choose the I2C0 bus on GPIOs 0&1
3147-
i2c_csi_dsi Choose the I2C0 bus on GPIOs 44&45
3201+
i2c_csi_dsi Choose the I2C bus connected to the main
3202+
camera/display connector.
3203+
See "dtparam -h i2c_csi_dsi" for details.
3204+
i2c_csi_dsi0 Choose the I2C bus connected to the second
3205+
camera/display connector, if present.
3206+
See "dtparam -h i2c_csi_dsi0" for details.
31483207
i2c3 Choose the I2C3 bus (configure with the i2c3
31493208
overlay - BCM2711 only)
31503209
i2c4 Choose the I2C4 bus (configure with the i2c4
@@ -3604,7 +3663,12 @@ Params: addr I2C address of expander. Default 0x20.
36043663
pca9654 Select the Onnn PCA9654 (8 bit)
36053664
xra1202 Select the Exar XRA1202 (8 bit)
36063665
i2c0 Choose the I2C0 bus on GPIOs 0&1
3607-
i2c_csi_dsi Choose the I2C0 bus on GPIOs 44&45
3666+
i2c_csi_dsi Choose the I2C bus connected to the main
3667+
camera/display connector.
3668+
See "dtparam -h i2c_csi_dsi" for details.
3669+
i2c_csi_dsi0 Choose the I2C bus connected to the second
3670+
camera/display connector, if present.
3671+
See "dtparam -h i2c_csi_dsi0" for details.
36083672
i2c3 Choose the I2C3 bus (configure with the i2c3
36093673
overlay - BCM2711 only)
36103674
i2c4 Choose the I2C3 bus (configure with the i2c3
@@ -3626,7 +3690,12 @@ Params: addr I2C address of expander. Default
36263690
pcf8575 Select the NXP PCF8575 (16 bit)
36273691
pca8574 Select the NXP PCA8574 (8 bit)
36283692
i2c0 Choose the I2C0 bus on GPIOs 0&1
3629-
i2c_csi_dsi Choose the I2C0 bus on GPIOs 44&45
3693+
i2c_csi_dsi Choose the I2C bus connected to the main
3694+
camera/display connector.
3695+
See "dtparam -h i2c_csi_dsi" for details.
3696+
i2c_csi_dsi0 Choose the I2C bus connected to the second
3697+
camera/display connector, if present.
3698+
See "dtparam -h i2c_csi_dsi0" for details.
36303699
i2c3 Choose the I2C3 bus (configure with the i2c3
36313700
overlay - BCM2711 only)
36323701
i2c4 Choose the I2C3 bus (configure with the i2c3
@@ -4296,7 +4365,12 @@ Params: int_pin GPIO used for IRQ (default 24)
42964365
addr Address (default 0x48)
42974366
xtal On-board crystal frequency (default 14745600)
42984367
i2c0 Choose the I2C0 bus on GPIOs 0&1
4299-
i2c_csi_dsi Choose the I2C0 bus on GPIOs 44&45
4368+
i2c_csi_dsi Choose the I2C bus connected to the main
4369+
camera/display connector.
4370+
See "dtparam -h i2c_csi_dsi" for details.
4371+
i2c_csi_dsi0 Choose the I2C bus connected to the second
4372+
camera/display connector, if present.
4373+
See "dtparam -h i2c_csi_dsi0" for details.
43004374
i2c3 Choose the I2C3 bus (configure with the i2c3
43014375
overlay - BCM2711 only)
43024376
i2c4 Choose the I2C4 bus (configure with the i2c4
@@ -4325,7 +4399,12 @@ Params: int_pin GPIO used for IRQ (default 24)
43254399
addr Address (default 0x48)
43264400
xtal On-board crystal frequency (default 14745600)
43274401
i2c0 Choose the I2C0 bus on GPIOs 0&1
4328-
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.
43294408
i2c3 Choose the I2C3 bus (configure with the i2c3
43304409
overlay - BCM2711 only)
43314410
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)