Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp4753771pxu; Mon, 21 Dec 2020 23:09:03 -0800 (PST) X-Google-Smtp-Source: ABdhPJzfHlWso1PACTu3Sv1ynpTPLm0FtcxChM9NLyEIhyRixhxn/JFiOWfHSkzMIJxitlZldEdw X-Received: by 2002:a05:6402:2070:: with SMTP id bd16mr18531228edb.107.1608620943592; Mon, 21 Dec 2020 23:09:03 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1608620943; cv=none; d=google.com; s=arc-20160816; b=ntns22MQCDtZTBCz3VRQpItgkMcdDm5l5ixjcbDdM4BWMUoS37Ujk4JXAFhEqy3ngj F9GRftN0z7CgTY3WmrilFkghENUKLspRsVTA578Dz7X+zXurzU4lpfqLZP2YOxYU63fM h82JpiDtss+Omo98PaKOhjIXw1M3SrPB5gnqHtlkORIjq6rxR1lis20nq+9TFgtLGyJg a3pPoVcDKHcu4CWxTumSXABJWJdi8vW5RU/BRicZgbX40p5zFPQjCVCN/DT6sfnwGG2C WfFjFNGARbYcMXMHtgN6/8wrKqFZtpFolJXCVnnMnWGrar4Dg+u/p2KiHeDknSO5eXs9 BmZQ== 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=IlOg2YWoIM40jZe6vAZLiNt+o8w4cd/ybCfCQGDBDRY=; b=eqfnUlubvkYogn58yqqlHlrOxCMGBxmEw9tbDTQGr3Th1v7xveCFdpVK5bjcLwLhrz +K5/76Ec0B3o3b5ICJjolTaz1sCR+zsj0UObEi2s0Ec2FTFydvmoA1EeWWA8dprRjD2Q xqdqVQViNS04y+lrk+IhztRb9SO7pcUe3gioYChrY7gDvokUqP6x2QiqFfYqPWtrbU4z yrMAHzgExVo60FqwccWwbjcP0Yr2N7AcrBKWf68x33n0VQHq85wbg/bhBChdadyuwent dPFZAW3STM1uP/ERYqB5NWgRxTHtT5GgTVAuyTpGrT1j1yBRQwvhxlWVLnH580VKBDlC 2l5w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=zB5PSQK2; 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 k20si2036200edo.493.2020.12.21.23.08.41; Mon, 21 Dec 2020 23:09:03 -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=zB5PSQK2; 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 S1726068AbgLVHGX (ORCPT + 99 others); Tue, 22 Dec 2020 02:06:23 -0500 Received: from fllv0015.ext.ti.com ([198.47.19.141]:53846 "EHLO fllv0015.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726035AbgLVHGW (ORCPT ); Tue, 22 Dec 2020 02:06:22 -0500 Received: from lelv0265.itg.ti.com ([10.180.67.224]) by fllv0015.ext.ti.com (8.15.2/8.15.2) with ESMTP id 0BM75R2e064004; Tue, 22 Dec 2020 01:05:27 -0600 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1608620727; bh=IlOg2YWoIM40jZe6vAZLiNt+o8w4cd/ybCfCQGDBDRY=; h=From:To:CC:Subject:Date; b=zB5PSQK2LcL2gJOLSMvcgQeyNMN5SekGbDCTa0gB99uEMpJCd+4figFoXYHMo2ScV 8ttFf0iKxTRIefJedbyZzFmZrrBkCi1+lyYzLGYJKTB2wluyzYdGu/x1aCCzTv+gSw 8UdhPXOGlvAPy9L2DxX7igle/ueMN5BAWH1yNQNM= Received: from DLEE104.ent.ti.com (dlee104.ent.ti.com [157.170.170.34]) by lelv0265.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 0BM75RLI014570 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Tue, 22 Dec 2020 01:05:27 -0600 Received: from DLEE102.ent.ti.com (157.170.170.32) by DLEE104.ent.ti.com (157.170.170.34) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1979.3; Tue, 22 Dec 2020 01:05:26 -0600 Received: from fllv0039.itg.ti.com (10.64.41.19) by DLEE102.ent.ti.com (157.170.170.32) 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; Tue, 22 Dec 2020 01:05:26 -0600 Received: from a0393678-ssd.dal.design.ti.com (ileax41-snat.itg.ti.com [10.172.224.153]) by fllv0039.itg.ti.com (8.15.2/8.15.2) with ESMTP id 0BM75N79050344; Tue, 22 Dec 2020 01:05:23 -0600 From: Kishon Vijay Abraham I To: Kishon Vijay Abraham I , Vinod Koul , Rob Herring , Swapnil Jakhade , , , CC: Nishanth Menon , Philipp Zabel Subject: [PATCH v2 00/14] PHY: Add support in Sierra to use external clock Date: Tue, 22 Dec 2020 12:35:06 +0530 Message-ID: <20201222070520.28132-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 The previous version of the patch series can be found @ [1] 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 Kishon Vijay Abraham I (14): phy: cadence: Sierra: Fix PHY power_on sequence phy: ti: j721e-wiz: Invoke wiz_init() before of_platform_device_create() dt-bindings: phy: cadence-sierra: Add bindings for the PLLs within SERDES phy: ti: j721e-wiz: Get PHY properties only for "phy" or "link" subnode phy: cadence: cadence-sierra: Create PHY only for "phy" or "link" sub-nodes 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: sierra: Model reference receiver as clocks (gate clocks) phy: cadence: sierra: Enable pll_cmnlc and pll_cmnlc1 clocks arm64: dts: ti: k3-j721e-main: Add DT nodes for clocks within Sierra SERDES arm64: dts: ti: k3-j721e-main: Fix external refclk input to SERDES arm64: dts: ti: k3-j721e-common-proc-board: Use external clock for SERDES arm64: dts: ti: k3-j721e-common-proc-board: Re-name "link" name as "phy" .../bindings/phy/phy-cadence-sierra.yaml | 89 ++- .../dts/ti/k3-j721e-common-proc-board.dts | 57 +- arch/arm64/boot/dts/ti/k3-j721e-main.dtsi | 186 ++++-- drivers/phy/cadence/phy-cadence-sierra.c | 543 ++++++++++++++++-- drivers/phy/ti/phy-j721e-wiz.c | 21 +- 5 files changed, 808 insertions(+), 88 deletions(-) -- 2.17.1