Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp36260rwl; Thu, 6 Apr 2023 12:48:11 -0700 (PDT) X-Google-Smtp-Source: AKy350Z/3lbkIKdtvxXi2PIRAE0fJ7IGCt8lVYLbvptaqD46Cx6l41c+ywUHYq/MjvK5AxZ0XYIB X-Received: by 2002:a17:906:a44e:b0:947:c8d5:fb3c with SMTP id cb14-20020a170906a44e00b00947c8d5fb3cmr26788ejb.51.1680810490886; Thu, 06 Apr 2023 12:48:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680810490; cv=none; d=google.com; s=arc-20160816; b=Wt249RHf3UFy+lm4kfzDr3luCTOsuMLaKTT6b2sIyX+nXfSX6NdUjmg2Tcz25leyT5 pWT1K+8ryHYc7WnVkQzVJzm36KbGhPgPjAz/SP3y79mSpVoGhH9fyFQcWlNNvRuddQs9 BRZAq81Xfv3J1572JWa9KB6c500yYuEh/N5FGDN6oSOeIBBTEwv4JcOKkIexpTU3o1tF qBgWuxMDhhI1S/w2kMzVLqdesBnuODr5gKvNrWfI2AG0HaAZ+fXwCb86WFVFvGknvG0m UVgZx9Ys9Zn6yaAvqu7si8EHy3b4jBeM6xf4r4gC8Jpp7KWlbbnU5WcMTzvmEP3JOBTA GOKQ== 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=f5sfPGzO1STsPzlQrWslwAin54ULr2+T5tjHgZP/ZV4=; b=oPbQG7iavqOIgHu0mderktT+kaRlvd16kHhe1XB9pvwHBmvh+BJOE7aFVw4vWQjLA9 VfruuVQQK9HlaKM7na0Luxo7rCstn+CQ7bYMoWca1mmAMYy2E2++SQGKxADndlMW/EgJ zOJ672LrLCbTwRLASPzbMTwUB0/E91NTnXLZOEopunwn1dodi4fieMRXdkAsa089DlMu xCLboQ4K/3xxo0ELF5erGSamdJEDNBXqhE3i9AldJwgLjCfUK2N3LTmn8/NYMZvLHBCm l8xCJE4aJuZHA866RNzKJd8LtIw/5un8EwB9uQcjI62zXzSWQjM5deOVzWDhzWX4LBEf k4fA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bgdev-pl.20210112.gappssmtp.com header.s=20210112 header.b=B1Uvu4kN; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id v16-20020a1709060b5000b008dd491949d5si1817027ejg.553.2023.04.06.12.47.45; Thu, 06 Apr 2023 12:48:10 -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=B1Uvu4kN; 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 S237963AbjDFTrZ (ORCPT + 99 others); Thu, 6 Apr 2023 15:47:25 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51620 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237244AbjDFTrT (ORCPT ); Thu, 6 Apr 2023 15:47:19 -0400 Received: from mail-wr1-x42c.google.com (mail-wr1-x42c.google.com [IPv6:2a00:1450:4864:20::42c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 58E5861AE for ; Thu, 6 Apr 2023 12:47:17 -0700 (PDT) Received: by mail-wr1-x42c.google.com with SMTP id i9so40626279wrp.3 for ; Thu, 06 Apr 2023 12:47:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bgdev-pl.20210112.gappssmtp.com; s=20210112; t=1680810436; 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=f5sfPGzO1STsPzlQrWslwAin54ULr2+T5tjHgZP/ZV4=; b=B1Uvu4kNEzTZzr8QGACBcWsbST+cABawIcqZ8MAHy54OGWGLeRj39VR24chDaT53+n 7CYyaYyxx1PkNXSHFx7HA1rBERqsiZ8cb0zrTOoPXaW0pX6+rMWx+U3AzRQri9otK2ws JAJqi1zRRmOn3upvufbPBGf/I9w17o7BxOC7Xe/JRqMcfAfiF60jNh25+UQ3kZD89qzy A42Zz4Ktyrj8m9/h66fZJOsmdAUs0p+K6ID/F/iDVT7A9P9UmhO1IEUHZUVi7hPNmanN 2LwqQRL8qm22+1ypHLZaJ8SXfaWOt8yjjUGdI9vDZ7oc+kJheBXwBwQb6tCsEJUb9+Ba WOWA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1680810436; 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=f5sfPGzO1STsPzlQrWslwAin54ULr2+T5tjHgZP/ZV4=; b=EeqYCjfQE0BuEbYNCwqyr7mKGrmDaXvzQGPJ8+EiJbVV99i2CT16VZJOXk3moy6RTp Npm3Wxd49AWBl0DPkpW5jupt8AUUxe9mj/oWSBfbRlGzmunlOS9wZrOXxuGxP1oUwFzR mtHoo/kKP58NmtPaKLTjGoLv08RfOyrhqMBdEK3iyEX29YvtDByzpJqDcUpF6LP8G3oL wneyyVTWurzZrolEiR+26fm62vOdZaUQ2Q1/mCgHoKlsqDYF5dMC7Bfd1IWrFUHLM7F3 2o7jV+KmZl4tirZhje8G5WEHfhmmcgVdKdsthbgN8DTPftm7KUnMM1dH+dkpHDwnoKX5 Mqtg== X-Gm-Message-State: AAQBX9cX8MS9YIoTmSEoF6Nj8oHx5E3wPbw/DwiknaqyrX+xJ2ybKrl3 8mKZHK5tHmIhsV91awWHnW+h7Q== X-Received: by 2002:a05:6000:118c:b0:2e2:730a:c7de with SMTP id g12-20020a056000118c00b002e2730ac7demr7846317wrx.24.1680810435705; Thu, 06 Apr 2023 12:47:15 -0700 (PDT) Received: from brgl-uxlite.home ([2a01:cb1d:334:ac00:4793:cb9a:340b:2f72]) by smtp.gmail.com with ESMTPSA id k15-20020a056000004f00b002c71dd1109fsm2593323wrx.47.2023.04.06.12.47.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 06 Apr 2023 12:47:15 -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 v2 2/5] dt-bindings: phy: qmp-ufs: describe the UFS PHY for sa8775p Date: Thu, 6 Apr 2023 21:47:00 +0200 Message-Id: <20230406194703.495836-3-brgl@bgdev.pl> X-Mailer: git-send-email 2.37.2 In-Reply-To: <20230406194703.495836-1-brgl@bgdev.pl> References: <20230406194703.495836-1-brgl@bgdev.pl> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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 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 | 26 ++++++++++++++++++- 1 file changed, 25 insertions(+), 1 deletion(-) 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 cd0fbbd3593d..5bc93acccbad 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,sm7150-qmp-ufs-phy @@ -25,12 +26,15 @@ properties: maxItems: 1 clocks: - maxItems: 2 + minItems: 2 + maxItems: 3 clock-names: + minItems: 2 items: - const: ref - const: ref_aux + - const: qref power-domains: maxItems: 1 @@ -52,6 +56,26 @@ properties: "#phy-cells": const: 0 +allOf: + - if: + properties: + compatible: + contains: + enum: + - qcom,sa8775p-qmp-ufs-phy + then: + properties: + clocks: + maxItems: 3 + clock-names: + maxItems: 3 + else: + properties: + clocks: + maxItems: 2 + clock-names: + maxItems: 2 + required: - compatible - reg -- 2.37.2