Received: by 2002:a05:6a10:413:0:0:0:0 with SMTP id 19csp1235103pxp; Sun, 6 Mar 2022 09:12:24 -0800 (PST) X-Google-Smtp-Source: ABdhPJyhh8NKRmQFaFcpyb60Y1O8XGQdMqw94NKtZrvaIeCcfUq/rL+0X/tKK6w7bhD5wLdoXZiN X-Received: by 2002:a17:906:6a01:b0:6da:8143:11e7 with SMTP id qw1-20020a1709066a0100b006da814311e7mr6471465ejc.296.1646586744619; Sun, 06 Mar 2022 09:12:24 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1646586744; cv=none; d=google.com; s=arc-20160816; b=Ze7oGUOX0u8jmzFr44uqotfFdlXErAKTIJRFJGda1wpfz6vRYUmCfkCqeh3WFok/R4 rFmkWxPp+L2yICe9jQfNhCRhN67HM+4ppFCKl9naouGJ/KTSBrSfRymj9PJlAIroZbEf PGK95lX/Enqw6VZq6fBBgZvx9Bv/StGv5uNMqNtzFUn4/QOwFJ4Ew/HXYQp70JmG3yGO b/ZoXKysGd81CrokbcO+qme6zoYmivrQPD1y/lP7fXNAq7/hjy+gKBnBHBBkcjTN7EU0 xnJ72bE8QWGyIYcQxs6eUTteoyQtPpncIxZnAJpltWY3Woes0Mt8Kk7WQbD9tl7CGpna Oyew== 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:cc:to:from :dkim-signature; bh=wgqfJLkBNpY/mAWjYm7cIkcCFLA2nEZfPDvOkx5plvo=; b=lQ8h/mc5khjhO/m1VRgX4CTbf+ph9HANSbzYjuk0KMhPjegxJXfms+R4LxNRxOwbUB rYdc+zjAz/Ytt5q8+ypLg9RiE2JOnoDvRzh1x03SM4ji9sfPbOPyQn2fIGImDfgAy9xX TDizfEdA/c5WAwOOUE96r51mqFNWgmDFpfeR0XSuC/iEyN22s1SkavXrwI3VGzlWXJ/I dwjZiRNDNGT5GYQNfd9zheu4zJilw7LfdwaXMrPco4P71SQvYtg5YU48w03Y4xqyBMRi M2E893JbGwWgC9Rmdm674PciGiwcBtB2mJDEP9+IN57mhJQEtr4xUk7pZWGy3GcWTGQ3 pstQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@canonical.com header.s=20210705 header.b=TIWRf3sJ; 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 v13-20020aa7d9cd000000b00415a5eb81e1si6897350eds.588.2022.03.06.09.11.48; Sun, 06 Mar 2022 09:12:24 -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=TIWRf3sJ; 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 S233479AbiCFLOP (ORCPT + 99 others); Sun, 6 Mar 2022 06:14:15 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49834 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233451AbiCFLNo (ORCPT ); Sun, 6 Mar 2022 06:13:44 -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 BB58C381B6 for ; Sun, 6 Mar 2022 03:12:33 -0800 (PST) Received: from mail-ed1-f72.google.com (mail-ed1-f72.google.com [209.85.208.72]) (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 05D483F60F for ; Sun, 6 Mar 2022 11:12:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=canonical.com; s=20210705; t=1646565131; bh=wgqfJLkBNpY/mAWjYm7cIkcCFLA2nEZfPDvOkx5plvo=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=TIWRf3sJzRpSQO2X+nJFAh7jO7naenJoz2ZgmUdUSF5vJTZsPoN78EhFzI3GycU7K WyK4zi55pwQDoq3WoJAbNCqMmbKMQ9Ui98qZB/0hZOKWKZoEBINeSJNb3i/l0uqAw+ hlZY9r7Yk4tIhXCWE76NLRU9USOuFuwF91y+csM2btaTmd5sQE3q6Xte0a79ishDW7 j6YqiU0IpIAZQf2DqNldIRSXjV4aXFBwcoyCGUsHnDyou0yu/gT4yVkj1r1YBNgC5e mxBEEZWYkZ6MdSsqfskAeJcLQcJ0XNL+ZuO5QtDr55HfxJ87txbdtRal8vRmr2gcdO GfAdsomNiyC5Q== Received: by mail-ed1-f72.google.com with SMTP id l8-20020a056402028800b0041636072ef0so730247edv.13 for ; Sun, 06 Mar 2022 03:12:11 -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:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=wgqfJLkBNpY/mAWjYm7cIkcCFLA2nEZfPDvOkx5plvo=; b=Ytme+0d72pRSSpyzTx6NBCZwJTh2ef1NO6fsSQ2eJ7hVtZuih0Lil8kUna/ifU9HyK RsJSMBoT4MGyDlFVE4lAvRKRRATrcJh0YKWAyKIIUqD+WyGSTWiUmzfItJNq2weWI+F/ OUuUteqZvdhvbaiuS62or8nf1a3gCjtEBovi5HBYu2tUHEyqmQB/fRP8UVC3TwlzSmJL mynC8hbDe3PsIDZYT4C8W/xsLju2611YlhQB7xKHc9wlldtGmZ6vUDQ83QFXaWKcIa4T 2O0fec28u5qdnxhTkoKbj7yKP9xm8oGCYTRzBlmFJvb+TixrOG+avsGtc8NT1xjgcvPB PjiA== X-Gm-Message-State: AOAM531gDyUWMey+WFA3h3EW0R5eXR0/Uj4dHDzQSABAskOeNzg4XoEC sC7novPdAHq24gpQDdh3VFqJ7ebaD2PyxqHcB9x2JG52oKlGslW26fubuQv8xkFXK4nrReTbZC+ MgjXspVZCPaFlHevmoqWV/27nsdbNiXW5vnBXfPmdCQ== X-Received: by 2002:a17:907:97c7:b0:6da:b3ba:6d9f with SMTP id js7-20020a17090797c700b006dab3ba6d9fmr5656087ejc.256.1646565101849; Sun, 06 Mar 2022 03:11:41 -0800 (PST) X-Received: by 2002:a17:907:97c7:b0:6da:b3ba:6d9f with SMTP id js7-20020a17090797c700b006dab3ba6d9fmr5656059ejc.256.1646565101607; Sun, 06 Mar 2022 03:11:41 -0800 (PST) Received: from localhost.localdomain (xdsl-188-155-181-108.adslplus.ch. [188.155.181.108]) by smtp.gmail.com with ESMTPSA id a9-20020a1709066d4900b006da888c3ef0sm3720444ejt.108.2022.03.06.03.11.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 06 Mar 2022 03:11:40 -0800 (PST) From: Krzysztof Kozlowski To: Alim Akhtar , Avri Altman , Rob Herring , Krzysztof Kozlowski , Andy Gross , Bjorn Andersson , Wei Xu , Matthias Brugger , Jan Kotas , Li Wei , Stanley Chu , Vignesh Raghavendra , 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 Cc: Rob Herring Subject: [PATCH v3 07/12] dt-bindings: ufs: mediatek,ufs: convert to dtschema Date: Sun, 6 Mar 2022 12:11:20 +0100 Message-Id: <20220306111125.116455-8-krzysztof.kozlowski@canonical.com> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20220306111125.116455-1-krzysztof.kozlowski@canonical.com> References: <20220306111125.116455-1-krzysztof.kozlowski@canonical.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-4.9 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 Mediatek Universal Flash Storage (UFS) Controller to DT schema format. Signed-off-by: Krzysztof Kozlowski Reviewed-by: Rob Herring --- .../devicetree/bindings/ufs/mediatek,ufs.yaml | 67 +++++++++++++++++++ .../devicetree/bindings/ufs/ufs-mediatek.txt | 45 ------------- 2 files changed, 67 insertions(+), 45 deletions(-) create mode 100644 Documentation/devicetree/bindings/ufs/mediatek,ufs.yaml delete mode 100644 Documentation/devicetree/bindings/ufs/ufs-mediatek.txt diff --git a/Documentation/devicetree/bindings/ufs/mediatek,ufs.yaml b/Documentation/devicetree/bindings/ufs/mediatek,ufs.yaml new file mode 100644 index 000000000000..32fd535a514a --- /dev/null +++ b/Documentation/devicetree/bindings/ufs/mediatek,ufs.yaml @@ -0,0 +1,67 @@ +# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/ufs/mediatek,ufs.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Mediatek Universal Flash Storage (UFS) Controller + +maintainers: + - Stanley Chu + +allOf: + - $ref: ufs-common.yaml + +properties: + compatible: + enum: + - mediatek,mt8183-ufshci + - mediatek,mt8192-ufshci + + clocks: + maxItems: 1 + + clock-names: + items: + - const: ufs + + phys: + maxItems: 1 + + reg: + maxItems: 1 + + vcc-supply: true + +required: + - compatible + - clocks + - clock-names + - phys + - reg + - vcc-supply + +unevaluatedProperties: false + +examples: + - | + #include + #include + + soc { + #address-cells = <2>; + #size-cells = <2>; + + ufs@ff3c0000 { + compatible = "mediatek,mt8183-ufshci"; + reg = <0 0x11270000 0 0x2300>; + interrupts = ; + phys = <&ufsphy>; + + clocks = <&infracfg_ao CLK_INFRA_UFS>; + clock-names = "ufs"; + freq-table-hz = <0 0>; + + vcc-supply = <&mt_pmic_vemc_ldo_reg>; + }; + }; diff --git a/Documentation/devicetree/bindings/ufs/ufs-mediatek.txt b/Documentation/devicetree/bindings/ufs/ufs-mediatek.txt deleted file mode 100644 index 63a953b672d2..000000000000 --- a/Documentation/devicetree/bindings/ufs/ufs-mediatek.txt +++ /dev/null @@ -1,45 +0,0 @@ -* Mediatek Universal Flash Storage (UFS) Host Controller - -UFS nodes are defined to describe on-chip UFS hardware macro. -Each UFS Host Controller should have its own node. - -To bind UFS PHY with UFS host controller, the controller node should -contain a phandle reference to UFS M-PHY node. - -Required properties for UFS nodes: -- compatible : Compatible list, contains the following controller: - "mediatek,mt8183-ufshci" for MediaTek UFS host controller - present on MT8183 chipsets. - "mediatek,mt8192-ufshci" for MediaTek UFS host controller - present on MT8192 chipsets. -- reg : Address and length of the UFS register set. -- phys : phandle to m-phy. -- 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. "ufs" is mandatory. - "ufs": ufshci core control clock. -- freq-table-hz : Array of operating frequencies stored in the same - order as the clocks property. If this property is not - defined or a value in the array is "0" then it is assumed - that the frequency is set by the parent clock or a - fixed rate clock source. -- vcc-supply : phandle to VCC supply regulator node. - -Example: - - ufsphy: phy@11fa0000 { - ... - }; - - ufshci@11270000 { - compatible = "mediatek,mt8183-ufshci"; - reg = <0 0x11270000 0 0x2300>; - interrupts = ; - phys = <&ufsphy>; - - clocks = <&infracfg_ao INFRACFG_AO_UFS_CG>; - clock-names = "ufs"; - freq-table-hz = <0 0>; - - vcc-supply = <&mt_pmic_vemc_ldo_reg>; - }; -- 2.32.0