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: ti,gpmc-onenand: Convert to yaml

Convert gpmc-onenand.txt to ti,gpmc-onenand.yaml.

Signed-off-by: Roger Quadros <rogerq@kernel.org>
Reviewed-by: Rob Herring <robh@kernel.org>
Signed-off-by: Tony Lindgren <tony@atomide.com>

authored by

Roger Quadros and committed by
Tony Lindgren
ed1d0eb0 02e107e8

+81 -48
-48
Documentation/devicetree/bindings/mtd/gpmc-onenand.txt
··· 1 - Device tree bindings for GPMC connected OneNANDs 2 - 3 - GPMC connected OneNAND (found on OMAP boards) are represented as child nodes of 4 - the GPMC controller with a name of "onenand". 5 - 6 - All timing relevant properties as well as generic gpmc child properties are 7 - explained in a separate documents - please refer to 8 - Documentation/devicetree/bindings/memory-controllers/omap-gpmc.txt 9 - 10 - Required properties: 11 - 12 - - compatible: "ti,omap2-onenand" 13 - - reg: The CS line the peripheral is connected to 14 - - gpmc,device-width: Width of the ONENAND device connected to the GPMC 15 - in bytes. Must be 1 or 2. 16 - 17 - Optional properties: 18 - 19 - - int-gpios: GPIO specifier for the INT pin. 20 - 21 - For inline partition table parsing (optional): 22 - 23 - - #address-cells: should be set to 1 24 - - #size-cells: should be set to 1 25 - 26 - Example for an OMAP3430 board: 27 - 28 - gpmc: gpmc@6e000000 { 29 - compatible = "ti,omap3430-gpmc"; 30 - ti,hwmods = "gpmc"; 31 - reg = <0x6e000000 0x1000000>; 32 - interrupts = <20>; 33 - gpmc,num-cs = <8>; 34 - gpmc,num-waitpins = <4>; 35 - #address-cells = <2>; 36 - #size-cells = <1>; 37 - 38 - onenand@0 { 39 - compatible = "ti,omap2-onenand"; 40 - reg = <0 0 0>; /* CS0, offset 0 */ 41 - gpmc,device-width = <2>; 42 - 43 - #address-cells = <1>; 44 - #size-cells = <1>; 45 - 46 - /* partitions go here */ 47 - }; 48 - };
+81
Documentation/devicetree/bindings/mtd/ti,gpmc-onenand.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/ti,gpmc-onenand.yaml# 5 + $schema: http://devicetree.org/meta-schemas/core.yaml# 6 + 7 + title: OneNAND over Texas Instruments GPMC bus. 8 + 9 + maintainers: 10 + - Tony Lindgren <tony@atomide.com> 11 + - Roger Quadros <rogerq@kernel.org> 12 + 13 + description: 14 + GPMC connected OneNAND (found on OMAP boards) are represented 15 + as child nodes of the GPMC controller. 16 + 17 + properties: 18 + compatible: 19 + const: ti,omap2-onenand 20 + 21 + reg: 22 + items: 23 + - description: | 24 + Chip Select number, register offset and size of 25 + OneNAND register window. 26 + 27 + "#address-cells": true 28 + 29 + "#size-cells": true 30 + 31 + int-gpios: 32 + description: GPIO specifier for the INT pin. 33 + 34 + patternProperties: 35 + "@[0-9a-f]+$": 36 + $ref: "/schemas/mtd/partitions/partition.yaml" 37 + 38 + allOf: 39 + - $ref: "/schemas/memory-controllers/ti,gpmc-child.yaml" 40 + 41 + required: 42 + - compatible 43 + - reg 44 + - "#address-cells" 45 + - "#size-cells" 46 + 47 + unevaluatedProperties: false 48 + 49 + examples: 50 + - | 51 + gpmc: memory-controller@6e000000 { 52 + compatible = "ti,omap3430-gpmc"; 53 + reg = <0x6e000000 0x02d0>; 54 + interrupts = <20>; 55 + gpmc,num-cs = <8>; 56 + gpmc,num-waitpins = <4>; 57 + clocks = <&l3s_clkctrl>; 58 + clock-names = "fck"; 59 + #address-cells = <2>; 60 + #size-cells = <1>; 61 + 62 + ranges = <0 0 0x01000000 0x01000000>, /* 16 MB for OneNAND */ 63 + <1 0 0x02000000 0x01000000>; /* 16 MB for smc91c96 */ 64 + 65 + onenand@0,0 { 66 + compatible = "ti,omap2-onenand"; 67 + reg = <0 0 0x20000>; /* CS0, offset 0, IO size 128K */ 68 + #address-cells = <1>; 69 + #size-cells = <1>; 70 + 71 + partition@0 { 72 + label = "bootloader"; 73 + reg = <0x00000000 0x00100000>; 74 + }; 75 + 76 + partition@100000 { 77 + label = "config"; 78 + reg = <0x00100000 0x002c0000>; 79 + }; 80 + }; 81 + };