Skip to contentSkip to conversation

arm64: dts: imx8mn-evk: Add i2c3 support

PATCH Applied Anson Huang 2 participants 3 messages Feb 29, 2020 – Mar 11, 2020

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/2 arm64: dts: imx8mn-evk: Add i2c3 support

Enable i2c3 for i.MX8MN EVK board.

---
 arch/arm64/boot/dts/freescale/imx8mn-evk.dtsi | 14 ++++++++++++++
 1 file changed, 14 insertions(+)
arch/arm64/boot/dts/freescale/imx8mn-evk.dtsi +14 -0
index 0d2ec4a..2fb599f 100644
@@ -102,6 +102,13 @@
 	};
 };
 
+&i2c3 {
+	clock-frequency = <400000>;
+	pinctrl-names = "default";
+	pinctrl-0 = <&pinctrl_i2c3>;
+	status = "okay";
+};
+
 &snvs_pwrkey {
 	status = "okay";
 };
@@ -202,6 +209,13 @@
 		>;
 	};
 
+	pinctrl_i2c3: i2c3grp {
+		fsl,pins = <
+			MX8MN_IOMUXC_I2C3_SCL_I2C3_SCL		0x400001c3
+			MX8MN_IOMUXC_I2C3_SDA_I2C3_SDA		0x400001c3
+		>;
+	};
+
 	pinctrl_reg_usdhc2_vmmc: regusdhc2vmmc {
 		fsl,pins = <
 			MX8MN_IOMUXC_SD2_RESET_B_GPIO2_IO19	0x41
Signature · 1 line
2.7.4
#1 lore raw

PATCH 2/2 arm64: dts: imx8mn-evk: Enable pca6416 on i2c3 bus

Enable pca6416 on i.MX8MN EVK board's i2c3 bus.

---
 arch/arm64/boot/dts/freescale/imx8mn-evk.dtsi | 7 +++++++
 1 file changed, 7 insertions(+)
arch/arm64/boot/dts/freescale/imx8mn-evk.dtsi +7 -0
index 2fb599f..85fc0aa 100644
@@ -107,6 +107,13 @@
 	pinctrl-names = "default";
 	pinctrl-0 = <&pinctrl_i2c3>;
 	status = "okay";
+
+	pca6416: gpio@20 {
+		compatible = "ti,tca6416";
+		reg = <0x20>;
+		gpio-controller;
+		#gpio-cells = <2>;
+	};
 };
 
 &snvs_pwrkey {
Signature · 7 lines
2.7.4


_______________________________________________
linux-arm-kernel mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel