dts: arm: add xbar and qdec nodes and update soc

Add three xbar nodes and four qdec nodes in the rt10xx devicetree include.
Add xbara to rt1052 in Kconfig.soc

Signed-off-by: Jeppe Odgaard <jeppe.odgaard@prevas.dk>
This commit is contained in:
Jeppe Odgaard 2022-12-23 07:40:17 +01:00 committed by Maureen Helm
commit 9fb47e43a8
3 changed files with 68 additions and 0 deletions

View file

@ -991,6 +991,53 @@
nxp,rx-dma-channel = <6>;
status = "disabled";
};
qdec1: qdec@403c8000 {
compatible = "nxp,mcux-qdec";
reg = <0x403c8000 0x4000>;
interrupts = <129 0>;
status = "disabled";
};
qdec2: qdec@403cc000 {
compatible = "nxp,mcux-qdec";
reg = <0x403cc000 0x4000>;
interrupts = <130 0>;
status = "disabled";
};
qdec3: qdec@403d0000 {
compatible = "nxp,mcux-qdec";
reg = <0x403d0000 0x4000>;
interrupts = <131 0>;
status = "disabled";
};
qdec4: qdec@403d4000 {
compatible = "nxp,mcux-qdec";
reg = <0x403d4000 0x4000>;
interrupts = <132 0>;
status = "disabled";
};
xbar1: xbar1@403bc000 {
compatible = "nxp,mcux-xbar";
reg = <0x403bc000 0x4000>;
interrupts = <116 0>, <117 0>;
status = "disabled";
};
xbar2: xbar2@403c0000 {
compatible = "nxp,mcux-xbar";
reg = <0x403c0000 0x4000>;
status = "disabled";
};
xbar3: xbar3@403c4000 {
compatible = "nxp,mcux-xbar";
reg = <0x403c4000 0x4000>;
status = "disabled";
};
};
};

View file

@ -0,0 +1,20 @@
# Copyright (c) 2023, Prevas A/S
# SPDX-License-Identifier: Apache-2.0
description: MCUX XBAR (Crossbar)
compatible: "nxp,mcux-xbar"
include: base.yaml
properties:
reg:
required: true
xbar-maps:
type: array
description: |
Crossbar input and output mappings. Input is followed by the output.
Input should match pinctrl mapping in dtsi. The desired values can be
found by searching for 'enum _xbar_' in
modules/hal/nxp/mcux/mcux-sdk/devices/<device>/<device>.h.

View file

@ -184,6 +184,7 @@ config SOC_MIMXRT1052
select HAS_MCUX_IOMUXC
select HAS_MCUX_SRC
select HAS_SWO
select HAS_MCUX_XBARA
config SOC_MIMXRT1061
bool "SOC_MIMXRT1061"