From patchwork Thu Nov 28 10:46:38 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: 180392 Delivered-To: patch@linaro.org Received: by 2002:a92:38d5:0:0:0:0:0 with SMTP id g82csp7346585ilf; Thu, 28 Nov 2019 02:47:57 -0800 (PST) X-Google-Smtp-Source: APXvYqyxZy2/vtDJlw6amcMdFaRGTZQSeKrXXILk96KS5LbxR8g54hEz9EMd/5imfAB+2JX+H6ZI X-Received: by 2002:aa7:da0e:: with SMTP id r14mr37590518eds.49.1574938077422; Thu, 28 Nov 2019 02:47:57 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1574938077; cv=none; d=google.com; s=arc-20160816; b=opq+hqpSFSxykNIHie0YzL4iRbBvfdSXAAaPYPheiHh6xP2qSVyoKc9kd7ktJGieJh Qf2YRbNG13xShmeQuDgRpqI3bqnSAuWyydoU6ZEOt9JfBz2JoRKx+Ozr1DYVHhOYG1cI 2i87ZLxJRo60POBkczLoXddoEyWhsK9MhmVhVbS+zta0nutc34YrW3YNVtxB2m0b5WNI lO7HuEOcQPrO4w8Abm0InvSkYdBXq1hLpW2gMr2KYa05YzanoWf7YDxkKvJzbMudG75Z 5QK/HjnVktTQQ65kAYBYtyhm4XxHTuuM0hWxAiAbZcXsVItGI4TwN8pNZuYG1EedRyO0 w79w== 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=NF1/2/7wKVh0g+e5atXSoHz44K2jx22ZgWTFWixP4PCr5yM4wWRHUE6nJG68sPowW+ 7cJG+stZxB72E+M7ysYp36JyMLanxkgVPVloxSqKOa/i8IBU0MQlOO3c6mIY+hDwqjYY dbLi7kmgBFv7OcBevr6dsfMfS5u6HYzoP0NNbTenl4F2fU6d3B7JJYgU3DzZC0qbuQIw /Yxy38KqL7iIYH+WN1qiBhXo7rBa3s392+8jzntW1Rn3JssxOrPqGyk+fZBMoS6ia+WS xXX4tz3KAfe1jWTdLvG2iKbhOsfjSGeP42XwDxi8QrJkygJaArMNz0xJz3fybWLeknNp r7tw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b="bP5Ky/rG"; 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 k20si10800630ejj.21.2019.11.28.02.47.57; Thu, 28 Nov 2019 02:47:57 -0800 (PST) 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="bP5Ky/rG"; 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 S1727111AbfK1Kry (ORCPT + 26 others); Thu, 28 Nov 2019 05:47:54 -0500 Received: from fllv0016.ext.ti.com ([198.47.19.142]:58034 "EHLO fllv0016.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727079AbfK1Krw (ORCPT ); Thu, 28 Nov 2019 05:47:52 -0500 Received: from lelv0266.itg.ti.com ([10.180.67.225]) by fllv0016.ext.ti.com (8.15.2/8.15.2) with ESMTP id xASAll4A096685; Thu, 28 Nov 2019 04:47:47 -0600 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1574938067; bh=agcoWtKSTenRqtUlTyzEyGcBRm6Q0+Ai3WNO3BmnFjE=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=bP5Ky/rGWNRIJXiEqUEJ3ULSyhXE+Rtzp8Zic6HwXGobf24j5w9oaqrGKcqZ3L/8y Tj2pAvhUnCDG+LRGvFaNIvTBWip7QGaV3oLNydvX6bJdm6YURNewSW/8KylHoPrslk Gdd9nJHaazzctcWjYQhH6H1rD18OSwoM1Nb4gJPo= Received: from DFLE112.ent.ti.com (dfle112.ent.ti.com [10.64.6.33]) by lelv0266.itg.ti.com (8.15.2/8.15.2) with ESMTPS id xASAllbp126409 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Thu, 28 Nov 2019 04:47:47 -0600 Received: from DFLE100.ent.ti.com (10.64.6.21) by DFLE112.ent.ti.com (10.64.6.33) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1847.3; Thu, 28 Nov 2019 04:47:47 -0600 Received: from fllv0040.itg.ti.com (10.64.41.20) by DFLE100.ent.ti.com (10.64.6.21) 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; Thu, 28 Nov 2019 04:47:47 -0600 Received: from a0393678ub.india.ti.com (ileax41-snat.itg.ti.com [10.172.224.153]) by fllv0040.itg.ti.com (8.15.2/8.15.2) with ESMTP id xASAlX41098163; Thu, 28 Nov 2019 04:47:44 -0600 From: Kishon Vijay Abraham I To: Kishon Vijay Abraham I , Rob Herring , Anil Varughese , Roger Quadros , Jyri Sarha CC: , Subject: [PATCH v3 04/14] phy: cadence: Sierra: Add support for SERDES_16G used in J721E SoC Date: Thu, 28 Nov 2019 16:16:38 +0530 Message-ID: <20191128104648.21894-5-kishon@ti.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20191128104648.21894-1-kishon@ti.com> References: <20191128104648.21894-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 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);