From patchwork Fri May 31 16:06:44 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Abel Vesa X-Patchwork-Id: 800966 Received: from mail-ej1-f47.google.com (mail-ej1-f47.google.com [209.85.218.47]) (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 CF6C0157E79 for ; Fri, 31 May 2024 16:06:56 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.218.47 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717171618; cv=none; b=lI0tZoqo3Mau/zQZn0CU3OLArcwNNsNQG/L6Fdn6VY+2KYgUxjmZeJMDoa5Eut969dhN7JdcBR5+ggMi9sxtQV8x14ww+Dw1vjb+Y3FLrJxc7el11bnmLctVylbpN9xr9Ng/QZH2cqsCcaTNbV/mq0zSH9/yuk2VBzVWnS6nZe4= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717171618; c=relaxed/simple; bh=u1d+TMVUZZqkWCg0B+VJb5FPvmrutEqoJRDhebY8iig=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=YpO+vdVhDglRgycPWgCTY4Me5lzP5hveWc+sbTjEc0jNRclArHublu7A3GYSYqwqpfxy7piPj0UJTWYoFs17CzDL1axgwBB/i3Gyg5wHk0R1at4XJNcI5NRBqDsuYVEP+e0uB0lAvjCj6iZfmQzWxBT5PpnrdWNL3anZVWVZq5A= 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=BT1kbKCV; arc=none smtp.client-ip=209.85.218.47 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="BT1kbKCV" Received: by mail-ej1-f47.google.com with SMTP id a640c23a62f3a-a683868f463so114228066b.0 for ; Fri, 31 May 2024 09:06:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1717171615; x=1717776415; 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=8mQFkvr8sKfXptqDLSupuErcLr+wa+/nDEhtEgvO86U=; b=BT1kbKCVRiNAYdLZsrmnTfblQslR2QtyMXjEoovDUKcIjzhkx+P0AhjkZV2OMu1Oqh SrNjqm3Pm47o9I32XOHp/5pjl/M/YLFg4cY51zawmllawXQuKwJlS3UO78ivHU+3XW0s /Jzoe7+WrFsoW92uA3A2uswnvSkb9FU8hfw7m0vzINsbLwiq67kWrZX/hedBuwdjCOrW y8K4dua4xtoXaY14vl8FyBZyTE55cENaf7hQhws16uEjcVcAbBguGh5OB09RzNwt54+W pQ6+FM1wCsx1WAecs020LutgWVv8cAEpgc60KpshaMFotFKK1PeKp70iEZ0vimGc+doV QS4g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1717171615; x=1717776415; 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=8mQFkvr8sKfXptqDLSupuErcLr+wa+/nDEhtEgvO86U=; b=HmMkbWz7a7hizhe8izxn2OB1+jopVVGmQp5vzsaq6u2UGuq4dyxELJUsGHcIaa+RH0 iXTsyocSwQ/uPwX11rDJtXCiAQp9a70n/nJBB3Jyj5cn09+kt8izKe47HP0lH25Y/cmI qD6dyoCE8alxAW9OKwKGEs0u59AvgHXGdQCMEIIYbp4JOZAhpwCaMWn7T3Xm8oZ+cFJH GWV8yHTIT8rUm5bGXWjHEugYHnraaluEKaL0GNZNal+dAYtWycbpU1NBe7IRvewEBkJg d0vACJeRmfrwEFW0iZd3fFKjG0tMO1cSa9UZWhzlw7QE8Yu44stTEOapXjQ3Fp4s6DE7 xNug== X-Forwarded-Encrypted: i=1; AJvYcCV65Tqah0I8YJeRjTDAhPprpdl9RM0F86qRYZ9HxGx+pNMT2wVppi2nBgvfaWQM+8zkyHx8sLriZ4+7uhqdEGFdZSW3GFNvGkrawlGJ/A== X-Gm-Message-State: AOJu0YyqjR5nWnhFANrO2oqul2ulTwiyrwm5GxG3FxjHVlNfqiWkXBjd 4ggdiZX5AIy7ycoFutpfE7MGYCJqWo4nMCoObCUrIYUaBcGRSG8b7ogkpQhLgHM= X-Google-Smtp-Source: AGHT+IGOPdQFC+VdmXdg6Gug4F6QB5XA1KL/TuwuNHEa+43ASEYHZmFqskROXFVIXRrqrnt7rPC08A== X-Received: by 2002:a17:907:b96:b0:a68:2bf0:91 with SMTP id a640c23a62f3a-a682bf001c3mr140911966b.31.1717171615063; Fri, 31 May 2024 09:06:55 -0700 (PDT) Received: from [127.0.1.1] ([188.27.161.69]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a67e73fc1b3sm100802566b.74.2024.05.31.09.06.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 31 May 2024 09:06:54 -0700 (PDT) From: Abel Vesa Date: Fri, 31 May 2024 19:06:44 +0300 Subject: [PATCH 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: <20240531-x1e80100-phy-add-gen4x4-v1-1-5c841dae7850@linaro.org> References: <20240531-x1e80100-phy-add-gen4x4-v1-0-5c841dae7850@linaro.org> In-Reply-To: <20240531-x1e80100-phy-add-gen4x4-v1-0-5c841dae7850@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 X-Mailer: b4 0.13.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=1417; i=abel.vesa@linaro.org; h=from:subject:message-id; bh=u1d+TMVUZZqkWCg0B+VJb5FPvmrutEqoJRDhebY8iig=; b=owEBbQKS/ZANAwAKARtfRMkAlRVWAcsmYgBmWfWaD9g789Rn/DmA84+GH9CJ85XBpmwwrsvIM bPXAyX/0+2JAjMEAAEKAB0WIQRO8+4RTnqPKsqn0bgbX0TJAJUVVgUCZln1mgAKCRAbX0TJAJUV VoebD/4jshJ9++Z5KeNra3Usv2Etjlie/jaVDHxXbtth1rZYbUq8X0EHYAKaxAxtfWfrYx9OQQo SZP9ihFnVazUFxbNUsQ1sj0BRkDfqrXapvmgZvzhUjATEk0uFRKBu6FNOYTtttGPas+lteY3mPV QWb/cIWSsZMIjSzotbpAu7BUijGhQZyBnyf63ZLhWmhSR7JBrJBhHt6F6fBzsu5KKg2sDmfNoL3 1QXnwgGp7Pq/OX9VirsWXKbb/781HGyL6KpgaJS8A6aoxoBTCfAGUHIDKafCv4nsshDDc9WCoAv 2f11vzjB3+COA4B13zcCvE/f4rpvhee1XNpGLPi2UjaV6+O9PX07afIFBcpb0IUvQib+RhgEEgi p7H7Rb55T74OF+PxRzBlx3FLlJqy1NQE35FA4Q23rtV8BZRvTu3bm+NFBrxbguXBvr7B8iursvv Ck+ey84wCkJeMLT25o5o/NPZIEO7AJHXzdYJQ3m5kdA5kyPsUzYp4O6dQjZWX7BZGYAguWmm+gc NOuatHR3A8UarHC4snGlpvJPA/PpHTSfjxterb/4deGbDaWX0ebP5kaOfWSiuHMRADUzRhYpTjI Ca+uWtbc/nKROkhfG7AzG1nCzEi5BaQknja9EElCxss99I0M/UOdvGwbXA7S9ob7LQshyuftxTC 6AEi67lbAa5x+Vg== X-Developer-Key: i=abel.vesa@linaro.org; a=openpgp; fpr=6AFF162D57F4223A8770EF5AF7BF214136F41FAE The PCIe 6th instance from X1E80100 can be used in both 4-lane mode or 2-lane mode. Document the 4-lane mode as a separate compatible. 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 16634f73bdcf..f96f692c9ee5 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 @@ -119,6 +120,7 @@ allOf: contains: enum: - qcom,sc8280xp-qmp-gen3x4-pcie-phy + - qcom,x1e80100-qmp-gen4x4-pcie-phy then: properties: reg: @@ -170,6 +172,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 May 31 16:06:45 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Abel Vesa X-Patchwork-Id: 800591 Received: from mail-lf1-f53.google.com (mail-lf1-f53.google.com [209.85.167.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 4F19915B96C for ; Fri, 31 May 2024 16:06:58 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.167.53 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717171620; cv=none; b=Qi55sxpp5zikGzsCxNDdSh5tPi+XVZHp8OHMEWOzHuxvM3FXjMtQma/WZzBR7lryOSLXuZshjb51AyGrYys3QOeQ2eGfr82hsigFb6DPf+TLMdqsnPjS3+D6megFmwVmWhSrTLhx1QUU/fHYAKTGld0WO28teYqtUTLAu4e65UQ= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717171620; c=relaxed/simple; bh=JJsL5OqAlyz9O2TqvokIzCODnIdsn9g7a8asMj9Q3QI=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=UUGR3ZXzfL2wFCR2h3gv5tMFiEMn4OUzsZtlfkNwLE/wdTbO7g2G+FPBWDrmGxToawo3eG4d5VritK6Eh/5EW9wn5vowVcw5msoQ4EZQ4ugluZtVDd2Qcxn8CVDHS2/KALJlIi/2O+U8oqR079UPvjdg85XceBm7f9uQmdczJNc= 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=MN3R1Dn0; arc=none smtp.client-ip=209.85.167.53 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="MN3R1Dn0" Received: by mail-lf1-f53.google.com with SMTP id 2adb3069b0e04-52b0d25b54eso3356367e87.3 for ; Fri, 31 May 2024 09:06:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1717171616; x=1717776416; 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=G6//FEP7cApjoaJ6/xp+H/xK3TdzcTfbzf8Zzgf+lsQ=; b=MN3R1Dn0Gr1L3oL4fjeCZf/wywVvKejzscUp5F6pHfdlRnMqj+O+bE6GbLoZ83WzB8 m3l3vWMoQMElyRpGL/hhfboItniYwAKBq3MWugu9BHvCIMRRdoB1W/Eol20pRpcQquL+ 4+1UnWKHj1CBGBtB+2P3EOGSH2836pg6QPz+pYhyIjzDr8zoDIYLOY/fwc6b+UCLlWmn ui1C752OT6hDcrlPzIKX0v1DJ/Y/b8Oyu5A6dLn0ECaEeOETfcql4VSfQ4lc/naeSA4p fyqNW/PGa7qaSVNjr3kBcs8p1Nuzr6JW7JvkuCSKuJ03z1vKlGG19Pcikg9kryUccO0p MKfg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1717171616; x=1717776416; 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=G6//FEP7cApjoaJ6/xp+H/xK3TdzcTfbzf8Zzgf+lsQ=; b=hGBoTD01VWPKb9AbhK9omYPLyJEgzbigfNlgocgxoBhb9dSMDLerFxd1n6eaxAh6eS nm5grdYdhtcywoFCvznqUEAu6+F31J8vZLXJuLQKchjLhvynyaMHNTBB5hH5+s9I0kLv gwQe+hcrsG5p+4ymSacRIeuLEcr/sZdrD4nCvWa8vC5vLBmCoODOHYADP0XizywCTk5X TuwUIDZY2YD+U/pfDuwxRifApLjxjStykrMyM//7G2uhAgG/Yihxjt965qhS/9Bf3xCu /cdk2PD0PhtCTmw5ozV0ABqLwMG/JYDdJRJikhTQb25+o3qrpuAsmbXIpwgvRfP9ATsM +ofA== X-Forwarded-Encrypted: i=1; AJvYcCWImqpLqwiHcWHQs/ouvILhNTK73uYkEFXeYyP3a5f6TOME27hNNOXpedys5O3x3NOs4Ppkj0yEPx8wWEjVp0u1O46ev9im2htwmt7F4g== X-Gm-Message-State: AOJu0YzHzMSSgidfeAEMky29Xwg0sCeRCUom9Sco6VRGK+ANoEYjF57P ndEkiwjgO8/xuJ54XBK0XarYs5NWIbq75Oh7NNfoQf8WnBWwYiG09rRPqlG8B6M= X-Google-Smtp-Source: AGHT+IEHWKpPL+jhfqZavVDoxTOPOV5YFGaBjgLYXJxMXGRrq6wSeFgdwO7LUe8FIhStMBVRPg7hJg== X-Received: by 2002:a19:7501:0:b0:52a:7d01:84cd with SMTP id 2adb3069b0e04-52b89563555mr2122032e87.30.1717171616398; Fri, 31 May 2024 09:06:56 -0700 (PDT) Received: from [127.0.1.1] ([188.27.161.69]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a67e73fc1b3sm100802566b.74.2024.05.31.09.06.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 31 May 2024 09:06:55 -0700 (PDT) From: Abel Vesa Date: Fri, 31 May 2024 19:06:45 +0300 Subject: [PATCH 2/2] phy: qcom: qmp-pcie: Add X1E80100 Gen4 4-lane mode support Precedence: bulk X-Mailing-List: linux-arm-msm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20240531-x1e80100-phy-add-gen4x4-v1-2-5c841dae7850@linaro.org> References: <20240531-x1e80100-phy-add-gen4x4-v1-0-5c841dae7850@linaro.org> In-Reply-To: <20240531-x1e80100-phy-add-gen4x4-v1-0-5c841dae7850@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 X-Mailer: b4 0.13.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=3148; i=abel.vesa@linaro.org; h=from:subject:message-id; bh=JJsL5OqAlyz9O2TqvokIzCODnIdsn9g7a8asMj9Q3QI=; b=owEBbQKS/ZANAwAKARtfRMkAlRVWAcsmYgBmWfWbZ+v0JzeD+G1ezXOkdmTUgYe7zkYCZUaJp AT4TPNHSUGJAjMEAAEKAB0WIQRO8+4RTnqPKsqn0bgbX0TJAJUVVgUCZln1mwAKCRAbX0TJAJUV Vl4JEACZlz6/FX72IPvoBV2KhG9rc7UqNay9v/AWlqtoOrFjkUGKYrtfWDzoLf3V72U2WR4b6Ae GgtBzkEufTBZgAzbfmRTCt9E1VT621Pu6y3hn7OMCrntVyvFtKfVETkJjEjx4AJwLIakN/AU4pU +JBmRNMQO/+ICih7/FEZFAF0u1rvMSs5ET+DBA6Jt15xr/iUKysZ8iRBNgKoWnKcjP1fyhW8sJG 1c6DJt5A3h92cxz8nCDaPWX3f1JXlirD7VtvB3YsAo4fJOJQERAi080O5OelHN3sWK85GKQ9CnK vSIxq3pzAY8ncjabYrsnUWv+Cci6GNYl0r//kHSX2tMNyAIYoYBrkjxnEF1uyh7SKCfyU9ydEoY Ekih3Td7WE1OZjVnQoNXaLSDPTud+530/R1cqUs0DcYfyEDU0G7brmDhlkr9ay3bzRd8eLQp1HT u8ozVsQNXsXBJAkNHJXmEanYl0HX7DTn1oddemGnycsRiff/5Bgxowm2G6SX2LqbbJCMpbdibHb dZvzTtHB/ng8d3BysFfcyeL+wakfNnt8Zzn7hVd1wJ85A9Uqdv+uot1siNWybEwqMCxgrsyV+xI fTjL1qevRegswKsItjvnFuOSb1cEYyvkKrQFIaD+iVnfAivE9OK9iO+vz0HTdQXD8eb1Z9q9WZA jKpObCZO6iOhRig== X-Developer-Key: i=abel.vesa@linaro.org; a=openpgp; fpr=6AFF162D57F4223A8770EF5AF7BF214136F41FAE The PCIe 6th instance from X1E80100 can be used in both 4-lane mode or 2-lane mode. Add the configuration and compatible for the 4-lane mode. Signed-off-by: Abel Vesa --- 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 6c796723c8f5..4e0b28da69a7 100644 --- a/drivers/phy/qualcomm/phy-qcom-qmp-pcie.c +++ b/drivers/phy/qualcomm/phy-qcom-qmp-pcie.c @@ -1028,6 +1028,10 @@ static const struct qmp_phy_init_tbl x1e80100_qmp_gen4x2_pcie_ln_shrd_tbl[] = { QMP_PHY_INIT_CFG(QSERDES_V6_LN_SHRD_RX_MARG_COARSE_THRESH6_RATE3, 0x1f), }; +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_tx_tbl[] = { QMP_PHY_INIT_CFG(QSERDES_V6_20_TX_RES_CODE_LANE_OFFSET_TX, 0x1d), QMP_PHY_INIT_CFG(QSERDES_V6_20_TX_RES_CODE_LANE_OFFSET_RX, 0x03), @@ -3342,6 +3346,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, @@ -4108,6 +4147,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, }, { }, };