From patchwork Fri Nov 11 09:38:56 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Johan Hovold X-Patchwork-Id: 18625 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:6687:0:0:0:0:0 with SMTP id l7csp644304wru; Fri, 11 Nov 2022 01:47:39 -0800 (PST) X-Google-Smtp-Source: AA0mqf5uvbEcvJN7siox5/u29MgrmbhuPplmirp+nqPV90q/1riefUsratfonuzZmiYlliHM0uHw X-Received: by 2002:a05:6402:414e:b0:463:1a0c:4dd1 with SMTP id x14-20020a056402414e00b004631a0c4dd1mr799326eda.137.1668160059737; Fri, 11 Nov 2022 01:47:39 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668160059; cv=none; d=google.com; s=arc-20160816; b=jxYUzCN9RNB6t8DhcgjYOTPjRvA/irOjqi/domZvhKeZhlAfOZB8xPgvY+dZwdtIVy LIHml3/czv6HTKS/lN2gSwrg5pBHEAcUSLnN6bm9GiQRSfWio96XLn1nu4+P6aok3CoA tpT7fLVUJ8fYbPW9LvfxnEe021euBxzxXiHW6ENCqScmYU+7aOY0YfpXlnbWb17exWpR ao36+DJa/Og9eFT/cgjltoHfNp3z08jPu4elvGOgI/TugbObswBSGEEvz7X4REyrtX7C ndyYJqTKP58mrQrTwFiDMfqfTcMiw1Vq1j6WIAFWLwMemfYnWPtqipxRvR4AvTKAigNX DWxQ== 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=q+HDin79M4QH1jXuDrKItkzeaJEaNkVOGr3/oYE67s0=; b=wCniG2tqsdcAfij5DfMGjGpGE6NGICblglOMga8GrhjwHmuZxK1sM4lkslLdCUf0Vt /YFQ2u7rNqinNAKAUPIQcYeILgEuBf789fbcvzNNjHoUgktyVtN5NeZiP2Pl+1TQ4fYb aUzTPD1RvfTkXDLaYD/HRQT1esiNMNqbNNcam1liHNJAhC93KUykR5y5wL1Y53GNrPo4 r3xPWrbg38OfeRlR/AHA84U64qMaCNLomGnwINy9KmJUiYgLs1mXimEgkMMKMtTphPyS 9NnFpbKDD2/IWedk4s36UDwUFqV3EE/qokBKyioy4PK2MwYO+8KPSx3DpKrqSFV5nblp 3/HQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=sitkBlKV; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id hs23-20020a1709073e9700b0078dc7f7d0ebsi1609762ejc.822.2022.11.11.01.47.16; Fri, 11 Nov 2022 01:47:39 -0800 (PST) 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=@kernel.org header.s=k20201202 header.b=sitkBlKV; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233727AbiKKJkY (ORCPT + 99 others); Fri, 11 Nov 2022 04:40:24 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54960 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233711AbiKKJkR (ORCPT ); Fri, 11 Nov 2022 04:40:17 -0500 Received: from sin.source.kernel.org (sin.source.kernel.org [IPv6:2604:1380:40e1:4800::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7617369DC8; Fri, 11 Nov 2022 01:40:16 -0800 (PST) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sin.source.kernel.org (Postfix) with ESMTPS id 496B1CE2645; Fri, 11 Nov 2022 09:40:13 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 4DA4CC43470; Fri, 11 Nov 2022 09:40:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1668159611; bh=fzA0ymuZns87NaioE1ixSH2KZM29mzl1IX77mtV6cDs=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=sitkBlKVGgtIsJNR1lyHOGvIiRMCRneIiBjq71QH/svgEk9wzwfJX49pFi3ONegHF 9cLBb04tqhtFpOVEiaFdTOWGDChiHi5UtG1hC6sigLi/p/MS0aE4BwPTejibCoQss4 dJRLoZQJ46A1jnBhJepK3e808i0WDXj1WvgpHd9BJV3jfeSe2KZ6iqDOOQ9erv1M33 dAJ/YRet+GZHf6DzkxA298YqlzUfRaVBvraodJwfNgym3ng9uaCLEab58s6KGjsdld KitCxZbUFXQ2ITVRvLjfWUSXQH6uDhPxj9U4q4cnLpxwAXfRn2UOhiEnOVd9F62e28 e82mYSSJ2897g== Received: from johan by xi.lan with local (Exim 4.94.2) (envelope-from ) id 1otQVj-0002xj-A5; Fri, 11 Nov 2022 10:39:43 +0100 From: Johan Hovold To: Vinod Koul , Bjorn Andersson Cc: Andy Gross , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , Dmitry Baryshkov , linux-arm-msm@vger.kernel.org, linux-phy@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Johan Hovold Subject: [PATCH 2/3] phy: qcom-qmp-usb: drop sc8280xp reference-clock source Date: Fri, 11 Nov 2022 10:38:56 +0100 Message-Id: <20221111093857.11360-3-johan+linaro@kernel.org> X-Mailer: git-send-email 2.37.4 In-Reply-To: <20221111093857.11360-1-johan+linaro@kernel.org> References: <20221111093857.11360-1-johan+linaro@kernel.org> MIME-Version: 1.0 X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS autolearn=ham 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?1749192584346124220?= X-GMAIL-MSGID: =?utf-8?q?1749192602917866604?= The source clock for the reference clock is not used by the PHY directly and should not be described by the devicetree (instead this relationship should be modelled in the clock driver). Drop the driver management of the reference-clock source for SC8280XP. Once the other clock drivers have been updated, the corresponding change can be done also for the other QMP v4 platforms. Signed-off-by: Johan Hovold Reviewed-by: Bjorn Andersson Reviewed-by: Dmitry Baryshkov --- drivers/phy/qualcomm/phy-qcom-qmp-usb.c | 20 ++++++++++++-------- 1 file changed, 12 insertions(+), 8 deletions(-) diff --git a/drivers/phy/qualcomm/phy-qcom-qmp-usb.c b/drivers/phy/qualcomm/phy-qcom-qmp-usb.c index 372f9853c749..9b1f8c9d0eb8 100644 --- a/drivers/phy/qualcomm/phy-qcom-qmp-usb.c +++ b/drivers/phy/qualcomm/phy-qcom-qmp-usb.c @@ -1523,6 +1523,10 @@ static const char * const qmp_v3_phy_clk_l[] = { }; static const char * const qmp_v4_phy_clk_l[] = { + "aux", "ref", "com_aux", +}; + +static const char * const qmp_v4_ref_phy_clk_l[] = { "aux", "ref_clk_src", "ref", "com_aux", }; @@ -1729,8 +1733,8 @@ static const struct qmp_phy_cfg sm8150_usb3phy_cfg = { .pcs_tbl_num = ARRAY_SIZE(sm8150_usb3_pcs_tbl), .pcs_usb_tbl = sm8150_usb3_pcs_usb_tbl, .pcs_usb_tbl_num = ARRAY_SIZE(sm8150_usb3_pcs_usb_tbl), - .clk_list = qmp_v4_phy_clk_l, - .num_clks = ARRAY_SIZE(qmp_v4_phy_clk_l), + .clk_list = qmp_v4_ref_phy_clk_l, + .num_clks = ARRAY_SIZE(qmp_v4_ref_phy_clk_l), .reset_list = msm8996_usb3phy_reset_l, .num_resets = ARRAY_SIZE(msm8996_usb3phy_reset_l), .vreg_list = qmp_phy_vreg_l, @@ -1755,8 +1759,8 @@ static const struct qmp_phy_cfg sm8150_usb3_uniphy_cfg = { .pcs_tbl_num = ARRAY_SIZE(sm8150_usb3_uniphy_pcs_tbl), .pcs_usb_tbl = sm8150_usb3_uniphy_pcs_usb_tbl, .pcs_usb_tbl_num = ARRAY_SIZE(sm8150_usb3_uniphy_pcs_usb_tbl), - .clk_list = qmp_v4_phy_clk_l, - .num_clks = ARRAY_SIZE(qmp_v4_phy_clk_l), + .clk_list = qmp_v4_ref_phy_clk_l, + .num_clks = ARRAY_SIZE(qmp_v4_ref_phy_clk_l), .reset_list = msm8996_usb3phy_reset_l, .num_resets = ARRAY_SIZE(msm8996_usb3phy_reset_l), .vreg_list = qmp_phy_vreg_l, @@ -1806,8 +1810,8 @@ static const struct qmp_phy_cfg sm8250_usb3_uniphy_cfg = { .pcs_tbl_num = ARRAY_SIZE(sm8250_usb3_uniphy_pcs_tbl), .pcs_usb_tbl = sm8250_usb3_uniphy_pcs_usb_tbl, .pcs_usb_tbl_num = ARRAY_SIZE(sm8250_usb3_uniphy_pcs_usb_tbl), - .clk_list = qmp_v4_phy_clk_l, - .num_clks = ARRAY_SIZE(qmp_v4_phy_clk_l), + .clk_list = qmp_v4_ref_phy_clk_l, + .num_clks = ARRAY_SIZE(qmp_v4_ref_phy_clk_l), .reset_list = msm8996_usb3phy_reset_l, .num_resets = ARRAY_SIZE(msm8996_usb3phy_reset_l), .vreg_list = qmp_phy_vreg_l, @@ -1907,8 +1911,8 @@ static const struct qmp_phy_cfg sm8350_usb3_uniphy_cfg = { .pcs_tbl_num = ARRAY_SIZE(sm8350_usb3_uniphy_pcs_tbl), .pcs_usb_tbl = sm8350_usb3_uniphy_pcs_usb_tbl, .pcs_usb_tbl_num = ARRAY_SIZE(sm8350_usb3_uniphy_pcs_usb_tbl), - .clk_list = qmp_v4_phy_clk_l, - .num_clks = ARRAY_SIZE(qmp_v4_phy_clk_l), + .clk_list = qmp_v4_ref_phy_clk_l, + .num_clks = ARRAY_SIZE(qmp_v4_ref_phy_clk_l), .reset_list = msm8996_usb3phy_reset_l, .num_resets = ARRAY_SIZE(msm8996_usb3phy_reset_l), .vreg_list = qmp_phy_vreg_l,