Commit 425dd277 authored by Christopher Spinrath's avatar Christopher Spinrath Committed by Shawn Guo

ARM: dts: imx6q-utilite-pro: i2c1 is muxed

It turns out that the i2c1 adapter is connected to a multiplexer
controlled by a gpio line. The first (default) mux option connects
i2c1 to a bus connected to the already known peripherals. The other
one connects the adapter to the ddc pins of the DVI port.
Signed-off-by: default avatarChristopher Spinrath <christopher.spinrath@rwth-aachen.de>
Signed-off-by: default avatarShawn Guo <shawnguo@kernel.org>
parent c4479f6f
...@@ -71,17 +71,21 @@ power { ...@@ -71,17 +71,21 @@ power {
gpio-key,wakeup; gpio-key,wakeup;
}; };
}; };
};
&hdmi {
ddc-i2c-bus = <&i2c2>;
status = "okay";
};
&i2c1 { i2cmux {
compatible = "i2c-mux-gpio";
pinctrl-names = "default"; pinctrl-names = "default";
pinctrl-0 = <&pinctrl_i2c1>; pinctrl-0 = <&pinctrl_i2c1mux>;
status = "okay"; #address-cells = <1>;
#size-cells = <0>;
mux-gpios = <&gpio1 2 GPIO_ACTIVE_HIGH>;
i2c-parent = <&i2c1>;
i2c@0 {
reg = <0>;
#address-cells = <1>;
#size-cells = <0>;
eeprom@50 { eeprom@50 {
compatible = "at24,24c02"; compatible = "at24,24c02";
...@@ -93,6 +97,25 @@ em3027: rtc@56 { ...@@ -93,6 +97,25 @@ em3027: rtc@56 {
compatible = "emmicro,em3027"; compatible = "emmicro,em3027";
reg = <0x56>; reg = <0x56>;
}; };
};
i2c_dvi_ddc: i2c@1 {
reg = <1>;
#address-cells = <1>;
#size-cells = <0>;
};
};
};
&hdmi {
ddc-i2c-bus = <&i2c2>;
status = "okay";
};
&i2c1 {
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_i2c1>;
status = "okay";
}; };
&i2c2 { &i2c2 {
...@@ -115,6 +138,12 @@ MX6QDL_PAD_EIM_D28__I2C1_SDA 0x4001b8b1 ...@@ -115,6 +138,12 @@ MX6QDL_PAD_EIM_D28__I2C1_SDA 0x4001b8b1
>; >;
}; };
pinctrl_i2c1mux: i2c1muxgrp {
fsl,pins = <
MX6QDL_PAD_GPIO_2__GPIO1_IO02 0x1b0b0
>;
};
pinctrl_i2c2: i2c2grp { pinctrl_i2c2: i2c2grp {
fsl,pins = < fsl,pins = <
MX6QDL_PAD_KEY_COL3__I2C2_SCL 0x4001b8b1 MX6QDL_PAD_KEY_COL3__I2C2_SCL 0x4001b8b1
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment