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

dt-bindings: mips: convert Ralink SoCs and boards to schema

Convert Ralink SoCs and boards bindings to YAML schema.

Signed-off-by: Sergio Paracuellos <sergio.paracuellos@gmail.com>
Link: https://lore.kernel.org/r/20211019041659.15761-1-sergio.paracuellos@gmail.com
Signed-off-by: Rob Herring <robh@kernel.org>

authored by

Sergio Paracuellos and committed by
Rob Herring
a5690a52 5628d9f1

+87 -32
-32
Documentation/devicetree/bindings/mips/ralink.txt
··· 1 - Ralink MIPS SoC device tree bindings 2 - 3 - 1. SoCs 4 - 5 - Each device tree must specify a compatible value for the Ralink SoC 6 - it uses in the compatible property of the root node. The compatible 7 - value must be one of the following values: 8 - 9 - ralink,rt2880-soc 10 - ralink,rt3050-soc 11 - ralink,rt3052-soc 12 - ralink,rt3350-soc 13 - ralink,rt3352-soc 14 - ralink,rt3883-soc 15 - ralink,rt5350-soc 16 - ralink,mt7620a-soc 17 - ralink,mt7620n-soc 18 - ralink,mt7628a-soc 19 - ralink,mt7688a-soc 20 - 21 - 2. Boards 22 - 23 - GARDENA smart Gateway (MT7688) 24 - 25 - This board is based on the MediaTek MT7688 and equipped with 128 MiB 26 - of DDR and 8 MiB of flash (SPI NOR) and additional 128MiB SPI NAND 27 - storage. 28 - 29 - ------------------------------ 30 - Required root node properties: 31 - - compatible = "gardena,smart-gateway-mt7688", "ralink,mt7688a-soc", 32 - "ralink,mt7628a-soc";
+87
Documentation/devicetree/bindings/mips/ralink.yaml
··· 1 + # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 2 + %YAML 1.2 3 + --- 4 + $id: http://devicetree.org/schemas/mips/ralink.yaml# 5 + $schema: http://devicetree.org/meta-schemas/core.yaml# 6 + 7 + title: Ralink SoC based Platforms Device Tree Bindings 8 + 9 + maintainers: 10 + - Sergio Paracuellos <sergio.paracuellos@gmail.com> 11 + 12 + description: | 13 + Boards with a Ralink SoC shall have the following properties. 14 + 15 + properties: 16 + $nodename: 17 + const: '/' 18 + compatible: 19 + oneOf: 20 + - description: Boards with Ralink RT2880 SoC 21 + items: 22 + - enum: 23 + - ralink,rt2880-eval-board 24 + - const: ralink,rt2880-soc 25 + 26 + - description: Boards with Ralink RT3050 SoC 27 + items: 28 + - const: ralink,rt3050-soc 29 + 30 + - description: Boards with Ralink RT3052 SoC 31 + items: 32 + - enum: 33 + - ralink,rt3052-eval-board 34 + - const: ralink,rt3052-soc 35 + 36 + - description: Boards with Ralink RT3350 SoC 37 + items: 38 + - const: ralink,rt3350-soc 39 + 40 + - description: Boards with Ralink RT3352 SoC 41 + items: 42 + - const: ralink,rt3352-soc 43 + 44 + - description: Boards with Ralink RT3383 SoC 45 + items: 46 + - enum: 47 + - ralink,rt3883-eval-board 48 + - const: ralink,rt3383-soc 49 + 50 + - description: Boards with Ralink RT5350 SoC 51 + items: 52 + - const: ralink,rt5350-soc 53 + 54 + - description: Boards with Mediatek/Ralink MT7620A SoC 55 + items: 56 + - enum: 57 + - ralink,mt7620a-eval-board 58 + - const: ralink,mt7620a-soc 59 + 60 + - description: Boards with Mediatek/Ralink MT7620N SoC 61 + items: 62 + - const: ralink,mt7620n-soc 63 + 64 + - description: Boards with Mediatek/Ralink MT7628A SoC 65 + items: 66 + - enum: 67 + - onion,omega2+ 68 + - vocore,vocore2 69 + - const: ralink,mt7628a-soc 70 + 71 + - description: Boards with Mediatek/Ralink MT7688A SoC 72 + items: 73 + - enum: 74 + - gardena,smart-gateway-mt7688 75 + - onion,omega2+ 76 + - const: ralink,mt7628a-soc 77 + 78 + - description: Boards with Mediatek/Ralink MT7621 SoC 79 + items: 80 + - enum: 81 + - gnubee,gb-pc1 82 + - gnubee,gb-pc2 83 + - const: mediatek,mt7621-soc 84 + 85 + additionalProperties: true 86 + 87 + ...