| 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 <[email protected]> |
| 11 |
- Han Xu <[email protected]> |
| 12 |
|
| 13 |
properties: |
| 14 |
compatible: |
| 15 |
oneOf: |
| 16 |
- enum: |
| 17 |
- nxp,imx94-xspi |
| 18 |
- items: |
| 19 |
- enum: |
| 20 |
- nxp,imx952-xspi |
| 21 |
- const: nxp,imx94-xspi |
| 22 |
|
| 23 |
reg: |
| 24 |
items: |
| 25 |
- description: registers address space |
| 26 |
- description: memory mapped address space |
| 27 |
|
| 28 |
reg-names: |
| 29 |
items: |
| 30 |
- const: base |
| 31 |
- const: mmap |
| 32 |
|
| 33 |
interrupts: |
| 34 |
items: |
| 35 |
- description: interrupt for EENV0 |
| 36 |
- description: interrupt for EENV1 |
| 37 |
- description: interrupt for EENV2 |
| 38 |
- description: interrupt for EENV3 |
| 39 |
- description: interrupt for EENV4 |
| 40 |
|
| 41 |
clocks: |
| 42 |
items: |
| 43 |
- description: SPI serial clock |
| 44 |
|
| 45 |
clock-names: |
| 46 |
items: |
| 47 |
- const: per |
| 48 |
|
| 49 |
required: |
| 50 |
- compatible |
| 51 |
- reg |
| 52 |
- reg-names |
| 53 |
- interrupts |
| 54 |
- clocks |
| 55 |
- clock-names |
| 56 |
|
| 57 |
allOf: |
| 58 |
- $ref: spi-controller.yaml# |
| 59 |
|
| 60 |
unevaluatedProperties: false |
| 61 |
|
| 62 |
examples: |
| 63 |
- | |
| 64 |
#include <dt-bindings/interrupt-controller/arm-gic.h> |
| 65 |
|
| 66 |
soc { |
| 67 |
#address-cells = <2>; |
| 68 |
#size-cells = <2>; |
| 69 |
|
| 70 |
spi@42b90000 { |
| 71 |
compatible = "nxp,imx94-xspi"; |
| 72 |
reg = <0x0 0x42b90000 0x0 0x50000>, <0x0 0x28000000 0x0 0x08000000>; |
| 73 |
reg-names = "base", "mmap"; |
| 74 |
interrupts = <GIC_SPI 390 IRQ_TYPE_LEVEL_HIGH>, |
| 75 |
<GIC_SPI 391 IRQ_TYPE_LEVEL_HIGH>, |
| 76 |
<GIC_SPI 392 IRQ_TYPE_LEVEL_HIGH>, |
| 77 |
<GIC_SPI 393 IRQ_TYPE_LEVEL_HIGH>, |
| 78 |
<GIC_SPI 394 IRQ_TYPE_LEVEL_HIGH>; |
| 79 |
#address-cells = <1>; |
| 80 |
#size-cells = <0>; |
| 81 |
clocks = <&scmi_1>; |
| 82 |
clock-names = "per"; |
| 83 |
|
| 84 |
flash@0 { |
| 85 |
compatible = "jedec,spi-nor"; |
| 86 |
reg = <0>; |
| 87 |
spi-max-frequency = <200000000>; |
| 88 |
spi-rx-bus-width = <8>; |
| 89 |
spi-tx-bus-width = <8>; |
| 90 |
}; |
| 91 |
}; |
| 92 |
}; |