-
Notifications
You must be signed in to change notification settings - Fork 5.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
dtoverlays: Add override for target-path on I2C overlays #6541
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm happy with that. It could go in i2c-rtc
and i2c-sensor
as well.
I was wanting to make sure you approved of the approach, but was then intending to add it to the majority of the overlays for I2C peripherals. I'll go and update a load more now. |
42e8a83
to
02f3a93
Compare
Updated with almost all the I2C based overlays. Now to just get all the dtoverlaycheck issues sorted..... |
To allow for attaching any of the standard overlays to a bitbashed i2c-gpio bus, allow specifying the target path for the overlay. Suggested by: https://forums.raspberrypi.com/viewtopic.php?t=381059 Example: dtoverlay=i2c-gpio,i2c_gpio_sda=10,i2c_gpio_scl=11 dtoverlay=mcp23017,i2c-path=/i2c@0 dtoverlay=i2c-gpio,i2c_gpio_sda=12,i2c_gpio_scl=13,bus=3 dtoverlay=mcp23017,i2c-path=/i2c@3 Signed-off-by: Dave Stevenson <[email protected]>
kernel: dtoverlays: Add override for target-path on I2C overlays See: raspberrypi/linux#6541 kernel: misc: rp1-pio: Support larger data transfers See: raspberrypi/linux#6543 kernel: dtoverlays: Use continuous clock mode for ov9281 See: raspberrypi/linux#6542 kernel: overlays: goodix: Allow override i2c address See: raspberrypi/linux#6547 kernel: Add PIO-assisted WS2812 LEDs driver See: raspberrypi/linux#6551 kernel: overlays: Add and document i2c_csi_dsi0 parameters See: raspberrypi/linux#6553
kernel: dtoverlays: Add override for target-path on I2C overlays See: raspberrypi/linux#6541 kernel: misc: rp1-pio: Support larger data transfers See: raspberrypi/linux#6543 kernel: dtoverlays: Use continuous clock mode for ov9281 See: raspberrypi/linux#6542 kernel: overlays: goodix: Allow override i2c address See: raspberrypi/linux#6547 kernel: Add PIO-assisted WS2812 LEDs driver See: raspberrypi/linux#6551 kernel: overlays: Add and document i2c_csi_dsi0 parameters See: raspberrypi/linux#6553
To allow for attaching any of the standard overlays to a bitbashed i2c-gpio bus, allow specifying the target path for the overlay.
Suggested by:
https://forums.raspberrypi.com/viewtopic.php?t=381059 2 overlays implemented as examples, but could be applied to all.
Example: