Skip to content

Commit 594b646

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

File tree

3 files changed

+55
-1
lines changed

3 files changed

+55
-1
lines changed

boards/nxp/imx8mn_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
Devices
6973
========

boards/nxp/imx8mn_evk/imx8mn_evk_mimx8mn6_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_mimx8mn_a53.dtsi

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

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

0 commit comments

Comments
 (0)