diff options
author | Fugang Duan <fugang.duan@nxp.com> | 2019-12-30 16:58:16 +0800 |
---|---|---|
committer | Fugang Duan <fugang.duan@nxp.com> | 2020-01-02 16:44:11 +0800 |
commit | f7e193218172f281d1a7186c6d54e411604b9aca (patch) | |
tree | 1fcdcbd0d253584e60cb84887863ce8a6bff468e /arch/arm64/boot/dts/freescale/imx8mp-evk.dts | |
parent | 0c0277bf2b0c31e70dcbd2d776b59832dee78f1b (diff) |
MLK-23173-9 arm64: dts: imx8mp-evk: enable i2c bus and i2c expander gpio
Enable i2c2,i2c3 bus and i2c expander gpio pca6416.
Reviewed-by: Richard Zhu <hongxing.zhu@nxp.com>
Signed-off-by: Fugang Duan <fugang.duan@nxp.com>
Diffstat (limited to 'arch/arm64/boot/dts/freescale/imx8mp-evk.dts')
-rw-r--r-- | arch/arm64/boot/dts/freescale/imx8mp-evk.dts | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/arch/arm64/boot/dts/freescale/imx8mp-evk.dts b/arch/arm64/boot/dts/freescale/imx8mp-evk.dts index 13d9626c1c83..4cef6adf8e2a 100644 --- a/arch/arm64/boot/dts/freescale/imx8mp-evk.dts +++ b/arch/arm64/boot/dts/freescale/imx8mp-evk.dts @@ -224,6 +224,27 @@ }; }; +&i2c2 { + clock-frequency = <100000>; + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_i2c2>; + status = "okay"; +}; + +&i2c3 { + clock-frequency = <100000>; + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_i2c3>; + status = "okay"; + + pca6416: gpio@20 { + compatible = "ti,tca6416"; + reg = <0x20>; + gpio-controller; + #gpio-cells = <2>; + }; +}; + &uart1 { /* BT */ pinctrl-names = "default"; pinctrl-0 = <&pinctrl_uart1>; @@ -355,6 +376,20 @@ >; }; + pinctrl_i2c2: i2c2grp { + fsl,pins = < + MX8MP_IOMUXC_I2C2_SCL__I2C2_SCL 0x400001c3 + MX8MP_IOMUXC_I2C2_SDA__I2C2_SDA 0x400001c3 + >; + }; + + pinctrl_i2c3: i2c3grp { + fsl,pins = < + MX8MP_IOMUXC_I2C3_SCL__I2C3_SCL 0x400001c3 + MX8MP_IOMUXC_I2C3_SDA__I2C3_SDA 0x400001c3 + >; + }; + pinctrl_pmic: pmicirq { fsl,pins = < MX8MP_IOMUXC_GPIO1_IO03__GPIO1_IO03 0x41 |