Received: by 2002:a05:7208:3003:b0:81:def:69cd with SMTP id f3csp4291880rba; Tue, 2 Apr 2024 12:33:10 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXLdMgkwUrUL/qQOgGr0qTkk4HcxhAy6Th/pz9TOJR8wFB9rZ8/e0vMqy0RnCmSftdDJ3Mlw8nd17fErDr/CwSaO4ovYu2MhFyA3j7R9Q== X-Google-Smtp-Source: AGHT+IGw/PiHJkcTRBAwKnBlhjdclKsf1tulG2OYbm6eSrNF8k5Y0CPC657cQy1KdI4Pewn+UqcY X-Received: by 2002:a19:3802:0:b0:513:cc18:d4c6 with SMTP id f2-20020a193802000000b00513cc18d4c6mr2333015lfa.41.1712086390538; Tue, 02 Apr 2024 12:33:10 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712086390; cv=pass; d=google.com; s=arc-20160816; b=Y/aCcOVyI53PcV/sLCSJ59wR39SYE8xZFwHd+vHxffcF3MbAno/ydhKB9jJqjjT5yg hBhvPBkwuXsdec9Zh0JOi5y0QazRhTDW3I3J1OxT7A/T9GXCNBB9Ge+z/C/1NOX9VIoH YUI9tiMRnse7iefKwhH3rNOkJAXYr4eTQhTp0rOPcmfnjqJw8pyLVTPfi4DZFv1Xkhs+ BB4vk/MFYGpCPVO/SkBZI2sTlKTZIvoQ1XiyMYmf0ysfXk4asiYicAg/5tjfvFtmJE9n Jid/qi4y/GOqZ8zYoQJJEvLAhAYF6J35WSxr/WOpsSVLxQnyWN25X507cdz1Ls2LQSJz 3BuA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=ksI6IPEsjFKiejyXpxCVyS77n8b3/e3zALrEpFbnmzw=; fh=4TY4+ckk1qzGx0Sx+4e0olGA6wKBBQ7IdgGYo4/O5fE=; b=e6+IeEZnvvPRDclIowdjKmeLKUaT4f+gXq0tzU7sebbxPJuk3iJPCrTiT4WAIeK9Rn igJa2pNJII+ctg3x2mm7TL5k4AD3ByLAj321MUMy0pps9CnG4jFtGMathYl4l7TFKBkL KYolQkK/at5IKi05VaCEpkoStLIiB2GSEMXuX5BjTokESuOHvnG4mRxCdQeVpF4FA4nE eBD0spOfnNSYKBoaKNFdkNNsVf/BNJg5TdGrIstx98TkjoRjk9UWh19/SsgNve5ru7FH iWC7unWsJv/Oo4+ddFNozbQ6qN7hz98wAYg9EMhIphZI7x83RUcek7x+7zvG1zg6Uhk+ ePHg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=AjZ98rGd; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-128563-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-128563-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id t8-20020a170906268800b00a469cf32fe5si5948234ejc.213.2024.04.02.12.33.10 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 02 Apr 2024 12:33:10 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-128563-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=AjZ98rGd; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-128563-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-128563-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com 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 am.mirrors.kernel.org (Postfix) with ESMTPS id 543DF1F25FE9 for ; Tue, 2 Apr 2024 19:27:12 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 2A4B515DBB2; Tue, 2 Apr 2024 19:26:11 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="AjZ98rGd" Received: from mail-oa1-f53.google.com (mail-oa1-f53.google.com [209.85.160.53]) (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 B52CA15CD62; Tue, 2 Apr 2024 19:26:06 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.160.53 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712085970; cv=none; b=nSp5LkSYIxrOVOJmP0kS9LEfLb82XWoUUjVritnDK+IFpZNM8ThHEZYH4TUjLegZXJfQYpwo5YzrDVVHK0xESAL+dKm9KKveGHR5zKUdRxzgSdFo0nW5A+fQ2hsKvenfUY4tJmDm2leiZPhOKPKhtf6ntCCBoW7nyrR8piCFY8g= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712085970; c=relaxed/simple; bh=5ucQylLBmNZMdQ2th8/CwEafp/XtJqR0xlhv3q0n810=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=Q25ebGv/b9iSb6EWil0Y5oR4tM7bt24cth6LWAWo1jsC5ZiEFaozbEhpf4Zdm5WvqtM9rLjGpzMqSFYv9eLVlYPqUgry4ge8y53NuZ5yx2bLGiRFHrj23q4HzBZ4rcoyya10YwJpKUulj+PC2WnwLsDNX7oUVuF9DE+U68T1wbY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=AjZ98rGd; arc=none smtp.client-ip=209.85.160.53 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-oa1-f53.google.com with SMTP id 586e51a60fabf-221a9e5484aso3768425fac.0; Tue, 02 Apr 2024 12:26:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1712085966; x=1712690766; darn=vger.kernel.org; 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=ksI6IPEsjFKiejyXpxCVyS77n8b3/e3zALrEpFbnmzw=; b=AjZ98rGd7MzFtmbI+Fwx0fBcGmR50eshJMdyXr6MYU1qTCwq792PJ70MNoFgTeeezU Lr9Xg7k2HJotLLj7Av9aHzing/OL2p+0mKjAiylmgrCrdr66PMksrG8Vb5klAEGji0v9 vb1aqYVO6sRDYvg8S/RkFR4ZFen7W5eMJ3D/eZgiQLt9eWlZ2IsAavisTkeuMAGJh5Uv DXQsOx/St607l1JDbGnV2taiB8FQzvRLF31Nd2G+R7ePhmT2yyBiTCFnNnGrs1B4pdtl /zipr+vThXSvIuoKMKBIJvvhK/5o3SiUktVLjXQ6OHb3kfOVSlWUzPViwjGQX8ULydLM 8GvQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1712085966; x=1712690766; 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=ksI6IPEsjFKiejyXpxCVyS77n8b3/e3zALrEpFbnmzw=; b=nv8KH7qZlaN8MKIMitilaUXtdhVLWmiKQ08vFyoqbZpSxpgEHXhifPVLSD9WbfLRA3 a4myJJgxJMHfqV9ylxqXYC+aGXjnuKjGFDdVlCcEMTzc0eZZfic0xE8VKRvtTQPdm5us RGIiDHbhmZ63QFpiZ5pmu+fXUHNUxNHV4t+7yXRSTpxX9fKR98Hnj8HkUBMRuU5hHFXf fJ0j4Ds82US46OHFW3Ryy5m4p8hVdSmialUgT6gWzWRcMN1wxYy8Ug/o82DiUoguIRkU kvweP+2ZOWCrWbuPeXDwOnfpunSEatIi+4qJNCsb3u4PzsCJvRXa6cIgOtW+sNDAvGI8 O+Cg== X-Forwarded-Encrypted: i=1; AJvYcCU9CKOLbOTsZTllusS3H6L6+RQEIZxbJwNGHch+YinsC5XtJroAdvsTJaAvxnvmshp9LDWoLKuZ0bNKG982FgAIKhNYCPwLCdtlh/OVR0n/Hb+93k4Kmtx356KQD40UE3auR6T41lc5Qz6JVKiE9jQrbNntn6MMJgbJNt+krsCt2YmX1xN+rkc= X-Gm-Message-State: AOJu0Yw9gOZonSpD3UkPKUYC6EaOybh2EHut4W0FX/bUu/Qa3AHyzof+ /2PvgbxLoz1Z2ly7AGF1juSEEPz3vGmDaXSYL+C8gHmWyQsC8j0H X-Received: by 2002:a05:6871:5813:b0:22e:15fd:e247 with SMTP id oj19-20020a056871581300b0022e15fde247mr840978oac.5.1712085965864; Tue, 02 Apr 2024 12:26:05 -0700 (PDT) Received: from nukework.lan (c-98-197-58-203.hsd1.tx.comcast.net. [98.197.58.203]) by smtp.gmail.com with ESMTPSA id ld22-20020a0568702b1600b0022e8f9fa89bsm75622oab.57.2024.04.02.12.26.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 02 Apr 2024 12:26:05 -0700 (PDT) From: Alexandru Gagniuc To: Bjorn Andersson , Konrad Dybcio , Vinod Koul , Kishon Vijay Abraham I , Rob Herring , Krzysztof Kozlowski , Conor Dooley Cc: ansuelsmth@gmail.com, robimarko@gmail.com, Alexandru Gagniuc , linux-arm-msm@vger.kernel.org, linux-phy@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 5/7] dt-bindings: phy: qcom,ipq8074-qmp-pcie: add ipq9574 gen3x2 PHY Date: Tue, 2 Apr 2024 14:25:53 -0500 Message-Id: <20240402192555.1955204-5-mr.nuke.me@gmail.com> X-Mailer: git-send-email 2.40.1 In-Reply-To: <20240402192555.1955204-1-mr.nuke.me@gmail.com> References: <20240402192555.1955204-1-mr.nuke.me@gmail.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit The IPQ9574 gen3x2 PHY is very similar to IPQ6018. It requires two extra clocks named "anoc" and "snoc". Document this, and add a new compatible string for this PHY. Signed-off-by: Alexandru Gagniuc --- .../phy/qcom,ipq8074-qmp-pcie-phy.yaml | 47 +++++++++++++++++-- 1 file changed, 42 insertions(+), 5 deletions(-) diff --git a/Documentation/devicetree/bindings/phy/qcom,ipq8074-qmp-pcie-phy.yaml b/Documentation/devicetree/bindings/phy/qcom,ipq8074-qmp-pcie-phy.yaml index 634cec5d57ea..b0dbd2726acd 100644 --- a/Documentation/devicetree/bindings/phy/qcom,ipq8074-qmp-pcie-phy.yaml +++ b/Documentation/devicetree/bindings/phy/qcom,ipq8074-qmp-pcie-phy.yaml @@ -19,19 +19,19 @@ properties: - qcom,ipq6018-qmp-pcie-phy - qcom,ipq8074-qmp-gen3-pcie-phy - qcom,ipq8074-qmp-pcie-phy + - qcom,ipq9574-qmp-gen3x2-pcie-phy reg: items: - description: serdes clocks: - maxItems: 3 + minItems: 3 + maxItems: 5 clock-names: - items: - - const: aux - - const: cfg_ahb - - const: pipe + minItems: 3 + maxItems: 5 resets: maxItems: 2 @@ -61,6 +61,43 @@ required: - clock-output-names - "#phy-cells" +allOf: + - if: + properties: + compatible: + contains: + enum: + - qcom,ipq6018-qmp-pcie-phy + - qcom,ipq8074-qmp-gen3-pcie-phy + - qcom,ipq8074-qmp-pcie-phy + then: + properties: + clocks: + maxItems: 3 + clock-names: + items: + - const: aux + - const: cfg_ahb + - const: pipe + + - if: + properties: + compatible: + contains: + enum: + - qcom,ipq9574-qmp-gen3x2-pcie-phy + then: + properties: + clocks: + maxItems: 5 + clock-names: + items: + - const: aux + - const: cfg_ahb + - const: pipe + - const: anoc + - const: snoc + additionalProperties: false examples: -- 2.40.1