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: microchip,mchp23k256: convert to DT schema

Convert Microchip 23K256 SPI SRAM MTD binding to YAML format.
Changes during conversion:
- Remove "address-cells" and "size-cells" from properties and
required sections as there is no child node for sram.

Signed-off-by: Akhila YS <akhilayalmati@gmail.com>
Acked-by: Krzysztof Kozlowski <krzysztof.kozlowski@oss.qualcomm.com>
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>

authored by

Akhila YS and committed by
Miquel Raynal
2372fe1c 9986a70d

+49 -18
-18
Documentation/devicetree/bindings/mtd/microchip,mchp23k256.txt
··· 1 - * MTD SPI driver for Microchip 23K256 (and similar) serial SRAM 2 - 3 - Required properties: 4 - - #address-cells, #size-cells : Must be present if the device has sub-nodes 5 - representing partitions. 6 - - compatible : Must be one of "microchip,mchp23k256" or "microchip,mchp23lcv1024" 7 - - reg : Chip-Select number 8 - - spi-max-frequency : Maximum frequency of the SPI bus the chip can operate at 9 - 10 - Example: 11 - 12 - spi-sram@0 { 13 - #address-cells = <1>; 14 - #size-cells = <1>; 15 - compatible = "microchip,mchp23k256"; 16 - reg = <0>; 17 - spi-max-frequency = <20000000>; 18 - };
+49
Documentation/devicetree/bindings/mtd/microchip,mchp23k256.yaml
··· 1 + # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 2 + %YAML 1.2 3 + --- 4 + $id: http://devicetree.org/schemas/mtd/microchip,mchp23k256.yaml# 5 + $schema: http://devicetree.org/meta-schemas/core.yaml# 6 + 7 + title: Microchip 23K256 SPI SRAM 8 + 9 + maintainers: 10 + - Richard Weinberger <richard@nod.at> 11 + 12 + description: 13 + The Microchip 23K256 is a 256 Kbit (32 Kbyte) serial SRAM with an 14 + SPI interface,supporting clock frequencies up to 20 MHz. It features 15 + a 32-byte page size for writes and supports byte, page, and 16 + sequential access modes. 17 + 18 + allOf: 19 + - $ref: /schemas/spi/spi-peripheral-props.yaml# 20 + 21 + properties: 22 + compatible: 23 + enum: 24 + - microchip,mchp23k256 25 + - microchip,mchp23lcv1024 26 + 27 + reg: 28 + maxItems: 1 29 + 30 + required: 31 + - reg 32 + - compatible 33 + - spi-max-frequency 34 + 35 + unevaluatedProperties: false 36 + 37 + examples: 38 + - | 39 + spi { 40 + #address-cells = <1>; 41 + #size-cells = <0>; 42 + 43 + sram@0 { 44 + compatible = "microchip,mchp23k256"; 45 + reg = <0>; 46 + spi-max-frequency = <20000000>; 47 + }; 48 + }; 49 + ...