-
Notifications
You must be signed in to change notification settings - Fork 5.2k
Add i2x_mux_pca9545 overlay to configure mux #1465
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
Conversation
Added the overlay.dts file for the pca9545 mux and made appropriate changes to the MAKEFILE and README
This has been tested. Combined 3 commits into 1 and fixed the overlay file name, which was a oversight on my part. |
@pelwell Looks fine to me, but I just wondered if there is a case for merging all the i2cmux overlays into one in the same way as i2c-rtc-overlay. Doing that sooner rather than later would avoid breakages if the old overlays get dropped. |
Hmm - it should be possible to do something slightly better than gluing the two files together. @camrex Does that sound OK to you? |
It turns out it isn't so nice, but it is possible. See https://gist.github.com/pelwell/a8b10579ebee2633390a747e16112fb3 for my attempt. I had hoped to break the subnodes for the different buses out into different fragments that I could then enable conditionally based on the device type, but a fragment can't target another fragment, and using target-path would stop it being used on systems where i2c-arm equates to i2c0. This implementation gives us the desired parameter syntax, and even though the file is large it doesn't take up extra space in the DTB when applied, so I'm happy with it for now. You can download a version to try here. Use like this:
|
You're a braver man than me attempting that, but it sounds like a good solution. (I have a spare tca9548 I can throw your way if you wanted hardware to test this with - I bought a pair to play with, but don't really have any application for them. Saves an order to Pimoroni) |
Thanks for the offer, but using the new dtmerge application and dtdiff I've satisfied myself that the old and new ways are equivalent. |
I have no problem with the two being merged. My only suggestion is that it I had originally planned to write a universal overlay, but went the simple I realize that in its current form it would not work, but may spark ideas I based the universal overlay off of the RTC overlay, with all devices Nevertheless, if including the whole family of pca954x is problematic, I Cameron Rex, MAI, GISP On Wed, May 11, 2016 at 9:05 AM, Phil Elwell [email protected]
|
I'm going to add 9542. If there is demand for the others then I'll do the best I can with the tools available at the time. @6by9 Shall I remove i2c-mux-pca6548a at the same time? |
Fine by me. |
I've pushed the commit adding i2c-mux and deleting i2c-mux-pca9548a. Note that the default address is 0x70 for all three variants - pca9542, pca9545 and pca9548. |
kernel: adau1977-adc: Add basic machine driver for adau1977 codec driver See: raspberrypi/linux#1454 kernel: Allow up to 24dB digital gain to be applied when using IQAudIO DAC See: raspberrypi/linux#1458 kernel: config: Add CONFIG_DRM_LOAD_EDID_FIRMWARE See: raspberrypi/linux#1456 kernel: Rpi 4.4.y: HDMI hotplug detection, overlay cleanup See: raspberrypi/linux#1457 kernel: BCM270X_DT: Add umbrella I2C Mux overlay i2c-mux See: raspberrypi/linux#1465 kernel: BCM270X_DT: Fix the tinylcd35 overlay RTC support firmware: ldconfig: Support filter based on gpio level firmware: ldconfig: Allow specifying a overlay_prefix from config.txt See: #593 firmware: dispmanx: Avoid dispmanx updates when running vc4-kms-v3d driver See: #595 firmware: RIL Camera: Correct buffer size checking for RGB and BGR888 firmware: RIL video_encode: Add support for levels 4.1 and 4.2 firmware: IMX219: Add assert on failure to init firmware: imx219: New VGA and full FOV 720p modes firmware: imx219: Reorder modes to roughly match OV5647 firmware: imx219: Enable sensor DPC See: https://www.raspberrypi.org/forums/viewtopic.php?f=43&t=145815
kernel: adau1977-adc: Add basic machine driver for adau1977 codec driver See: raspberrypi/linux#1454 kernel: Allow up to 24dB digital gain to be applied when using IQAudIO DAC See: raspberrypi/linux#1458 kernel: config: Add CONFIG_DRM_LOAD_EDID_FIRMWARE See: raspberrypi/linux#1456 kernel: Rpi 4.4.y: HDMI hotplug detection, overlay cleanup See: raspberrypi/linux#1457 kernel: BCM270X_DT: Add umbrella I2C Mux overlay i2c-mux See: raspberrypi/linux#1465 kernel: BCM270X_DT: Fix the tinylcd35 overlay RTC support firmware: ldconfig: Support filter based on gpio level firmware: ldconfig: Allow specifying a overlay_prefix from config.txt See: raspberrypi/firmware#593 firmware: dispmanx: Avoid dispmanx updates when running vc4-kms-v3d driver See: raspberrypi/firmware#595 firmware: RIL Camera: Correct buffer size checking for RGB and BGR888 firmware: RIL video_encode: Add support for levels 4.1 and 4.2 firmware: IMX219: Add assert on failure to init firmware: imx219: New VGA and full FOV 720p modes firmware: imx219: Reorder modes to roughly match OV5647 firmware: imx219: Enable sensor DPC See: https://www.raspberrypi.org/forums/viewtopic.php?f=43&t=145815
kernel: adau1977-adc: Add basic machine driver for adau1977 codec driver See: raspberrypi/linux#1454 kernel: Allow up to 24dB digital gain to be applied when using IQAudIO DAC See: raspberrypi/linux#1458 kernel: config: Add CONFIG_DRM_LOAD_EDID_FIRMWARE See: raspberrypi/linux#1456 kernel: Rpi 4.4.y: HDMI hotplug detection, overlay cleanup See: raspberrypi/linux#1457 kernel: BCM270X_DT: Add umbrella I2C Mux overlay i2c-mux See: raspberrypi/linux#1465 kernel: BCM270X_DT: Fix the tinylcd35 overlay RTC support firmware: ldconfig: Support filter based on gpio level firmware: ldconfig: Allow specifying a overlay_prefix from config.txt See: raspberrypi#593 firmware: dispmanx: Avoid dispmanx updates when running vc4-kms-v3d driver See: raspberrypi#595 firmware: RIL Camera: Correct buffer size checking for RGB and BGR888 firmware: RIL video_encode: Add support for levels 4.1 and 4.2 firmware: IMX219: Add assert on failure to init firmware: imx219: New VGA and full FOV 720p modes firmware: imx219: Reorder modes to roughly match OV5647 firmware: imx219: Enable sensor DPC See: https://www.raspberrypi.org/forums/viewtopic.php?f=43&t=145815
Added the overlay.dts file for the pca9545 mux and made appropriate
changes to the MAKEFILE and README