|
| 1 | +# Copyright 2024-2025 NXP |
| 2 | +# SPDX-License-Identifier: Apache-2.0 |
| 3 | + |
| 4 | +description: NXP XSPI controller |
| 5 | + |
| 6 | +compatible: "nxp,xspi" |
| 7 | + |
| 8 | +include: [spi-controller.yaml, pinctrl-device.yaml] |
| 9 | + |
| 10 | +properties: |
| 11 | + reg: |
| 12 | + required: true |
| 13 | + |
| 14 | + interrupts: |
| 15 | + required: true |
| 16 | + |
| 17 | + byte-order: |
| 18 | + type: int |
| 19 | + default: 3 |
| 20 | + enum: [0, 1, 2, 3] |
| 21 | + description: | |
| 22 | + Byte ordering endianness. |
| 23 | + 0 = 64-bit BE, 1 = 32-bit LE, 2 = 32-bit BE, 3 = 64-bit LE |
| 24 | +
|
| 25 | + enable-ahb-write: |
| 26 | + type: boolean |
| 27 | + description: Enable AHB write access. |
| 28 | + |
| 29 | + ahb-buffer-write-flush: |
| 30 | + type: boolean |
| 31 | + description: Enable flushing AHB buffer on write or IP access. |
| 32 | + |
| 33 | + ahb-prefetch: |
| 34 | + type: boolean |
| 35 | + description: Enable AHB read prefetch feature. |
| 36 | + |
| 37 | +child-binding: |
| 38 | + description: NXP XSPI MDAD/FRAD configurations |
| 39 | + |
| 40 | + properties: |
| 41 | + # MDAD configuration |
| 42 | + enable-descriptor-lock: |
| 43 | + type: int |
| 44 | + description: Enable descriptor lock |
| 45 | + mask-type: |
| 46 | + type: int |
| 47 | + description: Mask type (0=AND, 1=OR) |
| 48 | + mask: |
| 49 | + type: int |
| 50 | + description: 6-bit mask value |
| 51 | + master-id-reference: |
| 52 | + type: int |
| 53 | + description: Master ID reference value |
| 54 | + secure-attribute: |
| 55 | + type: int |
| 56 | + enum: [1, 2, 3] |
| 57 | + description: Security attribute setting |
| 58 | + |
| 59 | + # FRAD configuration |
| 60 | + start-address: |
| 61 | + type: int |
| 62 | + description: Start address of the memory region |
| 63 | + end-address: |
| 64 | + type: int |
| 65 | + description: End address of the memory region |
| 66 | + tg0-master-access: |
| 67 | + type: int |
| 68 | + description: Target group 0 access permissions |
| 69 | + tg1-master-access: |
| 70 | + type: int |
| 71 | + description: Target group 1 access permissions |
| 72 | + descriptor-lock: |
| 73 | + type: int |
| 74 | + enum: [0, 1, 2, 3] |
| 75 | + description: | |
| 76 | + Descriptor lock mode: |
| 77 | + - Disable |
| 78 | + - Enable till hard reset |
| 79 | + - Enable except master ID |
| 80 | + - Enable |
| 81 | + exclusive-access-lock: |
| 82 | + type: int |
| 83 | + enum: [0, 2, 3] |
| 84 | + description: | |
| 85 | + Exclusive access lock mode: |
| 86 | + - Disable |
| 87 | + - Enable except master ID |
| 88 | + - Enable |
0 commit comments