Skip to content

Commit a90ce6f

Browse files
JiafeiPankartben
authored andcommitted
dts: arm64: imx8mm: add i2c device nodes
Added i2c device nodes for soc imx8mm. Updated board supported features. Signed-off-by: Jiafei Pan <[email protected]>
1 parent d811760 commit a90ce6f

File tree

3 files changed

+55
-1
lines changed

3 files changed

+55
-1
lines changed

boards/nxp/imx8mm_evk/doc/index.rst

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,10 @@ features:
6464
+-----------+------------+-------------------------------------+
6565
| ENET | on-chip | ethernet port |
6666
+-----------+------------+-------------------------------------+
67+
| GPIO | on-chip | GPIO ports |
68+
+-----------+------------+-------------------------------------+
69+
| I2C | on-chip | I2C bus |
70+
+-----------+------------+-------------------------------------+
6771

6872
The Zephyr imx8mm_evk board for Cortex-M4 supports the following hardware
6973
features:

boards/nxp/imx8mm_evk/imx8mm_evk_mimx8mm6_a53.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#
2-
# Copyright 2024 NXP
2+
# Copyright 2024-2025 NXP
33
#
44
# SPDX-License-Identifier: Apache-2.0
55
#
@@ -15,6 +15,8 @@ ram: 1024
1515
supported:
1616
- uart
1717
- net
18+
- gpio
19+
- i2c
1820
testing:
1921
ignore_tags:
2022
- bluetooth

dts/arm64/nxp/nxp_mimx8mm_a53.dtsi

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -209,6 +209,54 @@
209209
status = "disabled";
210210
};
211211

212+
i2c1: i2c@30a20000 {
213+
compatible = "nxp,ii2c";
214+
#address-cells = <1>;
215+
#size-cells = <0>;
216+
reg = <0x30a20000 0x10000>;
217+
interrupts = <GIC_SPI 35 IRQ_TYPE_LEVEL IRQ_DEFAULT_PRIORITY>;
218+
interrupt-parent = <&gic>;
219+
clocks = <&ccm IMX_CCM_I2C1_CLK 0 0>;
220+
rdc = <RDC_DOMAIN_PERM(A53_DOMAIN_ID, RDC_DOMAIN_PERM_RW)>;
221+
status = "disabled";
222+
};
223+
224+
i2c2: i2c@30a30000 {
225+
compatible = "nxp,ii2c";
226+
#address-cells = <1>;
227+
#size-cells = <0>;
228+
reg = <0x30a30000 0x10000>;
229+
interrupts = <GIC_SPI 36 IRQ_TYPE_LEVEL IRQ_DEFAULT_PRIORITY>;
230+
interrupt-parent = <&gic>;
231+
clocks = <&ccm IMX_CCM_I2C2_CLK 0 0>;
232+
rdc = <RDC_DOMAIN_PERM(A53_DOMAIN_ID, RDC_DOMAIN_PERM_RW)>;
233+
status = "disabled";
234+
};
235+
236+
i2c3: i2c@30a40000 {
237+
compatible = "nxp,ii2c";
238+
#address-cells = <1>;
239+
#size-cells = <0>;
240+
reg = <0x30a40000 0x10000>;
241+
interrupts = <GIC_SPI 37 IRQ_TYPE_LEVEL IRQ_DEFAULT_PRIORITY>;
242+
interrupt-parent = <&gic>;
243+
clocks = <&ccm IMX_CCM_I2C3_CLK 0 0>;
244+
rdc = <RDC_DOMAIN_PERM(A53_DOMAIN_ID, RDC_DOMAIN_PERM_RW)>;
245+
status = "disabled";
246+
};
247+
248+
i2c4: i2c@30a50000 {
249+
compatible = "nxp,ii2c";
250+
#address-cells = <1>;
251+
#size-cells = <0>;
252+
reg = <0x30a50000 0x10000>;
253+
interrupts = <GIC_SPI 38 IRQ_TYPE_LEVEL IRQ_DEFAULT_PRIORITY>;
254+
interrupt-parent = <&gic>;
255+
clocks = <&ccm IMX_CCM_I2C4_CLK 0 0>;
256+
rdc = <RDC_DOMAIN_PERM(A53_DOMAIN_ID, RDC_DOMAIN_PERM_RW)>;
257+
status = "disabled";
258+
};
259+
212260
rdc: rdc@303d0000 {
213261
compatible = "nxp,rdc";
214262
reg = <0x303d0000 DT_SIZE_K(64)>;

0 commit comments

Comments
 (0)