File tree Expand file tree Collapse file tree 4 files changed +75
-29
lines changed Expand file tree Collapse file tree 4 files changed +75
-29
lines changed Original file line number Diff line number Diff line change @@ -119,6 +119,16 @@ void board_early_init_hook(void)
119119 CLOCK_EnableClock (kCLOCK_GateGPIO4 );
120120#endif
121121
122+ #if DT_NODE_HAS_STATUS_OKAY (DT_NODELABEL (lpi2c0 ))
123+ CLOCK_SetClockDiv (kCLOCK_DivLPI2C0 , 1u );
124+ CLOCK_AttachClk (kFRO_LF_DIV_to_LPI2C0 );
125+ #endif
126+
127+ #if DT_NODE_HAS_STATUS_OKAY (DT_NODELABEL (lpi2c1 ))
128+ CLOCK_SetClockDiv (kCLOCK_DivLPI2C1 , 1u );
129+ CLOCK_AttachClk (kFRO_LF_DIV_to_LPI2C1 );
130+ #endif
131+
122132#if DT_NODE_HAS_STATUS_OKAY (DT_NODELABEL (lpuart0 ))
123133 CLOCK_SetClockDiv (kCLOCK_DivLPUART0 , 1u );
124134 CLOCK_AttachClk (kFRO_LF_DIV_to_LPUART0 );
Original file line number Diff line number Diff line change 33 * SPDX-License-Identifier: Apache-2.0
44 */
55
6-
76#include <nxp/mcx/MCXA344VLL-pinctrl.h>
87
98&pinctrl {
9+ pinmux_lpi2c0: pinmux_lpi2c0 {
10+ group0 {
11+ pinmux = <LPI2C0_SDA_P1_8>,
12+ <LPI2C0_SCL_P1_9>;
13+ slew-rate = "fast";
14+ drive-strength = "low";
15+ input-enable;
16+ bias-pull-up;
17+ drive-open-drain;
18+ };
19+ };
20+
21+ pinmux_lpi2c1: pinmux_lpi2c1 {
22+ group0 {
23+ pinmux = <LPI2C1_SDA_P3_28>,
24+ <LPI2C1_SCL_P3_27>;
25+ slew-rate = "fast";
26+ drive-strength = "low";
27+ input-enable;
28+ bias-pull-up;
29+ drive-open-drain;
30+ };
31+ };
32+
1033 pinmux_lpuart2: pinmux_lpuart2 {
1134 group0 {
1235 pinmux = <LPUART2_RXD_P2_3>,
13- <LPUART2_TXD_P2_2>;
36+ <LPUART2_TXD_P2_2>;
1437 drive-strength = "low";
1538 slew-rate = "fast";
1639 input-enable;
Original file line number Diff line number Diff line change 105105 status = "okay";
106106};
107107
108- &gpio0 {
109- status = "okay";
110- };
111-
112- &gpio1 {
113- status = "okay";
114- };
115-
116- &gpio2 {
117- status = "okay";
118- };
119-
120- &gpio3 {
121- status = "okay";
122- };
123-
124- &gpio4 {
125- status = "okay";
126- };
127-
128- &lpuart2 {
129- status = "okay";
130- current-speed = <115200>;
131- pinctrl-0 = <&pinmux_lpuart2>;
132- pinctrl-names = "default";
133- };
134-
135108&flash {
136109 partitions {
137110 compatible = "fixed-partitions";
160133 };
161134 };
162135};
136+
137+ &gpio0 {
138+ status = "okay";
139+ };
140+
141+ &gpio1 {
142+ status = "okay";
143+ };
144+
145+ &gpio2 {
146+ status = "okay";
147+ };
148+
149+ &gpio3 {
150+ status = "okay";
151+ };
152+
153+ &gpio4 {
154+ status = "okay";
155+ };
156+
157+ &lpi2c0 {
158+ status = "okay";
159+ pinctrl-0 = <&pinmux_lpi2c0>;
160+ pinctrl-names = "default";
161+ };
162+
163+ &lpi2c1 {
164+ status = "okay";
165+ pinctrl-0 = <&pinmux_lpi2c1>;
166+ pinctrl-names = "default";
167+ };
168+
169+ &lpuart2 {
170+ status = "okay";
171+ current-speed = <115200>;
172+ pinctrl-0 = <&pinmux_lpuart2>;
173+ pinctrl-names = "default";
174+ };
Original file line number Diff line number Diff line change @@ -17,5 +17,6 @@ supported:
1717 - arduino_gpio
1818 - flash
1919 - gpio
20+ - i2c
2021 - uart
2122vendor : nxp
You can’t perform that action at this time.
0 commit comments