From patchwork Tue Jun 5 06:16:25 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nishanth Menon X-Patchwork-Id: 137682 Delivered-To: patch@linaro.org Received: by 2002:a2e:970d:0:0:0:0:0 with SMTP id r13-v6csp563528lji; Mon, 4 Jun 2018 23:16:46 -0700 (PDT) X-Google-Smtp-Source: ADUXVKKtwwVwIJMKAAR7cEdvLXifvdg2ZJU6ms6ff95VOwCOEQ691BTZPbc5YA8HrMHlW6+iCIPn X-Received: by 2002:a17:902:5a3:: with SMTP id f32-v6mr21512874plf.109.1528179406012; Mon, 04 Jun 2018 23:16:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1528179406; cv=none; d=google.com; s=arc-20160816; b=fdfqJ1cgrHLe3QV/w5MmS2q531ijbF88m2qkper7RLtivvl125cUb+jR2DTzVaPQCr ++0wnai8cy3DsLFraVp8EALwvp+uo6Itzh/sG4nPioCn81l3QPjxKo2FAdr90i5lE+nC tqsrR8LJHTJFGJNu10jZO/fwcSOYIzXKS4KH3COQ5ULCW2a3Ro55G75dKJ+PYHVUdLMa 3T9GgI7MMFNi4QWew7mdhEc21qLgVEscxiuw+VdCpr2Kj9CnV1dJXPryv+YK2l99xZyK 3mjsJegV9fWEmbBnu7rEyObjF/6LE+0oyXmMV9ZOiWZ62Kwr1NBCNYvXvxAywFVzDV3H 9ItQ== 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 :arc-authentication-results; bh=5osKGCWp6G/pVyjkQ0+2uG1ZAK5idpInJX+I4C8kZ0k=; b=N745DcYtJmvKWleFDYtsX8hzmQsvWZCKIrTjM9oJO+N4F6N2qiK9dA7sPWbf6KFAM+ nZZkJfqpa7uP0PyUoHJQmlccNBcgO6owj9FAF3sbk22cRdezINN72my3uSsLha5ixaa7 wPsUrBFVPbtNaaaIdIkjpV1anAiMxqhrgF/cab0A+mIGu5ulynwaSRxNqh3Z4nz570/2 kgScKV3t2wZFAzJ48yHr78LTj/EoXykMqtU5uSnqrwX03jirVmx25fNDnndSCkj5H9oE j06LauPlKFYR5Es7t2AFLr70phdwALZe1JXqBhEGGaMjR64ThELgYcUqgBYcMLm63XFs fyWw== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@ti.com header.s=ti-com-17Q1 header.b=BRhO6Fuw; spf=pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org; dmarc=fail (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 a6-v6si23482824pgd.579.2018.06.04.23.16.45; Mon, 04 Jun 2018 23:16:46 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@ti.com header.s=ti-com-17Q1 header.b=BRhO6Fuw; spf=pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751661AbeFEGQo (ORCPT + 5 others); Tue, 5 Jun 2018 02:16:44 -0400 Received: from fllnx209.ext.ti.com ([198.47.19.16]:16028 "EHLO fllnx209.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751619AbeFEGQn (ORCPT ); Tue, 5 Jun 2018 02:16:43 -0400 Received: from dlelxv90.itg.ti.com ([172.17.2.17]) by fllnx209.ext.ti.com (8.15.1/8.15.1) with ESMTP id w556GTFV007608; Tue, 5 Jun 2018 01:16:29 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1528179389; bh=iyveKxVvXBMenMstTZ9trukpKnYCAeewyNiTK70+jcY=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=BRhO6FuwbFBVjNsg8Ddd2tsUL/it4IlbFTKbSXGb7pVEXWdyjzA2xWVlKCXY6CP7F pc5KWARg3Wwf/aW0i3Liya7orQjCxSavweU9gf5B+bdjzyxlxB9sjPLP089GtvU1lP KxK7ZlGEbpAO0JkJHAbErRZO8Pwi6etSr3+UVgQY= Received: from DFLE113.ent.ti.com (dfle113.ent.ti.com [10.64.6.34]) by dlelxv90.itg.ti.com (8.14.3/8.13.8) with ESMTP id w556GTIY015148; Tue, 5 Jun 2018 01:16:29 -0500 Received: from DFLE100.ent.ti.com (10.64.6.21) by DFLE113.ent.ti.com (10.64.6.34) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1466.3; Tue, 5 Jun 2018 01:16:29 -0500 Received: from dlep33.itg.ti.com (157.170.170.75) by DFLE100.ent.ti.com (10.64.6.21) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.1.1466.3 via Frontend Transport; Tue, 5 Jun 2018 01:16:29 -0500 Received: from localhost (ileax41-snat.itg.ti.com [10.172.224.153]) by dlep33.itg.ti.com (8.14.3/8.13.8) with ESMTP id w556GTk6005424; Tue, 5 Jun 2018 01:16:29 -0500 From: Nishanth Menon To: Jassi Brar , Rob Herring CC: , , , Nishanth Menon , Tero Kristo , Suman Anna Subject: [RFC PATCH 4/8] mailbox: ti-msgmgr: Move the memory region name to descriptor Date: Tue, 5 Jun 2018 01:16:25 -0500 Message-ID: <20180605061629.4759-5-nm@ti.com> X-Mailer: git-send-email 2.15.1 In-Reply-To: <20180605061629.4759-1-nm@ti.com> References: <20180605061629.4759-1-nm@ti.com> MIME-Version: 1.0 X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org For newer generation of the hardware, the naming of the region is decided at integration level and there could be additional regions as well. Hence move the region naming to be described from compatible descriptor. Signed-off-by: Nishanth Menon --- drivers/mailbox/ti-msgmgr.c | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) -- 2.15.1 -- To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/drivers/mailbox/ti-msgmgr.c b/drivers/mailbox/ti-msgmgr.c index 2952339a8446..a37d6a4b392f 100644 --- a/drivers/mailbox/ti-msgmgr.c +++ b/drivers/mailbox/ti-msgmgr.c @@ -48,6 +48,8 @@ struct ti_msgmgr_valid_queue_desc { * @tx_polled: Do I need to use polled mechanism for tx * @tx_poll_timeout_ms: Timeout in ms if polled * @valid_queues: List of Valid queues that the processor can access + * @data_region_name: Name of the proxy data region + * @status_region_name: Name of the proxy status region * @num_valid_queues: Number of valid queues * * This structure is used in of match data to describe how integration @@ -63,6 +65,8 @@ struct ti_msgmgr_desc { bool tx_polled; int tx_poll_timeout_ms; const struct ti_msgmgr_valid_queue_desc *valid_queues; + const char *data_region_name; + const char *status_region_name; int num_valid_queues; }; @@ -531,6 +535,8 @@ static const struct ti_msgmgr_desc k2g_desc = { .queue_count = 64, .max_message_size = 64, .max_messages = 128, + .data_region_name = "queue_proxy_region", + .status_region_name = "queue_state_debug_region", .data_first_reg = 16, .data_last_reg = 31, .status_cnt_mask = Q_STATE_ENTRY_COUNT_MASK, @@ -582,13 +588,13 @@ static int ti_msgmgr_probe(struct platform_device *pdev) inst->desc = desc; res = platform_get_resource_byname(pdev, IORESOURCE_MEM, - "queue_proxy_region"); + desc->data_region_name); inst->queue_proxy_region = devm_ioremap_resource(dev, res); if (IS_ERR(inst->queue_proxy_region)) return PTR_ERR(inst->queue_proxy_region); res = platform_get_resource_byname(pdev, IORESOURCE_MEM, - "queue_state_debug_region"); + desc->status_region_name); inst->queue_state_debug_region = devm_ioremap_resource(dev, res); if (IS_ERR(inst->queue_state_debug_region)) return PTR_ERR(inst->queue_state_debug_region); From patchwork Tue Jun 5 06:16:29 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nishanth Menon X-Patchwork-Id: 137683 Delivered-To: patch@linaro.org Received: by 2002:a2e:970d:0:0:0:0:0 with SMTP id r13-v6csp563551lji; Mon, 4 Jun 2018 23:16:47 -0700 (PDT) X-Google-Smtp-Source: ADUXVKJoMQXY9h02eYkkVBuXrxBNUw4v8PftcR3Qn9URo8zm+eZlIFd3XXtQXWXqAUjJh5ksSAmb X-Received: by 2002:a17:902:bd42:: with SMTP id b2-v6mr23937728plx.23.1528179406967; Mon, 04 Jun 2018 23:16:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1528179406; cv=none; d=google.com; s=arc-20160816; b=smatKtcczBMrTdDIwrIIjApqj9XqWwwYlR3qyLeSQ2ACEpJT8fGeVzgPvcurFGe2Mk WPdPsM6o4v+vOIOkduIy+bM/3YOrjYoso4bNRPqdE4u7aqAh2o8W8FPi4VavFf3+EcJU pbdIvQ7gPNyYxxXFpBxXspttzot+T6qq2ANeD/UbsqE3bKsBySqOrbVvHgqg7ZKaP87c 0nXai/xA74ZPh2ZSylwL51SQdM7SRimioKXsSDI6U6OlesCB5aB/HSdokvQGVaeu6S5R ZnFiayjcnGBlMw40Bbb9ZVLdA6vLLSOUyLJ2hrif+U0bHVngx3XHrksNm2IwejPW5/T1 W3BA== 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 :arc-authentication-results; bh=0mYo/sfoQk6sZBJqFi3bwn4RZRl8cjhC3Vk7NAZGQWs=; b=p4QMSeMIpHcoaaNfxPQ6h7N3V6B4IQmUrhQ7bxjqg7ZldcmUgLe0kYAajCs0a2CySK 04hGoDviG5kGmSUh4r07RHDxYlAAmsBuv7estdixZ7U+ke9V+rrEq3iYACXvPJoXEyXU B0osRxOTKty9AiUExgj3lejgIR1dwLhmFbHnm0dg30Js69Zwjx74x5lfzVhc5WE5tqfT dxG0qaUA3b9HlyjzR41kVtG033ScT5hgMccvfQEyS0gCdANTgNjhHU+r6675czHF+UHZ KPYFp9yZJHy3Z+utoezSQHj8ZSR9E7bXylGCRh2PN14SgOR6oB/ZwgxhVG0Ql08E4fkK 3QAg== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@ti.com header.s=ti-com-17Q1 header.b=OTzP6Ty1; spf=pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org; dmarc=fail (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 a6-v6si23482824pgd.579.2018.06.04.23.16.46; Mon, 04 Jun 2018 23:16:46 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@ti.com header.s=ti-com-17Q1 header.b=OTzP6Ty1; spf=pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751688AbeFEGQp (ORCPT + 5 others); Tue, 5 Jun 2018 02:16:45 -0400 Received: from lelnx194.ext.ti.com ([198.47.27.80]:37244 "EHLO lelnx194.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751638AbeFEGQo (ORCPT ); Tue, 5 Jun 2018 02:16:44 -0400 Received: from dflxv15.itg.ti.com ([128.247.5.124]) by lelnx194.ext.ti.com (8.15.1/8.15.1) with ESMTP id w556GURj001019; Tue, 5 Jun 2018 01:16:30 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1528179390; bh=fSWR0n64/rGsjo4dK7rEMMTDe2SSZc262zlDgK1L/uQ=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=OTzP6Ty1aZ7BjiZu8oec+kf4OSumB1wser9nmEGr5/ko2E+XJ6Q+vfcUKF47/J+lb aklghAImVQ7dMqccBSJQWPR/SWH/YpMmt7B2EyT65KJbKvE9MUZHX5JIG4MuLRHf7w n69ZbGuU4cUka3hWtd3t4XJI5iuwh97wv67nPb7s= Received: from DLEE105.ent.ti.com (dlee105.ent.ti.com [157.170.170.35]) by dflxv15.itg.ti.com (8.14.3/8.13.8) with ESMTP id w556GT1T000830; Tue, 5 Jun 2018 01:16:29 -0500 Received: from DLEE107.ent.ti.com (157.170.170.37) by DLEE105.ent.ti.com (157.170.170.35) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1466.3; Tue, 5 Jun 2018 01:16:29 -0500 Received: from dlep33.itg.ti.com (157.170.170.75) 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.1466.3 via Frontend Transport; Tue, 5 Jun 2018 01:16:29 -0500 Received: from localhost (ileax41-snat.itg.ti.com [10.172.224.153]) by dlep33.itg.ti.com (8.14.3/8.13.8) with ESMTP id w556GTsT005430; Tue, 5 Jun 2018 01:16:29 -0500 From: Nishanth Menon To: Jassi Brar , Rob Herring CC: , , , Nishanth Menon , Tero Kristo , Suman Anna Subject: [RFC PATCH 8/8] arm64: dts: ti: k3-am6: Add Secure Proxy instance Date: Tue, 5 Jun 2018 01:16:29 -0500 Message-ID: <20180605061629.4759-9-nm@ti.com> X-Mailer: git-send-email 2.15.1 In-Reply-To: <20180605061629.4759-1-nm@ti.com> References: <20180605061629.4759-1-nm@ti.com> MIME-Version: 1.0 X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org Add support for Secure Proxy instances in AM6 family of SoCs. Signed-off-by: Nishanth Menon --- arch/arm64/boot/dts/ti/k3-am6.dtsi | 11 +++++++++++ 1 file changed, 11 insertions(+) -- 2.15.1 -- To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/arch/arm64/boot/dts/ti/k3-am6.dtsi b/arch/arm64/boot/dts/ti/k3-am6.dtsi index cdfa12173aac..07e9cc05519c 100644 --- a/arch/arm64/boot/dts/ti/k3-am6.dtsi +++ b/arch/arm64/boot/dts/ti/k3-am6.dtsi @@ -86,6 +86,17 @@ }; }; + secure_proxy: secure_proxy@32c00000 { + compatible = "ti,am654-secure-proxy"; + #mbox-cells = <1>; + reg-names = "target_data", "rt", "scfg"; + reg = <0x0 0x32c00000 0x0 0x100000>, + <0x0 0x32400000 0x0 0x100000>, + <0x0 0x32800000 0x0 0x100000>; + interrupt-names = "rx_011"; + interrupts = ; + }; + wkup_uart0: serial@42300000 { compatible = "ti,am654-uart", "ti,omap4-uart", "ns16550a"; reg = <0x0 0x42300000 0x0 0x100>;