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

dt-bindings: fsl: convert fsl,layerscape-scfg to YAML

Convert the fsl,layerscape-scfg binding to the new YAML format.

In the device trees, the device node always have a "syscon"
compatible, which wasn't mentioned in the previous binding.

Also added, compared to the original binding, is the
interrupt-controller subnode as used in arch/arm/boot/dts/ls1021a.dtsi
as well as the litte-endian and big-endian properties.

Signed-off-by: Michael Walle <michael@walle.cc>
Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Signed-off-by: Rob Herring <robh@kernel.org>
Link: https://lore.kernel.org/r/20220427075338.1156449-5-michael@walle.cc

authored by

Michael Walle and committed by
Rob Herring
8274c8ea 0037c30a

+58 -19
-19
Documentation/devicetree/bindings/arm/freescale/fsl,layerscape-scfg.txt
··· 1 - Freescale SCFG 2 - 3 - SCFG is the supplemental configuration unit, that provides SoC specific 4 - configuration and status registers for the chip. Such as getting PEX port 5 - status. 6 - 7 - Required properties: 8 - - compatible: Should contain a chip-specific compatible string, 9 - Chip-specific strings are of the form "fsl,<chip>-scfg", 10 - The following <chip>s are known to be supported: 11 - ls1012a, ls1021a, ls1043a, ls1046a, ls2080a. 12 - 13 - - reg: should contain base address and length of SCFG memory-mapped registers 14 - 15 - Example: 16 - scfg: scfg@1570000 { 17 - compatible = "fsl,ls1021a-scfg"; 18 - reg = <0x0 0x1570000 0x0 0x10000>; 19 - };
+58
Documentation/devicetree/bindings/soc/fsl/fsl,layerscape-scfg.yaml
··· 1 + # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 2 + %YAML 1.2 3 + --- 4 + $id: http://devicetree.org/schemas/soc/fsl/fsl,layerscape-scfg.yaml# 5 + $schema: http://devicetree.org/meta-schemas/core.yaml# 6 + 7 + title: Freescale Layerscape Supplemental Configuration Unit 8 + 9 + maintainers: 10 + - Shawn Guo <shawnguo@kernel.org> 11 + - Li Yang <leoyang.li@nxp.com> 12 + 13 + description: | 14 + SCFG is the supplemental configuration unit, that provides SoC specific 15 + configuration and status registers for the chip. Such as getting PEX port 16 + status. 17 + 18 + properties: 19 + compatible: 20 + items: 21 + - enum: 22 + - fsl,ls1012a-scfg 23 + - fsl,ls1021a-scfg 24 + - fsl,ls1028a-scfg 25 + - fsl,ls1043a-scfg 26 + - fsl,ls1046a-scfg 27 + - const: syscon 28 + 29 + reg: 30 + maxItems: 1 31 + 32 + little-endian: true 33 + big-endian: true 34 + 35 + '#address-cells': 36 + const: 1 37 + 38 + '#size-cells': 39 + const: 1 40 + 41 + ranges: true 42 + 43 + patternProperties: 44 + "^interrupt-controller@[a-z0-9]+$": 45 + $ref: /schemas/interrupt-controller/fsl,ls-extirq.yaml# 46 + 47 + required: 48 + - compatible 49 + - reg 50 + 51 + additionalProperties: false 52 + 53 + examples: 54 + - | 55 + syscon@1570000 { 56 + compatible = "fsl,ls1021a-scfg", "syscon"; 57 + reg = <0x1570000 0x10000>; 58 + };