Skip to content

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

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions arch/arm/boot/dts/overlays/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ dtbo-$(RPI_DT_OVERLAYS) += hy28a.dtbo
dtbo-$(RPI_DT_OVERLAYS) += hy28b.dtbo
dtbo-$(RPI_DT_OVERLAYS) += i2c-rtc.dtbo
dtbo-$(RPI_DT_OVERLAYS) += i2c-gpio.dtbo
dtbo-$(RPI_DT_OVERLAYS) += i2c-mux-pca9545a.dtbo
dtbo-$(RPI_DT_OVERLAYS) += i2c-mux-pca9548a.dtbo
dtbo-$(RPI_DT_OVERLAYS) += i2c-pwm-pca9685a.dtbo
dtbo-$(RPI_DT_OVERLAYS) += i2c0-bcm2708.dtbo
Expand Down
6 changes: 6 additions & 0 deletions arch/arm/boot/dts/overlays/README
Original file line number Diff line number Diff line change
Expand Up @@ -420,6 +420,12 @@ Params: i2c_gpio_sda GPIO used for I2C data (default "23")
i2c_gpio_delay_us Clock delay in microseconds
(default "2" = ~100kHz)


Name: i2c-mux-pca9545a
Info: Adds support for an NXP PCA9545A I2C multiplexer on i2c_arm
Load: dtoverlay=i2c-mux-pca9545a,<param>=<val>
Params: addr I2C address of PCA9545A (default 0x73)


Name: i2c-mux-pca9548a
Info: Adds support for an NXP PCA9548A I2C multiplexer on i2c_arm
Expand Down
47 changes: 47 additions & 0 deletions arch/arm/boot/dts/overlays/i2c-mux-pca9545a-overlay.dts
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
// Definitions for NXP PCA9545A I2C mux on ARM I2C bus.
/dts-v1/;
/plugin/;

/{
compatible = "brcm,bcm2708";

fragment@0 {
target = <&i2c_arm>;
__overlay__ {
#address-cells = <1>;
#size-cells = <0>;
status = "okay";

i2cmux: mux@73 {
compatible = "nxp,pca9545";
reg = <0x73>;
#address-cells = <1>;
#size-cells = <0>;

i2c@0 {
#address-cells = <1>;
#size-cells = <0>;
reg = <0>;
};
i2c@1 {
#address-cells = <1>;
#size-cells = <0>;
reg = <1>;
};
i2c@2 {
#address-cells = <1>;
#size-cells = <0>;
reg = <2>;
};
i2c@3 {
#address-cells = <1>;
#size-cells = <0>;
reg = <3>;
};
};
};
};
__overrides__ {
addr = <&i2cmux>,"reg:0";
};
};