Received: by 2002:ac0:946b:0:0:0:0:0 with SMTP id j40csp3531378imj; Mon, 11 Feb 2019 23:44:35 -0800 (PST) X-Google-Smtp-Source: AHgI3IYZvvtZUU8IF1CfrMGQtbVl777wHL9SvOVJ/fAdLEqvzjs+Mz/dvTMmeOglbf7USscUkn5Z X-Received: by 2002:aa7:8a19:: with SMTP id m25mr2775317pfa.0.1549957475824; Mon, 11 Feb 2019 23:44:35 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1549957475; cv=none; d=google.com; s=arc-20160816; b=ZwTKuApTsz/kl/RA8aD0SJXOV5E1C2WMlSXCkemt9n/2ZrhB6GkudiM4wAe3Q4JgRM Tz/DFEK5X8pfIC1VTfe/KwEf/VWZeqzjZUZNQXdliNj+1qG47lXlRz1D6DV/MhNstEMb KPJlmQUYY+3Nnc0x/7H/XE/oy5xyubLxQPjbmtfmzb5EC1X9OLmPXodDDoJbpoYqbWL2 ZgeuRmustvYf7MJhFQsbFE1d1LzblDwg6mqwIwIKL7PDV290BIuoGHhz+95aI+zIwjub dhagBMECBV5ic3BeRP5bXAzn6CDU5jcVjU2m+1N+J0QS51k3vv73BYgEB+EWy/U0boLP owWQ== 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=85DXjumZHqi2YKZ92WB3RWNOC0XGAWoFKQVzoHUqjSw=; b=v6STTmesjOWSXRI55Wp1iKJFHi93kpoXdnsL2EHM3EJj7x1nS7FYW+tex1M88ssIqS 7MZEkRyxBw6+rt3+1uaD80MG4lGTXF1bmxUWekUsmPG7eRc8K0o0L5W/o5ej8izpipSO lW6UkU4a1H4JRdCRhiqO1Czzhk2UXOU/Y5mpQFI+IomWRT1kU893pjwgb7AbaI13lUM5 7Sf9/n5ARhwvDkfHx06sOkKG7ZXXd46WMaB0HTV3t7wV4LA3LolOvy00IVuInOwM/3Te D/aAOXpXGxHAvVGwYBhCAgF9Wrkhfcw0+jVhcIk5Hq3Awpw0VZGjmSSdFA13mojYmeHT bGQQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=FkZXS7ht; 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 k13si4605981pgo.502.2019.02.11.23.44.17; Mon, 11 Feb 2019 23:44:35 -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=FkZXS7ht; 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 S1728238AbfBLHnt (ORCPT + 99 others); Tue, 12 Feb 2019 02:43:49 -0500 Received: from fllv0016.ext.ti.com ([198.47.19.142]:40300 "EHLO fllv0016.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728095AbfBLHns (ORCPT ); Tue, 12 Feb 2019 02:43:48 -0500 Received: from fllv0034.itg.ti.com ([10.64.40.246]) by fllv0016.ext.ti.com (8.15.2/8.15.2) with ESMTP id x1C7hGKx005235; Tue, 12 Feb 2019 01:43:16 -0600 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1549957396; bh=85DXjumZHqi2YKZ92WB3RWNOC0XGAWoFKQVzoHUqjSw=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=FkZXS7htqu6CUCzNQS0neDbNZ9sXJFDlnRX+E8PW9xRAIyQAqfgWJwIttCJ5WKtQ8 G+9uhc5WqOgSg0TuJhFd6KuVB/XaCyMu6l2M5PmBbNvE+vbfE1gRNsHw697UtR4BgO qTS46hmLvSqRPAbGSBEAq/l5x+ksdo+ZEc0w+bqw= Received: from DLEE106.ent.ti.com (dlee106.ent.ti.com [157.170.170.36]) by fllv0034.itg.ti.com (8.15.2/8.15.2) with ESMTPS id x1C7hGaF079020 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Tue, 12 Feb 2019 01:43:16 -0600 Received: from DLEE107.ent.ti.com (157.170.170.37) by DLEE106.ent.ti.com (157.170.170.36) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1591.10; Tue, 12 Feb 2019 01:43:15 -0600 Received: from dlep32.itg.ti.com (157.170.170.100) by DLEE107.ent.ti.com (157.170.170.37) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.1.1591.10 via Frontend Transport; Tue, 12 Feb 2019 01:43:15 -0600 Received: from uda0131933.india.ti.com (ileax41-snat.itg.ti.com [10.172.224.153]) by dlep32.itg.ti.com (8.14.3/8.13.8) with ESMTP id x1C7gss0000385; Tue, 12 Feb 2019 01:43:12 -0600 From: Lokesh Vutla To: , Tony Lindgren , Nishanth Menon , Santosh Shilimkar , Rob Herring , , CC: Linux ARM Mailing List , , Device Tree Mailing List , Sekhar Nori , Tero Kristo , Peter Ujfalusi , Lokesh Vutla Subject: [PATCH v5 04/10] firmware: ti_sci: Add RM mapping table for am654 Date: Tue, 12 Feb 2019 13:12:31 +0530 Message-ID: <20190212074237.2875-5-lokeshvutla@ti.com> X-Mailer: git-send-email 2.19.2 In-Reply-To: <20190212074237.2875-1-lokeshvutla@ti.com> References: <20190212074237.2875-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 ++- 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 729fef77379e..7f6fed374973 100644 --- a/drivers/firmware/ti_sci.c +++ b/drivers/firmware/ti_sci.c @@ -2314,10 +2314,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