Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp317282yba; Sat, 20 Apr 2019 03:16:02 -0700 (PDT) X-Google-Smtp-Source: APXvYqylvmADy8NMAGkiKG74STlEVUpvIkbI4djn8erUGs26b3kxoXE6TYugxpnAh45oN1Y9bTCP X-Received: by 2002:aa7:8282:: with SMTP id s2mr8991928pfm.7.1555755362234; Sat, 20 Apr 2019 03:16:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1555755362; cv=none; d=google.com; s=arc-20160816; b=GTViMpbQrz5dMoRtIXI6GtvwPRrhdpSIGCLJ0Z4b+AnR4NN/ltiGMiWb86C1Op5FJ+ RE7UCu26hCzA1rHGZrSVDaDfPmF/bXsGoyTWRS8IFo2uwSBcmoogkxFtF28MCFWw1eMX KOqNuCBOFRvkKpQh+inPRv58BjAzc1GgAtQOvUODnAO/CmAe99BPzognjkv+oelnJYnZ gwCWi4974xIK+LXZegDaSKeBH5f/Qj+yVGy0WilPxrdd7BdeZ7FBvMYxk3bCqI8Ohojx +UnbQoBXRO43tJVxD80vyaZZa7/9OKKij9lXbuujs9R+2tsQdCGow0Vvl9g8neIlfZDo nq4g== 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=GW1qa/1WLC9MdJWYQFjcHqUMQSCV6xwauwmqw/zATTw=; b=QAVh4cDKuvU9uPMsUYGlsuVzKwoPS9G7vW+wSRu4M5mGtFSaKuqxONZQsJvRewh7io XQYvkdj/3He1HekNtGEq07MfYKfZBPgTtG4BmdoAmqyb/jhxtWBXkrNQydRCakkOESwE ZbvOamHaAwk9xiBAAfK5X48zTn6RF63+hZZTN2dy4sBS0m17zrNvWBrYCFYb1Ez6t1Q1 4+aJR1Jw+VagCzihnUrNJAJz32IDCI0eO9w55SZ4L7lvEypkD6xdEmkTA0f/1PROACBl p9tcM+YJ62FPqE5EkeCqHWk4iJ3p4en65Ea/6uzxEGJtdtSWph2JMkl//9CD9/fU5w5S c43A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=KR8CyvN5; 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 v24si7022306pgi.286.2019.04.20.03.15.47; Sat, 20 Apr 2019 03:16:02 -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=KR8CyvN5; 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 S1728085AbfDTKLQ (ORCPT + 99 others); Sat, 20 Apr 2019 06:11:16 -0400 Received: from lelv0142.ext.ti.com ([198.47.23.249]:48814 "EHLO lelv0142.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727922AbfDTKK6 (ORCPT ); Sat, 20 Apr 2019 06:10:58 -0400 Received: from fllv0034.itg.ti.com ([10.64.40.246]) by lelv0142.ext.ti.com (8.15.2/8.15.2) with ESMTP id x3KAAew1032392; Sat, 20 Apr 2019 05:10:40 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1555755040; bh=GW1qa/1WLC9MdJWYQFjcHqUMQSCV6xwauwmqw/zATTw=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=KR8CyvN5UJNls0DV90DrLZankycdPpVtugd0mmJSshhQ+KcQd4Boo3BTXaVT6ItVf GZfH8V+4qX27y3Crfu4KyiYASs53SOjgDebg9GUrI3SHe7EiyZM/237Y/0r90PyqoT v4XVvcST0nJaiJPn5Cg7c0fzQi3nzwpMj63q+gV0= 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 x3KAAeYo028444 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Sat, 20 Apr 2019 05:10:40 -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; Sat, 20 Apr 2019 05:10:40 -0500 Received: from lelv0326.itg.ti.com (10.180.67.84) 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; Sat, 20 Apr 2019 05:10:40 -0500 Received: from uda0131933.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 x3KAAHZt070234; Sat, 20 Apr 2019 05:10:36 -0500 From: Lokesh Vutla To: Marc Zyngier , Santosh Shilimkar , Rob Herring , Nishanth Menon , , CC: Linux ARM Mailing List , , Tero Kristo , Sekhar Nori , Tony Lindgren , , Peter Ujfalusi , Grygorii Strashko , Lokesh Vutla , Device Tree Mailing List , Rob Herring Subject: [PATCH v7 04/14] firmware: ti_sci: Add RM mapping table for am654 Date: Sat, 20 Apr 2019 15:39:40 +0530 Message-ID: <20190420100950.7997-5-lokeshvutla@ti.com> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20190420100950.7997-1-lokeshvutla@ti.com> References: <20190420100950.7997-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 Acked-by: Tony Lindgren Signed-off-by: Peter Ujfalusi Signed-off-by: Lokesh Vutla --- Changes since v6: - None .../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