| 1 |
# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) |
| 2 |
%YAML 1.2 |
| 3 |
--- |
| 4 |
$id: http://devicetree.org/schemas/mtd/st,spear600-smi.yaml# |
| 5 |
$schema: http://devicetree.org/meta-schemas/core.yaml# |
| 6 |
|
| 7 |
title: STMicroelectronics SPEAr600 Serial Memory Interface (SMI) Controller |
| 8 |
|
| 9 |
maintainers: |
| 10 |
- Richard Weinberger <[email protected]> |
| 11 |
|
| 12 |
description: |
| 13 |
The SPEAr600 Serial Memory Interface (SMI) is a dedicated serial flash |
| 14 |
controller supporting up to four chip selects for serial NOR flashes |
| 15 |
connected in parallel. The controller is memory-mapped and the attached |
| 16 |
flash devices appear in the CPU address space.The driver |
| 17 |
(drivers/mtd/devices/spear_smi.c) probes the attached flashes |
| 18 |
dynamically by sending commands (e.g., RDID) to each bank. |
| 19 |
Flash sub nodes describe the memory range and optional per-flash |
| 20 |
properties. |
| 21 |
|
| 22 |
properties: |
| 23 |
compatible: |
| 24 |
const: st,spear600-smi |
| 25 |
|
| 26 |
reg: |
| 27 |
maxItems: 1 |
| 28 |
|
| 29 |
interrupts: |
| 30 |
maxItems: 1 |
| 31 |
|
| 32 |
"#address-cells": |
| 33 |
const: 1 |
| 34 |
|
| 35 |
"#size-cells": |
| 36 |
const: 1 |
| 37 |
|
| 38 |
clock-rate: |
| 39 |
$ref: /schemas/types.yaml#/definitions/uint32 |
| 40 |
description: Functional clock rate of the SMI controller in Hz. |
| 41 |
|
| 42 |
patternProperties: |
| 43 |
"^flash@.*$": |
| 44 |
$ref: /schemas/mtd/mtd.yaml# |
| 45 |
|
| 46 |
properties: |
| 47 |
reg: |
| 48 |
maxItems: 1 |
| 49 |
|
| 50 |
st,smi-fast-mode: |
| 51 |
type: boolean |
| 52 |
description: Indicates that the attached flash supports fast read mode. |
| 53 |
|
| 54 |
unevaluatedProperties: false |
| 55 |
|
| 56 |
required: |
| 57 |
- reg |
| 58 |
|
| 59 |
required: |
| 60 |
- compatible |
| 61 |
- reg |
| 62 |
- clock-rate |
| 63 |
- "#address-cells" |
| 64 |
- "#size-cells" |
| 65 |
|
| 66 |
unevaluatedProperties: false |
| 67 |
|
| 68 |
examples: |
| 69 |
- | |
| 70 |
flash@fc000000 { |
| 71 |
compatible = "st,spear600-smi"; |
| 72 |
#address-cells = <1>; |
| 73 |
#size-cells = <1>; |
| 74 |
reg = <0xfc000000 0x1000>; |
| 75 |
interrupt-parent = <&vic1>; |
| 76 |
interrupts = <12>; |
| 77 |
clock-rate = <50000000>; /* 50 MHz */ |
| 78 |
|
| 79 |
flash@fc000000 { |
| 80 |
reg = <0xfc000000 0x1000>; |
| 81 |
st,smi-fast-mode; |
| 82 |
}; |
| 83 |
}; |
| 84 |
... |