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

dt-bindings: ufs: snps,tc-dwc-g210: convert to dtschema

Convert the Synopsys Universal Flash Storage (UFS) Controller to DT
schema format.

Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@canonical.com>
Reviewed-by: Rob Herring <robh@kernel.org>
Signed-off-by: Rob Herring <robh@kernel.org>
Link: https://lore.kernel.org/r/20220306111125.116455-9-krzysztof.kozlowski@canonical.com

authored by

Krzysztof Kozlowski and committed by
Rob Herring
f3e00820 954c6010

+51 -26
+51
Documentation/devicetree/bindings/ufs/snps,tc-dwc-g210.yaml
··· 1 + # SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause 2 + %YAML 1.2 3 + --- 4 + $id: http://devicetree.org/schemas/ufs/snps,tc-dwc-g210.yaml# 5 + $schema: http://devicetree.org/meta-schemas/core.yaml# 6 + 7 + title: Synopsys DesignWare Universal Flash Storage (UFS) Controller 8 + 9 + maintainers: 10 + - Li Wei <liwei213@huawei.com> 11 + 12 + # Select only our matches, not all jedec,ufs 13 + select: 14 + properties: 15 + compatible: 16 + contains: 17 + enum: 18 + - snps,dwc-ufshcd-1.40a 19 + required: 20 + - compatible 21 + 22 + allOf: 23 + - $ref: ufs-common.yaml 24 + 25 + properties: 26 + compatible: 27 + items: 28 + - enum: 29 + - snps,g210-tc-6.00-20bit 30 + - snps,g210-tc-6.00-40bit 31 + - const: snps,dwc-ufshcd-1.40a 32 + - const: jedec,ufs-2.0 33 + 34 + reg: 35 + maxItems: 1 36 + 37 + required: 38 + - compatible 39 + - reg 40 + 41 + unevaluatedProperties: false 42 + 43 + examples: 44 + - | 45 + ufs@d0000000 { 46 + compatible = "snps,g210-tc-6.00-40bit", 47 + "snps,dwc-ufshcd-1.40a", 48 + "jedec,ufs-2.0"; 49 + reg = <0xd0000000 0x10000>; 50 + interrupts = <24>; 51 + };
-26
Documentation/devicetree/bindings/ufs/tc-dwc-g210-pltfrm.txt
··· 1 - * Universal Flash Storage (UFS) DesignWare Host Controller 2 - 3 - DWC_UFS nodes are defined to describe on-chip UFS host controllers and MPHY. 4 - Each UFS controller instance should have its own node. 5 - 6 - Required properties: 7 - - compatible : compatible list must contain the PHY type & version: 8 - "snps,g210-tc-6.00-20bit" 9 - "snps,g210-tc-6.00-40bit" 10 - complemented with the Controller IP version: 11 - "snps,dwc-ufshcd-1.40a" 12 - complemented with the JEDEC version: 13 - "jedec,ufs-1.1" 14 - "jedec,ufs-2.0" 15 - 16 - - reg : <registers mapping> 17 - - interrupts : <interrupt mapping for UFS host controller IRQ> 18 - 19 - Example for a setup using a 1.40a DWC Controller with a 6.00 G210 40-bit TC: 20 - dwc-ufs@d0000000 { 21 - compatible = "snps,g210-tc-6.00-40bit", 22 - "snps,dwc-ufshcd-1.40a", 23 - "jedec,ufs-2.0"; 24 - reg = < 0xd0000000 0x10000 >; 25 - interrupts = < 24 >; 26 - };