From patchwork Wed Oct 25 07:34:23 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Neil Armstrong X-Patchwork-Id: 738449 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id DE81FC0032E for ; Wed, 25 Oct 2023 07:37:27 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233400AbjJYHh1 (ORCPT ); Wed, 25 Oct 2023 03:37:27 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46302 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233406AbjJYHgw (ORCPT ); Wed, 25 Oct 2023 03:36:52 -0400 Received: from mail-wm1-x32c.google.com (mail-wm1-x32c.google.com [IPv6:2a00:1450:4864:20::32c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DB49BE5 for ; Wed, 25 Oct 2023 00:34:32 -0700 (PDT) Received: by mail-wm1-x32c.google.com with SMTP id 5b1f17b1804b1-40806e40fccso38957305e9.2 for ; Wed, 25 Oct 2023 00:34:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1698219270; x=1698824070; 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=Vl8vmMHFFGT76d4GtNSEupCDJ3JGe7v4mICOWNP1wjM=; b=lJjsVdAy81NEfpgKYjO12CBzI1Inayejilg6HXkRoaakwHTjfEpwxM017o74UDWNNG GYJSPplNfE8rNIIF61WQAhflJhwabvRwLRcKmmZzT28b65DHB9PYCbQs+w5/Kx+F1A8f T4HAJQjxznjNcGj3pGYnej522tVfFFhilEBlGJiZg3gkYoe3upd34ZTmFKEuXoUiOWJv mHf+L3SwcLPEmyMHpOj9FjuG9nbMkGsFE2ZM8H9H1Fsm+Ov45vQmalKRyUQnKPODXcXH CFuIi8MKF0dqbysmDrjx6vmrGXzaySAU9/w5T5VISh+mCAzh4fRVSqVNKlJOm2iRo7LD C4zQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1698219270; x=1698824070; 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=Vl8vmMHFFGT76d4GtNSEupCDJ3JGe7v4mICOWNP1wjM=; b=u1g6SH3oqDvq1rTA4bDyAXhDHnmO3NcQAcXcSTKxqdIXt+mtaeBDbjc7lp7RwxWeAK HjnVp/a7MOIEq7VweG3Q8tgMXhiNLv8jJW0bgfNYa+RVt3supSPCccae9NfpeL1HWYwZ j7A6pfFyzewnlDMNzGJ96n/Ni9n1xVyK5zT49yHwgRR8t7UT4hvjWZZLxy238pxPnO9O 9fUmppx0XLccxz6LCPuvWEpa5J8WglAAFIjg8xfcTWKBxaoQsEeoOH+Yq2ISiv4jCk8R /9CBOcQ7CPrrwSihLiAYR1GoPfcIJZUYk0tMbFf+oFaVUCFpxJ+OoIIndO+boix+5nDa vEkQ== X-Gm-Message-State: AOJu0YzxcUPwzONPHuGy1b/v41sPNHzG4fyU0czTODTlmRiWdolIiZrd N27jWvDKJAh3PYEGfv9OjvWfMw== X-Google-Smtp-Source: AGHT+IEG+KvzpSTGHFZWxScY2uqX4IQOYRoXOYbZRpZ0ixHJRz+JlKuREIS4JAMlFfxiQVIcNBhOBg== X-Received: by 2002:adf:e507:0:b0:329:6e92:8d77 with SMTP id j7-20020adfe507000000b003296e928d77mr10006667wrm.51.1698219270510; Wed, 25 Oct 2023 00:34:30 -0700 (PDT) Received: from arrakeen.starnux.net ([2a01:e0a:982:cbb0:8261:5fff:fe11:bdda]) by smtp.gmail.com with ESMTPSA id y7-20020a5d4ac7000000b0032dde679398sm11431392wrs.8.2023.10.25.00.34.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 25 Oct 2023 00:34:30 -0700 (PDT) From: Neil Armstrong Date: Wed, 25 Oct 2023 09:34:23 +0200 Subject: [PATCH 1/7] dt-bindings: phy: qcom,sc8280xp-qmp-ufs-phy: document the SM8650 QMP UFS PHY MIME-Version: 1.0 Message-Id: <20231025-topic-sm8650-upstream-phy-v1-1-6137101520c4@linaro.org> References: <20231025-topic-sm8650-upstream-phy-v1-0-6137101520c4@linaro.org> In-Reply-To: <20231025-topic-sm8650-upstream-phy-v1-0-6137101520c4@linaro.org> To: Andy Gross , Bjorn Andersson , Konrad Dybcio , Vinod Koul , Kishon Vijay Abraham I , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Abel Vesa Cc: linux-arm-msm@vger.kernel.org, linux-phy@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Neil Armstrong X-Mailer: b4 0.12.3 X-Developer-Signature: v=1; a=openpgp-sha256; l=787; i=neil.armstrong@linaro.org; h=from:subject:message-id; bh=bCDRPrc9BmxSVH1ZE52SGnJTh1cBQGHH2pHl/JHy1Zs=; b=owEBbQKS/ZANAwAKAXfc29rIyEnRAcsmYgBlOMUB/Rgsky+njvVrJXJbvuwUArcU0sDiqnrO1N8N pAvdLqOJAjMEAAEKAB0WIQQ9U8YmyFYF/h30LIt33NvayMhJ0QUCZTjFAQAKCRB33NvayMhJ0egCD/ 0Z/peMhuVXDFPX6l619YKuLHavzzASJjOYOFRtymDk/f+k91hac1amhsj4hV4oENfR8MDSk8mbGJsW plA2zrzFyk0OA8crsNmSoHIrkwQp5WVVZui4aHaJStdqsmg+PQiW6AsQUpqT+caKoICBFJyRdBxpv0 8RCaMoSgTiREwq5L29YdzGMWYZzD6jvynLCEONcU9fNwb5HmayvBQs6jR3OHPDJYoZdtgRUaTqPAju 8/HKBF9CXUfmT/qifiQAldScLX61b/e5l9DxmrSXSbwC0qH+vEgsFk1QMgrn8hkAPWLrR10aryxUTX 4bSQdOnxnmgeJy9u85bX0K/njEcMLS32/ASvwxjtFiBT+1pL16iwdxlizOC/3XyCzcCFGG20GYGyZc 490JLcTu3kVBqWNR2uHS8dxNjj7XzoDKYIil+Sn5vwbnb/whl1UjvhhRB6m4y9oqtX26uCt6aQJ+Qf +nDi44RLRYBjm1yzT6PBAAViXb2GIl2H1Tiij0wYTDU3B80+ukSWrG1S3Ucat9jXylpv0/xoQeylGG wo/NKnv21igWRsXFmWKaCe8WEncEMRqM4oWVF2ZuQCC+0jdifmiGiz50wPyK1fwAAMoQtI6rrWr6X1 uE9B8KQgOqylyq2ZdnSkWlfRnY7dKyk68NyA52qGXH2XwkpkroAyz7HBbvEQ== X-Developer-Key: i=neil.armstrong@linaro.org; a=openpgp; fpr=89EC3D058446217450F22848169AB7B1A4CFF8AE Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org Document the QMP UFS PHY on the SM8650 Platform. Signed-off-by: Neil Armstrong --- Documentation/devicetree/bindings/phy/qcom,sc8280xp-qmp-ufs-phy.yaml | 1 + 1 file changed, 1 insertion(+) 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 f3a3296c811c..1d54d564fe9b 100644 --- a/Documentation/devicetree/bindings/phy/qcom,sc8280xp-qmp-ufs-phy.yaml +++ b/Documentation/devicetree/bindings/phy/qcom,sc8280xp-qmp-ufs-phy.yaml @@ -32,6 +32,7 @@ properties: - qcom,sm8350-qmp-ufs-phy - qcom,sm8450-qmp-ufs-phy - qcom,sm8550-qmp-ufs-phy + - qcom,sm8650-qmp-ufs-phy reg: maxItems: 1 From patchwork Wed Oct 25 07:34:24 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Neil Armstrong X-Patchwork-Id: 737979 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 3C586C25B6B for ; Wed, 25 Oct 2023 07:37:13 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232224AbjJYHhM (ORCPT ); Wed, 25 Oct 2023 03:37:12 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43774 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233897AbjJYHgq (ORCPT ); Wed, 25 Oct 2023 03:36:46 -0400 Received: from mail-wr1-x429.google.com (mail-wr1-x429.google.com [IPv6:2a00:1450:4864:20::429]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 73249133 for ; Wed, 25 Oct 2023 00:34:34 -0700 (PDT) Received: by mail-wr1-x429.google.com with SMTP id ffacd0b85a97d-32caaa1c493so3705179f8f.3 for ; Wed, 25 Oct 2023 00:34:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1698219272; x=1698824072; 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=pVlwiJkgEOptZyxgmNkYyImFRkPkiQTz9Ix32yztC1Q=; b=z8ix1Ck2fa8YzN2xhqPKqa+BUKyJIXVyd1DPRZMSfqaGgVWBNHyEDjIdokUUwKEnZD MYmuSDdGb/t9yyMgTZK0Y5y0UJzs+KhZhvSiDsoG+asoNA+F1JkJY6P30CTkSDE0R7+C j6nBStyGJEgEyRCtmKgz9XpP/7r9oXprsFV7x60Re9OvQdS72kRAsWhksu0ssc+NiOaD 4QbdlTQJzOFNbcGBRVSnI3KlPvhfaClh34sIc/Vv27m0IeyAEiGuOdKft+X8ymDS1OFw ZGcuWlr1/sFfUcDF0uJxbqPioK99VbDh2gk1V7SUxNvnNSB/ceQxu936oFUezFYhRXnb b1xA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1698219272; x=1698824072; 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=pVlwiJkgEOptZyxgmNkYyImFRkPkiQTz9Ix32yztC1Q=; b=c4tEoTGayQxKzVmt1we8UpZp7Aeza43VGxLCbfJNvFoFBMokq8ImtvzZTGRvLtYBJT LT/n+TX2vDTFXXovsN+bihHGL09fjMCtSfmVCbwO1JMUfAuZQOUSR+HCVEesrI4geDZT ec9ou6bUHgcmbsfGqaImHld65wmrCjoN92kXxS95U3DNNQJ51v7EpfnGLilaRxlz3vpL tt2eUpoBo5wbinz2sUolRjkjtjcrHL46Uyt2ke40LA5crmm9xAj42p/3oLXpk7VddZf6 Q7P3MLnIt7Fjw6GdkJ8viVgodxrA6pl6JLmj0zgBAMeONsKH9GfqTc8/efvyKsSDa8k9 gjRQ== X-Gm-Message-State: AOJu0Yy7MTyOHsfG+cEZEz3AlXbVwJ/5qJLyK1tLjOSkAEXCRwXKgG1I KvUnSBOPqv0VS3RJyfzvs0EBtQ== X-Google-Smtp-Source: AGHT+IHAGjKxePRM19PhYeF3oCHG3b9njF0cJVMtL4PGOHKkoPvn68B6+gWqFkZVzVFHyq/HzEnKkQ== X-Received: by 2002:a5d:4e06:0:b0:32d:a686:dedf with SMTP id p6-20020a5d4e06000000b0032da686dedfmr9812039wrt.57.1698219271597; Wed, 25 Oct 2023 00:34:31 -0700 (PDT) Received: from arrakeen.starnux.net ([2a01:e0a:982:cbb0:8261:5fff:fe11:bdda]) by smtp.gmail.com with ESMTPSA id y7-20020a5d4ac7000000b0032dde679398sm11431392wrs.8.2023.10.25.00.34.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 25 Oct 2023 00:34:31 -0700 (PDT) From: Neil Armstrong Date: Wed, 25 Oct 2023 09:34:24 +0200 Subject: [PATCH 2/7] dt-bindings: phy: qcom,sc8280xp-qmp-pcie-phy: document the SM8650 QMP PCIe PHYs MIME-Version: 1.0 Message-Id: <20231025-topic-sm8650-upstream-phy-v1-2-6137101520c4@linaro.org> References: <20231025-topic-sm8650-upstream-phy-v1-0-6137101520c4@linaro.org> In-Reply-To: <20231025-topic-sm8650-upstream-phy-v1-0-6137101520c4@linaro.org> To: Andy Gross , Bjorn Andersson , Konrad Dybcio , Vinod Koul , Kishon Vijay Abraham I , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Abel Vesa Cc: linux-arm-msm@vger.kernel.org, linux-phy@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Neil Armstrong X-Mailer: b4 0.12.3 X-Developer-Signature: v=1; a=openpgp-sha256; l=1420; i=neil.armstrong@linaro.org; h=from:subject:message-id; bh=Yg0TVyiYsosBLzL1a2yrBPOz0lVUOibz3FSYURBPVy8=; b=owEBbQKS/ZANAwAKAXfc29rIyEnRAcsmYgBlOMUCUf8sE0aibMiV0kIEPpnQdLNqym/SMs4a7+z3 YBq+aDaJAjMEAAEKAB0WIQQ9U8YmyFYF/h30LIt33NvayMhJ0QUCZTjFAgAKCRB33NvayMhJ0dorD/ 4ge+60cPByERIZrdK4nSqpOR2twsY54BM1cNi25fPEnXeQ1WZ48honBLxai5rHSee554jueYW5JoUq pLIrM8s36DszEGrAc7S60rQ1yHLiuCYqHPN9Ctdz39xLourEQx7rxtvaGcvZh85rnQm/n0/fhTYox4 ea4YoTlsV5tUYKEiAh8pkN1/ZDBirFWFKOO+UTUhDDnum0+yxZyvsRGYmzkH5TyFV+sK+hjJWGRKwM Z3oyrcHMuoVME4Wr0LQw3gRWv2XBiuYy4vScNd2OpZx4pIRJriM7LHuZRAAlAPAWQl7WOb5l1hTkl4 BkcTbH0K95N9uQ7QoY9vyEFb/cM4pUfDNU+WRbZW3DVtlMI1tjTHW9waNKGKPClmAHkIPeMUefND1r VYZ5eB8eMb5RQufIECd5EoDRS1fsdx+9SLwVLQ5DdiyO3MOuu5U1dm1sakb1RZ8QGPlV5HZCpYaI+1 UZ8sXCyaa3UDaRWk7P4ecZzkXEuIojHzrWxgdjdhVvBPkyqexJXjD/jsVCX/absJmtcij54THx7WgT UMkw/22VomDx7hl2h6OaGnFqN2s5JH++RpeaKOK4q7v2HOgMNU76wPZjOIOSMBq5OZj8cRoHh0+Q/i FjKnCAZLpcsrnefQvYx5EuS4L9qO4BXNd6CQyMlA7hOMuVKz6Qk9xy6NXWLA== X-Developer-Key: i=neil.armstrong@linaro.org; a=openpgp; fpr=89EC3D058446217450F22848169AB7B1A4CFF8AE Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org Document the QMP PCIe PHYs on the SM8650 Platform. Signed-off-by: Neil Armstrong --- .../devicetree/bindings/phy/qcom,sc8280xp-qmp-pcie-phy.yaml | 5 +++++ 1 file changed, 5 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 2c3d6553a7ba..6c03f2d5fca3 100644 --- a/Documentation/devicetree/bindings/phy/qcom,sc8280xp-qmp-pcie-phy.yaml +++ b/Documentation/devicetree/bindings/phy/qcom,sc8280xp-qmp-pcie-phy.yaml @@ -36,6 +36,8 @@ properties: - qcom,sm8450-qmp-gen4x2-pcie-phy - qcom,sm8550-qmp-gen3x2-pcie-phy - qcom,sm8550-qmp-gen4x2-pcie-phy + - qcom,sm8650-qmp-gen3x2-pcie-phy + - qcom,sm8650-qmp-gen4x2-pcie-phy reg: minItems: 1 @@ -147,6 +149,8 @@ allOf: - qcom,sm8450-qmp-gen3x2-pcie-phy - qcom,sm8550-qmp-gen3x2-pcie-phy - qcom,sm8550-qmp-gen4x2-pcie-phy + - qcom,sm8650-qmp-gen3x2-pcie-phy + - qcom,sm8650-qmp-gen4x2-pcie-phy then: properties: clocks: @@ -189,6 +193,7 @@ allOf: contains: enum: - qcom,sm8550-qmp-gen4x2-pcie-phy + - qcom,sm8650-qmp-gen4x2-pcie-phy then: properties: resets: From patchwork Wed Oct 25 07:34:25 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Neil Armstrong X-Patchwork-Id: 737980 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 5718AC25B47 for ; Wed, 25 Oct 2023 07:37:07 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232862AbjJYHhG (ORCPT ); Wed, 25 Oct 2023 03:37:06 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37566 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234034AbjJYHgj (ORCPT ); Wed, 25 Oct 2023 03:36:39 -0400 Received: from mail-lf1-x131.google.com (mail-lf1-x131.google.com [IPv6:2a00:1450:4864:20::131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8FE06BB for ; Wed, 25 Oct 2023 00:34:35 -0700 (PDT) Received: by mail-lf1-x131.google.com with SMTP id 2adb3069b0e04-507c5249d55so7710512e87.3 for ; Wed, 25 Oct 2023 00:34:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1698219272; x=1698824072; 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=wbrvIzvdzq/AFVOVjbVafR3T9nNAQ5I5GLW0AHPZ5/k=; b=Vz6qgUNf7iBBNGbQ5Q3S+9nBKLCrFfuWXi9pAnEZqnaHJTVNWsxRFykgBtlTW88G0D d/ZomFdfzqgM4aSeu4j3eR6Mmae5UtepHfzul8+GAQxFnvvOdLsDezOMXhtlnkQbUHEC PbbE8u+vYclu6rlYF+KdhPiSBA4KjqoU1iQK7WB/EJmKa0q/qLWAnK445VYdGT4mM6wf 1dRu1/9QFOE+yT6DTFpwkhKZuGWKXjrsgdj44Di+jatt8RSGUkiO9YFuKfKC8+gcRScU ER1yWvVf9OeO0XESXDpzvxovO9aWw5LqS+v8cmMKcqIo9WJ2qYxLygWS2PEe8D70MLWE UvRw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1698219272; x=1698824072; 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=wbrvIzvdzq/AFVOVjbVafR3T9nNAQ5I5GLW0AHPZ5/k=; b=oDVpl8Eg0auVlA5V4+FEVrIzetHOe8NdC450otX4BnZHtSsd0npEWqBux94zaSaxre pfXj772ysTpUiOua6m/Ituq5Rwwpn5Ri2r3Fx9k9Le7PHJeYtCa3qPs2hvIT8wFBT2C+ n8VP7zUdNcL4lsGlayosGVbNncrmfHi7O9BcGtpjWAU4abLGaq+DkMCtzni5l0YsLiKM 2Aec0CGwPHOSzReLXhgXp0YLsdDBlcnZ90uAQwKFE4UfIQ1LWz4mwTttOCjUkzR6YpsU 6glpw55JZrGf3s+lAKY4ERUpAdf0yyRGdhtgKXxxIZpysKmp1PXEgrUAaCTsJ6BRkT2b EiJQ== X-Gm-Message-State: AOJu0YzJOyHVXBy5bS3sMu7prQVkuW74B16ypiIfFR+ufpkCRCDaQLVB qBLAEXCFZVWPWJq1YnS+nd8E6A== X-Google-Smtp-Source: AGHT+IEZO5QiKOjC2lbTgrH0pnqsb9TCUneqoGjzkdruJYssC7pozOdxX1CYD6R9k55MHLVaDaAZrg== X-Received: by 2002:a19:7015:0:b0:503:7be:c85d with SMTP id h21-20020a197015000000b0050307bec85dmr10051522lfc.35.1698219272614; Wed, 25 Oct 2023 00:34:32 -0700 (PDT) Received: from arrakeen.starnux.net ([2a01:e0a:982:cbb0:8261:5fff:fe11:bdda]) by smtp.gmail.com with ESMTPSA id y7-20020a5d4ac7000000b0032dde679398sm11431392wrs.8.2023.10.25.00.34.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 25 Oct 2023 00:34:32 -0700 (PDT) From: Neil Armstrong Date: Wed, 25 Oct 2023 09:34:25 +0200 Subject: [PATCH 3/7] dt-bindings: phy: qcom,sc8280xp-qmp-usb43dp-phy: document the SM8650 QMP USB/DP Combo PHY MIME-Version: 1.0 Message-Id: <20231025-topic-sm8650-upstream-phy-v1-3-6137101520c4@linaro.org> References: <20231025-topic-sm8650-upstream-phy-v1-0-6137101520c4@linaro.org> In-Reply-To: <20231025-topic-sm8650-upstream-phy-v1-0-6137101520c4@linaro.org> To: Andy Gross , Bjorn Andersson , Konrad Dybcio , Vinod Koul , Kishon Vijay Abraham I , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Abel Vesa Cc: linux-arm-msm@vger.kernel.org, linux-phy@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Neil Armstrong X-Mailer: b4 0.12.3 X-Developer-Signature: v=1; a=openpgp-sha256; l=1095; i=neil.armstrong@linaro.org; h=from:subject:message-id; bh=KnCaelpeaszap3KN0CRLC15V35wlkNa/TjtN4fP9oFk=; b=owEBbQKS/ZANAwAKAXfc29rIyEnRAcsmYgBlOMUCl3WwZsvJzEEGEdGRKVUDhdZTxdbatOrOyBLX s7Vj1yyJAjMEAAEKAB0WIQQ9U8YmyFYF/h30LIt33NvayMhJ0QUCZTjFAgAKCRB33NvayMhJ0a6WD/ 9zb9fqAocbGRCVJVVlWKfgXMeW5q9BF3FDnpm0+DCjwMQofCx5JE5amlasApZRsXBj/ibGanI9bEOt aMd0P5edbATNkInvjw3wdjRYVQedWyQ3kug1t/937mZXnyPImgFJoc+la5QA2NwE9uHcAEBGTLjXgO /BwyJJniPPKhfkBPHKjU/EQ4rLTT9M+uixKRcjLE3Uj7AwUbAzRI/x6Fqw23xwWJr9j8WyhsFJxjpR U/JsAJrpvDeUgKyiiPt/OcKrhxPdKJ8E9/H4/2IpipbqCRtZzbnS7ng508hZ3Elwo5lwcFHRz/HqBB Hadwunpcvcvg8z9qNyx7Orh0cIndmcGyV0yZFYas6KZx+romuNw5QAPCufPWazVp4QvYevDuNekKy2 Ze3jy97x8WboWjcN1rNSRIAIATNWCBsIfjkSDsPLaYQAsd8f8Og0SjthZ6rqiiiHDmOfftmEa3F7hz 9OukfROqYx1SmRIpUxROzbil572WwRtMsEQv/MFnClf9c8wSpfp18hqK2ch71IxWTrWNDTS17XVaWA QiG+yDqmYUORl3gBaH4SqlQODzrj2mqfflWjLVqeotYUNkSMtpdRN8deA/QCmqrh2gdN16I+CqMLue Ah8pEekWifx4QjCuw/5lifCrAKSR4KTwIqCeKNmbnzNOqQhJbBHPljXv0Szw== X-Developer-Key: i=neil.armstrong@linaro.org; a=openpgp; fpr=89EC3D058446217450F22848169AB7B1A4CFF8AE Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org Document the QMP USB/DP Combo PHY on the SM8650 Platform. Signed-off-by: Neil Armstrong --- .../devicetree/bindings/phy/qcom,sc8280xp-qmp-usb43dp-phy.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Documentation/devicetree/bindings/phy/qcom,sc8280xp-qmp-usb43dp-phy.yaml b/Documentation/devicetree/bindings/phy/qcom,sc8280xp-qmp-usb43dp-phy.yaml index 9af203dc8793..ae83cb8cb21f 100644 --- a/Documentation/devicetree/bindings/phy/qcom,sc8280xp-qmp-usb43dp-phy.yaml +++ b/Documentation/devicetree/bindings/phy/qcom,sc8280xp-qmp-usb43dp-phy.yaml @@ -27,6 +27,7 @@ properties: - qcom,sm8350-qmp-usb3-dp-phy - qcom,sm8450-qmp-usb3-dp-phy - qcom,sm8550-qmp-usb3-dp-phy + - qcom,sm8650-qmp-usb3-dp-phy reg: maxItems: 1 @@ -128,6 +129,7 @@ allOf: - qcom,sc8280xp-qmp-usb43dp-phy - qcom,sm6350-qmp-usb3-dp-phy - qcom,sm8550-qmp-usb3-dp-phy + - qcom,sm8650-qmp-usb3-dp-phy then: required: - power-domains From patchwork Wed Oct 25 07:34:26 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Neil Armstrong X-Patchwork-Id: 738450 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id E0F68C0032E for ; Wed, 25 Oct 2023 07:37:09 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233022AbjJYHhJ (ORCPT ); Wed, 25 Oct 2023 03:37:09 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51224 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233875AbjJYHgm (ORCPT ); Wed, 25 Oct 2023 03:36:42 -0400 Received: from mail-wr1-x435.google.com (mail-wr1-x435.google.com [IPv6:2a00:1450:4864:20::435]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 094A730DA for ; Wed, 25 Oct 2023 00:34:35 -0700 (PDT) Received: by mail-wr1-x435.google.com with SMTP id ffacd0b85a97d-32d80ae19f8so3707796f8f.2 for ; Wed, 25 Oct 2023 00:34:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1698219273; x=1698824073; 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=s1uFHDOXASZ5BH047ZzhsjZxg7GSsbR+WOPLJZ6Hp9E=; b=UIFW7fQjFrWvorYa6pkiq3xCg3NI3BkCqVC4D1RrHbrsGaJhfh8+c8BlSjexdAWk8i bhNbEp+2/R+rQ0CPu4vc/QDEmOY0fJlKA0GerxMeDZIqwNvLmSzhxTLrlodl4tZJdN0g RMIhswjrNfgSA6Nip3PRrHWLP69qQcrZKrzfNg6sosaYm9ojUOcLqqB7WvnWcAMewgVn 6YG0ykT4HIFZKlQ05TKHUymd+f7WGgMtV4dqCCNf8qLGgIVS3AkW1iQPCpHA2nB9N4Mm rXFnJk6zcuqAQ4Qu/kuxzTY3BpPFgkiM8di3nv9q54uDBNDI/841AUc/BHlIPg5I6uRE 9RcQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1698219273; x=1698824073; 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=s1uFHDOXASZ5BH047ZzhsjZxg7GSsbR+WOPLJZ6Hp9E=; b=MXLpPrWJqcMCWJgaecrRXcPSAjBo36wwYFIDo+u3OtRyR3q+f+4TFhDyBHaSB1WsSI lKQuP6KfU89fAk4fYDRlFLJymzGQ5SBTjsdLWkm3ad0AZm7e88lvKqKjOIJ7PMA3EyEZ ciIy36Wmf/8dtJpKpRjfovalWCYJlCaLWVwKx2B2rZdsSbVGLibeM4VhD5ZEYtNrFO9i q4ZUCxiTqE81O+DApFSTgbDWmV+MKfLROEzWHQeilaSX26+rP+wv4T3UtILuS9nYXN1X AmNkWmj5JneDMffKaGduD7ttGiTgIBgC1ZoDD2wWOfjTRpsVxTjdVxZUA9YNdWxmZiL5 w25Q== X-Gm-Message-State: AOJu0YxWG3+5d+hc1st0CPyLWBYrn1NITtJXzl5v2f3UYpY7VzNYJtlN eaSv6+NdRkEx805LUgfGPR/5iA== X-Google-Smtp-Source: AGHT+IGJnIErfrQCVfiSkmXIczIEjoeTOW46/Ip+i3/h4jKFjegCr2NzuU21K8KRzPu52K3Pt85S0Q== X-Received: by 2002:adf:fd0b:0:b0:32d:d756:2cc7 with SMTP id e11-20020adffd0b000000b0032dd7562cc7mr10529309wrr.58.1698219273685; Wed, 25 Oct 2023 00:34:33 -0700 (PDT) Received: from arrakeen.starnux.net ([2a01:e0a:982:cbb0:8261:5fff:fe11:bdda]) by smtp.gmail.com with ESMTPSA id y7-20020a5d4ac7000000b0032dde679398sm11431392wrs.8.2023.10.25.00.34.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 25 Oct 2023 00:34:33 -0700 (PDT) From: Neil Armstrong Date: Wed, 25 Oct 2023 09:34:26 +0200 Subject: [PATCH 4/7] dt-bindings: phy: qcom,snps-eusb2: document the SM8650 Synopsys eUSB2 PHY MIME-Version: 1.0 Message-Id: <20231025-topic-sm8650-upstream-phy-v1-4-6137101520c4@linaro.org> References: <20231025-topic-sm8650-upstream-phy-v1-0-6137101520c4@linaro.org> In-Reply-To: <20231025-topic-sm8650-upstream-phy-v1-0-6137101520c4@linaro.org> To: Andy Gross , Bjorn Andersson , Konrad Dybcio , Vinod Koul , Kishon Vijay Abraham I , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Abel Vesa Cc: linux-arm-msm@vger.kernel.org, linux-phy@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Neil Armstrong X-Mailer: b4 0.12.3 X-Developer-Signature: v=1; a=openpgp-sha256; l=852; i=neil.armstrong@linaro.org; h=from:subject:message-id; bh=8xmswTD2ELDmxMqIqnHD3lBOLsWcHOrJVpLKjghNNJU=; b=owEBbQKS/ZANAwAKAXfc29rIyEnRAcsmYgBlOMUCZ4bwlw5KtKD4yj4JPbB3O8CUhPn6Rd+hvv09 59F2Xy+JAjMEAAEKAB0WIQQ9U8YmyFYF/h30LIt33NvayMhJ0QUCZTjFAgAKCRB33NvayMhJ0ZeIEA DIE8pSKteDYwap9zVfyGM9gWhGOQ6owg+5EWGZ04w9Zn9jH5ssQ22uwMKNVxWKzFH4ROqf0MZs0p6/ Km6aG+YiT0VjsKyLXARUyaEB8o9xN3R7bNVGLhiah6pkHObEc8nfU/gvxo+n/2nncRJoW6BGN5WpPq xvH21Q1pUHpS/oGLIG5ETE/HlE3IYAh2UHlmm1AZUJtSL6vzmGpflot3puheg6KuGRc3PIJ5IPkrD/ JC+KvfxtIj/ls/IXY37rPc+snze4AXMqIRaexIOur15z30EmzRhlT4h3+9/s/X90QRWJ5KSrtF+ig3 0UTyVQJvu5pnGvyp+rownBSKQVas//MM0qa4UkEOqflm4Bx1ifZXcGdv7EYjMXo2basT7TdcCzyAIX r+X4LrNTiNTp0MFEeGqq4SZIbyME4lJlFE7eykPZXi5R7evISN1zyP+DUoSYKCQcnk5EW7aSjJ84Sh GMcAOHJoJ0DRhBL/x4YfRVpS4OyaEORzhqUwL5eiHoX1G6n8FlWn+uGOjfYlxDVmAfvCknXLOIFbEy Cxxi4ULZYtWPBkLapwWC+wmwVjYNpSsFBzf5vsMQEylulruTcvXbQXhaEjlTu7gLiMKxQn7H3rBuyp QBHyUkFIrk1e0+qNY0T7fhFPtwLiKolTu2/nEXflxsrLEScRD3zyHM+5yOtA== X-Developer-Key: i=neil.armstrong@linaro.org; a=openpgp; fpr=89EC3D058446217450F22848169AB7B1A4CFF8AE Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org Document the Synopsys eUSB2 PHY on the SM8650 Platform by using the SM8550 as fallback. Signed-off-by: Neil Armstrong --- Documentation/devicetree/bindings/phy/qcom,snps-eusb2-phy.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/phy/qcom,snps-eusb2-phy.yaml b/Documentation/devicetree/bindings/phy/qcom,snps-eusb2-phy.yaml index c95828607ab6..8f5d7362046c 100644 --- a/Documentation/devicetree/bindings/phy/qcom,snps-eusb2-phy.yaml +++ b/Documentation/devicetree/bindings/phy/qcom,snps-eusb2-phy.yaml @@ -18,6 +18,7 @@ properties: - items: - enum: - qcom,sdx75-snps-eusb2-phy + - qcom,sm8650-snps-eusb2-phy - const: qcom,sm8550-snps-eusb2-phy - const: qcom,sm8550-snps-eusb2-phy From patchwork Wed Oct 25 07:34:27 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Neil Armstrong X-Patchwork-Id: 738442 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 1BE67C25B47 for ; Wed, 25 Oct 2023 07:45:33 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234052AbjJYHpc (ORCPT ); Wed, 25 Oct 2023 03:45:32 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43348 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234043AbjJYHoe (ORCPT ); Wed, 25 Oct 2023 03:44:34 -0400 Received: from mail-lf1-x134.google.com (mail-lf1-x134.google.com [IPv6:2a00:1450:4864:20::134]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AC41630E1 for ; Wed, 25 Oct 2023 00:34:36 -0700 (PDT) Received: by mail-lf1-x134.google.com with SMTP id 2adb3069b0e04-507b96095abso7955514e87.3 for ; Wed, 25 Oct 2023 00:34:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1698219274; x=1698824074; 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=5rNOL2ucB9IS0lQHZLbiMkqBp11HjQ48xvh+yKXlN7s=; b=Fe1HRyhYzVGFs9dk6V3X6lMzmvPpLvMmpx5pnKiHQGJGQN20tVik14tkj78AsidDFl ONSzqUjGkBQuXYP5Ea1o2B7Hrxjk63596MZFB3+wGtJYq7lXQJmucZDnOSmWk+NQp5Wg EFq7VsUuPuFP+vf4RLqLB1wvKX1ry5BnLOJIO+ftiHUMP87xO6e0VrLAhGY5SU3zckjm 5punYvnQ/T25puWdzmEPH+zLP2lAuxbERv3aVgvyuI86XIklFcx8pEPUFGOqmB5gapfy XC7vtPID0wrFccEbL92NQiR7CUNVA6Fu2B+gV20dXUYIBiBfCTeLnss2hQl5DxSvwLCY LPoQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1698219274; x=1698824074; 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=5rNOL2ucB9IS0lQHZLbiMkqBp11HjQ48xvh+yKXlN7s=; b=RXwV/lBXOcn544n1yKLaZNlY8m5m0ZlKmkoUlCK6FXzZZv2L8ZljabuYfuvAX1qDUW A7hZ2WPm+FFm21r+2VFIvd67j+s3pAW+8zDLYnpWBUnc3V6aLInWxebOiuyMZh64sEZv O0aMUdQ8vcIC6bYbNJ8VlUR+nuF/sTPdLHefUFdp/shKn6LrcTd57iheCve05zrgWjcy PKqtEGarsGMNVE4xgrAmLgoxQmnCdYYCavKZbgt6NjHctMFKbtwxqg7w1w6F6DlF+FUW KTEns/9MvqcYLuv5lHYvracL8V09w7fD+rrWMua25qF1X9RhPWZU0o31/Df0ujCnERvM j+GA== X-Gm-Message-State: AOJu0Yx2hS70PG3qkp0OuDT6vS3NCD4fFqcHyM2sJFzvskS+hzqzaVfs B9y4HhgzrbhWaR5LcEMHdnq9lg== X-Google-Smtp-Source: AGHT+IE3PHVGQaASOXYYJITFAFiBQqeHX9F08+SQYc6GXKCIaJOFZ0DcpWdgcTBde+DML+AZPjQiFA== X-Received: by 2002:a19:e01b:0:b0:504:c83e:322b with SMTP id x27-20020a19e01b000000b00504c83e322bmr10249394lfg.38.1698219274694; Wed, 25 Oct 2023 00:34:34 -0700 (PDT) Received: from arrakeen.starnux.net ([2a01:e0a:982:cbb0:8261:5fff:fe11:bdda]) by smtp.gmail.com with ESMTPSA id y7-20020a5d4ac7000000b0032dde679398sm11431392wrs.8.2023.10.25.00.34.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 25 Oct 2023 00:34:34 -0700 (PDT) From: Neil Armstrong Date: Wed, 25 Oct 2023 09:34:27 +0200 Subject: [PATCH 5/7] phy: qcom: qmp-ufs: add QMP UFS PHY tables for SM8650 MIME-Version: 1.0 Message-Id: <20231025-topic-sm8650-upstream-phy-v1-5-6137101520c4@linaro.org> References: <20231025-topic-sm8650-upstream-phy-v1-0-6137101520c4@linaro.org> In-Reply-To: <20231025-topic-sm8650-upstream-phy-v1-0-6137101520c4@linaro.org> To: Andy Gross , Bjorn Andersson , Konrad Dybcio , Vinod Koul , Kishon Vijay Abraham I , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Abel Vesa Cc: linux-arm-msm@vger.kernel.org, linux-phy@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Neil Armstrong X-Mailer: b4 0.12.3 X-Developer-Signature: v=1; a=openpgp-sha256; l=7034; i=neil.armstrong@linaro.org; h=from:subject:message-id; bh=QFYf1x/lxIv5aXYWa5Er6If25Zp3kDF9k+9svJJWXZE=; b=owEBbQKS/ZANAwAKAXfc29rIyEnRAcsmYgBlOMUD1NeVMp4HcgjifiKzTOrabO8/FNtfDcXBXZcP PmmbZNmJAjMEAAEKAB0WIQQ9U8YmyFYF/h30LIt33NvayMhJ0QUCZTjFAwAKCRB33NvayMhJ0RFfD/ 9HXOgBQ+x3qeaZUUIuh4oqCJx/EMWDaBQqDOQGqLFJTrCelpIjkCcDM4nsdF7DorHjKIVBE8HBqP3E 48/84Mlg9Sk4gmj7+ygq/HRQ/UBVEHf/DYzyOHHpq3WoBqkt0k9Ztb9STzVlm4iF1z+zEzUpaHQotj KZyHYEh+MPKJD1fe2HEhH3jA2gMmyNRWmIKQTVdOo/U6082yWU3Sfl6NMyQpi2ZfbNdcg0pMCRObcZ 0GliJz/PdN2J+2JXhuLzVxD9uA1A3JYW1i/g6o7hunewa/+gMoGBzLroV5m9BZVSkiP3SaqTvG/Of6 GNmtr0aeyQbLeLNQqbIvMsxwqjVH590FRT3t0SCdM+uaGyDI84sNxqGKz/DMQ+pbhFrLj4ALRYUPcq sG+s1gQgYvH/R1xIRpN775WJzIGIVA4CH4671SibnD+YFIbl9egcvHCIpuP4KBvRHWuj2D796v0/Fg tWu68o6pM4ya375k1cKsmjDg4VoGIzhdz/GmGTUKYdxIcrTEXdQFKdV2qF/y7neElaI3p7+O9Lml38 mVqUw7vubQGOTTiIbWIBBwMN7CXBLH2l7PBJ09QTsQcdnlSAj6xGtKqkRR9KPA3DY5SJzdR1+Wf/Q5 PQMHxu4Iqt4gEcLM6Rc1dohUkCHy0EFcGMcLk8dCsR1sQDXQQPu5XEgxMWgw== X-Developer-Key: i=neil.armstrong@linaro.org; a=openpgp; fpr=89EC3D058446217450F22848169AB7B1A4CFF8AE Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org Add QMP UFS PHY support for the SM8650 platform. Signed-off-by: Neil Armstrong --- drivers/phy/qualcomm/phy-qcom-qmp-pcs-ufs-v6.h | 1 + .../qualcomm/phy-qcom-qmp-qserdes-txrx-ufs-v6.h | 7 ++ drivers/phy/qualcomm/phy-qcom-qmp-ufs.c | 86 ++++++++++++++++++++++ 3 files changed, 94 insertions(+) diff --git a/drivers/phy/qualcomm/phy-qcom-qmp-pcs-ufs-v6.h b/drivers/phy/qualcomm/phy-qcom-qmp-pcs-ufs-v6.h index c23d5e41e25b..fe6c450f6123 100644 --- a/drivers/phy/qualcomm/phy-qcom-qmp-pcs-ufs-v6.h +++ b/drivers/phy/qualcomm/phy-qcom-qmp-pcs-ufs-v6.h @@ -12,6 +12,7 @@ #define QPHY_V6_PCS_UFS_SW_RESET 0x008 #define QPHY_V6_PCS_UFS_TIMER_20US_CORECLK_STEPS_MSB 0x00c #define QPHY_V6_PCS_UFS_TIMER_20US_CORECLK_STEPS_LSB 0x010 +#define QPHY_V6_PCS_UFS_PCS_CTRL1 0x020 #define QPHY_V6_PCS_UFS_PLL_CNTL 0x02c #define QPHY_V6_PCS_UFS_TX_LARGE_AMP_DRV_LVL 0x030 #define QPHY_V6_PCS_UFS_TX_SMALL_AMP_DRV_LVL 0x038 diff --git a/drivers/phy/qualcomm/phy-qcom-qmp-qserdes-txrx-ufs-v6.h b/drivers/phy/qualcomm/phy-qcom-qmp-qserdes-txrx-ufs-v6.h index 15bcb4ba9139..ae220fd04d10 100644 --- a/drivers/phy/qualcomm/phy-qcom-qmp-qserdes-txrx-ufs-v6.h +++ b/drivers/phy/qualcomm/phy-qcom-qmp-qserdes-txrx-ufs-v6.h @@ -10,10 +10,17 @@ #define QSERDES_UFS_V6_TX_RES_CODE_LANE_RX 0x2c #define QSERDES_UFS_V6_TX_RES_CODE_LANE_OFFSET_TX 0x30 #define QSERDES_UFS_V6_TX_RES_CODE_LANE_OFFSET_RX 0x34 +#define QSERDES_UFS_V6_TX_LANE_MODE_1 0x7c #define QSERDES_UFS_V6_RX_UCDR_FASTLOCK_FO_GAIN_RATE2 0x08 #define QSERDES_UFS_V6_RX_UCDR_FASTLOCK_FO_GAIN_RATE4 0x10 +#define QSERDES_UFS_V6_RX_UCDR_SO_SATURATION 0x28 +#define QSERDES_UFS_V6_RX_UCDR_PI_CTRL1 0x58 +#define QSERDES_UFS_V6_RX_RX_TERM_BW_CTRL0 0xc4 +#define QSERDES_UFS_V6_RX_UCDR_FO_GAIN_RATE2 0xd4 +#define QSERDES_UFS_V6_RX_UCDR_FO_GAIN_RATE4 0xdc #define QSERDES_UFS_V6_RX_VGA_CAL_MAN_VAL 0x178 +#define QSERDES_UFS_V6_RX_INTERFACE_MODE 0x1e0 #define QSERDES_UFS_V6_RX_MODE_RATE_0_1_B0 0x208 #define QSERDES_UFS_V6_RX_MODE_RATE_0_1_B1 0x20c #define QSERDES_UFS_V6_RX_MODE_RATE_0_1_B3 0x214 diff --git a/drivers/phy/qualcomm/phy-qcom-qmp-ufs.c b/drivers/phy/qualcomm/phy-qcom-qmp-ufs.c index 514fa14df634..5f79d188b435 100644 --- a/drivers/phy/qualcomm/phy-qcom-qmp-ufs.c +++ b/drivers/phy/qualcomm/phy-qcom-qmp-ufs.c @@ -803,6 +803,67 @@ static const struct qmp_phy_init_tbl sm8550_ufsphy_pcs[] = { QMP_PHY_INIT_CFG(QPHY_V6_PCS_UFS_MULTI_LANE_CTRL1, 0x02), }; +static const struct qmp_phy_init_tbl sm8650_ufsphy_serdes[] = { + QMP_PHY_INIT_CFG(QSERDES_V6_COM_SYSCLK_EN_SEL, 0xd9), + QMP_PHY_INIT_CFG(QSERDES_V6_COM_CMN_CONFIG_1, 0x16), + QMP_PHY_INIT_CFG(QSERDES_V6_COM_HSCLK_SEL_1, 0x11), + QMP_PHY_INIT_CFG(QSERDES_V6_COM_HSCLK_HS_SWITCH_SEL_1, 0x00), + QMP_PHY_INIT_CFG(QSERDES_V6_COM_LOCK_CMP_EN, 0x01), + QMP_PHY_INIT_CFG(QSERDES_V6_COM_PLL_IVCO, 0x0f), + QMP_PHY_INIT_CFG(QSERDES_V6_COM_VCO_TUNE_MAP, 0x44), + QMP_PHY_INIT_CFG(QSERDES_V6_COM_VCO_TUNE_INITVAL2, 0x00), + QMP_PHY_INIT_CFG(QSERDES_V6_COM_DEC_START_MODE0, 0x41), + QMP_PHY_INIT_CFG(QSERDES_V6_COM_CP_CTRL_MODE0, 0x0a), + QMP_PHY_INIT_CFG(QSERDES_V6_COM_PLL_RCTRL_MODE0, 0x18), + QMP_PHY_INIT_CFG(QSERDES_V6_COM_PLL_CCTRL_MODE0, 0x14), + QMP_PHY_INIT_CFG(QSERDES_V6_COM_LOCK_CMP1_MODE0, 0x7f), + QMP_PHY_INIT_CFG(QSERDES_V6_COM_LOCK_CMP2_MODE0, 0x06), + QMP_PHY_INIT_CFG(QSERDES_V6_COM_DEC_START_MODE1, 0x4c), + QMP_PHY_INIT_CFG(QSERDES_V6_COM_CP_CTRL_MODE1, 0x0a), + QMP_PHY_INIT_CFG(QSERDES_V6_COM_PLL_RCTRL_MODE1, 0x18), + QMP_PHY_INIT_CFG(QSERDES_V6_COM_PLL_CCTRL_MODE1, 0x14), + QMP_PHY_INIT_CFG(QSERDES_V6_COM_LOCK_CMP1_MODE1, 0x99), + QMP_PHY_INIT_CFG(QSERDES_V6_COM_LOCK_CMP2_MODE1, 0x07), +}; + +static const struct qmp_phy_init_tbl sm8650_ufsphy_tx[] = { + QMP_PHY_INIT_CFG(QSERDES_UFS_V6_TX_LANE_MODE_1, 0x05), + QMP_PHY_INIT_CFG(QSERDES_UFS_V6_TX_RES_CODE_LANE_OFFSET_TX, 0x07), +}; + +static const struct qmp_phy_init_tbl sm8650_ufsphy_rx[] = { + QMP_PHY_INIT_CFG(QSERDES_UFS_V6_RX_UCDR_FO_GAIN_RATE2, 0x0c), + QMP_PHY_INIT_CFG(QSERDES_UFS_V6_RX_UCDR_FO_GAIN_RATE4, 0x0f), + QMP_PHY_INIT_CFG(QSERDES_UFS_V6_RX_VGA_CAL_MAN_VAL, 0x0e), + QMP_PHY_INIT_CFG(QSERDES_UFS_V6_RX_MODE_RATE_0_1_B0, 0xc2), + QMP_PHY_INIT_CFG(QSERDES_UFS_V6_RX_MODE_RATE_0_1_B1, 0xc2), + QMP_PHY_INIT_CFG(QSERDES_UFS_V6_RX_MODE_RATE_0_1_B3, 0x1a), + QMP_PHY_INIT_CFG(QSERDES_UFS_V6_RX_MODE_RATE_0_1_B6, 0x60), + QMP_PHY_INIT_CFG(QSERDES_UFS_V6_RX_MODE_RATE2_B3, 0x9e), + QMP_PHY_INIT_CFG(QSERDES_UFS_V6_RX_MODE_RATE2_B6, 0x60), + QMP_PHY_INIT_CFG(QSERDES_UFS_V6_RX_MODE_RATE3_B3, 0x9e), + QMP_PHY_INIT_CFG(QSERDES_UFS_V6_RX_MODE_RATE3_B4, 0x0e), + QMP_PHY_INIT_CFG(QSERDES_UFS_V6_RX_MODE_RATE3_B5, 0x36), + QMP_PHY_INIT_CFG(QSERDES_UFS_V6_RX_MODE_RATE3_B8, 0x02), + QMP_PHY_INIT_CFG(QSERDES_UFS_V6_RX_MODE_RATE4_B3, 0xb9), + QMP_PHY_INIT_CFG(QSERDES_UFS_V6_RX_MODE_RATE4_B6, 0xff), + QMP_PHY_INIT_CFG(QSERDES_UFS_V6_RX_UCDR_SO_SATURATION, 0x1f), + QMP_PHY_INIT_CFG(QSERDES_UFS_V6_RX_UCDR_PI_CTRL1, 0x94), + QMP_PHY_INIT_CFG(QSERDES_UFS_V6_RX_RX_TERM_BW_CTRL0, 0xfa), +}; + +static const struct qmp_phy_init_tbl sm8650_ufsphy_pcs[] = { + QMP_PHY_INIT_CFG(QPHY_V6_PCS_UFS_MULTI_LANE_CTRL1, 0x00), + QMP_PHY_INIT_CFG(QPHY_V6_PCS_UFS_TX_MID_TERM_CTRL1, 0x43), + QMP_PHY_INIT_CFG(QPHY_V6_PCS_UFS_PCS_CTRL1, 0xc1), + QMP_PHY_INIT_CFG(QPHY_V6_PCS_UFS_PLL_CNTL, 0x33), + QMP_PHY_INIT_CFG(QPHY_V6_PCS_UFS_TX_HSGEAR_CAPABILITY, 0x04), + QMP_PHY_INIT_CFG(QPHY_V6_PCS_UFS_RX_HSGEAR_CAPABILITY, 0x04), + QMP_PHY_INIT_CFG(QPHY_V6_PCS_UFS_TX_LARGE_AMP_DRV_LVL, 0x0f), + QMP_PHY_INIT_CFG(QPHY_V6_PCS_UFS_RX_SIGDET_CTRL2, 0x69), + QMP_PHY_INIT_CFG(QPHY_V6_PCS_UFS_MULTI_LANE_CTRL1, 0x02), +}; + struct qmp_ufs_offsets { u16 serdes; u16 pcs; @@ -1303,6 +1364,28 @@ static const struct qmp_phy_cfg sm8550_ufsphy_cfg = { .regs = ufsphy_v6_regs_layout, }; +static const struct qmp_phy_cfg sm8650_ufsphy_cfg = { + .lanes = 2, + + .offsets = &qmp_ufs_offsets_v6, + + .tbls = { + .serdes = sm8650_ufsphy_serdes, + .serdes_num = ARRAY_SIZE(sm8650_ufsphy_serdes), + .tx = sm8650_ufsphy_tx, + .tx_num = ARRAY_SIZE(sm8650_ufsphy_tx), + .rx = sm8650_ufsphy_rx, + .rx_num = ARRAY_SIZE(sm8650_ufsphy_rx), + .pcs = sm8650_ufsphy_pcs, + .pcs_num = ARRAY_SIZE(sm8650_ufsphy_pcs), + }, + .clk_list = sdm845_ufs_phy_clk_l, + .num_clks = ARRAY_SIZE(sdm845_ufs_phy_clk_l), + .vreg_list = qmp_phy_vreg_l, + .num_vregs = ARRAY_SIZE(qmp_phy_vreg_l), + .regs = ufsphy_v6_regs_layout, +}; + static void qmp_ufs_configure_lane(void __iomem *base, const struct qmp_phy_init_tbl tbl[], int num, @@ -1826,6 +1909,9 @@ static const struct of_device_id qmp_ufs_of_match_table[] = { }, { .compatible = "qcom,sm8550-qmp-ufs-phy", .data = &sm8550_ufsphy_cfg, + }, { + .compatible = "qcom,sm8650-qmp-ufs-phy", + .data = &sm8650_ufsphy_cfg, }, { }, }; From patchwork Wed Oct 25 07:34:28 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Neil Armstrong X-Patchwork-Id: 738444 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id BD9A6C25B47 for ; Wed, 25 Oct 2023 07:44:33 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232665AbjJYHod (ORCPT ); Wed, 25 Oct 2023 03:44:33 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48648 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1343769AbjJYHoV (ORCPT ); Wed, 25 Oct 2023 03:44:21 -0400 Received: from mail-wr1-x434.google.com (mail-wr1-x434.google.com [IPv6:2a00:1450:4864:20::434]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7D2F42106 for ; Wed, 25 Oct 2023 00:34:37 -0700 (PDT) Received: by mail-wr1-x434.google.com with SMTP id ffacd0b85a97d-32da9ef390fso3550503f8f.2 for ; Wed, 25 Oct 2023 00:34:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1698219275; x=1698824075; 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=toDAK10JFSwHPkulesZe8HTy28t6EZTKIHYym2YrLGE=; b=vDDhoi+ijpsKz0qvXxt9h/irHHpkllkfGARuJUKZm4Nscu/RbSmCyWnzKRfT14wm0i q3dPoCi/HOG8pTMKm3ljTJmNK2rnmyUw+indMoE4AeR9EfiMxn3fS0eVuJtS/CjKlH2a sNxbWN3xKHT7Q2SBxYcET1iFxR5Iq+BrOz9gY1j41DLEgNaGQ2wEzcvHta7nK0gBpej0 tkQdIt/c1F4/MS9SwOgXYUfc9dwVIl1R2781dA7JedE6CSMfUPVjfsq9+Zqjw2X6Fufc IziItyUVavN9I/KvAJks1hwOSZyFA/agjohsxV1p/a4XJFAiYTC6lsFVUQXrE0fhrxIN MLYg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1698219275; x=1698824075; 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=toDAK10JFSwHPkulesZe8HTy28t6EZTKIHYym2YrLGE=; b=SckWRW2lYrhw/lxp4JrZhO6Z6sT/V1LLvGHpaqmIHouup8tyeVHTmiRqJXJzDWHCpd m5ftpPRsmca/lSHAJ/nIiitRMzbL60NiOU2F0dxILqB6VphJEMseor1OSVNDYkJVGiKp /ldZsUgbPIvisrHoeFtACKiZxotUcG7aB5zFTQtrRMGajumycSWPcGKvjdI5zOHhotJY xssshiWZoWL9sEkXUWRaJ0XjbyivttwAvkra/2QxZY8HaBFLK+tjq/hurMn0RB6XpJex gTO+jThX42iXPqZS9rLqpD4n+xKj+KgnuJSZBntvkr9ERrmVj6GGFQh5tCQxcPnE+Ujp oXxQ== X-Gm-Message-State: AOJu0YwKCt4AI4OhrvSDmTCmZx5D7orP2t6kv8FAKBMGzGPspRQvrm01 pZv3F0nRKTQ8ATt3KNsYAQxXsA== X-Google-Smtp-Source: AGHT+IG4JJPR0NVKvViSjXPwupCEOZkaWWtKLYCtu/+s59YBq76D1GEVXviCNNAR8F9dlm6E4JcvzA== X-Received: by 2002:adf:e40e:0:b0:32d:a310:cc2a with SMTP id g14-20020adfe40e000000b0032da310cc2amr9688667wrm.23.1698219275657; Wed, 25 Oct 2023 00:34:35 -0700 (PDT) Received: from arrakeen.starnux.net ([2a01:e0a:982:cbb0:8261:5fff:fe11:bdda]) by smtp.gmail.com with ESMTPSA id y7-20020a5d4ac7000000b0032dde679398sm11431392wrs.8.2023.10.25.00.34.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 25 Oct 2023 00:34:35 -0700 (PDT) From: Neil Armstrong Date: Wed, 25 Oct 2023 09:34:28 +0200 Subject: [PATCH 6/7] phy: qcom: qmp-pcie: add QMP PCIe PHY tables for SM8650 MIME-Version: 1.0 Message-Id: <20231025-topic-sm8650-upstream-phy-v1-6-6137101520c4@linaro.org> References: <20231025-topic-sm8650-upstream-phy-v1-0-6137101520c4@linaro.org> In-Reply-To: <20231025-topic-sm8650-upstream-phy-v1-0-6137101520c4@linaro.org> To: Andy Gross , Bjorn Andersson , Konrad Dybcio , Vinod Koul , Kishon Vijay Abraham I , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Abel Vesa Cc: linux-arm-msm@vger.kernel.org, linux-phy@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Neil Armstrong X-Mailer: b4 0.12.3 X-Developer-Signature: v=1; a=openpgp-sha256; l=4346; i=neil.armstrong@linaro.org; h=from:subject:message-id; bh=jEiylMQ86A3JRCyG8A6COHqo4G+yx8E7uU5kScEEk/w=; b=owEBbQKS/ZANAwAKAXfc29rIyEnRAcsmYgBlOMUDvUJPjVZf06ZspRkDmXm4LKb1auDEcX2i2uem Y+NGsdaJAjMEAAEKAB0WIQQ9U8YmyFYF/h30LIt33NvayMhJ0QUCZTjFAwAKCRB33NvayMhJ0bE+D/ 9wwT2fREfhjQd7Wc2H+Np1y7dzjR9he9ZM5IkCUzs3Aly5U8fzLZgUs3bebx+g7cvJ1iKDXSPqMezA ABFe1hp3K6u5ZCxJNgRf/Dxkua6n8rbVwp53Eh3gqBSGw/63kuPdoIJTTJPSCoHOf2Eqm2v24KPQfI CWhzjQQVTCQnw+CPiniNTfou+AZKnjj7fwyD9MrVqelJMAQWoUoA8JcfuxHf4yUhhZFIDC+CVhsToe +tmlG4e0KBH2Yaz/VaSWNq1DXxNTeA2cXs67SbD5/CoaMcdQaQ8WCQIR7R/q4QMCDLmvJQLLp3efr2 E8m04OB5wzM+8cpwbeBK9eBbzusczxPxnEuG7OWE1UwLJYDfasmHbNfjVb8tFcmttt2G0WOB4EISQx 5tXoc9Zw4YVot8gUyCYiX0QH2UJ4OpaXj6fjCFYnGOacgnIntUfMMBAfr5sxoD4leHP4sQm3iFc5pT XAPFCagrO72PrKVC7c8mSeeQ6YPQcebYK36euulYSCD7aVhYeKbfKMVCld6g/DhpvSnNpo3/gmSKLw nA8kHc8qCd9lUcHPuIr2MQCnwOLU/f2I6Vc2/dUV5Z9h6yLjLC/IrIoLDopiNnfjqEQfk3Axbkz4re DQ9YIp20qXqr0FWUqMlICOCvEleQauIS32hYZ/50qTgNQyx4ocoVhZgnCklw== X-Developer-Key: i=neil.armstrong@linaro.org; a=openpgp; fpr=89EC3D058446217450F22848169AB7B1A4CFF8AE Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org Add QMP PCIe PHY support for the SM8650 platform. Signed-off-by: Neil Armstrong --- drivers/phy/qualcomm/phy-qcom-qmp-pcie.c | 65 ++++++++++++++++++++++++++++++++ 1 file changed, 65 insertions(+) diff --git a/drivers/phy/qualcomm/phy-qcom-qmp-pcie.c b/drivers/phy/qualcomm/phy-qcom-qmp-pcie.c index b64598ac59f4..2af7115ef968 100644 --- a/drivers/phy/qualcomm/phy-qcom-qmp-pcie.c +++ b/drivers/phy/qualcomm/phy-qcom-qmp-pcie.c @@ -1909,6 +1909,35 @@ static const struct qmp_phy_init_tbl sm8550_qmp_gen4x2_pcie_pcs_misc_tbl[] = { QMP_PHY_INIT_CFG(QPHY_PCIE_V6_20_PCS_G4_FOM_EQ_CONFIG5, 0xf2), }; +static const struct qmp_phy_init_tbl sm8650_qmp_gen4x2_pcie_rx_tbl[] = { + QMP_PHY_INIT_CFG(QSERDES_V6_20_RX_UCDR_FO_GAIN_RATE_2, 0x0a), + QMP_PHY_INIT_CFG(QSERDES_V6_20_RX_UCDR_FO_GAIN_RATE_3, 0x0a), + QMP_PHY_INIT_CFG(QSERDES_V6_20_RX_UCDR_PI_CONTROLS, 0x16), + QMP_PHY_INIT_CFG(QSERDES_V6_20_RX_UCDR_SO_ACC_DEFAULT_VAL_RATE3, 0x00), + QMP_PHY_INIT_CFG(QSERDES_V6_20_RX_IVCM_CAL_CTRL2, 0x82), + QMP_PHY_INIT_CFG(QSERDES_V6_20_RX_DFE_3, 0x05), + QMP_PHY_INIT_CFG(QSERDES_V6_20_RX_VGA_CAL_MAN_VAL, 0x0a), + QMP_PHY_INIT_CFG(QSERDES_V6_20_RX_GM_CAL, 0x0d), + QMP_PHY_INIT_CFG(QSERDES_V6_20_RX_EQU_ADAPTOR_CNTRL4, 0x0b), + QMP_PHY_INIT_CFG(QSERDES_V6_20_RX_SIGDET_ENABLES, 0x1c), + QMP_PHY_INIT_CFG(QSERDES_V6_20_RX_PHPRE_CTRL, 0x20), + QMP_PHY_INIT_CFG(QSERDES_V6_20_RX_DFE_CTLE_POST_CAL_OFFSET, 0x38), + QMP_PHY_INIT_CFG(QSERDES_V6_20_RX_MODE_RATE2_B0, 0xd3), + QMP_PHY_INIT_CFG(QSERDES_V6_20_RX_MODE_RATE2_B1, 0xd3), + QMP_PHY_INIT_CFG(QSERDES_V6_20_RX_MODE_RATE2_B2, 0x00), + QMP_PHY_INIT_CFG(QSERDES_V6_20_RX_MODE_RATE2_B3, 0x9a), + QMP_PHY_INIT_CFG(QSERDES_V6_20_RX_MODE_RATE2_B4, 0x06), + QMP_PHY_INIT_CFG(QSERDES_V6_20_RX_MODE_RATE2_B5, 0xb6), + QMP_PHY_INIT_CFG(QSERDES_V6_20_RX_MODE_RATE2_B6, 0xee), + QMP_PHY_INIT_CFG(QSERDES_V6_20_RX_MODE_RATE3_B0, 0x23), + QMP_PHY_INIT_CFG(QSERDES_V6_20_RX_MODE_RATE3_B1, 0x9b), + QMP_PHY_INIT_CFG(QSERDES_V6_20_RX_MODE_RATE3_B2, 0x60), + QMP_PHY_INIT_CFG(QSERDES_V6_20_RX_MODE_RATE3_B3, 0xdf), + QMP_PHY_INIT_CFG(QSERDES_V6_20_RX_MODE_RATE3_B4, 0x43), + QMP_PHY_INIT_CFG(QSERDES_V6_20_RX_MODE_RATE3_B5, 0x76), + QMP_PHY_INIT_CFG(QSERDES_V6_20_RX_MODE_RATE3_B6, 0xff), +}; + static const struct qmp_phy_init_tbl sa8775p_qmp_gen4x2_pcie_serdes_alt_tbl[] = { QMP_PHY_INIT_CFG(QSERDES_V5_COM_BIAS_EN_CLKBUFLR_EN, 0x14), QMP_PHY_INIT_CFG(QSERDES_V5_COM_PLL_IVCO, 0x0f), @@ -3047,6 +3076,36 @@ static const struct qmp_phy_cfg sm8550_qmp_gen4x2_pciephy_cfg = { .has_nocsr_reset = true, }; +static const struct qmp_phy_cfg sm8650_qmp_gen4x2_pciephy_cfg = { + .lanes = 2, + + .offsets = &qmp_pcie_offsets_v6_20, + + .tbls = { + .serdes = sm8550_qmp_gen4x2_pcie_serdes_tbl, + .serdes_num = ARRAY_SIZE(sm8550_qmp_gen4x2_pcie_serdes_tbl), + .tx = sm8550_qmp_gen4x2_pcie_tx_tbl, + .tx_num = ARRAY_SIZE(sm8550_qmp_gen4x2_pcie_tx_tbl), + .rx = sm8650_qmp_gen4x2_pcie_rx_tbl, + .rx_num = ARRAY_SIZE(sm8650_qmp_gen4x2_pcie_rx_tbl), + .pcs = sm8550_qmp_gen4x2_pcie_pcs_tbl, + .pcs_num = ARRAY_SIZE(sm8550_qmp_gen4x2_pcie_pcs_tbl), + .pcs_misc = sm8550_qmp_gen4x2_pcie_pcs_misc_tbl, + .pcs_misc_num = ARRAY_SIZE(sm8550_qmp_gen4x2_pcie_pcs_misc_tbl), + .ln_shrd = sm8550_qmp_gen4x2_pcie_ln_shrd_tbl, + .ln_shrd_num = ARRAY_SIZE(sm8550_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_v5_regs_layout, + + .pwrdn_ctrl = SW_PWRDN | REFCLK_DRV_DSBL, + .phy_status = PHYSTATUS_4_20, + .has_nocsr_reset = true, +}; + static const struct qmp_phy_cfg sa8775p_qmp_gen4x2_pciephy_cfg = { .lanes = 2, .offsets = &qmp_pcie_offsets_v5_20, @@ -3820,6 +3879,12 @@ static const struct of_device_id qmp_pcie_of_match_table[] = { }, { .compatible = "qcom,sm8550-qmp-gen4x2-pcie-phy", .data = &sm8550_qmp_gen4x2_pciephy_cfg, + }, { + .compatible = "qcom,sm8650-qmp-gen3x2-pcie-phy", + .data = &sm8550_qmp_gen3x2_pciephy_cfg, + }, { + .compatible = "qcom,sm8650-qmp-gen4x2-pcie-phy", + .data = &sm8650_qmp_gen4x2_pciephy_cfg, }, { }, }; From patchwork Wed Oct 25 07:34:29 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Neil Armstrong X-Patchwork-Id: 738443 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 428A8C0032E for ; Wed, 25 Oct 2023 07:45:05 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233705AbjJYHpF (ORCPT ); Wed, 25 Oct 2023 03:45:05 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48418 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1343875AbjJYHoY (ORCPT ); Wed, 25 Oct 2023 03:44:24 -0400 Received: from mail-lf1-x12b.google.com (mail-lf1-x12b.google.com [IPv6:2a00:1450:4864:20::12b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8125230F3 for ; Wed, 25 Oct 2023 00:34:39 -0700 (PDT) Received: by mail-lf1-x12b.google.com with SMTP id 2adb3069b0e04-508126afc88so1300564e87.1 for ; Wed, 25 Oct 2023 00:34:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1698219276; x=1698824076; 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=AtjaGI0OyZ0EdBdBaBOQ95CjdQNQsAj7+ZgWxWLoVvg=; b=aZV3UrC2rVRCUh0Pt9asJRDBZYMnzNs9pzDbH9/miQ8tjLJPlC5k7Rak2NJAcaLGbX gQCT6uoRuWwEoPQ6A6kCAYH3A9T+VqamLYymYBaaxAlv0iagKfk3nfWmVD5mBcqAblMt IfwBWNkzZaeM1yYCZbBxD/GSHtx88hKgUFb6UKwJlyry+IkuZpdHztXEDzYWYrHEGQ8l SaDD5DJvNVXDy2bYAkxBHK1fq+oKxj/6I2HAqdikVh3PUs0JPxc9DGBeNsFNjFVCJr7B LmBcklnDCTocki9IfW+mm41lqbRyxMoP2tKoGkJloiBcBqXyrnmhAHRzq/WzVvDEKbyp yTWA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1698219276; x=1698824076; 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=AtjaGI0OyZ0EdBdBaBOQ95CjdQNQsAj7+ZgWxWLoVvg=; b=ODsJ6odGVPTU20uS94UCJsEVyfKZktoxCLe4U6QZL2+QVzLak8Yx3LYanpEXZZzGhc y23sJ/hvfezqvRsBxx7Z0XyJfx0OykB0n6khBzi7ycOQFLV+dOzhjyot+UiD/BwpheXE E3LdrU7EP2J30/cx1+OGlHWS8eB8Ww/wK7qnGrOkgATrEiXK6bk3shIYEIDQrFeWGjwc uWdQHsmNHREt4UlY6b4yOHGZrTcxzCUXNxduWpi6VGETTzbFwauijTYDZ5grPocIl9iF 7nMYsuULeXWH5LSHywATMKFcC1IqPigF9kwHyrXapX4wwghOynRC94GV7tk4OxouI6WC gdZw== X-Gm-Message-State: AOJu0Yx61lFYbFxkW027dzMDfy4UYgqXOIITe/nZTagYbyqrQo0uqn/2 Mj5ayx5M01OWJIWtkOceJ3SsVA== X-Google-Smtp-Source: AGHT+IFQsTBGCIGYdIut4TnKmQ7+1s7MRU+V9MiBwh5l0roqJyWvvI7W3PZkHF29aPNrYRNBhuIeig== X-Received: by 2002:a05:6512:230b:b0:504:4165:54ab with SMTP id o11-20020a056512230b00b00504416554abmr8851305lfu.56.1698219276654; Wed, 25 Oct 2023 00:34:36 -0700 (PDT) Received: from arrakeen.starnux.net ([2a01:e0a:982:cbb0:8261:5fff:fe11:bdda]) by smtp.gmail.com with ESMTPSA id y7-20020a5d4ac7000000b0032dde679398sm11431392wrs.8.2023.10.25.00.34.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 25 Oct 2023 00:34:36 -0700 (PDT) From: Neil Armstrong Date: Wed, 25 Oct 2023 09:34:29 +0200 Subject: [PATCH 7/7] phy: qcom: qmp-combo: add QMP USB3/DP PHY tables for SM8650 MIME-Version: 1.0 Message-Id: <20231025-topic-sm8650-upstream-phy-v1-7-6137101520c4@linaro.org> References: <20231025-topic-sm8650-upstream-phy-v1-0-6137101520c4@linaro.org> In-Reply-To: <20231025-topic-sm8650-upstream-phy-v1-0-6137101520c4@linaro.org> To: Andy Gross , Bjorn Andersson , Konrad Dybcio , Vinod Koul , Kishon Vijay Abraham I , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Abel Vesa Cc: linux-arm-msm@vger.kernel.org, linux-phy@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Neil Armstrong X-Mailer: b4 0.12.3 X-Developer-Signature: v=1; a=openpgp-sha256; l=807; i=neil.armstrong@linaro.org; h=from:subject:message-id; bh=lzyoKSoE9NysNHXkw5ojcFxOZnDU8btJV0S4+yaPrc4=; b=owEBbQKS/ZANAwAKAXfc29rIyEnRAcsmYgBlOMUE6/wWF47zAPcf5y0QfZFn3laEFazck+MdQEkn D8z70yqJAjMEAAEKAB0WIQQ9U8YmyFYF/h30LIt33NvayMhJ0QUCZTjFBAAKCRB33NvayMhJ0TyBD/ 4x3g+f80Xi5iM5qDvn+GND3eMDlSKsxpYY4HC4yXI+oLNDgDl+kFY+J5uNEUTA1l3DxUkXMD5R1S8C KnemxaDns3r7sbVLYjf7gb6ziAVY0qGwa1Va5Nxb36gCH6E2lfJeYmCYQFfdrg2gg57T5N86lWBwuJ mCtTj/4i5ArczZ/W8vPJXl/mp4eF0WA5vVcB3LjmkIbYXEePSDP42mYU2C6b1lB53ZQbbjl6UHtXuA tiOJ3lX97M7pbhHIMvEGV1w1Ag/6xm02gA0u0O0qbPrvg+Di9VwcA48pshHEaLWgv2QcMAVui03BeF jvOwcZqouKlHzik+czRaI9w0R1/dAp79jJfwMtwsAVJESsp5J3wGYTD4cGqoa5q4d/ejgDNtsULITF PMeYLtQCFE7wYnxRz9Z+y///qh8IaIXIQECNtT2cB2Q0NKNgvpia9MwJgwOChs/HvJLvPZ74Bn2ELX RYJRDSYe4N06MWqYJBpSkmvx1rWrsMglXcT83fiz8WTIeiMJdqSZ8mnLreNfwMig+9tkK8rA2QeVK0 x67dcgzgGg0ltdvlAK0oLpKdCCMs5iUj1spGzyyF7UNxcQrlgHh1Obw6A93aBldFyoDmJ1DRGnC3Bv yPwdWtfDTRoR4r4IdGx+MUdaDsCsn8p2oOeUr5z+IhcBP39LuqTO9CKB1USQ== X-Developer-Key: i=neil.armstrong@linaro.org; a=openpgp; fpr=89EC3D058446217450F22848169AB7B1A4CFF8AE Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org Add QMP USB3/DP Combo PHY support for the SM8650 platform. Signed-off-by: Neil Armstrong --- drivers/phy/qualcomm/phy-qcom-qmp-combo.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/drivers/phy/qualcomm/phy-qcom-qmp-combo.c b/drivers/phy/qualcomm/phy-qcom-qmp-combo.c index 9c87845c78ec..0417856b8e7b 100644 --- a/drivers/phy/qualcomm/phy-qcom-qmp-combo.c +++ b/drivers/phy/qualcomm/phy-qcom-qmp-combo.c @@ -3558,6 +3558,10 @@ static const struct of_device_id qmp_combo_of_match_table[] = { .compatible = "qcom,sm8550-qmp-usb3-dp-phy", .data = &sm8550_usb3dpphy_cfg, }, + { + .compatible = "qcom,sm8650-qmp-usb3-dp-phy", + .data = &sm8550_usb3dpphy_cfg, + }, { } }; MODULE_DEVICE_TABLE(of, qmp_combo_of_match_table);