Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp5475312rwl; Tue, 11 Apr 2023 06:07:31 -0700 (PDT) X-Google-Smtp-Source: AKy350Z4XRX7JyXlnfTkk4QLh6v9NSPe7Z68nFElGk0UOtstAB2xJUtYPzCIO8gPET2i03E7Irdf X-Received: by 2002:a17:906:474e:b0:94a:90e5:b2b6 with SMTP id j14-20020a170906474e00b0094a90e5b2b6mr6089853ejs.58.1681218451534; Tue, 11 Apr 2023 06:07:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1681218451; cv=none; d=google.com; s=arc-20160816; b=jWZIaohepVdn2vr/AGbbGGEsYMqfodrK69VFb6yFAzFsVbw18ISVP1cboKJVoBOulh TLHbIre+PP16RXn+aLdK1C3VF+aiB8lITsZ1EqGF9+aKr601szjnh0nMpjMcnhZuQ8ZB 6EKSJCBmeWaFpyySLQRpvISaywsg22q5ztFrvfZIlywgS3lBIHSav7tSNFzF+w0FSvI0 L1/YKBXMFbYUpUq+nSb2zfayqtVW5S59CqK6cpdbtr4B0U12x3lCyr2TViWPJKV31oLn 2d16iJ4Qa/7dWn8mZd/LxSI1GPyH0YZ5nTe65UmQAxCjZsCyqDPjicaVMLwmO2E10qim 7X7Q== 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=f1aypPmfAnBqSLxgE6m9YHvqGlsjygFysWM20Vfgyf8=; b=NW3H2GXApkrgNo3s/2KJV26tMzxW2bqqgxvnUUVhw9dgOpeGkfjdIj5GgKdOD/w+YW OU5je1pBTXGIumTBOTDZHj7MjMdws1TdArxfbnspdZBorZnxPA2yaYVAz2f7S4fkW4ox ItguBywG6Qu3iz72VG9PFO81zd2cv4pnXU8RlwawFTPtF4mGtQGGJ91J3MI+B/XaA+BN YPHMPC0oxjQuCS66GoQsrm/NecIA7yRts+7cjzrgiP39eYUoJCnaBhz0fAkRQSRJdpFG sSIytF5H7muKlrwNeNlVV8klCvo2P9TvEljGLA1Db7OHAfacxZtEOnmXpTgtLP5g+7SU u96Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bgdev-pl.20210112.gappssmtp.com header.s=20210112 header.b=DT9yf3na; 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 h20-20020a170906399400b0093dd4c98938si11416687eje.817.2023.04.11.06.07.04; Tue, 11 Apr 2023 06:07:31 -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=DT9yf3na; 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 S230368AbjDKNF0 (ORCPT + 99 others); Tue, 11 Apr 2023 09:05:26 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37314 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230428AbjDKNFF (ORCPT ); Tue, 11 Apr 2023 09:05:05 -0400 Received: from mail-wm1-x334.google.com (mail-wm1-x334.google.com [IPv6:2a00:1450:4864:20::334]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D32C449EF for ; Tue, 11 Apr 2023 06:04:52 -0700 (PDT) Received: by mail-wm1-x334.google.com with SMTP id q5so4477868wmo.4 for ; Tue, 11 Apr 2023 06:04:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bgdev-pl.20210112.gappssmtp.com; s=20210112; t=1681218291; 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=f1aypPmfAnBqSLxgE6m9YHvqGlsjygFysWM20Vfgyf8=; b=DT9yf3naHRAfyL/nu6ysE6kqTihLShfR1RUQTT313WkPvXfRa8lYFMqM03xJIpJGlA 6H7L178PQ7Iovla534HiOJrt9ZvS43q56G54O+7F3xH9SHHrvcSPke6R10pDQALcaUEz 3f6ulz2WQsKJZnuxmrBenmO1kHni/+uK0Ql7dTUpW9PbVn48xJem8cgTpvVmyhGKidZe /i6r+Oo6JZjnzGsP6/aKAMawvIzLxId8QMTqBtYR5UaeXVPthzUQJKA8CJJc0bzAsd4t 7izM9zZdl42ao81xw8CvNTul5pNkapaMOiZ0PkniMR3W5SD8SVYLicvqbF2+cwAuhDvP wo7g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1681218291; 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=f1aypPmfAnBqSLxgE6m9YHvqGlsjygFysWM20Vfgyf8=; b=Jdde99ngVhY8EYEzRBfSqrayanbaPbQtAe4g+AUkagknPmXycyiaOM3tOUOr/YYe2p 4hkL5/wirsJi/3P/5w0J8y973zQMnWifQM9uuydYnXek933bNecnYrEPD2BGR2y3wQeC KJYmTP2bAmq2YQ/vBX53nRTwyHjL65/yN/wIhsMl4E47pJUVN/B1Q2Kflf1D41iYeQnm i5ml2MNjFF1xdTAi/I5XnfJDsOlF9XNZf4FmSgYyAADFmNHkFyM4XxZkN08/AX1Cou92 suPdG/exmv9wlNQEoygNMivtdPbxrEbpv2NX3OZn56TYeRtXWSHgt6YAqtrUL9zdwIYz 5fzg== X-Gm-Message-State: AAQBX9dohVjYGlDX/A80gfSzLx3YbW4xEKNNfguQ6rmQ3jbhXvrNuIwv iMMx5mpmj/vZn4fgqsELGjCVcg== X-Received: by 2002:a1c:cc11:0:b0:3f0:3377:c15f with SMTP id h17-20020a1ccc11000000b003f03377c15fmr9669781wmb.12.1681218291426; Tue, 11 Apr 2023 06:04:51 -0700 (PDT) Received: from brgl-uxlite.home ([2a01:cb1d:334:ac00:a099:fc1d:c99a:bfc3]) by smtp.gmail.com with ESMTPSA id t6-20020a7bc3c6000000b003f04646838esm16921301wmj.39.2023.04.11.06.04.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 11 Apr 2023 06:04:51 -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 , Krzysztof Kozlowski Subject: [PATCH v3 2/5] dt-bindings: phy: qmp-ufs: describe the UFS PHY for sa8775p Date: Tue, 11 Apr 2023 15:04:43 +0200 Message-Id: <20230411130446.401440-3-brgl@bgdev.pl> X-Mailer: git-send-email 2.37.2 In-Reply-To: <20230411130446.401440-1-brgl@bgdev.pl> References: <20230411130446.401440-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 Reviewed-by: Krzysztof Kozlowski --- .../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..94c0fab065a8 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 @@ -64,6 +68,26 @@ required: - vdda-pll-supply - "#phy-cells" +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 + additionalProperties: false examples: -- 2.37.2