From patchwork Sun Mar 6 11:11:14 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 12770623 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 9DFAAC433F5 for ; Sun, 6 Mar 2022 11:13:28 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:To:From:Reply-To:Cc:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=azvFpuLDVc42XLh9kv/3nLw4r2BGrXVNoF3P2hslhhE=; b=17APROHyrCvxz9 aK5IR4l2wQCYr8od20L6bX8WKlzQI/8UyzXDE1D53mxZQwd9fYvqYxL8OoE6GFIb/F60HglMKwvRV P/damak1TONKwY/gvCUjaA6bZdMcUWeTctZjiaEmFAPJ2E+KDygJxyIdzkeRrJkCJ+D7z1gDttWja vrpFjBUHs0zggfU7czOdztv5xG7KLX+8hkS3GIWLNkhBqaadoTZ3TS9Yr7KLbg6bVFpUPPR2T60e5 i/SrHod8N0OnDT7C3aMg93FtxAQ+fzZ8vUm/UeLgRy1KIYgIFcacnro2ngqPmy1U8a/VEGrPsIxnx yiDRq//hbJps+wu2bAdg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nQonw-00EV0z-Q8; Sun, 06 Mar 2022 11:12:01 +0000 Received: from smtp-relay-internal-0.canonical.com ([185.125.188.122]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1nQonW-00EUoa-5c for linux-arm-kernel@lists.infradead.org; Sun, 06 Mar 2022 11:11:36 +0000 Received: from mail-ej1-f71.google.com (mail-ej1-f71.google.com [209.85.218.71]) (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-0.canonical.com (Postfix) with ESMTPS id 7B3A23F62A for ; Sun, 6 Mar 2022 11:11:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=canonical.com; s=20210705; t=1646565092; bh=lf3L+0o9CMSrEd/gKJSlHCZX7vz5FnWuL1aM1XjlPVQ=; h=From:To:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=FK2YQEGDxu8+/e9JpEnjdtywqATzRbm7vj1bzKWF8bkBB4LY6WLMKr0rCAsE6gg9n OHEl08qU28ztVQu6Vd+O/PdD23OFsNFs992Qn8vhIM/133x2RSnDQfrFTXvoEaXR0m 4tPjzjX8OrPIpyiYPk7q+4tjrxuv88Uz+AO9463qu4Dd4tyLH3CcLMHpFPauK3rqkd MC/LrHmRwxR1wX6oRNUDOVO1rulRlRO+Pkg2KCP5copABSNKXF6+ANXUE8I8H+mx40 8C26qolDHQz9IQAXOMyC7TVr3gnD+7hEFXTWyypesjM30fLBXLc5bWEmUeeni/e+EG zgHRcS2TXutmA== Received: by mail-ej1-f71.google.com with SMTP id 13-20020a170906328d00b006982d0888a4so6085110ejw.9 for ; Sun, 06 Mar 2022 03:11:32 -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=lf3L+0o9CMSrEd/gKJSlHCZX7vz5FnWuL1aM1XjlPVQ=; b=67gpyDWH/Jr1/JguE7oWjRNefq5PORf59FmcaG4eA0krSFxI4e/Mru7kKCFBkjBGLH 6aL7wQdOiI3ubLYuyOwEbNDgokGsSmoXLaQGwaXQ23Q9eXOCkdS+J+Dndu6gbb2zawiu o+Cn0e5Ypkha9qDENv410F+6ZTfFMUXy9tEe8jQ52UZyapJ5F8JHl41gztP19uvDaiBW HIdkAtvzUUbDRMGgT4E4/TH7vRkNBAFAJhwcIGJ4oFbrgtjp2OIx/1zyeoCdu0pDkvhr AntX9YnZSO4Cpgwj0S78zlpbL7ggyKkvN+Dgaj5GYeO1FZHYzcHrIsuktTnAWyoNlz6M iH+w== X-Gm-Message-State: AOAM533zPVzKQqBbf6DVU1WVDIt5Rci7v8sOGLVnW3jdYuJakxhe+5AO 8RPoCuHUPYJ0+aHIsW85RYM8cfNKnJk1MHpaJaSDjPNBFMwAkHmmGFAF09IoGLfTEhv9gcEzMBf w9CRy5X5Do4r5NqqLsDJpD36JUcKyGtFvwEr6cWl3XN8JP4mAsLNI X-Received: by 2002:a05:6402:d0d:b0:416:1d69:f23b with SMTP id eb13-20020a0564020d0d00b004161d69f23bmr6273180edb.141.1646565091331; Sun, 06 Mar 2022 03:11:31 -0800 (PST) X-Google-Smtp-Source: ABdhPJwZtXPDKuzvvxfR2qyr8z+IQLrONJ/y+63x3Fbz/V1C7LxKea28+CanHlFXHMdCVOY2o4Xmiw== X-Received: by 2002:a05:6402:d0d:b0:416:1d69:f23b with SMTP id eb13-20020a0564020d0d00b004161d69f23bmr6273165edb.141.1646565091125; Sun, 06 Mar 2022 03:11:31 -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.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 06 Mar 2022 03:11:30 -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 Subject: [PATCH v3 01/12] dt-bindings: ufs: add common platform bindings Date: Sun, 6 Mar 2022 12:11:14 +0100 Message-Id: <20220306111125.116455-2-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 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220306_031134_367182_F193D9C1 X-CRM114-Status: GOOD ( 19.62 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Add bindings for common parts (platform) of Universal Flash Storage (UFS) Host Controllers in dtschema format. Include also the bindings directory in the UFS maintainers entry. Signed-off-by: Krzysztof Kozlowski Reviewed-by: Alim Akhtar --- .../devicetree/bindings/ufs/ufs-common.yaml | 82 +++++++++++++++++++ MAINTAINERS | 1 + 2 files changed, 83 insertions(+) create mode 100644 Documentation/devicetree/bindings/ufs/ufs-common.yaml diff --git a/Documentation/devicetree/bindings/ufs/ufs-common.yaml b/Documentation/devicetree/bindings/ufs/ufs-common.yaml new file mode 100644 index 000000000000..47a4e9e1a775 --- /dev/null +++ b/Documentation/devicetree/bindings/ufs/ufs-common.yaml @@ -0,0 +1,82 @@ +# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/ufs/ufs-common.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Common properties for Universal Flash Storage (UFS) Host Controllers + +maintainers: + - Alim Akhtar + - Avri Altman + +properties: + clocks: true + + clock-names: true + + freq-table-hz: + items: + items: + - description: Minimum frequency for given clock in Hz + - description: Maximum frequency for given clock in Hz + description: | + Array of operating frequencies in Hz 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. + + interrupts: + maxItems: 1 + + lanes-per-direction: + $ref: /schemas/types.yaml#/definitions/uint32 + enum: [1, 2] + default: 2 + description: + Number of lanes available per direction. Note that it is assume same + number of lanes is used both directions at once. + + vdd-hba-supply: + description: + Phandle to UFS host controller supply regulator node. + + vcc-supply: + description: + Phandle to VCC supply regulator node. + + vccq-supply: + description: + Phandle to VCCQ supply regulator node. + + vccq2-supply: + description: + Phandle to VCCQ2 supply regulator node. + + vcc-supply-1p8: + type: boolean + description: + For embedded UFS devices, valid VCC range is 1.7-1.95V or 2.7-3.6V. This + boolean property when set, specifies to use low voltage range of + 1.7-1.95V. Note for external UFS cards this property is invalid and valid + VCC range is always 2.7-3.6V. + + vcc-max-microamp: + description: + Specifies max. load that can be drawn from VCC supply. + + vccq-max-microamp: + description: + Specifies max. load that can be drawn from VCCQ supply. + + vccq2-max-microamp: + description: + Specifies max. load that can be drawn from VCCQ2 supply. + +dependencies: + freq-table-hz: [ 'clocks' ] + +required: + - interrupts + +additionalProperties: true diff --git a/MAINTAINERS b/MAINTAINERS index d7ea92ce1b1d..ef16268b6ca6 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -20100,6 +20100,7 @@ R: Alim Akhtar R: Avri Altman L: linux-scsi@vger.kernel.org S: Supported +F: Documentation/devicetree/bindings/ufs/ F: Documentation/scsi/ufs.rst F: drivers/scsi/ufs/