From patchwork Mon Mar 6 17:08:11 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lux Aliaga X-Patchwork-Id: 659480 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 DEDF5C61DA4 for ; Mon, 6 Mar 2023 17:12:15 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230468AbjCFRMO (ORCPT ); Mon, 6 Mar 2023 12:12:14 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58250 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230285AbjCFRMF (ORCPT ); Mon, 6 Mar 2023 12:12:05 -0500 Received: from amity.mint.lgbt (vmi888983.contaboserver.net [149.102.157.145]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E814423640 for ; Mon, 6 Mar 2023 09:11:34 -0800 (PST) Received: from amity.mint.lgbt (mx.mint.lgbt [127.0.0.1]) by amity.mint.lgbt (Postfix) with ESMTP id 4PVlQv2xvzz1S5Jg for ; Mon, 6 Mar 2023 12:08:39 -0500 (EST) Authentication-Results: amity.mint.lgbt (amavisd-new); dkim=pass (2048-bit key) reason="pass (just generated, assumed good)" header.d=mint.lgbt DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=mint.lgbt; h= content-transfer-encoding:mime-version:references:in-reply-to :x-mailer:message-id:date:subject:to:from; s=dkim; t=1678122518; x=1678986519; bh=FkAuJdcUu5FTTMaBTqO+u5YZNyEm3L8Dndam8ecgfiA=; b= fDKn4J9T+FpPtD+QYpHDNkOJFRbtHXjUyQljU7kOtsMRn60IdtSitS7jt3pVWceE TZ5bHl+z8vjPxh1S71Mt/YlY3PjTnAl93fQH4UmClLgCvzf4dbh9AkMJVFQ8cx6p Of6fjvUWaeGdGnDRpFUWfFeOsMoQC96oXlas02kiTGpJUZ1iiJMzIBGCs0zPuxP2 SS5cZNYOtCRdklZb0RrPmW1H+7fTopx6BxSqAPDkTQfaaJk7VbtDJawjshWJ72tu 6RbNT/w6X3/ChP5jxI3Tftp9FnxdZdOC0yTW2Nf0J1lzTGFK8+vYDwkocyPUiMH9 GQBCx9PSowAj+fto2SI0uA== X-Virus-Scanned: amavisd-new at amity.mint.lgbt Received: from amity.mint.lgbt ([127.0.0.1]) by amity.mint.lgbt (amity.mint.lgbt [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id uPNj3ywki80N for ; Mon, 6 Mar 2023 12:08:38 -0500 (EST) Received: from dorothy.. (unknown [186.105.8.42]) by amity.mint.lgbt (Postfix) with ESMTPSA id 4PVlQk72msz1S52d; Mon, 6 Mar 2023 12:08:30 -0500 (EST) From: Lux Aliaga To: agross@kernel.org, andersson@kernel.org, konrad.dybcio@linaro.org, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, vkoul@kernel.org, kishon@kernel.org, alim.akhtar@samsung.com, avri.altman@wdc.com, bvanassche@acm.org, keescook@chromium.org, tony.luck@intel.com, gpiccoli@igalia.com Cc: ~postmarketos/upstreaming@lists.sr.ht, linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-phy@lists.infradead.org, linux-scsi@vger.kernel.org, linux-hardening@vger.kernel.org, phone-devel@vger.kernel.org, martin.botka@somainline.org, marijn.suijten@somainline.org, Lux Aliaga , Krzysztof Kozlowski Subject: [PATCH v7 1/6] dt-bindings: ufs: qcom: Add SM6125 compatible string Date: Mon, 6 Mar 2023 14:08:11 -0300 Message-Id: <20230306170817.3806-2-they@mint.lgbt> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230306170817.3806-1-they@mint.lgbt> References: <20230306170817.3806-1-they@mint.lgbt> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org Document the compatible for UFS found on the SM6125. Signed-off-by: Lux Aliaga Reviewed-by: Martin Botka Acked-by: Krzysztof Kozlowski --- Documentation/devicetree/bindings/ufs/qcom,ufs.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Documentation/devicetree/bindings/ufs/qcom,ufs.yaml b/Documentation/devicetree/bindings/ufs/qcom,ufs.yaml index b517d76215e3..42422f3471b3 100644 --- a/Documentation/devicetree/bindings/ufs/qcom,ufs.yaml +++ b/Documentation/devicetree/bindings/ufs/qcom,ufs.yaml @@ -29,6 +29,7 @@ properties: - qcom,sc8280xp-ufshc - qcom,sdm845-ufshc - qcom,sm6115-ufshc + - qcom,sm6125-ufshc - qcom,sm6350-ufshc - qcom,sm8150-ufshc - qcom,sm8250-ufshc @@ -185,6 +186,7 @@ allOf: contains: enum: - qcom,sm6115-ufshc + - qcom,sm6125-ufshc then: properties: clocks: From patchwork Mon Mar 6 16:52:41 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lux Aliaga X-Patchwork-Id: 659486 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 1934AC61DA4 for ; Mon, 6 Mar 2023 17:02:37 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230236AbjCFRCg (ORCPT ); Mon, 6 Mar 2023 12:02:36 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39668 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229933AbjCFRCO (ORCPT ); Mon, 6 Mar 2023 12:02:14 -0500 Received: from amity.mint.lgbt (vmi888983.contaboserver.net [149.102.157.145]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5BEA661887 for ; Mon, 6 Mar 2023 09:01:39 -0800 (PST) Received: from amity.mint.lgbt (mx.mint.lgbt [127.0.0.1]) by amity.mint.lgbt (Postfix) with ESMTP id 4PVl5T6d07z1S5K4 for ; Mon, 6 Mar 2023 11:53:33 -0500 (EST) Authentication-Results: amity.mint.lgbt (amavisd-new); dkim=pass (2048-bit key) reason="pass (just generated, assumed good)" header.d=mint.lgbt DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=mint.lgbt; h= content-transfer-encoding:mime-version:references:in-reply-to :x-mailer:message-id:date:subject:to:from; s=dkim; t=1678121613; x=1678985614; bh=aZvyOxr+cceertzklNMJveGEzeMKKnPjb24BJXnn514=; b= Osj7OUNfhq2tgPjKceu6gVP9NnY9ofaKz9b14wkaIqGfQtYejB7oKDWWmxVqb8Jd r6tpWaOLwuJwTMtuePu1DMgw3sTJbgmNkG+Xz4ekHNuBCrrwBq9oWFDtqYGThERg hH4HGOT8HQlKbUQX6R//8BBy53Xp290VaggU4xCChhLPm331YDOErLt4gQwcDCDi mQIw6VE0+ipTCBEVLrfy7JO/y7hN4xF1KKod+Fh56SpkWuShuRZHy5WAC4HdUvtI Aju76BaJj8hu8AGSxoMKYmROSh/alsgDdiLtfCExsKf+hFZXqRzW7UUq3UOIAtj/ 3mnswfI8wl49fhNEvZTC9Q== X-Virus-Scanned: amavisd-new at amity.mint.lgbt Received: from amity.mint.lgbt ([127.0.0.1]) by amity.mint.lgbt (amity.mint.lgbt [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id nmZCYzu5jPqY for ; Mon, 6 Mar 2023 11:53:33 -0500 (EST) Received: from dorothy.. (unknown [186.105.8.42]) by amity.mint.lgbt (Postfix) with ESMTPSA id 4PVl5D2jH2z1S5Jp; Mon, 6 Mar 2023 11:53:19 -0500 (EST) From: Lux Aliaga To: agross@kernel.org, andersson@kernel.org, konrad.dybcio@linaro.org, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, vkoul@kernel.org, kishon@kernel.org, alim.akhtar@samsung.com, avri.altman@wdc.com, bvanassche@acm.org, keescook@chromium.org, tony.luck@intel.com, gpiccoli@igalia.com Cc: ~postmarketos/upstreaming@lists.sr.ht, linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-phy@lists.infradead.org, linux-scsi@vger.kernel.org, linux-hardening@vger.kernel.org, phone-devel@vger.kernel.org, martin.botka@somainline.org, marijn.suijten@somainline.org, Lux Aliaga , Dhruva Gole , Krzysztof Kozlowski , Rob Herring Subject: [PATCH v7 2/6] dt-bindings: phy: Add QMP UFS PHY compatible for SM6125 Date: Mon, 6 Mar 2023 13:52:41 -0300 Message-Id: <20230306165246.14782-3-they@mint.lgbt> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230306165246.14782-1-they@mint.lgbt> References: <20230306165246.14782-1-they@mint.lgbt> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org Document the QMP UFS PHY compatible for SM6125. Signed-off-by: Lux Aliaga Reviewed-by: Martin Botka Acked-by: Dhruva Gole Acked-by: Krzysztof Kozlowski Acked-by: Rob Herring --- .../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 dde86a19f792..a7af57931f32 100644 --- a/Documentation/devicetree/bindings/phy/qcom,sc8280xp-qmp-ufs-phy.yaml +++ b/Documentation/devicetree/bindings/phy/qcom,sc8280xp-qmp-ufs-phy.yaml @@ -17,6 +17,7 @@ properties: compatible: enum: - qcom,sc8280xp-qmp-ufs-phy + - qcom,sm6125-qmp-ufs-phy reg: maxItems: 1 From patchwork Mon Mar 6 17:08:13 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lux Aliaga X-Patchwork-Id: 659465 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 86D8DC6FD1B for ; Mon, 6 Mar 2023 19:34:24 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229692AbjCFTeW (ORCPT ); Mon, 6 Mar 2023 14:34:22 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34614 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229798AbjCFTeV (ORCPT ); Mon, 6 Mar 2023 14:34:21 -0500 Received: from amity.mint.lgbt (vmi888983.contaboserver.net [149.102.157.145]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9BB2A27D45 for ; Mon, 6 Mar 2023 11:34:17 -0800 (PST) Received: from amity.mint.lgbt (mx.mint.lgbt [127.0.0.1]) by amity.mint.lgbt (Postfix) with ESMTP id 4PVlRF2Vwzz1S5Jj for ; Mon, 6 Mar 2023 12:08:57 -0500 (EST) Authentication-Results: amity.mint.lgbt (amavisd-new); dkim=pass (2048-bit key) reason="pass (just generated, assumed good)" header.d=mint.lgbt DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=mint.lgbt; h= content-transfer-encoding:mime-version:references:in-reply-to :x-mailer:message-id:date:subject:to:from; s=dkim; t=1678122536; x=1678986537; bh=XBMOf7rDZmk1/gq6Hnv29VSjIdHlkH5Ie/sn9RbtUDE=; b= WqUd8U1BT8RYfIBpzHuXSRbEmmRlkRzBbJrD0ZXpO1ZWQe9y+YVXwk8kgBwyX+3d e5VndP3HAoNa/1NYSLax+LPn4uOA/hZWj0Zgibkn/mk+LxT3TIU2OTgsYVg6Ynsa V/8u+eIKLRSmnDsTQixJenU6KXyJbHkhcPpaCRDTbGwYYQA5oLYizdT6ak9BbA53 ShfZM8whZPcQsOvsp31cxEkm6VdM7ikmBOsdwkIfEhsSJ6nFPP9xVnO04zeRioL0 A76x6NBmPjU0mS5lkGOGxb2UQuFnFqNn38lwJ9EcijugIda3Ww6yE9jOs9c40BTB yForNXmKYNiGieSd3LYK8w== X-Virus-Scanned: amavisd-new at amity.mint.lgbt Received: from amity.mint.lgbt ([127.0.0.1]) by amity.mint.lgbt (amity.mint.lgbt [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id 1QYwFRwvmiZG for ; Mon, 6 Mar 2023 12:08:56 -0500 (EST) Received: from dorothy.. (unknown [186.105.8.42]) by amity.mint.lgbt (Postfix) with ESMTPSA id 4PVlR46j1Tz1S5Jl; Mon, 6 Mar 2023 12:08:48 -0500 (EST) From: Lux Aliaga To: agross@kernel.org, andersson@kernel.org, konrad.dybcio@linaro.org, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, vkoul@kernel.org, kishon@kernel.org, alim.akhtar@samsung.com, avri.altman@wdc.com, bvanassche@acm.org, keescook@chromium.org, tony.luck@intel.com, gpiccoli@igalia.com Cc: ~postmarketos/upstreaming@lists.sr.ht, linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-phy@lists.infradead.org, linux-scsi@vger.kernel.org, linux-hardening@vger.kernel.org, phone-devel@vger.kernel.org, martin.botka@somainline.org, marijn.suijten@somainline.org, Lux Aliaga Subject: [PATCH v7 3/6] phy: qcom-qmp: Add SM6125 UFS PHY support Date: Mon, 6 Mar 2023 14:08:13 -0300 Message-Id: <20230306170817.3806-4-they@mint.lgbt> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230306170817.3806-1-they@mint.lgbt> References: <20230306170817.3806-1-they@mint.lgbt> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org The SM6125 UFS PHY is compatible with the one from SM6115. Add a compatible for it and modify the config from SM6115 to make them compatible with the SC8280XP binding Signed-off-by: Lux Aliaga Reviewed-by: Martin Botka --- drivers/phy/qualcomm/phy-qcom-qmp-ufs.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/drivers/phy/qualcomm/phy-qcom-qmp-ufs.c b/drivers/phy/qualcomm/phy-qcom-qmp-ufs.c index 318eea35b972..44c29fdfc551 100644 --- a/drivers/phy/qualcomm/phy-qcom-qmp-ufs.c +++ b/drivers/phy/qualcomm/phy-qcom-qmp-ufs.c @@ -620,6 +620,13 @@ static const char * const qmp_phy_vreg_l[] = { "vdda-phy", "vdda-pll", }; +static const struct qmp_ufs_offsets qmp_ufs_offsets_v3_660 = { + .serdes = 0, + .pcs = 0xc00, + .tx = 0x400, + .rx = 0x600, +}; + static const struct qmp_ufs_offsets qmp_ufs_offsets_v5 = { .serdes = 0, .pcs = 0xc00, @@ -693,6 +700,8 @@ static const struct qmp_phy_cfg sdm845_ufsphy_cfg = { static const struct qmp_phy_cfg sm6115_ufsphy_cfg = { .lanes = 1, + .offsets = &qmp_ufs_offsets_v3_660, + .serdes_tbl = sm6115_ufsphy_serdes_tbl, .serdes_tbl_num = ARRAY_SIZE(sm6115_ufsphy_serdes_tbl), .tx_tbl = sm6115_ufsphy_tx_tbl, @@ -1172,6 +1181,9 @@ static const struct of_device_id qmp_ufs_of_match_table[] = { }, { .compatible = "qcom,sm6115-qmp-ufs-phy", .data = &sm6115_ufsphy_cfg, + }, { + .compatible = "qcom,sm6125-qmp-ufs-phy", + .data = &sm6115_ufsphy_cfg, }, { .compatible = "qcom,sm6350-qmp-ufs-phy", .data = &sdm845_ufsphy_cfg, From patchwork Mon Mar 6 17:08:14 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lux Aliaga X-Patchwork-Id: 659479 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 5F9C1C6FD19 for ; Mon, 6 Mar 2023 17:21:00 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229549AbjCFRU6 (ORCPT ); Mon, 6 Mar 2023 12:20:58 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46376 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229914AbjCFRUz (ORCPT ); Mon, 6 Mar 2023 12:20:55 -0500 Received: from amity.mint.lgbt (vmi888983.contaboserver.net [149.102.157.145]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 67200468C for ; Mon, 6 Mar 2023 09:20:20 -0800 (PST) Received: from amity.mint.lgbt (mx.mint.lgbt [127.0.0.1]) by amity.mint.lgbt (Postfix) with ESMTP id 4PVlRQ0JBZz1S5Jd for ; Mon, 6 Mar 2023 12:09:06 -0500 (EST) Authentication-Results: amity.mint.lgbt (amavisd-new); dkim=pass (2048-bit key) reason="pass (just generated, assumed good)" header.d=mint.lgbt DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=mint.lgbt; h= content-transfer-encoding:mime-version:references:in-reply-to :x-mailer:message-id:date:subject:to:from; s=dkim; t=1678122545; x=1678986546; bh=7xRNWZDL/30mtu3WxKxjUXO6ZS/+UYamjJhFWwATyYA=; b= g1h92R/UwzCmhBf3MqyglqpKEzPwFBovCPsvlOWpX5xtfi+gm2bIbgWi3mhtI7JW OeKfAwRxCUBM1AKkAHo/IKsyyeEvu02z4t93IYoq2swbib19AJt3dTMwJSXpAVwJ V6ybGjeHku6A0Fvjmd3S0bTPKFxg8ZCdDMSVIR9Sd+9U8bxQNiO8s6s4vh29zSSk 1LZmWZ3110p2Zi3YLPWqk+JnOKcG+FKlSFA9tp14AD9jOkixVtkBdbUu3Nrv5CpG WEaGI+wBaH6SKNgWX1IEAa+75HZcBpkQ03Rj+O7dFfdviiOaabH4Wrhb/d9hHnvl bqnBfDFwLSQQQIwYAQCJtw== X-Virus-Scanned: amavisd-new at amity.mint.lgbt Received: from amity.mint.lgbt ([127.0.0.1]) by amity.mint.lgbt (amity.mint.lgbt [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id SFWvxH8LLRwl for ; Mon, 6 Mar 2023 12:09:05 -0500 (EST) Received: from dorothy.. (unknown [186.105.8.42]) by amity.mint.lgbt (Postfix) with ESMTPSA id 4PVlRF2xYQz1S5Jr; Mon, 6 Mar 2023 12:08:57 -0500 (EST) From: Lux Aliaga To: agross@kernel.org, andersson@kernel.org, konrad.dybcio@linaro.org, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, vkoul@kernel.org, kishon@kernel.org, alim.akhtar@samsung.com, avri.altman@wdc.com, bvanassche@acm.org, keescook@chromium.org, tony.luck@intel.com, gpiccoli@igalia.com Cc: ~postmarketos/upstreaming@lists.sr.ht, linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-phy@lists.infradead.org, linux-scsi@vger.kernel.org, linux-hardening@vger.kernel.org, phone-devel@vger.kernel.org, martin.botka@somainline.org, marijn.suijten@somainline.org, Lux Aliaga Subject: [PATCH v7 4/6] arm64: dts: qcom: sm6125: Add UFS nodes Date: Mon, 6 Mar 2023 14:08:14 -0300 Message-Id: <20230306170817.3806-5-they@mint.lgbt> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230306170817.3806-1-they@mint.lgbt> References: <20230306170817.3806-1-they@mint.lgbt> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org Adds a UFS host controller node and its corresponding PHY to the sm6125 platform. Signed-off-by: Lux Aliaga --- arch/arm64/boot/dts/qcom/sm6125.dtsi | 62 ++++++++++++++++++++++++++++ 1 file changed, 62 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sm6125.dtsi b/arch/arm64/boot/dts/qcom/sm6125.dtsi index df5453fcf2b9..7384d88f44cc 100644 --- a/arch/arm64/boot/dts/qcom/sm6125.dtsi +++ b/arch/arm64/boot/dts/qcom/sm6125.dtsi @@ -511,6 +511,68 @@ sdhc_2: mmc@4784000 { status = "disabled"; }; + ufs_mem_hc: ufs@4804000 { + compatible = "qcom,sm6125-ufshc", "qcom,ufshc", "jedec,ufs-2.0"; + reg = <0x04804000 0x3000>, <0x04810000 0x8000>; + reg-names = "std", "ice"; + interrupts = ; + + clocks = <&gcc GCC_UFS_PHY_AXI_CLK>, + <&gcc GCC_SYS_NOC_UFS_PHY_AXI_CLK>, + <&gcc GCC_UFS_PHY_AHB_CLK>, + <&gcc GCC_UFS_PHY_UNIPRO_CORE_CLK>, + <&rpmcc RPM_SMD_XO_CLK_SRC>, + <&gcc GCC_UFS_PHY_TX_SYMBOL_0_CLK>, + <&gcc GCC_UFS_PHY_RX_SYMBOL_0_CLK>, + <&gcc GCC_UFS_PHY_ICE_CORE_CLK>; + clock-names = "core_clk", + "bus_aggr_clk", + "iface_clk", + "core_clk_unipro", + "ref_clk", + "tx_lane0_sync_clk", + "rx_lane0_sync_clk", + "ice_core_clk"; + freq-table-hz = <50000000 240000000>, + <0 0>, + <0 0>, + <37500000 150000000>, + <0 0>, + <0 0>, + <0 0>, + <75000000 300000000>; + + resets = <&gcc GCC_UFS_PHY_BCR>; + reset-names = "rst"; + #reset-cells = <1>; + + phys = <&ufs_mem_phy>; + phy-names = "ufsphy"; + + lanes-per-direction = <1>; + + iommus = <&apps_smmu 0x200 0x0>; + + status = "disabled"; + }; + + ufs_mem_phy: phy@4807000 { + compatible = "qcom,sm6125-qmp-ufs-phy"; + reg = <0x04807000 0xdb8>; + + clocks = <&gcc GCC_UFS_MEM_CLKREF_CLK>, <&gcc GCC_UFS_PHY_PHY_AUX_CLK>; + clock-names = "ref", "ref_aux"; + + resets = <&ufs_mem_hc 0>; + reset-names = "ufsphy"; + + power-domains = <&gcc UFS_PHY_GDSC>; + + #phy-cells = <0>; + + status = "disabled"; + }; + gpi_dma0: dma-controller@4a00000 { compatible = "qcom,sm6125-gpi-dma", "qcom,sdm845-gpi-dma"; reg = <0x04a00000 0x60000>;