From patchwork Wed Oct 23 12:57:25 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: 177277 Delivered-To: patch@linaro.org Received: by 2002:a92:409a:0:0:0:0:0 with SMTP id d26csp687926ill; Wed, 23 Oct 2019 05:58:24 -0700 (PDT) X-Google-Smtp-Source: APXvYqz2BNKYCMXyJD1SM+eo3cZLl6lD1G9ulP7eqjkJNQac+dsNfzLc1pTEvTN13gESAw78vrIx X-Received: by 2002:a17:906:5c0e:: with SMTP id e14mr3604263ejq.200.1571835504336; Wed, 23 Oct 2019 05:58:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1571835504; cv=none; d=google.com; s=arc-20160816; b=jdGV/bcVOHFOr5lctpPJQUhCiFaLvwPQ8qUK5tM+oE6ICabfe696keRQuVrN6iVezA LFCoZHrJIFVcRkiDzUAWQDRD3AOfK8HmyGYs26HNXXXhLmI3CHXidQNwmZ8v1E/mehKz NFpKIZ681SeJSGVSjDIW/kIClHAqu48XMUIprINW2hJrlyTje4HYqNesOu8G+zpPDdR+ RMzPyg114plF1FxbVW0Z2W67A9PHF1nnnblVsIRl9cGizkv9FGvRQG5kGR7TebK2AV4n Q2PfYC3esfJvNw3Be9Ix+I7E62fgc8lTidlkylfheX7zUCxtAqJy7i5IepTPYjQJLctg HXjA== 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 c57si2982596edc.386.2019.10.23.05.58.24; Wed, 23 Oct 2019 05:58:24 -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 S2405368AbfJWM6W (ORCPT + 26 others); Wed, 23 Oct 2019 08:58:22 -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 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(+) -- 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);