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-dcfg to YAML

Convert the fsl,layerscape-dcfg 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.

One thing added here, compared to the original binding is the clock
controller subnode of the LS1028A SoC and its "simple-mfd" compatible as
used in arch/arm64/boot/dts/freescale/fsl-ls1028a.dtsi as well as the
little-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/20220425140433.33936-1-michael@walle.cc

authored by

Michael Walle and committed by
Rob Herring
ac6583f5 db92a6eb

+68 -19
-19
Documentation/devicetree/bindings/arm/freescale/fsl,layerscape-dcfg.txt
··· 1 - Freescale DCFG 2 - 3 - DCFG is the device configuration unit, that provides general purpose 4 - configuration and status for the device. Such as setting the secondary 5 - core start address and release the secondary core from holdoff and startup. 6 - 7 - Required properties: 8 - - compatible: Should contain a chip-specific compatible string, 9 - Chip-specific strings are of the form "fsl,<chip>-dcfg", 10 - The following <chip>s are known to be supported: 11 - ls1012a, ls1021a, ls1043a, ls1046a, ls2080a, lx2160a 12 - 13 - - reg : should contain base address and length of DCFG memory-mapped registers 14 - 15 - Example: 16 - dcfg: dcfg@1ee0000 { 17 - compatible = "fsl,ls1021a-dcfg"; 18 - reg = <0x0 0x1ee0000 0x0 0x10000>; 19 - };
+68
Documentation/devicetree/bindings/soc/fsl/fsl,layerscape-dcfg.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-dcfg.yaml# 5 + $schema: http://devicetree.org/meta-schemas/core.yaml# 6 + 7 + title: Freescale Layerscape Device Configuration Unit 8 + 9 + maintainers: 10 + - Shawn Guo <shawnguo@kernel.org> 11 + - Li Yang <leoyang.li@nxp.com> 12 + 13 + description: | 14 + DCFG is the device configuration unit, that provides general purpose 15 + configuration and status for the device. Such as setting the secondary 16 + core start address and release the secondary core from holdoff and 17 + startup. 18 + 19 + properties: 20 + compatible: 21 + oneOf: 22 + - items: 23 + - enum: 24 + - fsl,ls1012a-dcfg 25 + - fsl,ls1021a-dcfg 26 + - fsl,ls1043a-dcfg 27 + - fsl,ls1046a-dcfg 28 + - fsl,ls1088a-dcfg 29 + - fsl,ls2080a-dcfg 30 + - fsl,lx2160a-dcfg 31 + - const: syscon 32 + 33 + - items: 34 + - enum: 35 + - fsl,ls1028a-dcfg 36 + - const: syscon 37 + - const: simple-mfd 38 + 39 + reg: 40 + maxItems: 1 41 + 42 + little-endian: true 43 + big-endian: true 44 + 45 + '#address-cells': 46 + const: 1 47 + 48 + '#size-cells': 49 + const: 1 50 + 51 + ranges: true 52 + 53 + patternProperties: 54 + "^clock-controller@[0-9a-z]+$": 55 + $ref: /schemas/clock/fsl,flexspi-clock.yaml# 56 + 57 + required: 58 + - compatible 59 + - reg 60 + 61 + additionalProperties: false 62 + 63 + examples: 64 + - | 65 + syscon@1ee0000 { 66 + compatible = "fsl,ls1021a-dcfg", "syscon"; 67 + reg = <0x1ee0000 0x10000>; 68 + };