Skip to content

Commit 64ba616

Browse files
BoughChenbroonie
authored andcommitted
spi: dt-bindings: nxp,imx94-xspi: Document imx94 xspi
Document imx94 xspi that supports interface to serial flash supporting following features: - Single-bit SPI, Dual SPI, Quad SPI and Octal SPI. - Single Data Rate or Double Data Rate modes. - Direct memory mapping of all AHB memory accesses to the chip system memory space. - Multi-master AHB accesses with priority. Reviewed-by: Krzysztof Kozlowski <krzk@kernel.org> Signed-off-by: Haibo Chen <haibo.chen@nxp.com> Link: https://patch.msgid.link/20251216-xspi-v7-1-282525220979@nxp.com Signed-off-by: Mark Brown <broonie@kernel.org>
1 parent 8f0b4cc commit 64ba616

2 files changed

Lines changed: 96 additions & 0 deletions

File tree

Lines changed: 88 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,88 @@
1+
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2+
%YAML 1.2
3+
---
4+
$id: http://devicetree.org/schemas/spi/nxp,imx94-xspi.yaml#
5+
$schema: http://devicetree.org/meta-schemas/core.yaml#
6+
7+
title: NXP External Serial Peripheral Interface (xSPI)
8+
9+
maintainers:
10+
- Haibo Chen <haibo.chen@nxp.com>
11+
- Han Xu <han.xu@nxp.com>
12+
13+
properties:
14+
compatible:
15+
oneOf:
16+
- enum:
17+
- nxp,imx94-xspi
18+
19+
reg:
20+
items:
21+
- description: registers address space
22+
- description: memory mapped address space
23+
24+
reg-names:
25+
items:
26+
- const: base
27+
- const: mmap
28+
29+
interrupts:
30+
items:
31+
- description: interrupt for EENV0
32+
- description: interrupt for EENV1
33+
- description: interrupt for EENV2
34+
- description: interrupt for EENV3
35+
- description: interrupt for EENV4
36+
37+
clocks:
38+
items:
39+
- description: SPI serial clock
40+
41+
clock-names:
42+
items:
43+
- const: per
44+
45+
required:
46+
- compatible
47+
- reg
48+
- reg-names
49+
- interrupts
50+
- clocks
51+
- clock-names
52+
53+
allOf:
54+
- $ref: spi-controller.yaml#
55+
56+
unevaluatedProperties: false
57+
58+
examples:
59+
- |
60+
#include <dt-bindings/interrupt-controller/arm-gic.h>
61+
62+
soc {
63+
#address-cells = <2>;
64+
#size-cells = <2>;
65+
66+
spi@42b90000 {
67+
compatible = "nxp,imx94-xspi";
68+
reg = <0x0 0x42b90000 0x0 0x50000>, <0x0 0x28000000 0x0 0x08000000>;
69+
reg-names = "base", "mmap";
70+
interrupts = <GIC_SPI 390 IRQ_TYPE_LEVEL_HIGH>,
71+
<GIC_SPI 391 IRQ_TYPE_LEVEL_HIGH>,
72+
<GIC_SPI 392 IRQ_TYPE_LEVEL_HIGH>,
73+
<GIC_SPI 393 IRQ_TYPE_LEVEL_HIGH>,
74+
<GIC_SPI 394 IRQ_TYPE_LEVEL_HIGH>;
75+
#address-cells = <1>;
76+
#size-cells = <0>;
77+
clocks = <&scmi_1>;
78+
clock-names = "per";
79+
80+
flash@0 {
81+
compatible = "jedec,spi-nor";
82+
reg = <0>;
83+
spi-max-frequency = <200000000>;
84+
spi-rx-bus-width = <8>;
85+
spi-tx-bus-width = <8>;
86+
};
87+
};
88+
};

MAINTAINERS

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18946,6 +18946,14 @@ S: Maintained
1894618946
F: Documentation/devicetree/bindings/sound/trivial-codec.yaml
1894718947
F: sound/soc/codecs/tfa9879*
1894818948

18949+
NXP XSPI DRIVER
18950+
M: Han Xu <han.xu@nxp.com>
18951+
M: Haibo Chen <haibo.chen@nxp.com>
18952+
L: linux-spi@vger.kernel.org
18953+
L: imx@lists.linux.dev
18954+
S: Maintained
18955+
F: Documentation/devicetree/bindings/spi/nxp,imx94-xspi.yaml
18956+
1894918957
NXP-NCI NFC DRIVER
1895018958
S: Orphan
1895118959
F: Documentation/devicetree/bindings/net/nfc/nxp,nci.yaml

0 commit comments

Comments
 (0)