From patchwork Fri Aug 23 07:04:15 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Abel Vesa X-Patchwork-Id: 13774677 Received: from mail-ej1-f48.google.com (mail-ej1-f48.google.com [209.85.218.48]) (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 B289F5674D for ; Fri, 23 Aug 2024 07:04:28 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.218.48 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1724396670; cv=none; b=Noyaub+Coa3CJm4/hV8ijDGDnwdpYzWEPPK5T1xDeCH7x0C4ZHWNnw/lbxpdAN5fXRrKXyBsKHxSQRHatjcURLj1ptLJp2NfHxBwlqCyDiWh3JB0OWL2h+t0QuzcC+mHrjS96rHaafeknSTiDzWlJ7rrLITqzc9/6FOy6rWB510= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1724396670; c=relaxed/simple; bh=WTyLfsiYFOCQpAv2bKcQ9v9a4Pc0v6j5pZTdsIRc/X0=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=eJUE6/DnuWmkeFrmMWSnPDOXZlpaQpns/ob0d4Cm+C4KNpVzD1Nqfdc70c55yqfHywwAFkSgi604E54EiMInJRmg7Adc+cPlTkA+TcESNsGGQN7IS70iApMwzcgiEnKq0MA1ZZZ8K4w0kNks/vv7WlBd0iTcPgdPZ1cgWIzKcmY= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=Meup4+7J; arc=none smtp.client-ip=209.85.218.48 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 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="Meup4+7J" Received: by mail-ej1-f48.google.com with SMTP id a640c23a62f3a-a7a9185e1c0so155325566b.1 for ; Fri, 23 Aug 2024 00:04:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1724396667; x=1725001467; darn=vger.kernel.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=MQ7mhyA2j0MFrl3QJkg/ME/SpNMRr31BDPIhEa0SBMU=; b=Meup4+7JH1JztpdQP3CG7PuJhWauc61QPkLdgH6Q9BECYeO8RTnIencrtG49ltZb1d AI0v376CJ6nC5QDJEP+QUOLjBM6bQoa8eGTvt18ZfxHy3na/qYXUl6cxTE6oo9eyuKky WXdKCQkeTJwnod9m1gOFX7qeBDkBfwBROZWjMs0FIayxASt7NZOnW9E6WU1u0CGHbJwh EPpr7puogmz8q+OM6BycKa89vgITb3M2b8ynLTMShWzny8KV6iIFj8ZURHb5sJuwb6x4 XcLc4Px8d4aJJNhTsr8tpKwLJlHFqjbcVj7wO19sZBlFdqZVEvTA20tLfjY73XUxyY8C 5BTQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1724396667; x=1725001467; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=MQ7mhyA2j0MFrl3QJkg/ME/SpNMRr31BDPIhEa0SBMU=; b=BUHzakPWsWNgW0ccFFmeDRa3A8ikoQ81r4CMTkmpgI/Mv90bRFesySNk6p53sUjoZX doD7kCvxHiBjv7MlvmCq2aDqu6NVwm9iK+X7EoswRvEpRGSa+HGguFvb/tj7dqgMeQ7Z ZLIprOyd8WJhchHOvyn6wpVF7rV/UJz36hwkKiseDDMw1p4OHanvyYryRH9W3sLejmQ/ Z9lzv6VakWcMqOGf3eZ0GSE3mpIatMSFaUnZSwFZl1/TgcbWNdOfZnqrZDJoGAgUS6yj hHk+TacnEbxwKWSGhl7SyobT6b6EdNeKzLTCBVkrBM3V6scacb3AyDEW4U9bMDq2Hbkq 0bXg== X-Forwarded-Encrypted: i=1; AJvYcCUp4oCiB++JeMXe0a9s11UuuXLxft1dG3BrzVg2/3qAPTD0uGOKCtZUBx++ME0KS6fGQQe/1aB2N1My6IHT@vger.kernel.org X-Gm-Message-State: AOJu0YxF4GLLA/ahD125UVTeJf/L8Ullkw9jI0xoxWxpGRXtoEY6sFlV a+NmjTBf4CyB70SkIioOtzph9FSvPuY7WisV4vI8CsDZvaxXOP7/zKt68+VkCG4= X-Google-Smtp-Source: AGHT+IG6TdK5Q7DjQm/i9MCekRmwMaeOSrcst0icfF0xCCZTYGQ5AUTD0MHIKbFJ1vzZIBV5S7IfYQ== X-Received: by 2002:a17:906:fe4b:b0:a7a:bae8:f2a1 with SMTP id a640c23a62f3a-a86a54899f5mr91060166b.42.1724396667187; Fri, 23 Aug 2024 00:04:27 -0700 (PDT) Received: from [127.0.1.1] ([82.79.186.176]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a868f48ae0dsm214820766b.184.2024.08.23.00.04.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 23 Aug 2024 00:04:26 -0700 (PDT) From: Abel Vesa Date: Fri, 23 Aug 2024 10:04:15 +0300 Subject: [PATCH v3 1/2] dt-bindings: phy: qcom,sc8280xp-qmp-pcie-phy: Document the X1E80100 QMP PCIe PHY Gen4 x4 Precedence: bulk X-Mailing-List: linux-arm-msm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20240823-x1e80100-phy-add-gen4x4-v3-1-b7765631ca01@linaro.org> References: <20240823-x1e80100-phy-add-gen4x4-v3-0-b7765631ca01@linaro.org> In-Reply-To: <20240823-x1e80100-phy-add-gen4x4-v3-0-b7765631ca01@linaro.org> To: Vinod Koul , Kishon Vijay Abraham I , Rob Herring , Krzysztof Kozlowski , Conor Dooley Cc: Johan Hovold , linux-arm-msm@vger.kernel.org, linux-phy@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Abel Vesa , Krzysztof Kozlowski , Johan Hovold X-Mailer: b4 0.13.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=1524; i=abel.vesa@linaro.org; h=from:subject:message-id; bh=WTyLfsiYFOCQpAv2bKcQ9v9a4Pc0v6j5pZTdsIRc/X0=; b=owEBbQKS/ZANAwAKARtfRMkAlRVWAcsmYgBmyDR1Nny/j5fvOoS5x44kAo7U1DbCsp09QLnZ7 bib2dHHXTSJAjMEAAEKAB0WIQRO8+4RTnqPKsqn0bgbX0TJAJUVVgUCZsg0dQAKCRAbX0TJAJUV VnGlEACigT4aIoteJz1UrJ7BeFhqxU88FSKULM1LejKWaaiXbnlojm5febRgfevLieXNjMEUcfu 85xxfk2w7CCcRqWXRoLGbknc0WHFAEOCty1UpZUO7/s/Qx2Yae2jHjYn7hLwbsL9l+Nyp+i/osG qXEUsbKIwTZOCqOxTTYsj0GpeoCuTbv9Y8AojqWNDQ2gGowGPCIRjAEwTyhVoyuY1qt6AnDm2mX MJJImUK4VnGZtbnkHsfY+K20hASz9PO9es/IMNz6y/DECJ9uXTeKvRVVxLwDHUS6gZeascllYzm dEC+DT/5b6ToM5Kkom2wR0mGxrS7lOBTPUE+iPS5D9ZG150ClgPkoIfWXOPflZXyy94FQM5kS8G 92vYi09EcVxVG8JHSC8vaa1I/Q5VEN/v880Q0C5gT7eU/a8VgxiTRXCo53oOUoPp+ZHl3V4Iy4h rZZntxKUUJeA73CZCvokq7VAQK+/z52YKWmBHnXGIY7IaR6NgqnBhnMg9zufAv4VzF87mGTSZI/ Qp4ykkCv9vxhOEruLdMFWUbwQi9F2ZksA9WOUrHK0HrB3HC8XC/B/dNjOy6j09XEfIA/nx24Rwm atxOZPEV3A5SzuAsFv68vO4+C7EUQYSIJUBww2L6x+mMEgLUVi90frQz2cjbvjmRYNvC1sKkcj1 /0iATzZPlgGYJsA== X-Developer-Key: i=abel.vesa@linaro.org; a=openpgp; fpr=6AFF162D57F4223A8770EF5AF7BF214136F41FAE The sixth PCIe instance on X1E80100 can be used in either 4-lane mode or 2-lane mode. Document the 4-lane mode as a separate compatible. Reviewed-by: Krzysztof Kozlowski Reviewed-by: Johan Hovold Signed-off-by: Abel Vesa --- Documentation/devicetree/bindings/phy/qcom,sc8280xp-qmp-pcie-phy.yaml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Documentation/devicetree/bindings/phy/qcom,sc8280xp-qmp-pcie-phy.yaml b/Documentation/devicetree/bindings/phy/qcom,sc8280xp-qmp-pcie-phy.yaml index 03dbd02cf9e7..dcf4fa55fbba 100644 --- a/Documentation/devicetree/bindings/phy/qcom,sc8280xp-qmp-pcie-phy.yaml +++ b/Documentation/devicetree/bindings/phy/qcom,sc8280xp-qmp-pcie-phy.yaml @@ -40,6 +40,7 @@ properties: - qcom,sm8650-qmp-gen4x2-pcie-phy - qcom,x1e80100-qmp-gen3x2-pcie-phy - qcom,x1e80100-qmp-gen4x2-pcie-phy + - qcom,x1e80100-qmp-gen4x4-pcie-phy reg: minItems: 1 @@ -118,6 +119,7 @@ allOf: contains: enum: - qcom,sc8280xp-qmp-gen3x4-pcie-phy + - qcom,x1e80100-qmp-gen4x4-pcie-phy then: properties: reg: @@ -169,6 +171,7 @@ allOf: - qcom,sc8280xp-qmp-gen3x1-pcie-phy - qcom,sc8280xp-qmp-gen3x2-pcie-phy - qcom,sc8280xp-qmp-gen3x4-pcie-phy + - qcom,x1e80100-qmp-gen4x4-pcie-phy then: properties: clocks: From patchwork Fri Aug 23 07:04:16 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Abel Vesa X-Patchwork-Id: 13774679 Received: from mail-ed1-f50.google.com (mail-ed1-f50.google.com [209.85.208.50]) (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 7C8A113AA3F for ; Fri, 23 Aug 2024 07:04:30 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.50 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1724396673; cv=none; b=OBFG2QiqLD6oGcgOQGrM2d5ypqMSOJSXkebQHJhu1jCOnLxzeCE06Yc9+iUa/vOj2TqrfmYAjHmJIXj2dk1Kn0LKG4Yaqu9bMGVTQtHvCy9AeF85vF0E2BfyVRecdrxDbEwW+hKGhazJ32s04HPLT9d4qzA429+PM8Ml6QlXMiw= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1724396673; c=relaxed/simple; bh=b5lp9G5kmgGElPkC1EMZU1PTPbFZTnN0DYN7a06Uff8=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=Dp9+JIPr2jCyFD2LyDUA/u1TOgak7PQ0SoQNjY4qjQE0fjAatA1MB3py6Z9EJ8DoQY+b3Y+xm20s/0XlZC6cjdQbMm2/vNx7sd+VpYI44hig3R0S7SCd6xHnbNSJTNz/106cWiz2yO3ZjB79j45XurAFyyAPbzTkwwx13jd9XnY= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=V+ncnovi; arc=none smtp.client-ip=209.85.208.50 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 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="V+ncnovi" Received: by mail-ed1-f50.google.com with SMTP id 4fb4d7f45d1cf-5bf01bdaff0so1979895a12.3 for ; Fri, 23 Aug 2024 00:04:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1724396669; x=1725001469; darn=vger.kernel.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=K9EVzof5rnrF7mBTDm9cmpbs8lruT3c0ahwVf6GsTNQ=; b=V+ncnoviX4lLCl15ftJ84isJc3HzghtM6+b4ULjdfuplmHoyHzABJ0e9BSHkc5xfyq lbMrWsdrWdLim1k7+/zRabor+o5XWhTRpZp01hrPcTEi6j3w7W3fF8L7orscjqJtKxqE Rslmdc0zLCU+O1aSWW1S3P3hyVTRmis5515Cces9RNOcuUcvy/LbYg8Bm+87K42M0HQk +V+yFtHPndxdUz8ak4XEzFLbN7zUlVmP60LgSIJMfGaaUUbV2fs/Jv0hzlNMdeRcKwaX UHE4wicoXKh9dkG9NxCmZxf1BbMoE7mheBhnXenWX8ZVKO5M6U43dDa36eWe+TG89YIV gdbg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1724396669; x=1725001469; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=K9EVzof5rnrF7mBTDm9cmpbs8lruT3c0ahwVf6GsTNQ=; b=GfarA+JPhxvbb4QVfj01IV2xo5cnL53g/t7iq4YPo0ZY+Hl+zYVTrR253qut7W3smz V/G8l86q/J7zXFFgeGjApAA7A01gZqOfDAYV2EVhIXxXrZa7Bj/91K+ZsxwkgCx9aVoK x8EH+ifjR2SoGxvgvYdtnM8CBVwKHIsNegvnGzqZLCBFPViraY3HneCv6wr6qXZI5tMY XElJqgzVCegMErK7x2XYAb1Kz58keZbX2AvEWIzU1nJ42F3kEMRnVSy14DO0u8UJFeRw ryIQicxBRbe1I24+gMUm+sv7dLngGhFTMdFLHu1ZTg5MMejVJWUF8bI/0kvg38/iBoVR Jnow== X-Forwarded-Encrypted: i=1; AJvYcCUPPYdqmG+waqSjl/UZJy+8A9UChhTVu5fA2Ry1SdyDqMFJeqbRELp1Qck+H+EU8dEfgbOBVBhANTWcbcCE@vger.kernel.org X-Gm-Message-State: AOJu0YzbpYBT6EnDCzBB7h0OreFJaQrwUyFEohUcmETxFfHVNT1DG5BC wragrbq+r+Z7k1zJNv+iISFoLtKWRNT1B19ov9oRwUGbxeU5zKDvVn7FpspvXtA= X-Google-Smtp-Source: AGHT+IHjg4XmnO2sOWE82GNncjVHJpDpCtPri9+DoItYKOfnkhp4FmhI1YIfIFnKycH3bCttR0tviA== X-Received: by 2002:a17:907:9604:b0:a7a:b561:3564 with SMTP id a640c23a62f3a-a86a54be101mr86976466b.61.1724396668635; Fri, 23 Aug 2024 00:04:28 -0700 (PDT) Received: from [127.0.1.1] ([82.79.186.176]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a868f48ae0dsm214820766b.184.2024.08.23.00.04.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 23 Aug 2024 00:04:28 -0700 (PDT) From: Abel Vesa Date: Fri, 23 Aug 2024 10:04:16 +0300 Subject: [PATCH v3 2/2] phy: qcom: qmp-pcie: Add Gen4 4-lanes mode for X1E80100 Precedence: bulk X-Mailing-List: linux-arm-msm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20240823-x1e80100-phy-add-gen4x4-v3-2-b7765631ca01@linaro.org> References: <20240823-x1e80100-phy-add-gen4x4-v3-0-b7765631ca01@linaro.org> In-Reply-To: <20240823-x1e80100-phy-add-gen4x4-v3-0-b7765631ca01@linaro.org> To: Vinod Koul , Kishon Vijay Abraham I , Rob Herring , Krzysztof Kozlowski , Conor Dooley Cc: Johan Hovold , linux-arm-msm@vger.kernel.org, linux-phy@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Abel Vesa , Johan Hovold X-Mailer: b4 0.13.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=3189; i=abel.vesa@linaro.org; h=from:subject:message-id; bh=b5lp9G5kmgGElPkC1EMZU1PTPbFZTnN0DYN7a06Uff8=; b=owEBbQKS/ZANAwAKARtfRMkAlRVWAcsmYgBmyDR3wFDJ2SAY4MkWDE3DejDh7JtRUTNDkC8+C cysi5JuaJKJAjMEAAEKAB0WIQRO8+4RTnqPKsqn0bgbX0TJAJUVVgUCZsg0dwAKCRAbX0TJAJUV VtAKD/9ALd2gF6a+o75iynnVAYMk+/sCqHJj/Lm/vd8KJA6Rv50EAV+Ucc+pnncbyxUR2jyLsdz NIzmWgJgNpSHR7tY52Rz/BvSlX5ES1ZhWpwny8x+4QbJ0MQ0hKk00/i7Mw0iVQ2wFiVE3hxCPWu cwMBKR5urOs8/pgRikupMduEMxkJigCvZZFCCb11l/2Tr5Iq3qVyaMEJU2npG+fpFF7DBmrAHUK ArD3BYWWRYb3OZ7UJzV4wpsST7X/fGnjoySuYsEEnStg2/QP+8FzfAK2pR0kTADK/Vz8meVozkn l5dzJU7iLkPSgaNA+7gGRWv+vS06pxP+9lrxzcurBxzlTstlIsF4Qcb3Eq3S4YwOCpr3djX0PqT wO/egk4w3OWaM2z8EoKOijbQWFoILcGcANtcxDy/v+Tcfx69q/p1tmKe4lClxOSsRLDu81f1m1P StCrHmNtoLVssS+j+0W0cB8Q6sW784OzxfNMr71WPxhMBiogEKDAi5V8dLTRvlUZLIkHJFxFYaf BKSIUBWUW5bNJ14lTnKdHt4Qsxx+cubXamOhQ0PMSnN+alZcwkQswIVh57jfMsLF7kSi558rqwQ xbPwFyb1e+wq5CV44sH1BV2LZeZgW9crVdXes2uR2ardI3gWp76L1NeZHoGRZMl+NQ0kumOF4n5 Is4Fv3x0l51MqJg== X-Developer-Key: i=abel.vesa@linaro.org; a=openpgp; fpr=6AFF162D57F4223A8770EF5AF7BF214136F41FAE The sixth PCIe controller on X1E80100 can be used in either 4-lanes mode or 2-lanes mode. Add the configuration and compatible for the 4-lane mode. Reviewed-by: Johan Hovold Signed-off-by: Abel Vesa Tested-by: Johan Hovold --- drivers/phy/qualcomm/phy-qcom-qmp-pcie.c | 42 ++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) diff --git a/drivers/phy/qualcomm/phy-qcom-qmp-pcie.c b/drivers/phy/qualcomm/phy-qcom-qmp-pcie.c index a7e2ce0c500d..f71787fb4d7e 100644 --- a/drivers/phy/qualcomm/phy-qcom-qmp-pcie.c +++ b/drivers/phy/qualcomm/phy-qcom-qmp-pcie.c @@ -1242,6 +1242,10 @@ static const struct qmp_phy_init_tbl x1e80100_qmp_gen4x2_pcie_serdes_tbl[] = { QMP_PHY_INIT_CFG(QSERDES_V6_COM_PLL_VCO_DC_LEVEL_CTRL, 0x0f), }; +static const struct qmp_phy_init_tbl x1e80100_qmp_gen4x4_pcie_serdes_4ln_tbl[] = { + QMP_PHY_INIT_CFG(QSERDES_V6_COM_PLL_BIAS_EN_CLK_BUFLR_EN, 0x1c), +}; + static const struct qmp_phy_init_tbl x1e80100_qmp_gen4x2_pcie_ln_shrd_tbl[] = { QMP_PHY_INIT_CFG(QSERDES_V6_LN_SHRD_RXCLK_DIV2_CTRL, 0x01), QMP_PHY_INIT_CFG(QSERDES_V6_LN_SHRD_DFE_DAC_ENABLE1, 0x88), @@ -3654,6 +3658,41 @@ static const struct qmp_phy_cfg x1e80100_qmp_gen4x2_pciephy_cfg = { .ln_shrd = x1e80100_qmp_gen4x2_pcie_ln_shrd_tbl, .ln_shrd_num = ARRAY_SIZE(x1e80100_qmp_gen4x2_pcie_ln_shrd_tbl), }, + + .reset_list = sdm845_pciephy_reset_l, + .num_resets = ARRAY_SIZE(sdm845_pciephy_reset_l), + .vreg_list = sm8550_qmp_phy_vreg_l, + .num_vregs = ARRAY_SIZE(sm8550_qmp_phy_vreg_l), + .regs = pciephy_v6_regs_layout, + + .pwrdn_ctrl = SW_PWRDN | REFCLK_DRV_DSBL, + .phy_status = PHYSTATUS_4_20, + .has_nocsr_reset = true, +}; + +static const struct qmp_phy_cfg x1e80100_qmp_gen4x4_pciephy_cfg = { + .lanes = 4, + + .offsets = &qmp_pcie_offsets_v6_20, + + .tbls = { + .serdes = x1e80100_qmp_gen4x2_pcie_serdes_tbl, + .serdes_num = ARRAY_SIZE(x1e80100_qmp_gen4x2_pcie_serdes_tbl), + .tx = x1e80100_qmp_gen4x2_pcie_tx_tbl, + .tx_num = ARRAY_SIZE(x1e80100_qmp_gen4x2_pcie_tx_tbl), + .rx = x1e80100_qmp_gen4x2_pcie_rx_tbl, + .rx_num = ARRAY_SIZE(x1e80100_qmp_gen4x2_pcie_rx_tbl), + .pcs = x1e80100_qmp_gen4x2_pcie_pcs_tbl, + .pcs_num = ARRAY_SIZE(x1e80100_qmp_gen4x2_pcie_pcs_tbl), + .pcs_misc = x1e80100_qmp_gen4x2_pcie_pcs_misc_tbl, + .pcs_misc_num = ARRAY_SIZE(x1e80100_qmp_gen4x2_pcie_pcs_misc_tbl), + .ln_shrd = x1e80100_qmp_gen4x2_pcie_ln_shrd_tbl, + .ln_shrd_num = ARRAY_SIZE(x1e80100_qmp_gen4x2_pcie_ln_shrd_tbl), + }, + + .serdes_4ln_tbl = x1e80100_qmp_gen4x4_pcie_serdes_4ln_tbl, + .serdes_4ln_num = ARRAY_SIZE(x1e80100_qmp_gen4x4_pcie_serdes_4ln_tbl), + .reset_list = sdm845_pciephy_reset_l, .num_resets = ARRAY_SIZE(sdm845_pciephy_reset_l), .vreg_list = sm8550_qmp_phy_vreg_l, @@ -4436,6 +4475,9 @@ static const struct of_device_id qmp_pcie_of_match_table[] = { }, { .compatible = "qcom,x1e80100-qmp-gen4x2-pcie-phy", .data = &x1e80100_qmp_gen4x2_pciephy_cfg, + }, { + .compatible = "qcom,x1e80100-qmp-gen4x4-pcie-phy", + .data = &x1e80100_qmp_gen4x4_pciephy_cfg, }, { }, };