Skip to content

Commit b15d5a9

Browse files
danieldegrassedleach02
authored andcommitted
boards: twr_kv58f220m: Add pinctrl groups for twr_kv58f220m
Add pinctrl groups for twr_kv58f220m Signed-off-by: Daniel DeGrasse <[email protected]>
1 parent 954dcbd commit b15d5a9

File tree

2 files changed

+36
-11
lines changed

2 files changed

+36
-11
lines changed
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
/*
2+
* NOTE: Autogenerated file by kinetis_signal2dts.py
3+
* for MKV58F1M0VLQ24/signal_configuration.xml
4+
*
5+
* Copyright (c) 2022, NXP
6+
* SPDX-License-Identifier: Apache-2.0
7+
*/
8+
9+
10+
#include <nxp/kinetis/MKV58F1M0VLQ24-pinctrl.h>
11+
12+
&pinctrl {
13+
i2c1_default: i2c1_default {
14+
group0 {
15+
pinmux = <I2C1_SCL_PTD8>,
16+
<I2C1_SDA_PTD9>;
17+
drive-strength = "low";
18+
drive-open-drain;
19+
slew-rate = "fast";
20+
};
21+
};
22+
23+
uart0_default: uart0_default {
24+
group0 {
25+
pinmux = <UART0_RX_PTB0>,
26+
<UART0_TX_PTB1>;
27+
drive-strength = "low";
28+
slew-rate = "fast";
29+
};
30+
};
31+
32+
};

boards/arm/twr_kv58f220m/twr_kv58f220m.dts

Lines changed: 4 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@
66

77
/dts-v1/;
88

9-
#include <nxp/MKV58F1M0VLQ24.dtsi>
9+
#include <nxp/nxp_kv58f1m0vlx24.dtsi>
10+
#include "twr_kv58f220m-pinctrl.dtsi"
1011

1112
/ {
1213
model = "NXP Kinetis KV58 MCU Tower System Module";
@@ -131,7 +132,7 @@
131132

132133
&i2c1 {
133134
status = "okay";
134-
pinctrl-0 = <&I2C1_SCL_PTD8 &I2C1_SDA_PTD9>;
135+
pinctrl-0 = <&i2c1_default>;
135136
pinctrl-names = "default";
136137

137138
fxos8700@1c {
@@ -143,17 +144,9 @@
143144
};
144145
};
145146

146-
&I2C1_SCL_PTD8 {
147-
drive-open-drain;
148-
};
149-
150-
&I2C1_SDA_PTD9 {
151-
drive-open-drain;
152-
};
153-
154147
&uart0 {
155148
status = "okay";
156149
current-speed = <115200>;
157-
pinctrl-0 = <&UART0_RX_PTB0 &UART0_TX_PTB1>;
150+
pinctrl-0 = <&uart0_default>;
158151
pinctrl-names = "default";
159152
};

0 commit comments

Comments
 (0)