From patchwork Fri Mar 31 19:59:16 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bartosz Golaszewski X-Patchwork-Id: 77958 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp802736vqo; Fri, 31 Mar 2023 13:00:51 -0700 (PDT) X-Google-Smtp-Source: AKy350bAZeZlcpE8PrleiLe2LMeOGgyHjRtAJkRN+OoBnYRhMFnz9+WXw1J7thUUFmX0aZKeDKyk X-Received: by 2002:a17:902:e842:b0:199:3a4a:d702 with SMTP id t2-20020a170902e84200b001993a4ad702mr12047166plg.0.1680292850707; Fri, 31 Mar 2023 13:00:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680292850; cv=none; d=google.com; s=arc-20160816; b=VoczhkIJWu5hF67qkgWi3iEl+SPoM7NiGe54okubfyrrUoNc9jpX3F1tvuO2J5AhSO 5CMqUGB4Ljx1juM8i/1HiKj/sFeAtv87Huwfi3zOLtmgFl2diZPY1a2OjdBoGgwa2dOj 3+Ust/RmWZgaMf11gYi5RZ5n5ppoAixqV6leQeL1zg5qPPMg50UXv65CJ2//VnvHG30x SzWQ13IWO3nFVclMwGTFld1EJ1D2NBlB6ZtqRKEBCzOEnzF9QbYsu6uGgcDwHee+vGxR fCPaB0Olju7lXddXsjOkH+YXmem0QqZM+ciAb3jBACW0pnDJzOeJfzFhcFh3Kd2IKb9v ZrOg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=OZ4tY9ZYWjx+L/GieKh5Pi36vPyy7QPV1ldHuKzb5+s=; b=hTvv9YM0/d5gJ/O4EaS6OBbrqJjZPIZh9o0PqtPXNvYBlb5K3z6AttgniMFrCLhzHo dC6oudBCfxOQdTsy6U10RlYXcpfChEgVh3biwPmnJul2x7f8IjAo0eQIJvBYGQ5TJyKa 30LGWLKHrHYfuVjlNbarDwh3vLXoeZ0KhRte9V0CA9AYFbsVBG70wrAo3h/mz+7wMS17 O+eUa2vYXNmqlcAN9T76Xy3TW8xW1cdexfcmp4Wd+kbZm8Z3Y2Uu0Ds8zMaRYUOqdSm3 le/t8kPhCv5UcPa4t1hGRDjetigCufzmBK5oACBuoCDieupmTkSHeJAwudbuVFeAE7dd RF0g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bgdev-pl.20210112.gappssmtp.com header.s=20210112 header.b=L3lmJ5z6; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id mi16-20020a17090b4b5000b0022c9cb7662csi7921775pjb.159.2023.03.31.13.00.38; Fri, 31 Mar 2023 13:00:50 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@bgdev-pl.20210112.gappssmtp.com header.s=20210112 header.b=L3lmJ5z6; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232852AbjCaT7p (ORCPT + 99 others); Fri, 31 Mar 2023 15:59:45 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45534 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231637AbjCaT7f (ORCPT ); Fri, 31 Mar 2023 15:59:35 -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 9CA13B458 for ; Fri, 31 Mar 2023 12:59:33 -0700 (PDT) Received: by mail-wr1-x434.google.com with SMTP id y14so23596006wrq.4 for ; Fri, 31 Mar 2023 12:59:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bgdev-pl.20210112.gappssmtp.com; s=20210112; t=1680292772; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=OZ4tY9ZYWjx+L/GieKh5Pi36vPyy7QPV1ldHuKzb5+s=; b=L3lmJ5z640wRzUBye8uUTVuzCzoYv4SJvO8Se0nlyyvbcnVcRskZ0cG5JeZbxW+GCH 5fdlaKsLiDHgPWuMqm8GefeOXEHENJZanI4inA/wabzA/ncA10bbj5i343n1lbUxwDNC eMfKlH8HXgU5L3erhaIpY4mXcLd4KttOuvoGOyqbIUWDDCx6k4EwHf14rrS7MvBuUYOw z2nln4YQ69ilNrUY4VFW67QyeaYzK5P8TE8h0eRA/gknWVC4jR33obiB83UF2+1v5hin XXGj37mnQyb1yin+aS0atsQ15cDlQ8HvjUT0QwluUvIpdo7RT80R9HlIZoKtQZWJAk05 qEew== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1680292772; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=OZ4tY9ZYWjx+L/GieKh5Pi36vPyy7QPV1ldHuKzb5+s=; b=GKpysZx2O/II8ZYXt/dpOdlNg652/qu+Ov5cVS65Zv3A/YilttYKsEXqgnoXW4u2Bw IMuBycXi89nlD0x81KjWUaZrWpC6L7apdHOddDaLoDPU4J+q+EHcR2cR2Oa9TLFjHw5z 8XE63e5U/oZZCts2WYzzeTzb5DJqSArTxzcpT+JHt2y8YMU7I+HpnxKLuH29ehKfOtfU G1pOemIrc/evaA10NWrO/EomHeoTu1e3xtLXQA94kFVChqzI34ywWGFkh7QvqqtmqBW3 8HV1YOB8tB6gIiDonPtrgCC1IFi2twLKdCUfUy+Qiw3z+J78e0LWdbPW50Ekzb1mznZW a49A== X-Gm-Message-State: AAQBX9fuGRIdXaD4ivYWmtGHdTty8SslV9UQLiBX+sho50jyO2eG2iGT mMLeHpzSFW22l/3S8/akjQTktw== X-Received: by 2002:adf:eb0b:0:b0:2d8:4e4:8cf1 with SMTP id s11-20020adfeb0b000000b002d804e48cf1mr19296816wrn.21.1680292772089; Fri, 31 Mar 2023 12:59:32 -0700 (PDT) Received: from brgl-uxlite.home ([2a01:cb1d:334:ac00:1dc:d1f:e44f:2a1d]) by smtp.gmail.com with ESMTPSA id c13-20020a5d4ccd000000b002cff0e213ddsm2990286wrt.14.2023.03.31.12.59.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 31 Mar 2023 12:59:31 -0700 (PDT) From: Bartosz Golaszewski To: Andy Gross , Bjorn Andersson , Konrad Dybcio , Vinod Koul , Kishon Vijay Abraham I , Rob Herring , Krzysztof Kozlowski , Manivannan Sadhasivam , Alim Akhtar , Avri Altman , Bart Van Assche Cc: linux-arm-msm@vger.kernel.org, linux-phy@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-scsi@vger.kernel.org, Bartosz Golaszewski Subject: [PATCH 1/5] dt-bindings: ufs: qcom: add compatible for sa8775p Date: Fri, 31 Mar 2023 21:59:16 +0200 Message-Id: <20230331195920.582620-2-brgl@bgdev.pl> X-Mailer: git-send-email 2.37.2 In-Reply-To: <20230331195920.582620-1-brgl@bgdev.pl> References: <20230331195920.582620-1-brgl@bgdev.pl> MIME-Version: 1.0 X-Spam-Status: No, score=0.0 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_NONE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1761914756672834577?= X-GMAIL-MSGID: =?utf-8?q?1761914756672834577?= From: Bartosz Golaszewski Add the compatible string for the UFS on sa8775p platforms. Signed-off-by: Bartosz Golaszewski --- 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 c5a06c048389..4abd3c0950e2 100644 --- a/Documentation/devicetree/bindings/ufs/qcom,ufs.yaml +++ b/Documentation/devicetree/bindings/ufs/qcom,ufs.yaml @@ -27,6 +27,7 @@ properties: - qcom,msm8996-ufshc - qcom,msm8998-ufshc - qcom,sc8280xp-ufshc + - qcom,sa8775p-ufshc - qcom,sdm845-ufshc - qcom,sm6350-ufshc - qcom,sm8150-ufshc @@ -106,6 +107,7 @@ allOf: enum: - qcom,msm8998-ufshc - qcom,sc8280xp-ufshc + - qcom,sa8775p-ufshc - qcom,sm8250-ufshc - qcom,sm8350-ufshc - qcom,sm8450-ufshc From patchwork Fri Mar 31 19:59:17 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bartosz Golaszewski X-Patchwork-Id: 77964 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp809691vqo; Fri, 31 Mar 2023 13:10:21 -0700 (PDT) X-Google-Smtp-Source: AKy350ayAYiwZzcWn+QQX6+7xkE1zN+A0d8fauW4CjkleubvaydQ/1IEQWGSIiXs0ptHUm86I4nL X-Received: by 2002:a17:907:2099:b0:8b0:ad0b:7ab8 with SMTP id pv25-20020a170907209900b008b0ad0b7ab8mr28028639ejb.14.1680293421292; Fri, 31 Mar 2023 13:10:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680293421; cv=none; d=google.com; s=arc-20160816; b=OFmKo1yN5/VpherzbaLNzzFY8e/S0ZoMBhfhlSrTT1W7rERD01PQfCrfE4icV6+vhz GkIAeIi5X2+7VnopWDS0PB72zNhd/nISdmZh29QnmD1qwm7tGr7PT5TMjr2xwEmDWxt1 dcy+3ydF7AJZFVuhyGfSFhqmW5/e5ChmSCoJvsfYwMbvz5NL70JXDlVuIBZYBDHhUhlZ 47olsh00kd/7YPgTCAyDSbLkU/z0sExD3ZPkSAmfl2TpgGrTY8dL1xlnYf27VZcAJ4Fx asTWAXvbSQHn4cjFnQWZDCMNXBgh+y4eUUINpmYgFKoPy0btHChT2M/OAr4HSJibgNO+ ke3w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=llCiBCLkZ3VwD0RdupEiXDCSemDbuwgN30QJGJfgAvk=; b=R4pm03zvCFIsgfR1exfe4pGTqA2h8zIHPv6uXrxnTG3F/TjmyLW2EVIn21IETYKcZJ ad7q58QpnTvy5SFHpJpXxylktdS3MK29OhlMEPa+PpVpjBsTTI9ulnPkDuFlwnjZ0KVV yLFGdUO0myzlcVOTD/uv43ugTj2a20ViGzRv6irfqr882VByjMxLz5TdjiBaIhxaX46J Tf2lD35200X8YsMOG+UFRE/xZpvERRTfO9Bz6tnTmiNYLOPK38yswLz85fvWNmIcX3yM BFrMn+RFqkgMR9sRHqhLiBBhoYlWj2jPbjH8XUpIKwmBTfqG7oXSO13ZO1lDcweIFf7L aB/w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bgdev-pl.20210112.gappssmtp.com header.s=20210112 header.b=AfHuBDpH; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id y12-20020a170906914c00b00946872f37c6si1300869ejw.450.2023.03.31.13.09.56; Fri, 31 Mar 2023 13:10:21 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@bgdev-pl.20210112.gappssmtp.com header.s=20210112 header.b=AfHuBDpH; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229998AbjCaT7j (ORCPT + 99 others); Fri, 31 Mar 2023 15:59:39 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45590 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230452AbjCaT7g (ORCPT ); Fri, 31 Mar 2023 15:59:36 -0400 Received: from mail-wr1-x42a.google.com (mail-wr1-x42a.google.com [IPv6:2a00:1450:4864:20::42a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 91A5A135 for ; Fri, 31 Mar 2023 12:59:34 -0700 (PDT) Received: by mail-wr1-x42a.google.com with SMTP id r29so23534766wra.13 for ; Fri, 31 Mar 2023 12:59:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bgdev-pl.20210112.gappssmtp.com; s=20210112; t=1680292773; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=llCiBCLkZ3VwD0RdupEiXDCSemDbuwgN30QJGJfgAvk=; b=AfHuBDpHyPAv0Wy3bgsU4YhWoDX8Zu+eGv/I6Fcp1ntbuuU6LHIcH1Q3CfUg3QbEYi o4+0BOp9nZjApWH3SDeKmpfyloF19qwgCTU7wujO/1899fH3wI5vF5n5KsSiaMZqbEh8 wlTYyX/cpu7wUy9tWcn6lYBInPsK7r+3LUspILEljf2ULmfRk9zUmxXqCyXmSGgM5vab ZVXwjEXMb7C6YJt39sDj0R5GDAHz+ven7V26NnHiZ5V9Gay6H+6x9wgw6eo6Se6bmNBr OhS4zkrK35OH76td3Atl4WDcZib8U85t6oaYHJY7xURVCxof1ZKZZVmm0zokcC+gxCIm EtRQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1680292773; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=llCiBCLkZ3VwD0RdupEiXDCSemDbuwgN30QJGJfgAvk=; b=7O8MOrL3acFKxw00yB+pH8JFt3KBQA7r7in83yKQwFJzIVAqJiW0QB/AniPf91tVjD RMix9lEJfBt/sGd/KC+N1t8Oxpvokk4eEEwzqkdyyWEU/Uv2UNw1KFMfGZDLzCNve+9t UURXau8w31ELf/sMHk425fB5swmMkp6VnXtDJKCP90aCIX97m7N+DpNCH62jrZzi/ksf 1OkmcxlPfeGlW/zu7C8IZ/9U8+TCsYaAxbuC28WOP9hbUnaFS4wTYZjWq/ZvNmufuJ2e 9BsEJBrkv/9MjhBeYLAwQmX0XnsukYZV6kX560keiuFfUVjsOmpK6L3re+ap04QQwj6x QM/g== X-Gm-Message-State: AAQBX9enHCrbZQwGf8frXDFDPfzHxYiwnVEetVZSiYRVj46FBwminRmx +KnXHWZiwQgi39clwKvCeFtZNA== X-Received: by 2002:adf:e68d:0:b0:2c7:d575:e8a4 with SMTP id r13-20020adfe68d000000b002c7d575e8a4mr21366630wrm.65.1680292773088; Fri, 31 Mar 2023 12:59:33 -0700 (PDT) Received: from brgl-uxlite.home ([2a01:cb1d:334:ac00:1dc:d1f:e44f:2a1d]) by smtp.gmail.com with ESMTPSA id c13-20020a5d4ccd000000b002cff0e213ddsm2990286wrt.14.2023.03.31.12.59.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 31 Mar 2023 12:59:32 -0700 (PDT) From: Bartosz Golaszewski To: Andy Gross , Bjorn Andersson , Konrad Dybcio , Vinod Koul , Kishon Vijay Abraham I , Rob Herring , Krzysztof Kozlowski , Manivannan Sadhasivam , Alim Akhtar , Avri Altman , Bart Van Assche Cc: linux-arm-msm@vger.kernel.org, linux-phy@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-scsi@vger.kernel.org, Bartosz Golaszewski Subject: [PATCH 2/5] dt-bindings: phy: qmp-ufs: describe the UFS PHY for sa8775p Date: Fri, 31 Mar 2023 21:59:17 +0200 Message-Id: <20230331195920.582620-3-brgl@bgdev.pl> X-Mailer: git-send-email 2.37.2 In-Reply-To: <20230331195920.582620-1-brgl@bgdev.pl> References: <20230331195920.582620-1-brgl@bgdev.pl> MIME-Version: 1.0 X-Spam-Status: No, score=0.0 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_NONE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1761915354293495325?= X-GMAIL-MSGID: =?utf-8?q?1761915354293495325?= From: Bartosz Golaszewski Add a new compatible for the QMP UFS PHY found on sa8775p platforms and update the clocks property to accommodate three clocks. Signed-off-by: Bartosz Golaszewski --- .../phy/qcom,sc8280xp-qmp-ufs-phy.yaml | 34 ++++++++++++++++--- 1 file changed, 30 insertions(+), 4 deletions(-) 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 64ed331880f6..a414b2c2d9cc 100644 --- a/Documentation/devicetree/bindings/phy/qcom,sc8280xp-qmp-ufs-phy.yaml +++ b/Documentation/devicetree/bindings/phy/qcom,sc8280xp-qmp-ufs-phy.yaml @@ -16,6 +16,7 @@ description: properties: compatible: enum: + - qcom,sa8775p-qmp-ufs-phy - qcom,sc8280xp-qmp-ufs-phy - qcom,sm6125-qmp-ufs-phy - qcom,sm8550-qmp-ufs-phy @@ -24,12 +25,12 @@ properties: maxItems: 1 clocks: - maxItems: 2 + minItems: 2 + maxItems: 3 clock-names: - items: - - const: ref - - const: ref_aux + minItems: 2 + maxItems: 3 power-domains: maxItems: 1 @@ -51,6 +52,31 @@ properties: "#phy-cells": const: 0 +allOf: + - if: + properties: + compatible: + contains: + enum: + - qcom,sa8775p-qmp-ufs-phy + then: + properties: + clocks: + maxItems: 3 + clock-names: + items: + - const: ref + - const: ref_aux + - const: qref + else: + properties: + clocks: + maxItems: 2 + clock-names: + items: + - const: ref + - const: ref_aux + required: - compatible - reg From patchwork Fri Mar 31 19:59:18 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bartosz Golaszewski X-Patchwork-Id: 77961 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp809464vqo; Fri, 31 Mar 2023 13:09:57 -0700 (PDT) X-Google-Smtp-Source: AKy350ZXrc7ZG2E6ZVHp28A9Zpgnn56UFdoP1CbvGzSs00gSlhq2kRbeqwzdgtG4bGyXFch/zRdB X-Received: by 2002:a17:907:25c8:b0:947:72ad:e14d with SMTP id ae8-20020a17090725c800b0094772ade14dmr6860882ejc.68.1680293397467; Fri, 31 Mar 2023 13:09:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680293397; cv=none; d=google.com; s=arc-20160816; b=Fq+eZdaC24C8Pbp6w55UfqmMsvbTQe3yHufTFOvVcJhjAsScE0mxgK2EX8/iVlElGO gkoFh5F8AEVN7wgVzM+mtk6+t8zqQrMQP5FwBMlm7Es5c0D/I4xC4nfghKR+DNwB4Hhb xicjS5XmhV0J4h1RxNgddpKTWvVW+UnU25K1KXyMadTUfLWadWuU9pk4IYreHmAx5DDB UQYXraCTkotSKQms+5QsEeCqcQ7GY8z7Apc3/A2LKZ0bvsqKVtsPBA7bySbzKYslZIia RWVuIfm9Vnaa9LS+nSA+R22cdZZv49G7SJ5Ww9XSUaFeFdkJljgcCZtntGFRMM++Xc5X 3Ghg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=0fthu4cbJuS/uLvSEiZqvZyqG03DhDKwpcohAdcCNaA=; b=fJyIIc6AhBsAs/yNCw4fPpAAiuWM7lgFMUNtN+D7epnWY4DOaZ6EOQyQJWxBxOySrh 4nVwmayR8UlrEv5nFnD4t9lcvZqOSBeELGiLCHE+QPPYrtHuzbik6I4brSMBwedxf27A oVXeYqq3zxw+ugkwHmcOPtV7oma66E+GWX4G8Sj4Dm8/AJ0W9SNkql+5JX2B+je/cyDs qbBkvDiByt3LMkawEyfK5Ys5vOZac+Ks/YfTwVXSXSf3va75wI21izjLT7Qe4/ovb3hY ST5ZGwVKaJL5rnBp4aKzpQ90C8UOmdDpUMQ3Syp/1icLZjuQKzokzoodmVd0L+X003MA RSuw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bgdev-pl.20210112.gappssmtp.com header.s=20210112 header.b=VU2WVN1v; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id k14-20020a17090666ce00b0093035faa90bsi2672284ejp.79.2023.03.31.13.09.33; Fri, 31 Mar 2023 13:09:57 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@bgdev-pl.20210112.gappssmtp.com header.s=20210112 header.b=VU2WVN1v; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232396AbjCaT7s (ORCPT + 99 others); Fri, 31 Mar 2023 15:59:48 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45566 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232341AbjCaT7h (ORCPT ); Fri, 31 Mar 2023 15:59:37 -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 9670FAF11 for ; Fri, 31 Mar 2023 12:59:35 -0700 (PDT) Received: by mail-wr1-x435.google.com with SMTP id r11so23562552wrr.12 for ; Fri, 31 Mar 2023 12:59:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bgdev-pl.20210112.gappssmtp.com; s=20210112; t=1680292774; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=0fthu4cbJuS/uLvSEiZqvZyqG03DhDKwpcohAdcCNaA=; b=VU2WVN1vgP+NTNn1Uvx7/DpTd9Tv1Vtg0p0PKnY5rhSAh10/mvrkj+fGH4oumch1/A rH3cteopkCW/wmEh/b65lAT4JXkClniFRAJgANUuZi0ZQ6rskDIhIZ388jpUdWBjRWBR aSR6JiBeZ7t6MqzhszMcCDpwCnmAVsnuS5ryo8VoZHTUTzdlPf1iWChCMpJYsteYiHZ6 449Y2AqE3juVWa3+AQkSC1DIa8gqS5wwRKqtmehtl8eBxC3ZTwlrVylEWzD4eFII5s/g lIKDgVnaptr+YnVRkWjFHLu3h4f9T9gZpnOnBR2IFz5tj90sX3eXsHSTVO6oXwwU/HKE KlSQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1680292774; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=0fthu4cbJuS/uLvSEiZqvZyqG03DhDKwpcohAdcCNaA=; b=atVe4mkIamFgpAM/DspYabuWUhCCPzyNSTuxuPz6dLQSJXoLHT/q3DJexRclhmFMSB SQsVTnCqLNWp4DSNoXJunip/d9sGhiCuN/rkeakAoScEXFuGkKe0mK7NudR3mHLsbQjj gZl5k3wDtzhfHdZwG9LKf6nNhxdtiUChyk+sYu5WbLN7vRugLxEXo+b1ybKf2qhLdg95 NO+tV5dCSs9nhAcDMOCsMzYzNZq/LSvZdg1QhiEUYlKRncICdVs2dePLvYtmBkJ7/XGa 4DrU/o/Kxlar+FnuI7ERtYmUa/94zh7+gn0DYtr1KHVr32/RPPnajz7/0ts1SaI3KDw6 DcRQ== X-Gm-Message-State: AAQBX9fm0d3EpjAoS2aOqsoAh04d3imNTAyVWBRGMb0YDQDB5ChE4VUx r0dLYL1mBMwgKd0EXB9X2Hr2dg== X-Received: by 2002:a05:6000:1044:b0:2e4:c9ac:c49c with SMTP id c4-20020a056000104400b002e4c9acc49cmr5485342wrx.26.1680292774097; Fri, 31 Mar 2023 12:59:34 -0700 (PDT) Received: from brgl-uxlite.home ([2a01:cb1d:334:ac00:1dc:d1f:e44f:2a1d]) by smtp.gmail.com with ESMTPSA id c13-20020a5d4ccd000000b002cff0e213ddsm2990286wrt.14.2023.03.31.12.59.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 31 Mar 2023 12:59:33 -0700 (PDT) From: Bartosz Golaszewski To: Andy Gross , Bjorn Andersson , Konrad Dybcio , Vinod Koul , Kishon Vijay Abraham I , Rob Herring , Krzysztof Kozlowski , Manivannan Sadhasivam , Alim Akhtar , Avri Altman , Bart Van Assche Cc: linux-arm-msm@vger.kernel.org, linux-phy@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-scsi@vger.kernel.org, Bartosz Golaszewski Subject: [PATCH 3/5] phy: qualcomm: phy-qcom-qmp-ufs: add definitions for sa8775p Date: Fri, 31 Mar 2023 21:59:18 +0200 Message-Id: <20230331195920.582620-4-brgl@bgdev.pl> X-Mailer: git-send-email 2.37.2 In-Reply-To: <20230331195920.582620-1-brgl@bgdev.pl> References: <20230331195920.582620-1-brgl@bgdev.pl> MIME-Version: 1.0 X-Spam-Status: No, score=0.0 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_NONE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1761915329334577001?= X-GMAIL-MSGID: =?utf-8?q?1761915329334577001?= From: Bartosz Golaszewski Add QMP PHY config for sa8775p and add support for the new compatible. Signed-off-by: Bartosz Golaszewski --- drivers/phy/qualcomm/phy-qcom-qmp-ufs.c | 38 +++++++++++++++++++++++++ 1 file changed, 38 insertions(+) diff --git a/drivers/phy/qualcomm/phy-qcom-qmp-ufs.c b/drivers/phy/qualcomm/phy-qcom-qmp-ufs.c index 994ddd5d4a81..126bd47c3fa0 100644 --- a/drivers/phy/qualcomm/phy-qcom-qmp-ufs.c +++ b/drivers/phy/qualcomm/phy-qcom-qmp-ufs.c @@ -823,6 +823,41 @@ static const struct qmp_phy_cfg msm8996_ufsphy_cfg = { .no_pcs_sw_reset = true, }; + +static const struct qmp_phy_cfg sa8775p_ufsphy_cfg = { + .lanes = 2, + + .offsets = &qmp_ufs_offsets, + + .tbls = { + .serdes = sm8350_ufsphy_serdes, + .serdes_num = ARRAY_SIZE(sm8350_ufsphy_serdes), + .tx = sm8350_ufsphy_tx, + .tx_num = ARRAY_SIZE(sm8350_ufsphy_tx), + .rx = sm8350_ufsphy_rx, + .rx_num = ARRAY_SIZE(sm8350_ufsphy_rx), + .pcs = sm8350_ufsphy_pcs, + .pcs_num = ARRAY_SIZE(sm8350_ufsphy_pcs), + }, + .tbls_hs_b = { + .serdes = sm8350_ufsphy_hs_b_serdes, + .serdes_num = ARRAY_SIZE(sm8350_ufsphy_hs_b_serdes), + }, + .tbls_hs_g4 = { + .tx = sm8350_ufsphy_g4_tx, + .tx_num = ARRAY_SIZE(sm8350_ufsphy_g4_tx), + .rx = sm8350_ufsphy_g4_rx, + .rx_num = ARRAY_SIZE(sm8350_ufsphy_g4_rx), + .pcs = sm8350_ufsphy_g4_pcs, + .pcs_num = ARRAY_SIZE(sm8350_ufsphy_g4_pcs), + }, + .clk_list = sm8450_ufs_phy_clk_l, + .num_clks = ARRAY_SIZE(sm8450_ufs_phy_clk_l), + .vreg_list = qmp_phy_vreg_l, + .num_vregs = ARRAY_SIZE(qmp_phy_vreg_l), + .regs = ufsphy_v5_regs_layout, +}; + static const struct qmp_phy_cfg sc8280xp_ufsphy_cfg = { .lanes = 2, @@ -1542,6 +1577,9 @@ static const struct of_device_id qmp_ufs_of_match_table[] = { }, { .compatible = "qcom,msm8998-qmp-ufs-phy", .data = &sdm845_ufsphy_cfg, + }, { + .compatible = "qcom,sa8775p-qmp-ufs-phy", + .data = &sa8775p_ufsphy_cfg, }, { .compatible = "qcom,sc8180x-qmp-ufs-phy", .data = &sm8150_ufsphy_cfg, From patchwork Fri Mar 31 19:59:19 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bartosz Golaszewski X-Patchwork-Id: 77960 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp806794vqo; Fri, 31 Mar 2023 13:05:49 -0700 (PDT) X-Google-Smtp-Source: AKy350ZEGbfJzwf+50vvBkyFZt5cIgH0ApXYEAg+prZPdaPf3XTmzOgEPnhSoRYJUbbMu6cV/7GM X-Received: by 2002:a17:902:e543:b0:19a:e762:a1af with SMTP id n3-20020a170902e54300b0019ae762a1afmr11369900plf.33.1680293148894; Fri, 31 Mar 2023 13:05:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680293148; cv=none; d=google.com; s=arc-20160816; b=XFNSHei7p0cRpK09AA6QbHHyeTDDIDr1LzwJs9l59SZ3r3AAK8UUG0Wn8BV/r/jzRd YGAUuRiH0Ag9a5wR3LIBmf0yz7sr6tmEeLVe+TWWuX4cvUG3bxINOJ2wcLRQSBAnsYIz NhhvN7W+fImPM9SFzFntrmwkwx3PfMSVm319f2PNXubItYAehps0f6J1T5aS0fW4Imsh nCN2PpLNaRKPGeHbnyCOSFdz+8zUfMsB+rf3Zw2xGoKLNQSAIFPLevZWvKl3ALUW5KXd vbIBdOIi8P5pwVHG4T4CqrWPjqowZgDY7pYP6axMyFKVv0hbuXW9Dc9py0KKIB6GN2tk KXQw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=qiWk/+mgLAf2EnRX8Fh5IMnKjd+gQV6YsVP4qVwV4hY=; b=Exzb7iGC0U8x7oUXNHi4EEFcK5pfce8xsS43NguT0f8UUvAnKmA6uVpM8ySBElyHOL UTC/uqvTL99nTq5iqDgqAMI3Cn7Fpiulor4hybOJ+A4g3Xx0rLabhLZIj+JimQ1gTz7n J4JctrkmthNxwEdvbaj3km0T4jlvKGXaLnm+AlXODH62XMCicxXFsgUVpoCO4PGue+oY VJN9IXSpjRLrkeHuHGM3P3O4DHVFQR5FKXopOzWz/jobNtjJSNB6UcZUKsx9DG3jRWPt 8srmtWbng58+buYExRtaZFqlaYb12yOwpDoKxf0mmcSXkdtla05AsWq03tvyH7LJQsvQ t/eA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bgdev-pl.20210112.gappssmtp.com header.s=20210112 header.b=OqnRZ5hn; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id j11-20020a17090276cb00b001a11cf69a4dsi2841842plt.226.2023.03.31.13.05.35; Fri, 31 Mar 2023 13:05:48 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@bgdev-pl.20210112.gappssmtp.com header.s=20210112 header.b=OqnRZ5hn; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232906AbjCaT7w (ORCPT + 99 others); Fri, 31 Mar 2023 15:59:52 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45616 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231487AbjCaT7h (ORCPT ); Fri, 31 Mar 2023 15:59:37 -0400 Received: from mail-wr1-x430.google.com (mail-wr1-x430.google.com [IPv6:2a00:1450:4864:20::430]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8F99A1A7 for ; Fri, 31 Mar 2023 12:59:36 -0700 (PDT) Received: by mail-wr1-x430.google.com with SMTP id m2so23579961wrh.6 for ; Fri, 31 Mar 2023 12:59:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bgdev-pl.20210112.gappssmtp.com; s=20210112; t=1680292775; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=qiWk/+mgLAf2EnRX8Fh5IMnKjd+gQV6YsVP4qVwV4hY=; b=OqnRZ5hnreQvDc4qITG28Gj0eZpJTynwWVjUQkqQ9fkGuQE5+57+3nlQiZQzHX3xFT 4DTqL7rsejVglX4Z9R0lCMtLo0IiYDv0q2N2yLupeaIyp9ZzPXvMg8we6Ewvit3RJXFr oYpZ+ljAGrXQn5sTd85ZTVAEbJfD5PIpfQy/IfUIbjXBJmZT7nTWDlg+ojiges9H0mNq 6nVjqv+VB/nhU8MW9YgafrTl/XZ6oiNwFiCQMeURtnmrFxFzup86bpevC2Fol6y+ZVYu yNskiP7S+FDJiigtAk5PTM5p8b4yaPe/ohHYqGnn8VSMhxFUuGpBxBXlEnjL2giiQjqY TZjw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1680292775; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=qiWk/+mgLAf2EnRX8Fh5IMnKjd+gQV6YsVP4qVwV4hY=; b=B6PCh8rWpkni+zS0AZ8RLbQp8fTpTLLIP1w49zItycVQN26egs9YZJcxtKlKsftWAL ENSeIF0WJzjT0hljyw4gouL9ues1NQanbwMdHhJjRh1sagmUQB+MolHvMF4u4SdjWotF r0N3PhaoBwzZq3mmliwrtgmU375utsVeIA+3frgqIA8YhVbUE2Lh5h50K3JrU0FqZi0e MGJd9KwxRqQ6BzN8GF7/NpYrAJMu3RB1V/IOqZxBw4DkW2l2AuN1SuJoFMIz9nJBuGPi DQ0U3FpXeCK6d6S2v0qMPBOSMYlHFSImKqiGfPgkNaHTHUIO99cB4NSW1TkLHgcRT2IG KIXg== X-Gm-Message-State: AAQBX9deVTniom+gSX1grHu0aEJJW/ujbSeQVys7RhgxU3Bxst1WKUBL NzFM+Sm7gHJzJbJv+dIkx86tnA== X-Received: by 2002:adf:fac6:0:b0:2cf:e67c:8245 with SMTP id a6-20020adffac6000000b002cfe67c8245mr19196088wrs.44.1680292775092; Fri, 31 Mar 2023 12:59:35 -0700 (PDT) Received: from brgl-uxlite.home ([2a01:cb1d:334:ac00:1dc:d1f:e44f:2a1d]) by smtp.gmail.com with ESMTPSA id c13-20020a5d4ccd000000b002cff0e213ddsm2990286wrt.14.2023.03.31.12.59.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 31 Mar 2023 12:59:34 -0700 (PDT) From: Bartosz Golaszewski To: Andy Gross , Bjorn Andersson , Konrad Dybcio , Vinod Koul , Kishon Vijay Abraham I , Rob Herring , Krzysztof Kozlowski , Manivannan Sadhasivam , Alim Akhtar , Avri Altman , Bart Van Assche Cc: linux-arm-msm@vger.kernel.org, linux-phy@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-scsi@vger.kernel.org, Bartosz Golaszewski Subject: [PATCH 4/5] arm64: dts: qcom: sa8775p: add UFS nodes Date: Fri, 31 Mar 2023 21:59:19 +0200 Message-Id: <20230331195920.582620-5-brgl@bgdev.pl> X-Mailer: git-send-email 2.37.2 In-Reply-To: <20230331195920.582620-1-brgl@bgdev.pl> References: <20230331195920.582620-1-brgl@bgdev.pl> MIME-Version: 1.0 X-Spam-Status: No, score=0.0 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_NONE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1761915068806697391?= X-GMAIL-MSGID: =?utf-8?q?1761915068806697391?= From: Bartosz Golaszewski Add nodes for the UFS and its PHY on sa8775p platforms. Signed-off-by: Bartosz Golaszewski --- arch/arm64/boot/dts/qcom/sa8775p.dtsi | 54 +++++++++++++++++++++++++++ 1 file changed, 54 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sa8775p.dtsi b/arch/arm64/boot/dts/qcom/sa8775p.dtsi index de5e8449397c..c737e67b9239 100644 --- a/arch/arm64/boot/dts/qcom/sa8775p.dtsi +++ b/arch/arm64/boot/dts/qcom/sa8775p.dtsi @@ -586,6 +586,60 @@ &clk_virt SLAVE_QUP_CORE_1 QCOM_ICC_TAG_ALWAYS>, }; }; + ufs_mem_hc: ufs@1d84000 { + compatible = "qcom,sa8775p-ufshc", "qcom,ufshc", "jedec,ufs-2.0"; + reg = <0x0 0x01d84000 0x0 0x3000>; + interrupts = ; + phys = <&ufs_mem_phy>; + phy-names = "ufsphy"; + lanes-per-direction = <2>; + #reset-cells = <1>; + resets = <&gcc GCC_UFS_PHY_BCR>; + reset-names = "rst"; + power-domains = <&gcc UFS_PHY_GDSC>; + required-opps = <&rpmhpd_opp_nom>; + iommus = <&apps_smmu 0x100 0x0>; + clocks = <&gcc GCC_UFS_PHY_AXI_CLK>, + <&gcc GCC_AGGRE_UFS_PHY_AXI_CLK>, + <&gcc GCC_UFS_PHY_AHB_CLK>, + <&gcc GCC_UFS_PHY_UNIPRO_CORE_CLK>, + <&rpmhcc RPMH_CXO_CLK>, + <&gcc GCC_UFS_PHY_TX_SYMBOL_0_CLK>, + <&gcc GCC_UFS_PHY_RX_SYMBOL_0_CLK>, + <&gcc GCC_UFS_PHY_RX_SYMBOL_1_CLK>; + clock-names = "core_clk", + "bus_aggr_clk", + "iface_clk", + "core_clk_unipro", + "ref_clk", + "tx_lane0_sync_clk", + "rx_lane0_sync_clk", + "rx_lane1_sync_clk"; + freq-table-hz = <75000000 300000000>, + <0 0>, + <0 0>, + <75000000 300000000>, + <0 0>, + <0 0>, + <0 0>, + <0 0>; + status = "disabled"; + }; + + ufs_mem_phy: phy@1d87000 { + compatible = "qcom,sa8775p-qmp-ufs-phy"; + reg = <0x0 0x01d87000 0x0 0xe10>; + clocks = <&rpmhcc RPMH_CXO_CLK>, + <&gcc GCC_UFS_PHY_PHY_AUX_CLK>, + <&gcc GCC_EDP_REF_CLKREF_EN>; + clock-names = "ref", "ref_aux", "qref"; + power-domains = <&gcc UFS_PHY_GDSC>; + resets = <&ufs_mem_hc 0>; + reset-names = "ufsphy"; + #phy-cells = <0>; + status = "disabled"; + }; + tcsr_mutex: hwlock@1f40000 { compatible = "qcom,tcsr-mutex"; reg = <0x0 0x01f40000 0x0 0x20000>; From patchwork Fri Mar 31 19:59:20 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bartosz Golaszewski X-Patchwork-Id: 77959 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp804790vqo; Fri, 31 Mar 2023 13:03:14 -0700 (PDT) X-Google-Smtp-Source: AKy350agr9LKQnRVJkoUkYHbJ0Q1NJePIvmHHtTquRlXcPzZuXYN5TAGl6MIInJikEpQOt/8zL4x X-Received: by 2002:a17:90a:190d:b0:240:95a9:923d with SMTP id 13-20020a17090a190d00b0024095a9923dmr17060983pjg.48.1680292993856; Fri, 31 Mar 2023 13:03:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680292993; cv=none; d=google.com; s=arc-20160816; b=gN88cseRK2pMeT6qdmLNxmzDR/l6hbtT3xx9HBnvJgRivNA3QLCQgDeOawGzlYqD8S l9cQCCvsW1WW5GfLg+kpRO1kzFKb3Of1REB/Gr6ecWGr48xORD2eaMBheQ8Lf7L7wuXQ 9AI21NUyvgtLgskTJHinMvH0RaEl4LMuHVPPdeBdfdiwJxjPjH6y3oIHQ9I03FKh733o MoCn4+NqVxgsPKA/oBkWfN/n5POXdtRjcIDJvQi/BGIwwSnWJJ88iNNQdHw2VXu9fBT/ clPOe7wTL4JMP1kTj863Add50g/w32iRNYqqVJZt7L2QvEjhvxo/PztAR2PvGN+iQf1K 5O7w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=T51w85qNGZ/wH1d68t5C4IE+YzS6I1k1IrcXjbzYMqE=; b=SSRCusdR6Q3dbiUCdKNBMLHupEz3705gLoDoA8vEvDG2Yyi2TpDLcS0BzQpsRwc2ti wi2Yxw1WCsk30CWo4ZEDEbG/sOWT943y0CYiiv1W/so1AAc6RZZ6CYI/MzgxQpp3iwHW PwglUq6Fe8eN8KqcfhAKWHBzdc/MzkMRybQtLwmNZcvDk2ZEp7OzlpuQ194Ds1/TQ8OI CAlfttzATStumGZBdO8I/as3yNb65WbrIj5tGvw61C7KXLEBJB5+d98h52yZo6W9w+sD 01bRot28PbLJ/HMWsIK27F4aLOd9hCZrKx+3YnXY3FL3qK+1EHWJ527qkRrehJef4S/k DVCw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bgdev-pl.20210112.gappssmtp.com header.s=20210112 header.b=z59upxBH; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id mi16-20020a17090b4b5000b0022c9cb7662csi7921775pjb.159.2023.03.31.13.02.44; Fri, 31 Mar 2023 13:03:13 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@bgdev-pl.20210112.gappssmtp.com header.s=20210112 header.b=z59upxBH; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232720AbjCaUAB (ORCPT + 99 others); Fri, 31 Mar 2023 16:00:01 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45566 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232190AbjCaT7k (ORCPT ); Fri, 31 Mar 2023 15:59:40 -0400 Received: from mail-wr1-x42c.google.com (mail-wr1-x42c.google.com [IPv6:2a00:1450:4864:20::42c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 865791DFA5 for ; Fri, 31 Mar 2023 12:59:37 -0700 (PDT) Received: by mail-wr1-x42c.google.com with SMTP id v1so23578836wrv.1 for ; Fri, 31 Mar 2023 12:59:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bgdev-pl.20210112.gappssmtp.com; s=20210112; t=1680292776; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=T51w85qNGZ/wH1d68t5C4IE+YzS6I1k1IrcXjbzYMqE=; b=z59upxBH9VlBuY/hlmuYlAIN3ukfPRl0X+jMR2BPQpQBHGAsW5XK2K7cZBSo/eJUvx 2vGjfZIYqN2LSuH/EbBbldGuJwdS4xX62ZKcEY8MNEJ57AP79h3LohWWRJuANyzxFmFf Dkgz3ew+pKfAQSda32nF1Qw0hgM6L6Iwoo1fEODS0e+BRMEw5eRr8/XWFbQXD2OsO5B5 p05iCaavhDNJrqbMv/vPl0FXniYxI/pXMEqyhX0B6VqQseipt8Hgy9pBqiYzjb0sHGvv 1mYIz7m1/2nUBiyEgQw5I+Q/WDw0D1AnxXMxrJ5QEYpxfpyKywcmMqGGP8MLZkXNtS8O tkZA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1680292776; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=T51w85qNGZ/wH1d68t5C4IE+YzS6I1k1IrcXjbzYMqE=; b=Cjs6Xzue0ZLz+dMH57W5ePpJKRmlewilLzZ2utPBbaKRty3PWNfoMtFrsilXwxA08S Dand7vSYLUAR/Ovseck73Vu5MW7psn7EzrN6+Xh0qZ/lLzMhGR39g5NAuksMdbWjC1jj EagfHzyHcfdB7kGl3TW2RZ954no/fzcKsZ+XRmKUIBfuTOj/tr6x+ezpciLqGF+Q4LmH MXWbbQqOT1rW/T6JZ1WYDzH0jkXts088hy9p0ceFltVE87wVmY29n2JyQE+eXarlMbrZ g/kHsapeIcWSqoMwtKiec/COi8Hihli4kxjPjcA5vUdm6EL2MylnJw78hBjLNQ7SKpXV ciEQ== X-Gm-Message-State: AAQBX9eFjm0BHan0zgFea6Sn4LIjGOL4xAIC/HB10FxNVOv2wivtJyut F1YUg37G58l0DPVs1dK75pzbfw== X-Received: by 2002:a5d:4a51:0:b0:2d3:33d4:1cfb with SMTP id v17-20020a5d4a51000000b002d333d41cfbmr21995080wrs.36.1680292776104; Fri, 31 Mar 2023 12:59:36 -0700 (PDT) Received: from brgl-uxlite.home ([2a01:cb1d:334:ac00:1dc:d1f:e44f:2a1d]) by smtp.gmail.com with ESMTPSA id c13-20020a5d4ccd000000b002cff0e213ddsm2990286wrt.14.2023.03.31.12.59.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 31 Mar 2023 12:59:35 -0700 (PDT) From: Bartosz Golaszewski To: Andy Gross , Bjorn Andersson , Konrad Dybcio , Vinod Koul , Kishon Vijay Abraham I , Rob Herring , Krzysztof Kozlowski , Manivannan Sadhasivam , Alim Akhtar , Avri Altman , Bart Van Assche Cc: linux-arm-msm@vger.kernel.org, linux-phy@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-scsi@vger.kernel.org, Bartosz Golaszewski Subject: [PATCH 5/5] arm64: dts: qcom: sa8775p-ride: enable UFS Date: Fri, 31 Mar 2023 21:59:20 +0200 Message-Id: <20230331195920.582620-6-brgl@bgdev.pl> X-Mailer: git-send-email 2.37.2 In-Reply-To: <20230331195920.582620-1-brgl@bgdev.pl> References: <20230331195920.582620-1-brgl@bgdev.pl> MIME-Version: 1.0 X-Spam-Status: No, score=0.0 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_NONE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1761914906425533347?= X-GMAIL-MSGID: =?utf-8?q?1761914906425533347?= From: Bartosz Golaszewski Enable the UFS and its PHY on sa8775p-ride. Signed-off-by: Bartosz Golaszewski Reviewed-by: Konrad Dybcio --- arch/arm64/boot/dts/qcom/sa8775p-ride.dts | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sa8775p-ride.dts b/arch/arm64/boot/dts/qcom/sa8775p-ride.dts index fdd229d232d1..e921093a9f08 100644 --- a/arch/arm64/boot/dts/qcom/sa8775p-ride.dts +++ b/arch/arm64/boot/dts/qcom/sa8775p-ride.dts @@ -5,6 +5,7 @@ /dts-v1/; +#include #include #include "sa8775p.dtsi" @@ -20,6 +21,7 @@ aliases { serial2 = &uart17; i2c18 = &i2c18; spi16 = &spi16; + ufshc1 = &ufs_mem_hc; }; chosen { @@ -426,6 +428,23 @@ &uart17 { status = "okay"; }; +&ufs_mem_hc { + reset-gpios = <&tlmm 149 GPIO_ACTIVE_LOW>; + vcc-supply = <&vreg_l8a>; + vcc-max-microamp = <1100000>; + vccq-supply = <&vreg_l4c>; + vccq-max-microamp = <1200000>; + + status = "okay"; +}; + +&ufs_mem_phy { + vdda-phy-supply = <&vreg_l4a>; + vdda-pll-supply = <&vreg_l1c>; + + status = "okay"; +}; + &xo_board_clk { clock-frequency = <38400000>; };