File tree Expand file tree Collapse file tree 4 files changed +31
-0
lines changed Expand file tree Collapse file tree 4 files changed +31
-0
lines changed Original file line number Diff line number Diff line change @@ -249,6 +249,10 @@ The MIMXRT1050 SoC has five pairs of pinmux/gpio controllers.
249
249
+---------------+-----------------+---------------------------+
250
250
| GPIO_SD_B0_05 | USDHC1_DATA3 | SD Card |
251
251
+---------------+-----------------+---------------------------+
252
+ | GPIO_AD_B1_02 | 1588_EVENT2_OUT | 1588 |
253
+ +---------------+-----------------+---------------------------+
254
+ | GPIO_AD_B1_03 | 1588_EVENT2_IN | 1588 |
255
+ +---------------+-----------------+---------------------------+
252
256
253
257
.. note ::
254
258
In order to use the SPI peripheral on this board, resistors R278,
Original file line number Diff line number Diff line change @@ -283,6 +283,17 @@ static int mimxrt1050_evk_init(const struct device *dev)
283
283
/* pull up the ENET_INT before RESET. */
284
284
GPIO_WritePinOutput (GPIO1 , 10 , 1 );
285
285
GPIO_WritePinOutput (GPIO1 , 9 , 0 );
286
+
287
+ #if defined(CONFIG_PTP_CLOCK_MCUX )
288
+ /* GPIO_AD_B1_02 is configured as 1588_EVENT2_OUT */
289
+ IOMUXC_SetPinMux (IOMUXC_GPIO_AD_B1_02_ENET_1588_EVENT2_OUT , 0U );
290
+ /* GPIO_AD_B1_02 PAD functional properties */
291
+ IOMUXC_SetPinConfig (IOMUXC_GPIO_AD_B1_02_ENET_1588_EVENT2_OUT , 0x10B0u );
292
+ /* GPIO_AD_B1_03 is configured as 1588_EVENT2_IN */
293
+ IOMUXC_SetPinMux (IOMUXC_GPIO_AD_B1_03_ENET_1588_EVENT2_IN , 0U );
294
+ /* GPIO_AD_B1_03 PAD functional properties */
295
+ IOMUXC_SetPinConfig (IOMUXC_GPIO_AD_B1_03_ENET_1588_EVENT2_IN , 0xB0E9 );
296
+ #endif
286
297
#endif
287
298
288
299
#if DT_NODE_HAS_STATUS (DT_NODELABEL (lcdif ), okay ) && CONFIG_DISPLAY
Original file line number Diff line number Diff line change @@ -265,6 +265,10 @@ The MIMXRT1060 SoC has five pairs of pinmux/gpio controllers.
265
265
+---------------+-----------------+---------------------------+
266
266
| GPIO_AD_B1_15 | SAI1_TX_SYNC | I2S |
267
267
+---------------+-----------------+---------------------------+
268
+ | GPIO_AD_B1_02 | 1588_EVENT2_OUT | 1588 |
269
+ +---------------+-----------------+---------------------------+
270
+ | GPIO_AD_B1_03 | 1588_EVENT2_IN | 1588 |
271
+ +---------------+-----------------+---------------------------+
268
272
269
273
.. note ::
270
274
In order to use the SPI peripheral on this board, resistors R278, R279,
Original file line number Diff line number Diff line change @@ -219,6 +219,18 @@ static int mimxrt1060_evk_init(const struct device *dev)
219
219
/* pull up the ENET_INT before RESET. */
220
220
GPIO_WritePinOutput (GPIO1 , 10 , 1 );
221
221
GPIO_WritePinOutput (GPIO1 , 9 , 0 );
222
+
223
+ #if defined(CONFIG_PTP_CLOCK_MCUX )
224
+ /* GPIO_AD_B1_02 is configured as 1588_EVENT2_OUT */
225
+ IOMUXC_SetPinMux (IOMUXC_GPIO_AD_B1_02_ENET_1588_EVENT2_OUT , 0U );
226
+ /* GPIO_AD_B1_02 PAD functional properties */
227
+ IOMUXC_SetPinConfig (IOMUXC_GPIO_AD_B1_02_ENET_1588_EVENT2_OUT , 0x10B0u );
228
+ /* GPIO_AD_B1_03 is configured as 1588_EVENT2_IN */
229
+ IOMUXC_SetPinMux (IOMUXC_GPIO_AD_B1_03_ENET_1588_EVENT2_IN , 0U );
230
+ /* GPIO_AD_B1_03 PAD functional properties */
231
+ IOMUXC_SetPinConfig (IOMUXC_GPIO_AD_B1_03_ENET_1588_EVENT2_IN , 0xB0E9 );
232
+ #endif
233
+
222
234
#endif
223
235
224
236
#if DT_NODE_HAS_STATUS (DT_NODELABEL (lcdif ), okay ) && CONFIG_DISPLAY
You can’t perform that action at this time.
0 commit comments