Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

dt-bindings: mtd: st,spear600-smi: convert to DT schema

Convert STMicroelectronics SPEAr600 Serial Memory Interface (SMI)
Controller binding to YAML format.

Signed-off-by: Akhila YS <akhilayalmati@gmail.com>
Acked-by: Conor Dooley <conor.dooley@microchip.com>
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>

authored by

Akhila YS and committed by
Miquel Raynal
68cd8ef4 980ce2b0

+72 -29
-29
Documentation/devicetree/bindings/mtd/spear_smi.txt
··· 1 - * SPEAr SMI 2 - 3 - Required properties: 4 - - compatible : "st,spear600-smi" 5 - - reg : Address range of the mtd chip 6 - - #address-cells, #size-cells : Must be present if the device has sub-nodes 7 - representing partitions. 8 - - interrupts: Should contain the STMMAC interrupts 9 - - clock-rate : Functional clock rate of SMI in Hz 10 - 11 - Optional properties: 12 - - st,smi-fast-mode : Flash supports read in fast mode 13 - 14 - Example: 15 - 16 - smi: flash@fc000000 { 17 - compatible = "st,spear600-smi"; 18 - #address-cells = <1>; 19 - #size-cells = <1>; 20 - reg = <0xfc000000 0x1000>; 21 - interrupt-parent = <&vic1>; 22 - interrupts = <12>; 23 - clock-rate = <50000000>; /* 50MHz */ 24 - 25 - flash@f8000000 { 26 - st,smi-fast-mode; 27 - ... 28 - }; 29 - };
+72
Documentation/devicetree/bindings/mtd/st,spear600-smi.yaml
··· 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 <richard@nod.at> 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 + allOf: 23 + - $ref: mtd.yaml# 24 + 25 + properties: 26 + compatible: 27 + const: st,spear600-smi 28 + 29 + reg: 30 + maxItems: 1 31 + 32 + interrupts: 33 + maxItems: 1 34 + 35 + "#address-cells": 36 + const: 1 37 + 38 + "#size-cells": 39 + const: 1 40 + 41 + clock-rate: 42 + $ref: /schemas/types.yaml#/definitions/uint32 43 + description: Functional clock rate of the SMI controller in Hz. 44 + 45 + st,smi-fast-mode: 46 + type: boolean 47 + description: Indicates that the attached flash supports fast read mode. 48 + 49 + required: 50 + - compatible 51 + - reg 52 + - clock-rate 53 + 54 + unevaluatedProperties: false 55 + 56 + examples: 57 + - | 58 + flash@fc000000 { 59 + compatible = "st,spear600-smi"; 60 + #address-cells = <1>; 61 + #size-cells = <1>; 62 + reg = <0xfc000000 0x1000>; 63 + interrupt-parent = <&vic1>; 64 + interrupts = <12>; 65 + clock-rate = <50000000>; /* 50 MHz */ 66 + 67 + flash@f8000000 { 68 + reg = <0xfc000000 0x1000>; 69 + st,smi-fast-mode; 70 + }; 71 + }; 72 + ...