Received: by 2002:a05:6a10:9afc:0:0:0:0 with SMTP id t28csp107558pxm; Tue, 22 Feb 2022 07:13:22 -0800 (PST) X-Google-Smtp-Source: ABdhPJxKmxsCJNcDpWDo6fYJOToRdNB+JJthkVHbUBuw/jsxBhiyR7B14Y6Gw76r6npYLCFUCFDV X-Received: by 2002:a50:fc05:0:b0:408:4d18:5070 with SMTP id i5-20020a50fc05000000b004084d185070mr27256919edr.365.1645542802499; Tue, 22 Feb 2022 07:13:22 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1645542802; cv=none; d=google.com; s=arc-20160816; b=E9WJXTAoMCVpaaVLPb4Vpm+hKYHWEUDVwQ4WGgVbkw4x5zlhfAmA+lCAwSfOr3198n gKcb//0S4d4vnFr9mmgrLNub6R77UpWilnlnviQzAZs4h9jhed7w8lFYPOeO+tWQHrip yGw2mLk8EJ8kBZ5Kup5eQZ+mDZo/5/4GsuGlXyGMTgukFjgEMmAqAWCJLkk2daAvDj2W Cw2xnNvXdBbRR8zKNXtsmIOkiuognHewtzhc8WXGqKB0v1rMA2d80mHmDxikO4g4TyQn ts3VkDhlZKPN/C66WppZcYgpzuzpoCQyLkQc2+aykGuKD21Ztq6lqkje3RVS08IY/dY+ BLmQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:to:from :dkim-signature; bh=arKzCg0MYWfR0buWW2cokaDng0neBp5ISe/OJX5gEOA=; b=GDk+XK8M13/7OAQGoOwG9EcPbQUcV75t70Peq9iYPa+i3gRvBKX433Yk5uS3I03S0D adzSiK5/+p1VyzliiRFKCTctMQygT+GRkEb3XeEWeiJAB6W4aOSr/XiYiqAYaeqcA2zT uEc3chWuoNAIDU4p3MvmbYh5JAYz0+J7R/OPDrIC6c30vnqlfe8KNE3dPpkzZ0XWhFLL Nk/pJAM41QaIZd5VbcGAWar6r2JnLLbLl/k+iB7cDtStOvKz52fCKLPVVerk+tNgULXS cROx9x8c+DqEjWgfFa2NwIVRSnfC4BPpaeWEIX4I1Bn6H59CXBfkVXaxCPygyVwXqZDJ +G4w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@canonical.com header.s=20210705 header.b=cwE0VXLc; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=canonical.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id u7si12134190edo.603.2022.02.22.07.12.45; Tue, 22 Feb 2022 07:13:22 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@canonical.com header.s=20210705 header.b=cwE0VXLc; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=canonical.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230384AbiBVPBg (ORCPT + 99 others); Tue, 22 Feb 2022 10:01:36 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48966 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232129AbiBVPAx (ORCPT ); Tue, 22 Feb 2022 10:00:53 -0500 Received: from smtp-relay-internal-1.canonical.com (smtp-relay-internal-1.canonical.com [185.125.188.123]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 088B510EC4E for ; Tue, 22 Feb 2022 07:00:05 -0800 (PST) Received: from mail-lj1-f198.google.com (mail-lj1-f198.google.com [209.85.208.198]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by smtp-relay-internal-1.canonical.com (Postfix) with ESMTPS id D43633FCA8 for ; Tue, 22 Feb 2022 15:00:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=canonical.com; s=20210705; t=1645542003; bh=arKzCg0MYWfR0buWW2cokaDng0neBp5ISe/OJX5gEOA=; h=From:To:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=cwE0VXLclgNx4tEBtxubvNoAHmhTv4ti1HQnpvS5XmUzGBWfqHjyqx5YMCUetQd3I 7w0EzV8aeoVxdUUw/8Ql+1iSRgeCN0bBHqwbeQZV3Cu5Eig7SpvaBXDlr+0GjtLNPw Ks9JQsLuRGplFDuuLkmGvzu5WVjuFmst8S2/KXyZQc+vu5HueMrQsB0Kp2tYo3Oghs hdwgxCT/F8bJ9W3xhCyk743y+ibYkZyQLWz8ZLrKk9wDRI5YXSICJ5NMBN5MS3Cuea 6zikHM4HEO7F2LK3IciXyLpdEM/ykAoJ9rb47A3uxupPa7p96lmce6Zuvujp65Wuag Zi5c5YsZIiA3A== Received: by mail-lj1-f198.google.com with SMTP id b16-20020a05651c0b1000b0024647a956a2so1984171ljr.5 for ; Tue, 22 Feb 2022 07:00:03 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=arKzCg0MYWfR0buWW2cokaDng0neBp5ISe/OJX5gEOA=; b=Y5hm3FYUxT1ZzYvuE7xQqRgJyOqZNUJr7mhNsK+ICxVtcCb3z9X/GaoJHlHUv4MPou jDeYPKAVDAsLdDi1fkBHDu2CmP0PzECqesOXL5KezE/Adc897HLcponISPmSlUbu9g6D HBljKxSx+/0ct7wJLXCaKRNbP0dIkt6vBNCEFTPszqRqiBOHYufojphniqE02X6/Lb4Q vg4rPiBQq5OX5LacK4VBJAQ4IcEOCCBF6fq7MPS1nGKtpQIJa7cV0sXRqp9/Bq1hj8Dx UvI0oP86C9xkW+3c6az2/AbgYmsdzJs4aT+xUE/eYjZ5dIVwTmTXC2j+xXIEFjBzRipC caag== X-Gm-Message-State: AOAM53209hxN3ZazE+zpFLJSYtvZiti/bEw94VCXkn7tGb9xivrYU4/8 2heFDQYMJ0mRSOVQGrHSHGymrooi0js+nN8CnEPj1/cL65iIZMuR7tjwCinXnaxDp/WpBCAz/Ge d1GloZCxFJ9AJtu63gehi+6fzZlYfetyFGvgt9V7rig== X-Received: by 2002:a05:6402:1941:b0:413:2b5f:9074 with SMTP id f1-20020a056402194100b004132b5f9074mr2026076edz.414.1645541992920; Tue, 22 Feb 2022 06:59:52 -0800 (PST) X-Received: by 2002:a05:6402:1941:b0:413:2b5f:9074 with SMTP id f1-20020a056402194100b004132b5f9074mr2026054edz.414.1645541992714; Tue, 22 Feb 2022 06:59:52 -0800 (PST) Received: from localhost.localdomain (xdsl-188-155-181-108.adslplus.ch. [188.155.181.108]) by smtp.gmail.com with ESMTPSA id m2sm2467960ejb.20.2022.02.22.06.59.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 22 Feb 2022 06:59:52 -0800 (PST) From: Krzysztof Kozlowski To: Alim Akhtar , Avri Altman , Rob Herring , Krzysztof Kozlowski , Andy Gross , Bjorn Andersson , Wei Xu , Nishanth Menon , Vignesh Raghavendra , Tero Kristo , "James E.J. Bottomley" , "Martin K. Petersen" , Jan Kotas , Li Wei , Stanley Chu , Yaniv Gardi , linux-scsi@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, linux-mediatek@lists.infradead.org Subject: [PATCH v2 08/15] dt-bindings: ufs: snps,tc-dwc-g210: convert to dtschema Date: Tue, 22 Feb 2022 15:58:47 +0100 Message-Id: <20220222145854.358646-9-krzysztof.kozlowski@canonical.com> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20220222145854.358646-1-krzysztof.kozlowski@canonical.com> References: <20220222145854.358646-1-krzysztof.kozlowski@canonical.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Convert the Synopsys Universal Flash Storage (UFS) Controller to DT schema format. Signed-off-by: Krzysztof Kozlowski --- .../bindings/ufs/snps,tc-dwc-g210.yaml | 51 +++++++++++++++++++ .../bindings/ufs/tc-dwc-g210-pltfrm.txt | 26 ---------- 2 files changed, 51 insertions(+), 26 deletions(-) create mode 100644 Documentation/devicetree/bindings/ufs/snps,tc-dwc-g210.yaml delete mode 100644 Documentation/devicetree/bindings/ufs/tc-dwc-g210-pltfrm.txt diff --git a/Documentation/devicetree/bindings/ufs/snps,tc-dwc-g210.yaml b/Documentation/devicetree/bindings/ufs/snps,tc-dwc-g210.yaml new file mode 100644 index 000000000000..671a70d95138 --- /dev/null +++ b/Documentation/devicetree/bindings/ufs/snps,tc-dwc-g210.yaml @@ -0,0 +1,51 @@ +# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/ufs/snps,tc-dwc-g210.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Synopsys DesignWare Universal Flash Storage (UFS) Controller + +maintainers: + - Li Wei + +# Select only our matches, not all jedec,ufs +select: + properties: + compatible: + contains: + enum: + - snps,dwc-ufshcd-1.40a + required: + - compatible + +allOf: + - $ref: ufs-common.yaml + +properties: + compatible: + items: + - enum: + - snps,g210-tc-6.00-20bit + - snps,g210-tc-6.00-40bit + - const: snps,dwc-ufshcd-1.40a + - const: jedec,ufs-2.0 + + reg: + maxItems: 1 + +required: + - compatible + - reg + +unevaluatedProperties: false + +examples: + - | + ufs@d0000000 { + compatible = "snps,g210-tc-6.00-40bit", + "snps,dwc-ufshcd-1.40a", + "jedec,ufs-2.0"; + reg = <0xd0000000 0x10000>; + interrupts = <24>; + }; diff --git a/Documentation/devicetree/bindings/ufs/tc-dwc-g210-pltfrm.txt b/Documentation/devicetree/bindings/ufs/tc-dwc-g210-pltfrm.txt deleted file mode 100644 index 71c0777960e9..000000000000 --- a/Documentation/devicetree/bindings/ufs/tc-dwc-g210-pltfrm.txt +++ /dev/null @@ -1,26 +0,0 @@ -* Universal Flash Storage (UFS) DesignWare Host Controller - -DWC_UFS nodes are defined to describe on-chip UFS host controllers and MPHY. -Each UFS controller instance should have its own node. - -Required properties: -- compatible : compatible list must contain the PHY type & version: - "snps,g210-tc-6.00-20bit" - "snps,g210-tc-6.00-40bit" - complemented with the Controller IP version: - "snps,dwc-ufshcd-1.40a" - complemented with the JEDEC version: - "jedec,ufs-1.1" - "jedec,ufs-2.0" - -- reg : -- interrupts : - -Example for a setup using a 1.40a DWC Controller with a 6.00 G210 40-bit TC: - dwc-ufs@d0000000 { - compatible = "snps,g210-tc-6.00-40bit", - "snps,dwc-ufshcd-1.40a", - "jedec,ufs-2.0"; - reg = < 0xd0000000 0x10000 >; - interrupts = < 24 >; - }; -- 2.32.0