From patchwork Fri Mar 31 19:59:17 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bartosz Golaszewski X-Patchwork-Id: 77964 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp809691vqo; Fri, 31 Mar 2023 13:10:21 -0700 (PDT) X-Google-Smtp-Source: AKy350ayAYiwZzcWn+QQX6+7xkE1zN+A0d8fauW4CjkleubvaydQ/1IEQWGSIiXs0ptHUm86I4nL X-Received: by 2002:a17:907:2099:b0:8b0:ad0b:7ab8 with SMTP id pv25-20020a170907209900b008b0ad0b7ab8mr28028639ejb.14.1680293421292; Fri, 31 Mar 2023 13:10:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680293421; cv=none; d=google.com; s=arc-20160816; b=OFmKo1yN5/VpherzbaLNzzFY8e/S0ZoMBhfhlSrTT1W7rERD01PQfCrfE4icV6+vhz GkIAeIi5X2+7VnopWDS0PB72zNhd/nISdmZh29QnmD1qwm7tGr7PT5TMjr2xwEmDWxt1 dcy+3ydF7AJZFVuhyGfSFhqmW5/e5ChmSCoJvsfYwMbvz5NL70JXDlVuIBZYBDHhUhlZ 47olsh00kd/7YPgTCAyDSbLkU/z0sExD3ZPkSAmfl2TpgGrTY8dL1xlnYf27VZcAJ4Fx asTWAXvbSQHn4cjFnQWZDCMNXBgh+y4eUUINpmYgFKoPy0btHChT2M/OAr4HSJibgNO+ ke3w== 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=llCiBCLkZ3VwD0RdupEiXDCSemDbuwgN30QJGJfgAvk=; b=R4pm03zvCFIsgfR1exfe4pGTqA2h8zIHPv6uXrxnTG3F/TjmyLW2EVIn21IETYKcZJ ad7q58QpnTvy5SFHpJpXxylktdS3MK29OhlMEPa+PpVpjBsTTI9ulnPkDuFlwnjZ0KVV yLFGdUO0myzlcVOTD/uv43ugTj2a20ViGzRv6irfqr882VByjMxLz5TdjiBaIhxaX46J Tf2lD35200X8YsMOG+UFRE/xZpvERRTfO9Bz6tnTmiNYLOPK38yswLz85fvWNmIcX3yM BFrMn+RFqkgMR9sRHqhLiBBhoYlWj2jPbjH8XUpIKwmBTfqG7oXSO13ZO1lDcweIFf7L aB/w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bgdev-pl.20210112.gappssmtp.com header.s=20210112 header.b=AfHuBDpH; 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 Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id y12-20020a170906914c00b00946872f37c6si1300869ejw.450.2023.03.31.13.09.56; Fri, 31 Mar 2023 13:10:21 -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=@bgdev-pl.20210112.gappssmtp.com header.s=20210112 header.b=AfHuBDpH; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229998AbjCaT7j (ORCPT + 99 others); Fri, 31 Mar 2023 15:59:39 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45590 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230452AbjCaT7g (ORCPT ); Fri, 31 Mar 2023 15:59:36 -0400 Received: from mail-wr1-x42a.google.com (mail-wr1-x42a.google.com [IPv6:2a00:1450:4864:20::42a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 91A5A135 for ; Fri, 31 Mar 2023 12:59:34 -0700 (PDT) Received: by mail-wr1-x42a.google.com with SMTP id r29so23534766wra.13 for ; Fri, 31 Mar 2023 12:59:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bgdev-pl.20210112.gappssmtp.com; s=20210112; t=1680292773; 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=llCiBCLkZ3VwD0RdupEiXDCSemDbuwgN30QJGJfgAvk=; b=AfHuBDpHyPAv0Wy3bgsU4YhWoDX8Zu+eGv/I6Fcp1ntbuuU6LHIcH1Q3CfUg3QbEYi o4+0BOp9nZjApWH3SDeKmpfyloF19qwgCTU7wujO/1899fH3wI5vF5n5KsSiaMZqbEh8 wlTYyX/cpu7wUy9tWcn6lYBInPsK7r+3LUspILEljf2ULmfRk9zUmxXqCyXmSGgM5vab ZVXwjEXMb7C6YJt39sDj0R5GDAHz+ven7V26NnHiZ5V9Gay6H+6x9wgw6eo6Se6bmNBr OhS4zkrK35OH76td3Atl4WDcZib8U85t6oaYHJY7xURVCxof1ZKZZVmm0zokcC+gxCIm EtRQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1680292773; 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=llCiBCLkZ3VwD0RdupEiXDCSemDbuwgN30QJGJfgAvk=; b=7O8MOrL3acFKxw00yB+pH8JFt3KBQA7r7in83yKQwFJzIVAqJiW0QB/AniPf91tVjD RMix9lEJfBt/sGd/KC+N1t8Oxpvokk4eEEwzqkdyyWEU/Uv2UNw1KFMfGZDLzCNve+9t UURXau8w31ELf/sMHk425fB5swmMkp6VnXtDJKCP90aCIX97m7N+DpNCH62jrZzi/ksf 1OkmcxlPfeGlW/zu7C8IZ/9U8+TCsYaAxbuC28WOP9hbUnaFS4wTYZjWq/ZvNmufuJ2e 9BsEJBrkv/9MjhBeYLAwQmX0XnsukYZV6kX560keiuFfUVjsOmpK6L3re+ap04QQwj6x QM/g== X-Gm-Message-State: AAQBX9enHCrbZQwGf8frXDFDPfzHxYiwnVEetVZSiYRVj46FBwminRmx +KnXHWZiwQgi39clwKvCeFtZNA== X-Received: by 2002:adf:e68d:0:b0:2c7:d575:e8a4 with SMTP id r13-20020adfe68d000000b002c7d575e8a4mr21366630wrm.65.1680292773088; Fri, 31 Mar 2023 12:59:33 -0700 (PDT) Received: from brgl-uxlite.home ([2a01:cb1d:334:ac00:1dc:d1f:e44f:2a1d]) by smtp.gmail.com with ESMTPSA id c13-20020a5d4ccd000000b002cff0e213ddsm2990286wrt.14.2023.03.31.12.59.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 31 Mar 2023 12:59:32 -0700 (PDT) From: Bartosz Golaszewski To: Andy Gross , Bjorn Andersson , Konrad Dybcio , Vinod Koul , Kishon Vijay Abraham I , Rob Herring , Krzysztof Kozlowski , Manivannan Sadhasivam , Alim Akhtar , Avri Altman , Bart Van Assche Cc: linux-arm-msm@vger.kernel.org, linux-phy@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-scsi@vger.kernel.org, Bartosz Golaszewski Subject: [PATCH 2/5] dt-bindings: phy: qmp-ufs: describe the UFS PHY for sa8775p Date: Fri, 31 Mar 2023 21:59:17 +0200 Message-Id: <20230331195920.582620-3-brgl@bgdev.pl> X-Mailer: git-send-email 2.37.2 In-Reply-To: <20230331195920.582620-1-brgl@bgdev.pl> References: <20230331195920.582620-1-brgl@bgdev.pl> MIME-Version: 1.0 X-Spam-Status: No, score=0.0 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_NONE 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?1761915354293495325?= X-GMAIL-MSGID: =?utf-8?q?1761915354293495325?= From: Bartosz Golaszewski Add a new compatible for the QMP UFS PHY found on sa8775p platforms and update the clocks property to accommodate three clocks. Signed-off-by: Bartosz Golaszewski --- .../phy/qcom,sc8280xp-qmp-ufs-phy.yaml | 34 ++++++++++++++++--- 1 file changed, 30 insertions(+), 4 deletions(-) diff --git a/Documentation/devicetree/bindings/phy/qcom,sc8280xp-qmp-ufs-phy.yaml b/Documentation/devicetree/bindings/phy/qcom,sc8280xp-qmp-ufs-phy.yaml index 64ed331880f6..a414b2c2d9cc 100644 --- a/Documentation/devicetree/bindings/phy/qcom,sc8280xp-qmp-ufs-phy.yaml +++ b/Documentation/devicetree/bindings/phy/qcom,sc8280xp-qmp-ufs-phy.yaml @@ -16,6 +16,7 @@ description: properties: compatible: enum: + - qcom,sa8775p-qmp-ufs-phy - qcom,sc8280xp-qmp-ufs-phy - qcom,sm6125-qmp-ufs-phy - qcom,sm8550-qmp-ufs-phy @@ -24,12 +25,12 @@ properties: maxItems: 1 clocks: - maxItems: 2 + minItems: 2 + maxItems: 3 clock-names: - items: - - const: ref - - const: ref_aux + minItems: 2 + maxItems: 3 power-domains: maxItems: 1 @@ -51,6 +52,31 @@ properties: "#phy-cells": const: 0 +allOf: + - if: + properties: + compatible: + contains: + enum: + - qcom,sa8775p-qmp-ufs-phy + then: + properties: + clocks: + maxItems: 3 + clock-names: + items: + - const: ref + - const: ref_aux + - const: qref + else: + properties: + clocks: + maxItems: 2 + clock-names: + items: + - const: ref + - const: ref_aux + required: - compatible - reg