Skip to content

Commit 9fdf074

Browse files
tunguyen4585carlescufi
authored andcommitted
boards: nxp: s32z2xxdc2: add Lpi2c support for s32z2xxdc
Enable Lpi2c support on s32z2xxdc boards Signed-off-by: Tu Nguyen Van <[email protected]>
1 parent f3b74d8 commit 9fdf074

File tree

6 files changed

+27
-1
lines changed

6 files changed

+27
-1
lines changed

boards/nxp/s32z2xxdc2/doc/index.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,8 @@ The boards support the following hardware features:
5757
+-----------+------------+-------------------------------------+
5858
| SAR_ADC | on-chip | adc |
5959
+-----------+------------+-------------------------------------+
60+
| LPI2C | on-chip | i2c |
61+
+-----------+------------+-------------------------------------+
6062

6163
Other hardware features are not currently supported by the port.
6264

boards/nxp/s32z2xxdc2/s32z2xxdc2_s32z270_pinctrl.dtsi

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2022-2023 NXP
2+
* Copyright 2022-2024 NXP
33
*
44
* SPDX-License-Identifier: Apache-2.0
55
*/
@@ -107,4 +107,24 @@
107107
output-enable;
108108
};
109109
};
110+
111+
i2c1_default: i2c1_default {
112+
group1 {
113+
pinmux = <(PC15_I2C_1_SDA_I | PC15_I2C_1_SDA_O)>,
114+
<(PD0_I2C_1_SCL_I | PD0_I2C_1_SCL_O)>;
115+
input-enable;
116+
output-enable;
117+
drive-open-drain;
118+
};
119+
};
120+
121+
i2c2_default: i2c2_default {
122+
group1 {
123+
pinmux = <(PJ11_I2C_2_SDA_I | PJ11_I2C_2_SDA_O)>,
124+
<(PJ10_I2C_2_SCL_I | PJ10_I2C_2_SCL_O)>;
125+
input-enable;
126+
output-enable;
127+
drive-open-drain;
128+
};
129+
};
110130
};

boards/nxp/s32z2xxdc2/s32z2xxdc2_s32z270_rtu0.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,4 +17,5 @@ supported:
1717
- spi
1818
- counter
1919
- adc
20+
- i2c
2021
vendor: nxp

boards/nxp/s32z2xxdc2/s32z2xxdc2_s32z270_rtu0_D.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,4 +17,5 @@ supported:
1717
- spi
1818
- counter
1919
- adc
20+
- i2c
2021
vendor: nxp

boards/nxp/s32z2xxdc2/s32z2xxdc2_s32z270_rtu1.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,4 +17,5 @@ supported:
1717
- spi
1818
- counter
1919
- adc
20+
- i2c
2021
vendor: nxp

boards/nxp/s32z2xxdc2/s32z2xxdc2_s32z270_rtu1_D.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,4 +17,5 @@ supported:
1717
- spi
1818
- counter
1919
- adc
20+
- i2c
2021
vendor: nxp

0 commit comments

Comments
 (0)