Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp4489039yba; Tue, 9 Apr 2019 21:17:48 -0700 (PDT) X-Google-Smtp-Source: APXvYqx7U3eJMEmcgnZXH/wSi1bHqvlhxmVuahgYSyNzepn3gOWjB3hH6J5iUoy33LW3bA36BCMz X-Received: by 2002:a62:565c:: with SMTP id k89mr40439201pfb.175.1554869868803; Tue, 09 Apr 2019 21:17:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1554869868; cv=none; d=google.com; s=arc-20160816; b=Xs1qqCwdVamB0ULCBOQqFpgN3FC/c7x6+3PWpqzmZfX4bLYG6jc1E9evMGrzbrNJ9p PalcrpBEL2bjkxfOJkLVju6YNzNwysqYpMSWfGtTL/k9LlKHKS9wF+T+l/flsIL9mZhR UVCP0WYhY6jJigwrAPPu8qT01yEn31NDTaE/1JuOe/V0vfP7/5ZOz/h+hBE0eANS01e7 r5xlAxmRCMyF7qku5RyGjH50fKYD5+gBBd8Tj2SQ439Bn+vbpLIrzpVxL/dHFo6usz4P hKcrbsAbOtxtt1PL7Vq4CrfEnvsGdwBfbopTvhN9YrzSrIymcBC0DFOhJMJRNxCb+ump auuw== 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=6PJWwwKffTUvLjXaeZTtyflZR7c1ERTeK7dEksNPOQw=; b=sVgQc+qsgdcT7+Q4VgkNiUAWx/rjAqLBgA2EkWOSnKeTf/4vpCKiz4CqvdkQIpbtrh gSUbBEJdvQU1LdXgi+XQ5H+pn/x1PpcT52MVyeYdgvGFsE90DDxQixcUeIkTgNZg89ny ixSIh9ycE6QR/MWRGa/mdZDWx5PgdvEkctNai7er/CQ46Z2qWJGhrEnodpYiKU3soOMW ALPKkAwp7+L4gVQ+TxUs48sksvJzRdTKN/g2yi6QzvUsZInspK5oI3wKmb0fioHBdSXT 2n7V3ocaGRHtjb4UzW+pyDmFqokV7j+hlHcL0d3kuGmgOu5slluY6uZJ+UCV4BeQlTKu zdGQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=QrhnbHy4; 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 144si30612593pgc.533.2019.04.09.21.17.33; Tue, 09 Apr 2019 21:17:48 -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=QrhnbHy4; 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 S1727381AbfDJEO6 (ORCPT + 99 others); Wed, 10 Apr 2019 00:14:58 -0400 Received: from fllv0015.ext.ti.com ([198.47.19.141]:34342 "EHLO fllv0015.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725999AbfDJEO6 (ORCPT ); Wed, 10 Apr 2019 00:14:58 -0400 Received: from lelv0265.itg.ti.com ([10.180.67.224]) by fllv0015.ext.ti.com (8.15.2/8.15.2) with ESMTP id x3A4Ef8J127738; Tue, 9 Apr 2019 23:14:41 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1554869681; bh=6PJWwwKffTUvLjXaeZTtyflZR7c1ERTeK7dEksNPOQw=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=QrhnbHy4srTnAFeZrrpx4UdY2tv9K2OZRR7QTNR321d/dlTsoiduKelsKzH6YQ7Y3 JBe+T7KALXOll3KNBfTASs0IIp4sjY96uQo50WwpELERXtPjutU3ax7xKHOR5kOqOv 7TQrezRrD3A+qv4Wxkm+VSPCPE5bWCjyjrneX6Ts= Received: from DLEE113.ent.ti.com (dlee113.ent.ti.com [157.170.170.24]) by lelv0265.itg.ti.com (8.15.2/8.15.2) with ESMTPS id x3A4Efjp048542 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Tue, 9 Apr 2019 23:14:41 -0500 Received: from DLEE114.ent.ti.com (157.170.170.25) 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; Tue, 9 Apr 2019 23:14:40 -0500 Received: from lelv0327.itg.ti.com (10.180.67.183) by DLEE114.ent.ti.com (157.170.170.25) 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; Tue, 9 Apr 2019 23:14:40 -0500 Received: from uda0131933.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 x3A4EKZP029255; Tue, 9 Apr 2019 23:14:37 -0500 From: Lokesh Vutla To: Marc Zyngier , Tony Lindgren , Nishanth Menon , Santosh Shilimkar , Rob Herring , CC: Linux ARM Mailing List , , Device Tree Mailing List , Sekhar Nori , Tero Kristo , Peter Ujfalusi , Grygorii Strashko , Lokesh Vutla Subject: [PATCH v6 04/12] firmware: ti_sci: Add RM mapping table for am654 Date: Wed, 10 Apr 2019 09:43:50 +0530 Message-ID: <20190410041358.16809-5-lokeshvutla@ti.com> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20190410041358.16809-1-lokeshvutla@ti.com> References: <20190410041358.16809-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 --- Changes since v4: - None .../bindings/arm/keystone/ti,sci.txt | 3 ++- .../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 d303f5a14da9..88e461498def 100644 --- a/drivers/firmware/ti_sci.c +++ b/drivers/firmware/ti_sci.c @@ -2297,10 +2297,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.21.0