Received: by 2002:a25:d7c1:0:0:0:0:0 with SMTP id o184csp1268525ybg; Wed, 23 Oct 2019 13:03:28 -0700 (PDT) X-Google-Smtp-Source: APXvYqyVjxnqrCZHTbflf/U3VTif3n/8Q0bcUxGtPBu978mLES8VAh8sy7I8bOKKsyHWHhjKLmlL X-Received: by 2002:a17:907:366:: with SMTP id rs6mr34167817ejb.232.1571861008776; Wed, 23 Oct 2019 13:03:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1571861008; cv=none; d=google.com; s=arc-20160816; b=dCWFBIGx6Px58nN/PvKG8CbYDTCOlISvSuoo/SOPGgdetaRCyGHRk3RUVYRLUwjIX5 EoHa19HfDkNGXFZjvtr2pxPjGqONtZbCB5C3xzEHQlzJ4nxWKg++i6InQ4CrrO90onuo LY4bGcPCwq/nCoWJXuHg6GPilh+8ciGOOSCmV+x0V6B+oK45kmb56Wrj8GgnkhadLSoW KLMdUUj+kh9PHJvBC/tpxz6jVSZnVigAojvfFHa54R0h1SvG8o+Jd1NwdEPG5B/9hzuh J0wZRWuPm54KAZTOZgwsVxQrR8MtbxggVesWSnzwpVplFscOgekj/5Boiv2ObCweI6yi bpaQ== 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=D5qX6bSQhYcBZsHw5jvWXZPW294YsS2XYPvh3kDIWLMLtSopHvi+T7zxyKl5b/8+k8 eLg2jdzSGdCzYNNZkjpTQWzg8Y6DE+TZvlCWREfO7tiEI0zX7oiGLHHoD4x4By45EvjI ADUTGBL8H5AnQ1+7CbKbQHao+IBIdITzKQ6F0I0+JjDmsXoVIOavtcPip0NY16TyqCZs 5Bi+AZrbXVSJ+vPk/aEf7no5rPAxqpA9rJSPahfcK8aEPv0ji3KSh7cjwpsNqftmtcBu NSVhmjhQl7aE+m6Ki87iunA3fgNw+FoV2oS0JPHBcY48D+IkRU3JCQGDyWPXv+ENAOO+ aUCw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=YdOYQ9Ms; 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=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 gf8si2664076ejb.236.2019.10.23.13.02.33; Wed, 23 Oct 2019 13:03:28 -0700 (PDT) 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=@ti.com header.s=ti-com-17Q1 header.b=YdOYQ9Ms; 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=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2404672AbfJWM6V (ORCPT + 99 others); Wed, 23 Oct 2019 08:58:21 -0400 Received: from lelv0143.ext.ti.com ([198.47.23.248]:52238 "EHLO lelv0143.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2404529AbfJWM6U (ORCPT ); Wed, 23 Oct 2019 08:58:20 -0400 Received: from fllv0034.itg.ti.com ([10.64.40.246]) by lelv0143.ext.ti.com (8.15.2/8.15.2) with ESMTP id x9NCwIsw120358; Wed, 23 Oct 2019 07:58:18 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1571835498; bh=CeaOaqcl4Uu9ifeSuH7/fVJFutdpe4ac6xNqVwY2mwg=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=YdOYQ9Msnx4TVPdX5hygISVFBjjmv+hKzZ8ysFwHFROTcd1fZMiuc38Eb2IaqSNxb aMrSGCO/2Nwyb8ToOZUd5xp1kqrEmDDE8gjt4S80T/Jl64C9qHMCvBcOCpIVYSGkoT SlRGRPM3q68JerFua6GvFkrXZLMJTDi061C4vexM= Received: from DLEE113.ent.ti.com (dlee113.ent.ti.com [157.170.170.24]) by fllv0034.itg.ti.com (8.15.2/8.15.2) with ESMTPS id x9NCwI3W070113 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Wed, 23 Oct 2019 07:58:18 -0500 Received: from DLEE112.ent.ti.com (157.170.170.23) by DLEE113.ent.ti.com (157.170.170.24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1713.5; Wed, 23 Oct 2019 07:58:07 -0500 Received: from lelv0327.itg.ti.com (10.180.67.183) 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 via Frontend Transport; Wed, 23 Oct 2019 07:58:07 -0500 Received: from a0393678ub.india.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 x9NCw5o8061147; Wed, 23 Oct 2019 07:58:15 -0500 From: Kishon Vijay Abraham I To: Rob Herring , Kishon Vijay Abraham I , Roger Quadros , Jyri Sarha CC: Anil Varughese , , Subject: [PATCH v2 04/14] phy: cadence: Sierra: Add support for SERDES_16G used in J721E SoC Date: Wed, 23 Oct 2019 18:27:25 +0530 Message-ID: <20191023125735.4713-5-kishon@ti.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20191023125735.4713-1-kishon@ti.com> References: <20191023125735.4713-1-kishon@ti.com> MIME-Version: 1.0 Content-Type: text/plain X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@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(+) 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); -- 2.17.1