Received: by 2002:a05:6a10:7420:0:0:0:0 with SMTP id hk32csp2750230pxb; Sat, 19 Feb 2022 22:58:26 -0800 (PST) X-Google-Smtp-Source: ABdhPJztUr0nPsY4Lw208NL0YLo/W24vJR3GBTmVxhALwL7/TmVQoQQDbaTZ70X6zPc9IDx3gRDT X-Received: by 2002:a17:906:1f05:b0:6ce:69ef:5ef0 with SMTP id w5-20020a1709061f0500b006ce69ef5ef0mr12444746ejj.606.1645340306655; Sat, 19 Feb 2022 22:58:26 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1645340306; cv=none; d=google.com; s=arc-20160816; b=PuY/XrUf46OmXWQAaeYgcSPLTYbXAhmBu9WEOqTJZ6SSBjOjdnQyKHg+0EHTzWg0zM /QwNqJbfkNqPuxuj2DUw5yxBO+g7hk/TEvJRCT0lF25WZBzwjBa9di1MVMDbDI8ZkvfN xrXgCpj9eUlK23hORPLSi8srrRDly0rV3Kuc0hyPHbh8Pze7WGptcAlXtdONP6PghglS EbZ5Q59VIm/GqU5vD03htdwh/ktqMG2KlfnH3mbLoUOaCeE5hFpE8l2GLmPD+FgF/+67 zsgxzuhbTH0rYkOL9uxl1kzz+VS+UArSfTp9ZgeE7UVTxsPp0OWD1I0YxcJ2Aq7JJeYE aFlw== 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=WPcW8NWUMCzy2JTNuQQQREfZ+SUwrjpg/KLSIOSfPWo=; b=07X3FiEjR9LntJWPvHgT5mmic2U4DZtmr6344B+CLMqO/UCVbAYq3qe9AaooIly5Z9 +Xp5Ss+FG4DFj2yUtRG1/ekZPS+naeb3eshZAJzCE8l9gEl17Ax0IhmE2gXOhx0ZuZNg rYr8c8go559zXQqc/c9rFYFGd7n9ZI7kyJpgoGbO1zbKnv2CnrpAU1sEANv+7Jtt0ptx Mo3gNXk8pJrIjv7w0mSbYlvAmVgfk1spknY05w+K9ot9dZjMgY6GPtuf0RDr7umxdUeZ p0mEqtemVp3tpbZZYCCI/0skCzDQNI7FtzJri0BcKKGTqUHv868uYTJ6DoY16r0moSlL Nilw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@canonical.com header.s=20210705 header.b=Ly9F6sn8; 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 n17si9213236edo.19.2022.02.19.22.58.03; Sat, 19 Feb 2022 22:58:26 -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=Ly9F6sn8; 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 S242909AbiBSSnI (ORCPT + 99 others); Sat, 19 Feb 2022 13:43:08 -0500 Received: from mxb-00190b01.gslb.pphosted.com ([23.128.96.19]:43596 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S242891AbiBSSm7 (ORCPT ); Sat, 19 Feb 2022 13:42:59 -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 74A2627142 for ; Sat, 19 Feb 2022 10:42:40 -0800 (PST) Received: from mail-ed1-f69.google.com (mail-ed1-f69.google.com [209.85.208.69]) (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 4861C40848 for ; Sat, 19 Feb 2022 18:42:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=canonical.com; s=20210705; t=1645296153; bh=WPcW8NWUMCzy2JTNuQQQREfZ+SUwrjpg/KLSIOSfPWo=; h=From:To:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=Ly9F6sn8KfyaWiO4Weg1PIXi9I+Rb7V8Z5DC6tTxg1EDW9IZz1sjxJjR3leky7wUf BbW3ssGHWHzZ6lGHrmZRV0v1K8oFi5Vz5/vBwtpx+7nsLtO265eAbNQvKTvt/A4PoJ vtQs1hGNcwxeOIlHxLbyuSvPNomRa9JGQJMd5blBao6UfCBlIEnawEjOHh9TFfDyaD jdMmo2Zz2yYvK2DBEQ29ZJQ6IfoowNd1bwCHr03ynLPLJ5/XttSmrxAbw4uiTlJSRl nm3Kx+Ko6qQ55E1kQEV4cCcpaglI7QV/NdUghP1DjF9r3Tn0QW/woX1mjoUaUjpj5b jCARcogVSVV4A== Received: by mail-ed1-f69.google.com with SMTP id r9-20020a05640251c900b00412d54ea618so1892886edd.3 for ; Sat, 19 Feb 2022 10:42:33 -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=WPcW8NWUMCzy2JTNuQQQREfZ+SUwrjpg/KLSIOSfPWo=; b=dK0d+YvJSrJDsePYcFqAIlY6CSknPM3F3gAigir8xO1d3LTBEkuUh98sGkymm0kDwe l/XEyH7rTb+u2IQyIkWgc0ftxWyYsQZ0nGNuvYlp4pKsAOuDwXw0sYiY+Ism1yRCNWb8 yVXSqW7+so4v+cCJQ4QBCpu0ZjfB353b4K9c4bAHkRemCVfYnaVewGhuqnaDal5skhLs 2MrEH3lq7ILaGwDnRCcsqQfHsH/BFXTv/kWuJSFrxH4ZSozsqie/zheqbZSalm9LCiY/ LYyiVn2DjXQ794ZiwOZQ82M9yJBLNPQQY247lkSue1vD7ZQF+XG5RsmMQ7fe+tJlsS9g O7+w== X-Gm-Message-State: AOAM531L88VqRSSO5Tt1yLrZT/FlprHopWoL9xkKgBfoKLeysHck2wbS oXx52vBvCVCwmegS7/tClRDU6PoeRO268I1kO/opaHJ4LQzknBESNHovDI/HB0TaQrGJL5ojObd x9mF0ZNI6SE19i800gkr+0cagEPyF9alcwVUtPJ8KOA== X-Received: by 2002:a05:6402:294e:b0:40f:905b:dab5 with SMTP id ed14-20020a056402294e00b0040f905bdab5mr13853820edb.103.1645296152247; Sat, 19 Feb 2022 10:42:32 -0800 (PST) X-Received: by 2002:a05:6402:294e:b0:40f:905b:dab5 with SMTP id ed14-20020a056402294e00b0040f905bdab5mr13853807edb.103.1645296152062; Sat, 19 Feb 2022 10:42:32 -0800 (PST) Received: from localhost.localdomain (xdsl-188-155-181-108.adslplus.ch. [188.155.181.108]) by smtp.gmail.com with ESMTPSA id j8sm6680745edw.40.2022.02.19.10.42.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 19 Feb 2022 10:42:31 -0800 (PST) From: Krzysztof Kozlowski To: Alim Akhtar , Avri Altman , Rob Herring , Krzysztof Kozlowski , Wei Xu , Andy Gross , Bjorn Andersson , Nishanth Menon , Vignesh Raghavendra , Tero Kristo , "James E.J. Bottomley" , "Martin K. Petersen" , Chanho Park , Srinivas Kandagatla , Jan Kotas , linux-scsi@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, linux-arm-msm@vger.kernel.org Subject: [RFC PATCH 3/8] dt-bindings: ufs: cdns,ufshc: convert to dtschema Date: Sat, 19 Feb 2022 19:42:19 +0100 Message-Id: <20220219184224.44339-4-krzysztof.kozlowski@canonical.com> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20220219184224.44339-1-krzysztof.kozlowski@canonical.com> References: <20220219184224.44339-1-krzysztof.kozlowski@canonical.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-4.5 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 Cadence Universal Flash Storage (UFS) Controlle to DT schema format. Signed-off-by: Krzysztof Kozlowski --- .../devicetree/bindings/ufs/cdns,ufshc.txt | 32 ----------- .../devicetree/bindings/ufs/cdns,ufshc.yaml | 56 +++++++++++++++++++ 2 files changed, 56 insertions(+), 32 deletions(-) delete mode 100644 Documentation/devicetree/bindings/ufs/cdns,ufshc.txt create mode 100644 Documentation/devicetree/bindings/ufs/cdns,ufshc.yaml diff --git a/Documentation/devicetree/bindings/ufs/cdns,ufshc.txt b/Documentation/devicetree/bindings/ufs/cdns,ufshc.txt deleted file mode 100644 index 02347b017abd..000000000000 --- a/Documentation/devicetree/bindings/ufs/cdns,ufshc.txt +++ /dev/null @@ -1,32 +0,0 @@ -* Cadence Universal Flash Storage (UFS) Controller - -UFS nodes are defined to describe on-chip UFS host controllers. -Each UFS controller instance should have its own node. -Please see the ufshcd-pltfrm.txt for a list of all available properties. - -Required properties: -- compatible : Compatible list, contains one of the following controllers: - "cdns,ufshc" - Generic CDNS HCI, - "cdns,ufshc-m31-16nm" - CDNS UFS HC + M31 16nm PHY - complemented with the JEDEC version: - "jedec,ufs-2.0" - -- reg : Address and length of the UFS register set. -- interrupts : One interrupt mapping. -- freq-table-hz : Clock frequency table. - See the ufshcd-pltfrm.txt for details. -- clocks : List of phandle and clock specifier pairs. -- clock-names : List of clock input name strings sorted in the same - order as the clocks property. "core_clk" is mandatory. - Depending on a type of a PHY, - the "phy_clk" clock can also be added, if needed. - -Example: - ufs@fd030000 { - compatible = "cdns,ufshc", "jedec,ufs-2.0"; - reg = <0xfd030000 0x10000>; - interrupts = <0 1 IRQ_TYPE_LEVEL_HIGH>; - freq-table-hz = <0 0>, <0 0>; - clocks = <&ufs_core_clk>, <&ufs_phy_clk>; - clock-names = "core_clk", "phy_clk"; - }; diff --git a/Documentation/devicetree/bindings/ufs/cdns,ufshc.yaml b/Documentation/devicetree/bindings/ufs/cdns,ufshc.yaml new file mode 100644 index 000000000000..68ae5663cd25 --- /dev/null +++ b/Documentation/devicetree/bindings/ufs/cdns,ufshc.yaml @@ -0,0 +1,56 @@ +# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/ufs/cdns,ufshc.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Cadence Universal Flash Storage (UFS) Controller + +maintainers: + - Jan Kotas + +allOf: + - $ref: ufs-common.yaml + +properties: + compatible: + items: + - enum: + - cdns,ufshc + # CDNS UFS HC + M31 16nm PHY + - cdns,ufshc-m31-16nm + - const: jedec,ufs-2.0 + + reg: + maxItems: 1 + + clocks: + minItems: 1 + maxItems: 3 + + clock-names: + items: + - const: core_clk + - const: phy_clk + - const: ref_clk + +required: + - compatible + - clocks + - clock-names + - reg + +unevaluatedProperties: false + +examples: + - | + #include + + ufs@fd030000 { + compatible = "cdns,ufshc", "jedec,ufs-2.0"; + reg = <0xfd030000 0x10000>; + interrupts = ; + freq-table = <0 0 0 0>; + clocks = <&ufs_core_clk>, <&ufs_phy_clk>; + clock-names = "core_clk", "phy_clk"; + }; -- 2.32.0