From patchwork Wed Oct 16 11:31:08 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kishon Vijay Abraham I X-Patchwork-Id: 176460 Delivered-To: patch@linaro.org Received: by 2002:a92:7e96:0:0:0:0:0 with SMTP id q22csp7233777ill; Wed, 16 Oct 2019 04:32:04 -0700 (PDT) X-Google-Smtp-Source: APXvYqyVRkmLiWeiNF8Htxgr0rtbUetdDDJHnqhtaQQqi2/LUFRORP1waazpWBaM5AfW1G0NEZF8 X-Received: by 2002:aa7:c259:: with SMTP id y25mr38078569edo.117.1571225523906; Wed, 16 Oct 2019 04:32:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1571225523; cv=none; d=google.com; s=arc-20160816; b=G1y7pdLY7yBHVFpTrVS/E5CkeAgP/vRuzBF4iJl/AF+1ApSv3O7pmLRZAfJT+2dkWP JsnL974rUXrnxK2pmXX9xGW1rTcET48H4bO0kVeQiOMeQiAlGi/hXfp2mRWJuoiOncPm cXXmjKE9WqHrmOcrPpGfiUgVkK6VkMTQnK5vQdO59/FGU7uK3rSaDFKhYAetpujzTTLI zdJiFeiEKYxVBO8PaaVNX7CFhO6/LW4mwRK2YUglQFK2SRuK7UyGRFE67FWZqokNpav9 L4bUiPHoLcLRjtY3JmLDy0NtH3llOnaVzYoAycHft3InOqztrYuSEtYWKs6Ps9uRBw95 bTsQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature; bh=CeaOaqcl4Uu9ifeSuH7/fVJFutdpe4ac6xNqVwY2mwg=; b=bWrXyd6PCCsXTIVslDcjP9GuwSAYIAGLUnvV+R8um4FUaQyRuQpVVt5Bg1dpDG5B/M kQc1lWFm/MBY6ygOdWwzZ8ggzKISIPURSbRknJmeQvnrWIGWlVvvf41hb1b/w5/o665M lq5QN7fnOTHWQWH2v96KgXvCws905/3HjCffuYmnHo16Ui7Yc31K5zfPIf2IAba8V0tI vuAKwTw9MgiZlB6yUBoF3B9YIg10DniCbFx3McSFLIwCKmV1LTRdbfu2hrwM0JbNOuqW bWolUelwMaTAfKo53lwc7K9YzvFecYpb2bOaayGRpQHk5iPLagpfDcKvNmSufefEQWWl 1fRA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=el6aMYvU; spf=pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=devicetree-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. [209.132.180.67]) by mx.google.com with ESMTP id bt6si15442387edb.69.2019.10.16.04.32.03; Wed, 16 Oct 2019 04:32:03 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of devicetree-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=@ti.com header.s=ti-com-17Q1 header.b=el6aMYvU; spf=pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=devicetree-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 S2404997AbfJPLcC (ORCPT + 8 others); Wed, 16 Oct 2019 07:32:02 -0400 Received: from lelv0143.ext.ti.com ([198.47.23.248]:50340 "EHLO lelv0143.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2405004AbfJPLcA (ORCPT ); Wed, 16 Oct 2019 07:32:00 -0400 Received: from lelv0266.itg.ti.com ([10.180.67.225]) by lelv0143.ext.ti.com (8.15.2/8.15.2) with ESMTP id x9GBVwBa097095; Wed, 16 Oct 2019 06:31:58 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1571225518; bh=CeaOaqcl4Uu9ifeSuH7/fVJFutdpe4ac6xNqVwY2mwg=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=el6aMYvUJwHzV4vT35vR51d9h/jte5Qz/MEfGv7bu9A5VaH16s9noG1gUI9LtHJE3 tte5C/vSVxnZl/crmpzEq8gt0P57+fNyX9BxGYKU9q2ecZopWbBv2hbkvFcm943Y/r oAHGTYIINS6bnWhj1VcAP9P+7m6jzIIK+kz2psY8= Received: from DLEE112.ent.ti.com (dlee112.ent.ti.com [157.170.170.23]) by lelv0266.itg.ti.com (8.15.2/8.15.2) with ESMTPS id x9GBVwKW113752 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Wed, 16 Oct 2019 06:31:58 -0500 Received: from DLEE105.ent.ti.com (157.170.170.35) by DLEE112.ent.ti.com (157.170.170.23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1713.5; Wed, 16 Oct 2019 06:31:51 -0500 Received: from fllv0039.itg.ti.com (10.64.41.19) by DLEE105.ent.ti.com (157.170.170.35) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1713.5 via Frontend Transport; Wed, 16 Oct 2019 06:31:51 -0500 Received: from a0393678ub.india.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 x9GBVkm8097485; Wed, 16 Oct 2019 06:31:56 -0500 From: Kishon Vijay Abraham I To: Kishon Vijay Abraham I , Roger Quadros , Jyri Sarha CC: Anil Varughese , , Subject: [PATCH 04/13] phy: cadence: Sierra: Add support for SERDES_16G used in J721E SoC Date: Wed, 16 Oct 2019 17:01:08 +0530 Message-ID: <20191016113117.12370-5-kishon@ti.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20191016113117.12370-1-kishon@ti.com> References: <20191016113117.12370-1-kishon@ti.com> MIME-Version: 1.0 X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org SERDES_16G in TI's J721E SoC uses Cadence Sierra PHY. Add support to use Cadence Sierra driver in J721E SoC. Signed-off-by: Kishon Vijay Abraham I --- drivers/phy/cadence/phy-cadence-sierra.c | 14 ++++++++++++++ 1 file changed, 14 insertions(+) -- 2.17.1 diff --git a/drivers/phy/cadence/phy-cadence-sierra.c b/drivers/phy/cadence/phy-cadence-sierra.c index d0e7ae1c67b1..89a3b732c311 100644 --- a/drivers/phy/cadence/phy-cadence-sierra.c +++ b/drivers/phy/cadence/phy-cadence-sierra.c @@ -551,11 +551,25 @@ static const struct cdns_sierra_data cdns_map_sierra = { cdns_usb_regs }; +static const struct cdns_sierra_data cdns_ti_map_sierra = { + SIERRA_MACRO_ID, + 0x0, + 0x1, + ARRAY_SIZE(cdns_pcie_regs), + ARRAY_SIZE(cdns_usb_regs), + cdns_pcie_regs, + cdns_usb_regs +}; + static const struct of_device_id cdns_sierra_id_table[] = { { .compatible = "cdns,sierra-phy-t0", .data = &cdns_map_sierra, }, + { + .compatible = "ti,sierra-phy-t0", + .data = &cdns_ti_map_sierra, + }, {} }; MODULE_DEVICE_TABLE(of, cdns_sierra_id_table);