File tree Expand file tree Collapse file tree 4 files changed +45
-18
lines changed Expand file tree Collapse file tree 4 files changed +45
-18
lines changed Original file line number Diff line number Diff line change 1+ /*
2+ * NOTE: Autogenerated file by kinetis_signal2dts.py
3+ * for MKL25Z128VLK4/signal_configuration.xml
4+ *
5+ * Copyright (c) 2022, NXP
6+ * SPDX-License-Identifier: Apache-2.0
7+ */
8+
9+
10+ #include <nxp/kinetis/MKL25Z128VLK4-pinctrl.h>
11+
12+ &pinctrl {
13+ adc0_default: adc0_default {
14+ group0 {
15+ pinmux = <ADC0_SE12_PTB2>;
16+ drive-strength = "low";
17+ slew-rate = "slow";
18+ };
19+ };
20+
21+ i2c0_default: i2c0_default {
22+ group0 {
23+ pinmux = <I2C0_SCL_PTE24>,
24+ <I2C0_SDA_PTE25>;
25+ drive-strength = "low";
26+ slew-rate = "slow";
27+ };
28+ };
29+
30+ uart0_default: uart0_default {
31+ group0 {
32+ pinmux = <UART0_RX_PTA1>,
33+ <UART0_TX_PTA2>;
34+ drive-strength = "low";
35+ slew-rate = "slow";
36+ };
37+ };
38+
39+ };
Original file line number Diff line number Diff line change 22
33/dts-v1/;
44
5- #include <nxp/MKL25Z128VLK4.dtsi>
5+ #include <nxp/nxp_kl25z.dtsi>
6+ #include "frdm_kl25z-pinctrl.dtsi"
67
78/ {
89 model = "NXP Freedom KL25Z board";
9293
9394&adc0 {
9495 status = "okay";
95- pinctrl-0 = <&ADC0_SE12_PTB2 >;
96+ pinctrl-0 = <&adc0_default >;
9697 pinctrl-names = "default";
9798};
9899
99100&i2c0 {
100101 status = "okay";
101- pinctrl-0 = <&I2C0_SCL_PTE24 &I2C0_SDA_PTE25 >;
102+ pinctrl-0 = <&i2c0_default >;
102103 pinctrl-names = "default";
103104
104105 mma8451q@1d {
110111 };
111112};
112113
113- &I2C0_SCL_PTE24 {
114- bias-pull-up;
115- };
116-
117- &I2C0_SDA_PTE25 {
118- bias-pull-up;
119- };
120-
121114&uart0 {
122115 status = "okay";
123116 current-speed = <115200>;
124- pinctrl-0 = <&UART0_RX_PTA1 &UART0_TX_PTA2 >;
117+ pinctrl-0 = <&uart0_default >;
125118 pinctrl-names = "default";
126119};
127120
Original file line number Diff line number Diff line change @@ -7,5 +7,6 @@ CONFIG_SERIAL=y
77CONFIG_CORTEX_M_SYSTICK=y
88CONFIG_GPIO=y
99CONFIG_PINMUX=y
10+ CONFIG_PINCTRL=y
1011CONFIG_SYS_CLOCK_HW_CYCLES_PER_SEC=48000000
1112CONFIG_OSC_LOW_POWER=y
Original file line number Diff line number Diff line change @@ -38,12 +38,6 @@ static int frdm_kl25z_pinmux_init(const struct device *dev)
3838 __ASSERT_NO_MSG (device_is_ready (porte ));
3939#endif
4040
41- #if DT_NODE_HAS_STATUS (DT_NODELABEL (uart0 ), okay ) && CONFIG_SERIAL
42- /* UART0 RX, TX */
43- pinmux_pin_set (porta , 1 , PORT_PCR_MUX (kPORT_MuxAlt2 ));
44- pinmux_pin_set (porta , 2 , PORT_PCR_MUX (kPORT_MuxAlt2 ));
45- #endif
46-
4741#if DT_NODE_HAS_STATUS (DT_NODELABEL (i2c0 ), okay ) && CONFIG_I2C
4842 /* I2C0 SCL, SDA */
4943 pinmux_pin_set (porte , 24 , PORT_PCR_MUX (kPORT_MuxAlt5 )
You can’t perform that action at this time.
0 commit comments