From patchwork Sat Oct 29 14:16:24 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Manivannan Sadhasivam X-Patchwork-Id: 12716 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:6687:0:0:0:0:0 with SMTP id l7csp1370535wru; Sat, 29 Oct 2022 07:18:33 -0700 (PDT) X-Google-Smtp-Source: AMsMyM4FkE3QGhwGLoF7DOrus/ZaGMHnw13IVn43gPHDKNEEhsxThRegjWYgxnr7f+10Srho5Ztk X-Received: by 2002:a17:902:e945:b0:186:ba20:76e8 with SMTP id b5-20020a170902e94500b00186ba2076e8mr4604283pll.165.1667053113276; Sat, 29 Oct 2022 07:18:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1667053113; cv=none; d=google.com; s=arc-20160816; b=qrHA67bntUOFvijf/zHbqkMzXNiaMA6aIYzSm5imzx78a42eI2zB21S+a6alzfo7nX LgsFVSiy4MgUrI6nPw8Nzx+/DY3Cqr76RnL/bOqdT22gg/y7KvU1PGqrZ+df2LG0cMUn pUChLX60pCZI+dDUDZaS+DKusPoruKzT5slgc3AInwe78sG/ySHvp6hjdkaWAQ4u+xz1 zSd9dhJlRobnhPc3zkkVrxyGLURALWq9UkS3px1DEjmQdZPnc7B3lf872dTramRx26vg G238j8GaOeSv1nHe4xHEdSQeEsKUFiN1TSbAQh9RIFXHbmYWZq/sAk+3CY1HnkVubned /kkg== 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=EXACZbDW7apLefN1TlPN3pFLWjPl4KvU3572LcUxyOo=; b=njFrQG/pKw85LPIgxQY/RK/2aP4LSxS2Bvi5ydTjZ1lxoUTseW5Icm/07OpOJwK1T0 rvgM4Fqi99in6KA/baySNFv4MsAjfu9e0hWfJPb/zlYvuTrq300+2cuKMyIk19PCaT53 tkXcKxQY8CeX2fcGOxAD+9V8ifiFRk1njxcAtmEfgfeEJK/WVAp6R7Wpo3riaMGeHCDB aixVD2T+rJvrMs2Pz9wRP3m55mg26ZMe7WQ4aCK99+iRm0HpTSda04ylHpy2eAEd7JgF NTynFjKGsVKDKaTZh8PndY7IKVLCb/N3rS+X9i0uCbyoaFAVGPGto/poDzQkb0i8tzG8 oVEw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=WQmci7+C; 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=linaro.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id h19-20020a63f913000000b0046f3dfb97a5si2224794pgi.660.2022.10.29.07.18.20; Sat, 29 Oct 2022 07:18:33 -0700 (PDT) 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=@linaro.org header.s=google header.b=WQmci7+C; 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=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229936AbiJ2OR6 (ORCPT + 99 others); Sat, 29 Oct 2022 10:17:58 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39438 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229933AbiJ2OR2 (ORCPT ); Sat, 29 Oct 2022 10:17:28 -0400 Received: from mail-pj1-x102d.google.com (mail-pj1-x102d.google.com [IPv6:2607:f8b0:4864:20::102d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7252A5F9B0 for ; Sat, 29 Oct 2022 07:17:16 -0700 (PDT) Received: by mail-pj1-x102d.google.com with SMTP id v4-20020a17090a088400b00212cb0ed97eso6814781pjc.5 for ; Sat, 29 Oct 2022 07:17:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=EXACZbDW7apLefN1TlPN3pFLWjPl4KvU3572LcUxyOo=; b=WQmci7+CXSW6GQ3YZTtOI6wcAHK8ZOSTP+1U4l0Ok+7yrr82esT3H1HiUJZrjVx2yy 9nfrnV0qL1ebiTDJRX886/fIPM1lDsO52NsEboppfir0n416j8YuHqNfz7x90T1u8Tef NoWJmWgAz6Toqlu7Dr2HJP+GB7m3Wq9Qvwwc+PpzsWC5PN4RK0FRHQm1IVsIYQxZrHzQ 4Gzw9pTYj+VLHFyuQ9SXaR1OEWXzKD8o7gubW4BiRbLSB06I4aO2jRYVrEAYcMY20IF6 lMoh2TTik1Qv8sTqF1qy6MIGwI7/OeyOzcm0x/njrF+JDVhng5cfwjlNpcdfrZGZBQzr 855g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=EXACZbDW7apLefN1TlPN3pFLWjPl4KvU3572LcUxyOo=; b=Ygd5S0at853JZnhaPtNiNOuWYEgA5wyjsl6GtHU6cGh6htRvGIti7ogGrkRKAMmeEV 45Xt28TmUpKVlEIutzRIcUCtbE6rsXsXj8LvV2ZrmOw4mQrf+9aegTzbO0A6+mIv6N7C cDMPq+8ZjmEYQxqkZjyPy/q1tPhQmXhlsnZsx3MO8lWvW/nHAqFKkthuFFKQtNta5w1B w2RKyYfMOkpzN3OD9WiD2juFYkuv2naijE08zqcxYd1j51Y+LDeeFnu1Dl9wijC5/sLA NJqiCBQ8MTwNH5lK6GToGkdOdR6/sI0ZuMiPUQs0xVIGBBQZK1iSTcfAmo0vMKxfRIeY Ulzw== X-Gm-Message-State: ACrzQf3MOPRsBVzdG1pk2PJQWVHECJ2Cl1bxxFyMTn81R3E1QS3vSCRG 4LRPG7PZH51PQGMnkcHeLKxm X-Received: by 2002:a17:902:aa84:b0:185:480a:85b6 with SMTP id d4-20020a170902aa8400b00185480a85b6mr4571563plr.170.1667053035929; Sat, 29 Oct 2022 07:17:15 -0700 (PDT) Received: from localhost.localdomain ([117.193.208.18]) by smtp.gmail.com with ESMTPSA id u4-20020a170902e5c400b001866049ddb1sm1370157plf.161.2022.10.29.07.17.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 29 Oct 2022 07:17:15 -0700 (PDT) From: Manivannan Sadhasivam To: martin.petersen@oracle.com, jejb@linux.ibm.com, andersson@kernel.org, vkoul@kernel.org, krzysztof.kozlowski+dt@linaro.org Cc: konrad.dybcio@somainline.org, robh+dt@kernel.org, quic_cang@quicinc.com, linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-phy@lists.infradead.org, linux-scsi@vger.kernel.org, Manivannan Sadhasivam Subject: [PATCH 06/15] dt-bindings: ufs: Add "max-gear" property for UFS device Date: Sat, 29 Oct 2022 19:46:24 +0530 Message-Id: <20221029141633.295650-7-manivannan.sadhasivam@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20221029141633.295650-1-manivannan.sadhasivam@linaro.org> References: <20221029141633.295650-1-manivannan.sadhasivam@linaro.org> MIME-Version: 1.0 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1748031885095091530?= X-GMAIL-MSGID: =?utf-8?q?1748031885095091530?= The maximum gear supported by the UFS device can be specified using the "max-gear" property. This allows the UFS controller to configure the TX/RX gear before starting communication with the UFS device. Signed-off-by: Manivannan Sadhasivam Reviewed-by: Rob Herring --- Documentation/devicetree/bindings/ufs/ufs-common.yaml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Documentation/devicetree/bindings/ufs/ufs-common.yaml b/Documentation/devicetree/bindings/ufs/ufs-common.yaml index 47a4e9e1a775..591a9bc3b99c 100644 --- a/Documentation/devicetree/bindings/ufs/ufs-common.yaml +++ b/Documentation/devicetree/bindings/ufs/ufs-common.yaml @@ -73,6 +73,11 @@ properties: description: Specifies max. load that can be drawn from VCCQ2 supply. + max-gear: + description: + Specifies max. gear the UFS device supports. + enum: [1, 2, 3, 4, 5] + dependencies: freq-table-hz: [ 'clocks' ]