@@ -961,6 +961,50 @@ static int mimxrt685_evk_pinmux_init(const struct device *dev)
961
961
IOPCTL_PinMuxSet (IOPCTL , 2U , 9U , port2_pin9_config );
962
962
#endif
963
963
964
+ #if DT_NODE_HAS_COMPAT_STATUS (DT_NODELABEL (pmic_i2c ), nxp_lpc_i2c , okay ) && CONFIG_I2C
965
+ const uint32_t fc15_i2c_scl_config = (/* Pin is configured as I2C_SCL */
966
+ IOPCTL_PIO_FUNC0 |
967
+ /* Enable pull-up / pull-down function */
968
+ IOPCTL_PIO_PUPD_EN |
969
+ /* Enable pull-up function */
970
+ IOPCTL_PIO_PULLUP_EN |
971
+ /* Enables input buffer function */
972
+ IOPCTL_PIO_INBUF_EN |
973
+ /* Normal mode */
974
+ IOPCTL_PIO_SLEW_RATE_NORMAL |
975
+ /* Normal drive */
976
+ IOPCTL_PIO_FULLDRIVE_DI |
977
+ /* Analog mux is disabled */
978
+ IOPCTL_PIO_ANAMUX_DI |
979
+ /* Pseudo Output Drain is enabled */
980
+ IOPCTL_PIO_PSEDRAIN_EN |
981
+ /* Input function is not inverted */
982
+ IOPCTL_PIO_INV_DI );
983
+ /* FC15_SCL PIN (coords: E16) is configured as I2C SCL */
984
+ IOPCTL -> FC15_I2C_SCL = fc15_i2c_scl_config ;
985
+
986
+ const uint32_t fc15_i2c_sda_config = (/* Pin is configured as I2C_SDA */
987
+ IOPCTL_PIO_FUNC0 |
988
+ /* Enable pull-up / pull-down function */
989
+ IOPCTL_PIO_PUPD_EN |
990
+ /* Enable pull-up function */
991
+ IOPCTL_PIO_PULLUP_EN |
992
+ /* Enables input buffer function */
993
+ IOPCTL_PIO_INBUF_EN |
994
+ /* Normal mode */
995
+ IOPCTL_PIO_SLEW_RATE_NORMAL |
996
+ /* Normal drive */
997
+ IOPCTL_PIO_FULLDRIVE_DI |
998
+ /* Analog mux is disabled */
999
+ IOPCTL_PIO_ANAMUX_DI |
1000
+ /* Pseudo Output Drain is enabled */
1001
+ IOPCTL_PIO_PSEDRAIN_EN |
1002
+ /* Input function is not inverted */
1003
+ IOPCTL_PIO_INV_DI );
1004
+ /* FC15_SDA PIN (coords: F16) is configured as I2C SDA */
1005
+ IOPCTL -> FC15_I2C_SDA = fc15_i2c_sda_config ;
1006
+ #endif
1007
+
964
1008
#if DT_NODE_HAS_STATUS (DT_NODELABEL (lpadc0 ), okay ) && CONFIG_ADC
965
1009
/*
966
1010
* The current test and sample applications uses a single channel for
0 commit comments