Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp6524408rdb; Fri, 15 Dec 2023 00:31:21 -0800 (PST) X-Google-Smtp-Source: AGHT+IErbXkPe3lGXU1xuTeenYzpRyQiqrzwkgks9ZLK9CL5WRrymipCllQPn69BAecgtDV/+FaZ X-Received: by 2002:a05:6808:18a3:b0:3b6:8608:72c7 with SMTP id bi35-20020a05680818a300b003b6860872c7mr14743969oib.50.1702629081557; Fri, 15 Dec 2023 00:31:21 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702629081; cv=none; d=google.com; s=arc-20160816; b=WttbZrcyjlFHAuuEaP7KCdwcZO5olHmeo1UuV1sfMriBoLo4fx0mZTJqay7wQUqYUA /p11CkAL2NayFFuX2zSMdM/ULCggCqfOqnriaPG9PlvbdaqVj404/l0VlKtLt6yGlHmv jT6Ux4PTuHwL9bPoZ836cCgev1fmGPKj9IXqkj9JdEkz6GJZzh2S5caacaCIwtCz6+FC 74LSF3q5eLL8nVL7UvtJnMbTB2chhVti4oJXFKdnv9WGbTE4eanPjb6aBHTNgjzAvQqb nKU/zrFOpPDOUKc3nOhS0cFG4qMDQu+GrLW/37PrTUAPe/7XPx8gcCBaMHNcR7uVfEnv 2n6Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:autocrypt:from:references:cc :to:content-language:subject:user-agent:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:date:message-id :dkim-signature; bh=S/VHrDXjE8ArwAdQn1IvokNpm8/NuKC38VUGI1HTeeM=; fh=dBeBUcvUY9lm0HWZZV5Vz0iMYvRDA71uZpzTJZ9vdAs=; b=0Hb+xChnJ+sj5SlbANSrpMOOde49JsCFzD69mnRepQjh+mtld2h7o2ued3kbjLESyM n9ytXIGOKpQenI7ZWlVL7tAu6+1hB/HNRdUUke3kOmbgMtzbyNCu0AI9Un5EdWFJn/ck twpiOxPRz9iDQ9VtCAItRW1D9ZOlKK/SClgT6DPGirK1kUmbnQtNsueRuRKPALRnwrf/ mw1HD62gaCmJjfdzb/ghsKXgTun7aXgnWtukFdvl4Lycmm5VFyn7R0gJy3GppPPphBtf Sn5oenA6E5dYv8W7lr6Rf+ZSd1YW0pLV9XXLQQc6OzHxYowuBoxTLTQaD21bTY2nge3d k2qA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=cXhuCC7m; spf=pass (google.com: domain of linux-kernel+bounces-621-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-621-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id p3-20020a056a000b4300b006cbd3f3a2fcsi12422591pfo.77.2023.12.15.00.31.21 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 15 Dec 2023 00:31:21 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-621-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=cXhuCC7m; spf=pass (google.com: domain of linux-kernel+bounces-621-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-621-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 335A828201B for ; Fri, 15 Dec 2023 08:31:21 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 1A8701548D; Fri, 15 Dec 2023 08:31:13 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="cXhuCC7m" X-Original-To: linux-kernel@vger.kernel.org Received: from mail-ed1-f54.google.com (mail-ed1-f54.google.com [209.85.208.54]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 32E1EC8F5 for ; Fri, 15 Dec 2023 08:31:10 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Received: by mail-ed1-f54.google.com with SMTP id 4fb4d7f45d1cf-551c03ae050so386576a12.2 for ; Fri, 15 Dec 2023 00:31:09 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1702629068; x=1703233868; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:autocrypt:from:references:cc :to:content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=S/VHrDXjE8ArwAdQn1IvokNpm8/NuKC38VUGI1HTeeM=; b=cXhuCC7mgcBtEQS98n/+ueLLISANGxryEkq2qFYaTvj82k92tSaEpQ3R5kCCpOcekc p+9csETM+0JqiOCey9XNrSTm5StnMEU8jvBKzgNPquFnyO4bh0dc3eCoWu49kXrcmsbC jxirwOJaZ/Bs1RKjhSyHaB7NTgMQcYOeejF4waBO9ooMrGfSSFJdQF6bYbvuJfzNKFQ1 w8uRqHeHD98aT3S2KSqX8SSz3r+Z0kKGj+MQVW8MmCZD8DnjZ8cIBec1Maa04Kz4rm8m hLzFmqqGOr1veC7PKNaYw1Qb1CNfLQ1+C0Mn93E5YzZ05FbTc2LGJF/cCX5KAR897UKD sd9w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1702629068; x=1703233868; h=content-transfer-encoding:in-reply-to:autocrypt:from:references:cc :to:content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=S/VHrDXjE8ArwAdQn1IvokNpm8/NuKC38VUGI1HTeeM=; b=LcOQ2g1GlwgZrS/PUu1QHzilhaQFO8ZvCvKywwHnb79ZDxQ9p5AeYFvmUYiS24Awk6 y/vNgo5h3wpS/JaLQ+wgeIDDUGNfjbo7C7TcP1wU8lxVF2D0KMmZL/S07wUnZldNnkLA fATWBsbn2LJx2ATUF3d0ISKw6gUSoRcY8/jOa/btgMUB3Vuyo9mXP+RjNOJEonnwrPFB 9YaJuM3/k1zSk+lvcmSPMy1vFbtY7ThslbiodNtYapE335y+taTqFtrsX6WkHcTJrzp9 PKIeR2+pDvlbPToytFtWPqjHu0HnBkKG20R+P9Teh2+uyyMgJDn6+C16WpyiM9MwvnKo pF8w== X-Gm-Message-State: AOJu0YxMsHrMLjK8ZPeeGSJN6DV1u06QlshgNo/7vu5tX6kWSo1yYxtQ Sxls/z+o/ijF78pQ1qGjREuH2w== X-Received: by 2002:a17:906:1084:b0:a22:faec:7d2e with SMTP id u4-20020a170906108400b00a22faec7d2emr1844688eju.113.1702629068426; Fri, 15 Dec 2023 00:31:08 -0800 (PST) Received: from [192.168.1.20] ([178.197.218.27]) by smtp.gmail.com with ESMTPSA id bn2-20020a170906c0c200b00a23152a543dsm997827ejb.202.2023.12.15.00.31.05 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 15 Dec 2023 00:31:08 -0800 (PST) Message-ID: Date: Fri, 15 Dec 2023 09:31:04 +0100 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH 05/10] dt-bindings: phy: qcom,uniphy-pcie: Add ipq5332 bindings Content-Language: en-US To: Praveenkumar I , agross@kernel.org, andersson@kernel.org, konrad.dybcio@linaro.org, mturquette@baylibre.com, sboyd@kernel.org, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org, bhelgaas@google.com, lpieralisi@kernel.org, kw@linux.com, vkoul@kernel.org, kishon@kernel.org, mani@kernel.org, quic_nsekar@quicinc.com, quic_srichara@quicinc.com, linux-arm-msm@vger.kernel.org, linux-clk@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-pci@vger.kernel.org, linux-phy@lists.infradead.org Cc: quic_varada@quicinc.com, quic_devipriy@quicinc.com, quic_kathirav@quicinc.com, quic_anusha@quicinc.com References: <20231214062847.2215542-1-quic_ipkumar@quicinc.com> <20231214062847.2215542-6-quic_ipkumar@quicinc.com> From: Krzysztof Kozlowski Autocrypt: addr=krzysztof.kozlowski@linaro.org; keydata= xsFNBFVDQq4BEAC6KeLOfFsAvFMBsrCrJ2bCalhPv5+KQF2PS2+iwZI8BpRZoV+Bd5kWvN79 cFgcqTTuNHjAvxtUG8pQgGTHAObYs6xeYJtjUH0ZX6ndJ33FJYf5V3yXqqjcZ30FgHzJCFUu JMp7PSyMPzpUXfU12yfcRYVEMQrmplNZssmYhiTeVicuOOypWugZKVLGNm0IweVCaZ/DJDIH gNbpvVwjcKYrx85m9cBVEBUGaQP6AT7qlVCkrf50v8bofSIyVa2xmubbAwwFA1oxoOusjPIE J3iadrwpFvsZjF5uHAKS+7wHLoW9hVzOnLbX6ajk5Hf8Pb1m+VH/E8bPBNNYKkfTtypTDUCj NYcd27tjnXfG+SDs/EXNUAIRefCyvaRG7oRYF3Ec+2RgQDRnmmjCjoQNbFrJvJkFHlPeHaeS BosGY+XWKydnmsfY7SSnjAzLUGAFhLd/XDVpb1Een2XucPpKvt9ORF+48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5DGs/tHAcUF35hSJrvMJzPT/+u /oVmYDFZkbLlqs2XpWaVCo2jv8+iHxZZ9FL7F6AHFzqEFdqGnJQqmEApiRqH6b4jRBOgJ+cY qc+rJggwMQcJL9F+oDm3wX47nr6jIsEB5ZftdybIzpMZ5V9v45lUwmdnMrSzZVgC4jRGXzsU EViBQt2CopXtHtYfPAO5nAkIvKSNp3jmGxZw4aTc5xoAZBLo0OV+Ezo71pg3AYvq0a3/oGRG KQ06ztUMRrj8eVtpImjsWCd0bDWRaaR4vqhCHvAG9iWXZu4qh3ipie2Y0oSJygcZT7H3UZxq fyYKiqEmRuqsvv6dcbblD8ZLkz1EVZL6djImH5zc5x8qpVxlA0A0i23v5QvN00m6G9NFF0Le D2GYIS41Kv4Isx2dEFh+/Q== In-Reply-To: <20231214062847.2215542-6-quic_ipkumar@quicinc.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit On 14/12/2023 07:28, Praveenkumar I wrote: > Qualcomm IPQ5332 has single-lane and dual-lane PCIe UNIPHY > with Gen 3 support. This UNIPHY is similar to the one found > on Qualcomm IPQ5018. Hence add the bindings in qcom,uniphy-pcie. > > Clocks and resets are different for IPQ5332. Update the > bindings to support both IPQ5018 and IPQ5332. > > Signed-off-by: Praveenkumar I > --- > This patch depends on the below series which adds PCIe support in > Qualcomm IPQ5018 > https://lore.kernel.org/all/20231003120846.28626-1-quic_nsekar@quicinc.com/ > > .../bindings/phy/qcom,uniphy-pcie-28lp.yaml | 65 +++++++++++++++++-- > 1 file changed, 58 insertions(+), 7 deletions(-) > > diff --git a/Documentation/devicetree/bindings/phy/qcom,uniphy-pcie-28lp.yaml b/Documentation/devicetree/bindings/phy/qcom,uniphy-pcie-28lp.yaml > index 6b2574f9532e..205eaec2291e 100644 > --- a/Documentation/devicetree/bindings/phy/qcom,uniphy-pcie-28lp.yaml > +++ b/Documentation/devicetree/bindings/phy/qcom,uniphy-pcie-28lp.yaml > @@ -20,19 +20,20 @@ properties: > maxItems: 1 > > clocks: > - maxItems: 1 > + minItems: 1 > + maxItems: 4 > > clock-names: > - items: > - - const: pipe_clk > + minItems: 1 > + maxItems: 4 > > resets: > - maxItems: 2 > + minItems: 2 > + maxItems: 3 > > reset-names: > - items: > - - const: phy > - - const: phy_phy > + minItems: 2 > + maxItems: 3 > > "#phy-cells": > const: 0 > @@ -54,6 +55,56 @@ required: > - "#clock-cells" > - clock-output-names > > +allOf: > + - if: > + properties: > + compatible: > + contains: > + enum: > + - qcom,ipq5018-uniphy-pcie-gen2x1 > + - qcom,ipq5018-uniphy-pcie-gen2x2 > + then: > + properties: > + clocks: > + minItems: 1 Drop > + maxItems: 1 > + clock-names: > + items: > + - const: pipe_clk > + resets: > + minItems: 2 Drop > + maxItems: 2 > + reset-name: Typo > + items: > + - const: phy > + - const: phy_phy > + > + - if: > + properties: > + compatible: > + contains: > + enum: > + - qcom,ipq5332-uniphy-pcie-gen3x1 > + - qcom,ipq5332-uniphy-pcie-gen3x2 There are no such compatibles. > + then: > + properties: > + clocks: > + minItems: 4 > + maxItems: 4 > + clock-names: > + items: > + - const: pipe > + - const: lane_m > + - const: lane_s > + - const: phy_ahb > + resets: > + minItems: 2 > + maxItems: 2 So where are three items? > + reset-name: Typo This patch is so confusing, it looks like it does not make any sense. Best regards, Krzysztof