Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp951270ybl; Wed, 29 Jan 2020 12:33:16 -0800 (PST) X-Google-Smtp-Source: APXvYqym/7N0o/y3G1QzUY/LqN8l7zQPyCKM8nX3ltgKvkfzLDH2FjjbcEFkmzlCu2gfF8l4xMKd X-Received: by 2002:a9d:2647:: with SMTP id a65mr867478otb.101.1580329996404; Wed, 29 Jan 2020 12:33:16 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1580329996; cv=none; d=google.com; s=arc-20160816; b=uli+su4jzH/4XfDT1/xmStgGe7vb+TYOthX7ZtW4NOKWIESEDFxqUZkbF8g8YhUPeR 3F5R27J62NXs+b1y06sRc6B9RO/3KG+KT+zlUqcW+mU4oPPfA2HSGicao1GxIJ1nc2rm SRpdQyyL5kdWym6XOatUxPLx/1vjlf8aDb++lP1uTqyqOgyya736RzKlJzA7p01QDCgT 3Z3nV9Rq/qqL91hGikZi1IY8RM0DtQJrkPQuHOy0Fs4OOAlPJzInDdOSbLOKH9tbeSHw bnbo4JDsqOsIZ4khkzZZ4GazzMs5x2+XryaJj0BNdZz/2YJeCKcFfty1lMPNLl8EhSrS CFYA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=twsM+yroWqwEy5YDl4BwCUXNaUNw/X2g2lDDxs0RGBo=; b=ldwrm5Ab1tsge/QOV23GS+ox5Wd8uZb4O/GUSV9Uvtvjd7wJyuewjlEgKhGBpxyfh+ XDKPCc6jLxQZr1aXQcb9pJczrFXZVscYpH/Fvvsz4TUFODGixV+RlKCdxMIYp4FqC3SQ VIhbu5I0Nzq100A/Q4vOo2taJilO3haAMRangFnbsyNoXo+c0KTo/GCG8GII/iBYAYvw h5G0Jae+Z14sh/UmhTp1veMlYAcseObcCNfNtFU4Y/l5GriCO8agxLhA+aP7G7Vr4mFm AebHurmjBHyJwkDd7WXMC196gAM+syb6DO0PS7/jx3KYS2Q56fKQqZWU/tZFzeG5CV12 P11w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=iRu2wYYS; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id e6si1613457otq.217.2020.01.29.12.33.05; Wed, 29 Jan 2020 12:33:16 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=iRu2wYYS; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727186AbgA2UbT (ORCPT + 99 others); Wed, 29 Jan 2020 15:31:19 -0500 Received: from mail-pj1-f65.google.com ([209.85.216.65]:39333 "EHLO mail-pj1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726847AbgA2UbT (ORCPT ); Wed, 29 Jan 2020 15:31:19 -0500 Received: by mail-pj1-f65.google.com with SMTP id e9so310992pjr.4 for ; Wed, 29 Jan 2020 12:31:19 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=twsM+yroWqwEy5YDl4BwCUXNaUNw/X2g2lDDxs0RGBo=; b=iRu2wYYSeljrB5HIM7LJymxUTy2vq4UG/nbxVTsG+319wy6rA8ZdqP/P6DfqqSIam5 ihG/SfhKvPvETULCRbTKnRQkLMp3A496MzuE+uC+pgKyGDO7iiftEC4cfT2NpolyA6pK 7TdFmuY6NNDzaTQlVDm8lOMCYu2AFw9Z3m5BU= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=twsM+yroWqwEy5YDl4BwCUXNaUNw/X2g2lDDxs0RGBo=; b=BzPxG+YNHzvjBt7BJ4/JPRVxotGel6bCMxKuWCs48ZaXlfHv6abovdD4QSQz8Bfp6e MN52Wlfe6q1k03APUKPziS0FYWFjVrh0OwRlhcfZvX+do2uAEaQOGrrdoAr2nx8u6KuO /RbAyluv9KHKhH5T4Rtux00LjX3AXM2IjAS4MZvHz8GEBVRQDS76kX2R0rVTPk+9isX7 tbSCag/p34Up7SrmP/jIyTZaHidm9c+zBmkSXGmLn6oLuKXjD/0ZFUBaeZ7IZJgla6W9 /OUFYAUri6zKK1P8yn3Gx/4mvC/HMvD39O7tiQ+4E/Dpu8j4iYmPfolqPiYEDT5+rtZw Vatg== X-Gm-Message-State: APjAAAVRiPzShoxcjANDQ5IBH3OrBpN0uVndFbdpZIZNQlhUgUrq7gkU VtzVvFdMzFTrUvKbbbJjzI5o+Q== X-Received: by 2002:a17:90a:2004:: with SMTP id n4mr1680868pjc.20.1580329878812; Wed, 29 Jan 2020 12:31:18 -0800 (PST) Received: from localhost ([2620:15c:202:1:4fff:7a6b:a335:8fde]) by smtp.gmail.com with ESMTPSA id 2sm3529519pgo.79.2020.01.29.12.31.17 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 29 Jan 2020 12:31:18 -0800 (PST) Date: Wed, 29 Jan 2020 12:31:16 -0800 From: Matthias Kaehlcke To: Sandeep Maheswaram Cc: Andy Gross , Bjorn Andersson , Kishon Vijay Abraham I , Rob Herring , Mark Rutland , Stephen Boyd , Doug Anderson , linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org Subject: Re: [PATCH v4 3/8] phy: qcom-qusb2: Add generic QUSB2 V2 PHY support Message-ID: <20200129203116.GD71044@google.com> References: <1580305919-30946-1-git-send-email-sanm@codeaurora.org> <1580305919-30946-4-git-send-email-sanm@codeaurora.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <1580305919-30946-4-git-send-email-sanm@codeaurora.org> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Jan 29, 2020 at 07:21:54PM +0530, Sandeep Maheswaram wrote: > Add generic QUSB2 V2 PHY table so the respective phys > can use the same table. > > Signed-off-by: Sandeep Maheswaram > --- > drivers/phy/qualcomm/phy-qcom-qusb2.c | 18 +++++++++--------- > 1 file changed, 9 insertions(+), 9 deletions(-) > > diff --git a/drivers/phy/qualcomm/phy-qcom-qusb2.c b/drivers/phy/qualcomm/phy-qcom-qusb2.c > index bf94a52..70c9da6 100644 > --- a/drivers/phy/qualcomm/phy-qcom-qusb2.c > +++ b/drivers/phy/qualcomm/phy-qcom-qusb2.c > @@ -1,6 +1,6 @@ > // SPDX-License-Identifier: GPL-2.0 > /* > - * Copyright (c) 2017, The Linux Foundation. All rights reserved. > + * Copyright (c) 2017, 2019, The Linux Foundation. All rights reserved. > */ > > #include > @@ -177,7 +177,7 @@ static const struct qusb2_phy_init_tbl msm8998_init_tbl[] = { > QUSB2_PHY_INIT_CFG(QUSB2PHY_PLL_DIGITAL_TIMERS_TWO, 0x19), > }; > > -static const unsigned int sdm845_regs_layout[] = { > +static const unsigned int qusb2_v2_regs_layout[] = { > [QUSB2PHY_PLL_CORE_INPUT_OVERRIDE] = 0xa8, > [QUSB2PHY_PLL_STATUS] = 0x1a0, > [QUSB2PHY_PORT_TUNE1] = 0x240, > @@ -191,7 +191,7 @@ static const unsigned int sdm845_regs_layout[] = { > [QUSB2PHY_INTR_CTRL] = 0x230, > }; > > -static const struct qusb2_phy_init_tbl sdm845_init_tbl[] = { > +static const struct qusb2_phy_init_tbl qusb2_v2_init_tbl[] = { > QUSB2_PHY_INIT_CFG(QUSB2PHY_PLL_ANALOG_CONTROLS_TWO, 0x03), > QUSB2_PHY_INIT_CFG(QUSB2PHY_PLL_CLOCK_INVERTERS, 0x7c), > QUSB2_PHY_INIT_CFG(QUSB2PHY_PLL_CMODE, 0x80), > @@ -258,10 +258,10 @@ static const struct qusb2_phy_cfg msm8998_phy_cfg = { > .update_tune1_with_efuse = true, > }; > > -static const struct qusb2_phy_cfg sdm845_phy_cfg = { > - .tbl = sdm845_init_tbl, > - .tbl_num = ARRAY_SIZE(sdm845_init_tbl), > - .regs = sdm845_regs_layout, > +static const struct qusb2_phy_cfg qusb2_v2_phy_cfg = { > + .tbl = qusb2_v2_init_tbl, > + .tbl_num = ARRAY_SIZE(qusb2_v2_init_tbl), > + .regs = qusb2_v2_regs_layout, > > .disable_ctrl = (PWR_CTRL1_VREF_SUPPLY_TRIM | PWR_CTRL1_CLAMP_N_EN | > POWER_DOWN), > @@ -774,8 +774,8 @@ static const struct of_device_id qusb2_phy_of_match_table[] = { > .compatible = "qcom,msm8998-qusb2-phy", > .data = &msm8998_phy_cfg, > }, { > - .compatible = "qcom,sdm845-qusb2-phy", > - .data = &sdm845_phy_cfg, > + .compatible = "qcom,qusb2-v2-phy", > + .data = &qusb2_v2_phy_cfg, > }, > { }, > }; Reviewed-by: Matthias Kaehlcke