Skip to content

Commit 424164d

Browse files
Phil Elwellpopcornmix
Phil Elwell
authored andcommitted
overlays: i2c-gpio: Fix the "bus" parameter
The "bus" parameter has two functions - providing unique names for multiple instances of the overlay, and allowing the number of the bus (i.e. "i2c-<bus>") to be specified. The second function hasn't worked as intended because the overlay doesn't include a "reg" property and the firmware intentionally won't create a "reg" property if one doesn't already exist. Allow the bus numbering scheme to work as intended by providing a "reg" with a default value that means "the next available one". See: #3062 Signed-off-by: Phil Elwell <[email protected]>
1 parent 373d194 commit 424164d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,10 @@
77

88
fragment@0 {
99
target-path = "/";
10+
1011
__overlay__ {
1112
i2c_gpio: i2c@0 {
13+
reg = <0xffffffff>;
1214
compatible = "i2c-gpio";
1315
gpios = <&gpio 23 0 /* sda */
1416
&gpio 24 0 /* scl */

0 commit comments

Comments
 (0)