Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp6999833imu; Thu, 27 Dec 2018 10:15:56 -0800 (PST) X-Google-Smtp-Source: ALg8bN4osibxaLMzcBR2Um6Pp4PHsPzz9XeVXwBpQ4tnpbfvDok8NksEu2qXWNU27Qc5k17vPukx X-Received: by 2002:a17:902:820d:: with SMTP id x13mr25316415pln.229.1545934556069; Thu, 27 Dec 2018 10:15:56 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1545934556; cv=none; d=google.com; s=arc-20160816; b=RmoKqUkJzkTi9k5sEmdmfrQILHOiayglobvTxKC/rw8oOGRW2FewhdSs2At2mzVTaf NBsBJya562RU7P62en/vDMbQieF0LEZbhihM8cPb4UTiIy3/4B+DlP8b33JrPnn0+7Ec vtOlGDIUk8qtSPIgWpLp3Nzf2tZffJffysvu+JpKnOgf1t7tRE2CVTsbjRmkOSLX2WzU C/SBxcETWWrUnlU3UlCkXGOABW26aBvAU7Q8UlF8hvtFGnjmgG9i++xMpv8TfZgpfP2G woKbGMkuwskt6pSOMOPnFMtIRkqTDW/1r4/kegERFsSk7ftSBtO+duQmoTVPARUe381p 8Fow== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=JtLuv5r/WkYlBZXMpTRzqAq+gi7BysBSUIUw78LzkRE=; b=R7KWbjqg71FwZGDMqwDRP80MXdlV99nysVdaINTMmJ4Tn5+yUInw73/X83CRBlinG4 LaLRVbwACnbnXNlMiI+ebrDq0iDxHjDiGwnrtFkGbbQyMFyZJobHEMRVzQhxHc2o4uJ6 pBlnzLAVEMyCM+SziITnAez2SKPCV7cmk1N5u0QBzvbMWuLEPtyHLWwBCBVstBuNLMaU MvBOngznQXHE2PCbzDMDzDJ6ue/Ln1ZNhSs9BmM4JTTfrQgW8997aGfMhRbf6+VyVWsH yD+NxJNHK+gAAO1b1RZFtcBv7E+Evzn4wHOWnFEETFRvFpdNCa9fWnuCNnMuM3F88rY0 RGFw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=teKjecCW; 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 x23si35240477pgk.272.2018.12.27.10.15.40; Thu, 27 Dec 2018 10:15:56 -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=teKjecCW; 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 S1729685AbeL0GOE (ORCPT + 99 others); Thu, 27 Dec 2018 01:14:04 -0500 Received: from lelv0143.ext.ti.com ([198.47.23.248]:50322 "EHLO lelv0143.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728837AbeL0GOE (ORCPT ); Thu, 27 Dec 2018 01:14:04 -0500 Received: from lelv0266.itg.ti.com ([10.180.67.225]) by lelv0143.ext.ti.com (8.15.2/8.15.2) with ESMTP id wBR6Dh4q027065; Thu, 27 Dec 2018 00:13:43 -0600 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1545891223; bh=JtLuv5r/WkYlBZXMpTRzqAq+gi7BysBSUIUw78LzkRE=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=teKjecCWzvbz5gL0m4TJxofjqMObFyCZ4MJfeXJT4spUtEm5A9g7nruuxUUxNHv3s la/Zu3z43k0zFZvU23wgyBmHdpRrcWcTjWamdKSzH55/ajMQY1bfFKZAgU9OW5VlXD rYcuJRBM/o7Nx4LfVcctUwJU0eoRVxdAYEpyogAk= Received: from DLEE107.ent.ti.com (dlee107.ent.ti.com [157.170.170.37]) by lelv0266.itg.ti.com (8.15.2/8.15.2) with ESMTPS id wBR6DhFR108472 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Thu, 27 Dec 2018 00:13:43 -0600 Received: from DLEE114.ent.ti.com (157.170.170.25) by DLEE107.ent.ti.com (157.170.170.37) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1591.10; Thu, 27 Dec 2018 00:13:42 -0600 Received: from dflp32.itg.ti.com (10.64.6.15) by DLEE114.ent.ti.com (157.170.170.25) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.1.1591.10 via Frontend Transport; Thu, 27 Dec 2018 00:13:42 -0600 Received: from uda0131933.india.ti.com (ileax41-snat.itg.ti.com [10.172.224.153]) by dflp32.itg.ti.com (8.14.3/8.13.8) with ESMTP id wBR6DRrA026064; Thu, 27 Dec 2018 00:13:39 -0600 From: Lokesh Vutla To: , Nishanth Menon , Santosh Shilimkar , Rob Herring , , CC: Linux ARM Mailing List , , Tero Kristo , Sekhar Nori , Device Tree Mailing List , Peter Ujfalusi , Lokesh Vutla Subject: [PATCH v4 04/13] firmware: ti_sci: Add RM mapping table for am654 Date: Thu, 27 Dec 2018 11:43:04 +0530 Message-ID: <20181227061313.5451-4-lokeshvutla@ti.com> X-Mailer: git-send-email 2.19.2 In-Reply-To: <20181227061313.5451-1-lokeshvutla@ti.com> References: <20181227060829.5080-1-lokeshvutla@ti.com> <20181227061313.5451-1-lokeshvutla@ti.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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 From: Peter Ujfalusi Add the resource mapping table for AM654 SoC as defined in http://downloads.ti.com/tisci/esd/latest/5_soc_doc/am6x/resasg_types.html Introduce a new compatible for AM654 "ti,am654-sci" for using this resource map table. Reviewed-by: Rob Herring Signed-off-by: Peter Ujfalusi Signed-off-by: Lokesh Vutla --- .../bindings/arm/keystone/ti,sci.txt | 3 ++- drivers/firmware/ti_sci.c | 23 +++++++++++++++++++ 2 files changed, 25 insertions(+), 1 deletion(-) diff --git a/Documentation/devicetree/bindings/arm/keystone/ti,sci.txt b/Documentation/devicetree/bindings/arm/keystone/ti,sci.txt index b56a02c10ae6..6f0cd31c1520 100644 --- a/Documentation/devicetree/bindings/arm/keystone/ti,sci.txt +++ b/Documentation/devicetree/bindings/arm/keystone/ti,sci.txt @@ -24,7 +24,8 @@ relationship between the TI-SCI parent node to the child node. Required properties: ------------------- -- compatible: should be "ti,k2g-sci" +- compatible: should be "ti,k2g-sci" for TI 66AK2G SoC + should be "ti,am654-sci" for for TI AM654 SoC - mbox-names: "rx" - Mailbox corresponding to receive path "tx" - Mailbox corresponding to transmit path diff --git a/drivers/firmware/ti_sci.c b/drivers/firmware/ti_sci.c index 987bfb29475c..c2f0815edab6 100644 --- a/drivers/firmware/ti_sci.c +++ b/drivers/firmware/ti_sci.c @@ -2500,10 +2500,33 @@ static const struct ti_sci_desc ti_sci_pmmc_k2g_desc = { /* Limited by MBOX_TX_QUEUE_LEN. K2G can handle upto 128 messages! */ .max_msgs = 20, .max_msg_size = 64, + .rm_type_map = NULL, +}; + +static struct ti_sci_rm_type_map ti_sci_am654_rm_type_map[] = { + {.dev_id = 56, .type = 0x00b}, /* GIC_IRQ */ + {.dev_id = 179, .type = 0x000}, /* MAIN_NAV_UDMASS_IA0 */ + {.dev_id = 187, .type = 0x009}, /* MAIN_NAV_RA */ + {.dev_id = 188, .type = 0x006}, /* MAIN_NAV_UDMAP */ + {.dev_id = 194, .type = 0x007}, /* MCU_NAV_UDMAP */ + {.dev_id = 195, .type = 0x00a}, /* MCU_NAV_RA */ + {.dev_id = 0, .type = 0x000}, /* end of table */ +}; + +/* Description for AM654 */ +static const struct ti_sci_desc ti_sci_pmmc_am654_desc = { + .default_host_id = 12, + /* Conservative duration */ + .max_rx_timeout_ms = 10000, + /* Limited by MBOX_TX_QUEUE_LEN. K2G can handle upto 128 messages! */ + .max_msgs = 20, + .max_msg_size = 60, + .rm_type_map = ti_sci_am654_rm_type_map, }; static const struct of_device_id ti_sci_of_match[] = { {.compatible = "ti,k2g-sci", .data = &ti_sci_pmmc_k2g_desc}, + {.compatible = "ti,am654-sci", .data = &ti_sci_pmmc_am654_desc}, { /* Sentinel */ }, }; MODULE_DEVICE_TABLE(of, ti_sci_of_match); -- 2.19.2