Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp1236541pxb; Thu, 4 Mar 2021 06:48:08 -0800 (PST) X-Google-Smtp-Source: ABdhPJwmV1RQyoClhnkqEjFOfTlZbh9pOhKNmYT0Z6r95ZHgj67UsrdJgDrcUeAcMdJ8O5Oh+w41 X-Received: by 2002:aa7:cd0e:: with SMTP id b14mr12235edw.354.1614869288230; Thu, 04 Mar 2021 06:48:08 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1614869288; cv=none; d=google.com; s=arc-20160816; b=E8XUp8PrZxerL/hDK6GK0dz/lECCFjsHHAMnvaaLuKd3VwRA+i9JosC8uw92B1dBAl Npy2lcssuu0SeGMIE1fEZ+STiTs0xcSIfrU5NTkMemgtjkUKM41Wgx9EGHHOUpG+BLwD VbgwaAWjpZxdl70+grEJSVZKd1K8hKHgU2Q9e99Qg/lT+7kq75RiXEyd0A7z14DEsJyL Ot71pAXZ25rcIKVIYX9De/dZ05q/KjExzOnroi0iWRt6CrzriON/CkdGb0kWjsIAvwHe wmACRmsXcNJ5pHz/D1q1px82SgbdquFEPLXMBVIos5Hq5/KDK1UNKREBWbORGsJ8sUMc zucA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:subject:cc:to:from :dkim-signature; bh=g5+aTTWp+7oIxei7wR77xO2oMY4/n+0nCu4fMGvEBw8=; b=hWIbI5q6q/un1ZrBvaX4oWqTgjlAMvemA9R6Ab1TlWbP5xgh856ZpgML65DShJct2o PO3Q/4NcZKhjc1oLgw4e80ouzEoQ9ZFwW2FKI91KkGSCAsNu+Tu5Nlf6d4w85Tf1snha 0YhNd83Kdny4UsYksrX+S7xK4C5xk7Wd0QFYQhNWUNTg6l43sFja+VKx4tFXn13vpu1N +77z6+TN9O5tvbXrTD+AdS2okbeB9fKkyG08aHv+XM0ULLGxj//gq5PuT1pjz9WRpeZF Sm1r2sNVqbx0PPgucLBNaVdA2Ppyp4Nay3d9RjjZ5X0CrtIHPLgkFPCc/o7gsxE/24Fm 390g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=FQtiF9Pc; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id f4si16324657ejf.359.2021.03.04.06.47.45; Thu, 04 Mar 2021 06:48:08 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=FQtiF9Pc; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233750AbhCDEnd (ORCPT + 99 others); Wed, 3 Mar 2021 23:43:33 -0500 Received: from fllv0015.ext.ti.com ([198.47.19.141]:36590 "EHLO fllv0015.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233698AbhCDEnO (ORCPT ); Wed, 3 Mar 2021 23:43:14 -0500 Received: from fllv0034.itg.ti.com ([10.64.40.246]) by fllv0015.ext.ti.com (8.15.2/8.15.2) with ESMTP id 1244fV4P101783; Wed, 3 Mar 2021 22:41:31 -0600 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1614832891; bh=g5+aTTWp+7oIxei7wR77xO2oMY4/n+0nCu4fMGvEBw8=; h=From:To:CC:Subject:Date; b=FQtiF9PcP5I4NoL7GyvHRFGe9OG7oibRzQzVwOKXccdrsQ367Z35/HUaH1kpssmoq 2CenFGGkIiSjuonj6N1k4mTXRhRyPwY5zv0f+a21pWUI7AhzuaovIzw+JZSlaF2P12 mLlKtQiMBlNllBAqy+tXGMukq+uw1MaYYwm1XUJA= Received: from DFLE104.ent.ti.com (dfle104.ent.ti.com [10.64.6.25]) by fllv0034.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 1244fUds067894 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Wed, 3 Mar 2021 22:41:31 -0600 Received: from DFLE107.ent.ti.com (10.64.6.28) by DFLE104.ent.ti.com (10.64.6.25) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1979.3; Wed, 3 Mar 2021 22:41:30 -0600 Received: from lelv0327.itg.ti.com (10.180.67.183) by DFLE107.ent.ti.com (10.64.6.28) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1979.3 via Frontend Transport; Wed, 3 Mar 2021 22:41:30 -0600 Received: from a0393678-ssd.dhcp.ti.com (ileax41-snat.itg.ti.com [10.172.224.153]) by lelv0327.itg.ti.com (8.15.2/8.15.2) with ESMTP id 1244fQfh042911; Wed, 3 Mar 2021 22:41:27 -0600 From: Kishon Vijay Abraham I To: Kishon Vijay Abraham I , Vinod Koul , Rob Herring , Philipp Zabel , Swapnil Jakhade CC: , , Lokesh Vutla Subject: [PATCH v4 00/13] PHY: Add support in Sierra to use external clock Date: Thu, 4 Mar 2021 10:11:09 +0530 Message-ID: <20210304044122.15166-1-kishon@ti.com> X-Mailer: git-send-email 2.17.1 MIME-Version: 1.0 Content-Type: text/plain X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Patch series adds support in Sierra driver to use external clock. v1 of the patch series can be found @ [1] v2 of the patch series can be found @ [2] v3 of the patch series can be found @ [3] Changes from v3: 1) Instead of adding separate subnodes for each clock, just add #clock-cells in Sierra SERDES nodes and model the clocks. This is in alignment with Rob's comment for a different series [4] 2) Removed device tree changes from the series. Changes from v2: 1) Add depends on COMMON_CLK in Sierra 2) Add modelling PLL_CMNLC and PLL_CMNLC1 as clocks into a separate patch 3) Disable clocks in Sierra driver remove Changes from v1: 1) Remove the part that prevents configuration if the SERDES is already configured and focus only on using external clock and the associated cleanups 2) Change patch ordering 3) Use exclusive reset control APIs 4) Fix error handling code 5) Include DT patches in this series (I can send this separately to DT MAINTAINER once the driver patches are merged) [1] -> http://lore.kernel.org/r/20201103035556.21260-1-kishon@ti.com [2] -> http://lore.kernel.org/r/20201222070520.28132-1-kishon@ti.com [3] -> http://lore.kernel.org/r/20201224111627.32590-1-kishon@ti.com [4] -> http://lore.kernel.org/r/20210108025943.GA1790601@robh.at.kernel.org Kishon Vijay Abraham I (13): phy: cadence: Sierra: Fix PHY power_on sequence phy: ti: j721e-wiz: Invoke wiz_init() before of_platform_device_create() phy: cadence: cadence-sierra: Create PHY only for "phy" or "link" sub-nodes phy: ti: j721e-wiz: Get PHY properties only for "phy" or "link" subnode phy: cadence: cadence-sierra: Move all clk_get_*() to a separate function phy: cadence: cadence-sierra: Move all reset_control_get*() to a separate function phy: cadence: cadence-sierra: Explicitly request exclusive reset control phy: cadence-torrent: Use a common header file for Cadence SERDES phy: cadence: cadence-sierra: Add array of input clocks in "struct cdns_sierra_phy" phy: cadence: cadence-sierra: Add missing clk_disable_unprepare() in .remove callback dt-bindings: phy: phy-cadence-sierra: Add binding to model Sierra as clock provider phy: cadence: phy-cadence-sierra: Model PLL_CMNLC and PLL_CMNLC1 as clocks (mux clocks) phy: cadence: phy-cadence-sierra: Enable pll_cmnlc and pll_cmnlc1 clocks .../bindings/phy/phy-cadence-sierra.yaml | 17 +- drivers/phy/cadence/Kconfig | 1 + drivers/phy/cadence/phy-cadence-sierra.c | 419 ++++++++++++++++-- drivers/phy/cadence/phy-cadence-torrent.c | 2 +- drivers/phy/ti/phy-j721e-wiz.c | 21 +- include/dt-bindings/phy/phy-cadence-torrent.h | 15 - include/dt-bindings/phy/phy-cadence.h | 20 + 7 files changed, 428 insertions(+), 67 deletions(-) delete mode 100644 include/dt-bindings/phy/phy-cadence-torrent.h create mode 100644 include/dt-bindings/phy/phy-cadence.h -- 2.17.1