From patchwork Mon Dec 16 09:57:02 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: 181649 Delivered-To: patch@linaro.org Received: by 2002:a92:3001:0:0:0:0:0 with SMTP id x1csp4091251ile; Mon, 16 Dec 2019 01:56:16 -0800 (PST) X-Google-Smtp-Source: APXvYqx6OwtX8ID4/CfOhcQTxPlQfQ1ta3ZrKkudZt0llEMwHpiTURRxjEi1C0pxCrlKMiVNwWgv X-Received: by 2002:a05:6830:1e30:: with SMTP id t16mr31675528otr.220.1576490176312; Mon, 16 Dec 2019 01:56:16 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1576490176; cv=none; d=google.com; s=arc-20160816; b=Nf8VUoU67LV+sw0ETY48Mo9wW8+hdxNJeN3SlfR8xydBUY+sTuufc/3xHhFcRpzsis BVvZGfDjagke5YAFjbQ2JDXozJwqgK8DZJmNlChM/+VuZq/sMsWKQ8VYh5cp6aHPi5UK CcshNWfZFMxwP9vdDZGw+eP6zNd/CZ9hdVtwjwAsbg4ALa8C9TS14qPKHbchjdYmY0Np q0wk1JVgjgTEVWzo0GEjWihmSwvBgUEJyhMfI9jFjZbyCgOsMqbOuIeLElFwMEQSsW/z q6G8pYGsxAjzZ6d/GvYhAa5q3QgxtAzvD+vScsHifb16iVia5K+6LRYf3nAzws1tZrpr J4Rg== 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=agcoWtKSTenRqtUlTyzEyGcBRm6Q0+Ai3WNO3BmnFjE=; b=DEm0bV3ksNIGSvzBK4BzSlhiyUUrG/T3et3hEjXQ3IooeHgcsm1kGawPJ6KsNwwkXG 85lkhejHIETo5LfLvwLebw1BpoS9vEFH0drAae36+pAVusCGa1bKZ+8NsJXBwppkDb3r WLWOAW4CWFxY7kAomF0E5mJgU+OMrwjvRkNz5Jz4ZV49DGutc0Ac1nGu7nTLviRzaJuE P6J6uKoQxcwLUWd0ajJWRhYNDcju83vKZRxHMyIwcD9UT4RzA8bhNGGCSXgdHxQ/mCPG puEw58aN3wWCwUySus8Yhd9vny8k8DDFLJINqKQdlEXsFt7xz2jhqqpwX4og6H/K13wi oi5w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=Uof0ysU5; 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 5si10879687oih.274.2019.12.16.01.56.16; Mon, 16 Dec 2019 01:56:16 -0800 (PST) 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=Uof0ysU5; 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 S1727216AbfLPJ4O (ORCPT + 8 others); Mon, 16 Dec 2019 04:56:14 -0500 Received: from lelv0143.ext.ti.com ([198.47.23.248]:58770 "EHLO lelv0143.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727208AbfLPJ4N (ORCPT ); Mon, 16 Dec 2019 04:56:13 -0500 Received: from fllv0034.itg.ti.com ([10.64.40.246]) by lelv0143.ext.ti.com (8.15.2/8.15.2) with ESMTP id xBG9u9pX106061; Mon, 16 Dec 2019 03:56:09 -0600 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1576490169; bh=agcoWtKSTenRqtUlTyzEyGcBRm6Q0+Ai3WNO3BmnFjE=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=Uof0ysU5TPzwfKG40Uzfy3oOgkL88X8NpP/HLWEBW8eX5P6633G6i12APh6fQHAbd z8bBNFxt7voDHW3fQZ893V5LxSwYsnRtUzZ8iTJu9FHILnbXGBhjd4hUNrlIVdo7j3 FzgfYHEUMNEBDWOfX19YnikN12XYjkD8GoHPylEo= Received: from DLEE102.ent.ti.com (dlee102.ent.ti.com [157.170.170.32]) by fllv0034.itg.ti.com (8.15.2/8.15.2) with ESMTPS id xBG9u8Qt049177 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Mon, 16 Dec 2019 03:56:08 -0600 Received: from DLEE112.ent.ti.com (157.170.170.23) 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.1847.3; Mon, 16 Dec 2019 03:56:08 -0600 Received: from lelv0326.itg.ti.com (10.180.67.84) 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.1847.3 via Frontend Transport; Mon, 16 Dec 2019 03:56:08 -0600 Received: from a0393678ub.india.ti.com (ileax41-snat.itg.ti.com [10.172.224.153]) by lelv0326.itg.ti.com (8.15.2/8.15.2) with ESMTP id xBG9tsJN084408; Mon, 16 Dec 2019 03:56:06 -0600 From: Kishon Vijay Abraham I To: Rob Herring , Anil Varughese , Roger Quadros , Jyri Sarha CC: , Kishon Vijay Abraham I , , Subject: [PATCH v4 04/14] phy: cadence: Sierra: Add support for SERDES_16G used in J721E SoC Date: Mon, 16 Dec 2019 15:27:02 +0530 Message-ID: <20191216095712.13266-5-kishon@ti.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20191216095712.13266-1-kishon@ti.com> References: <20191216095712.13266-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 c60809f615af..d3b0dac2db77 100644 --- a/drivers/phy/cadence/phy-cadence-sierra.c +++ b/drivers/phy/cadence/phy-cadence-sierra.c @@ -553,11 +553,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);