From patchwork Tue Jun 5 06:16:26 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nishanth Menon X-Patchwork-Id: 10447695 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 50FA460467 for ; Tue, 5 Jun 2018 06:26:40 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 3D4D828C70 for ; Tue, 5 Jun 2018 06:26:40 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 2FC9628E22; Tue, 5 Jun 2018 06:26:40 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI autolearn=unavailable version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 95F8C28C70 for ; Tue, 5 Jun 2018 06:26:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-ID:Date:Subject:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=gC9KC06UYeKC+M23QbcQjBk7HrG+ncIRCdfbMnzO7hE=; b=fxIbht9xpYEjN4 P+9mPO2D8D7Vy3KybaERjgNc2ID+UfGnIO+RTRfe2XujheQx0Z2k3lfIK1Tj6Rut4g61BI7YgnVxH wdEu5HeomxjG6EP+7AHuaq/DzhdOi1M5vaBwll/q8vr1+6pOwCxabKZmthidThVRrJO5wVYj+FC1T 3vhyMFUK+8AdW3DQRk6H63Kz0qoN/aGcL9jjWqFsn150QZ/juHAUfRzMA1ayCVV+5DFYktazxM5Dh rOu6oaw5qCARnHfAObMUim6tteE9xtU894d0siUwyPDG1lcuLZwd2rcPcBb9MrpWs3WHgm799fvdL kK0jjOMOjCTPTqpjs4Tg==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1fQ5QH-0006gK-KY; Tue, 05 Jun 2018 06:26:25 +0000 Received: from lelnx193.ext.ti.com ([198.47.27.77]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1fQ5Gs-0007T9-6n for linux-arm-kernel@lists.infradead.org; Tue, 05 Jun 2018 06:16:47 +0000 Received: from dlelxv90.itg.ti.com ([172.17.2.17]) by lelnx193.ext.ti.com (8.15.1/8.15.1) with ESMTP id w556GT8A026975; 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=O8ZNcOMuOsPfeZITroPBICqQNP6wPrsEiJ0XOz3WzXw=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=aWWIJZhOlrD6rqp0CuAmLD2IVasnTJO9O0M7jF9/DPwhG8j7RJCiqJCKaEuiS1XNY 8Mqj8VWKf1PI+pAgSllm8YPcc7OyJuXsp8ZdxKXbV8ViJ+9dQ8AqlX5uYv7W//0imW v8n8FlWgLrilppta0GTI6lBvF+oOUwb5xZJvieLI= Received: from DFLE104.ent.ti.com (dfle104.ent.ti.com [10.64.6.25]) by dlelxv90.itg.ti.com (8.14.3/8.13.8) with ESMTP id w556GTla015149; Tue, 5 Jun 2018 01:16:29 -0500 Received: from DFLE106.ent.ti.com (10.64.6.27) by DFLE104.ent.ti.com (10.64.6.25) 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 dlep32.itg.ti.com (157.170.170.100) by DFLE106.ent.ti.com (10.64.6.27) 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 dlep32.itg.ti.com (8.14.3/8.13.8) with ESMTP id w556GTuM016948; Tue, 5 Jun 2018 01:16:29 -0500 From: Nishanth Menon To: Jassi Brar , Rob Herring Subject: [RFC PATCH 5/8] dt-bindings: mailbox: ti, message-manager: Add support for secure proxy threads Date: Tue, 5 Jun 2018 01:16:26 -0500 Message-ID: <20180605061629.4759-6-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 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20180604_231642_332333_07450F81 X-CRM114-Status: GOOD ( 17.49 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Nishanth Menon , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Tero Kristo , linux-arm-kernel@lists.infradead.org Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP Secure Proxy is another communication scheme in Texas Instrument's devices intended to provide an unique communication path from various processors in the System on Chip(SoC) to a central System Controller. Secure proxy is, in effect, an evolution of current generation Message Manager hardware block found in K2G devices. However the following changes have taken place: Secure Proxy instance exposes "threads" or "proxies" which is primary representation of "a" communication channel. Each thread is preconfigured by System controller configuration based on SoC usage requirements. Secure proxy by itself represents a single "queue" of communication but allows the proxies to be independently operated. Each Secure proxy thread can uniquely have their own error and threshold interrupts allowing for more fine control of IRQ handling. Provide an hardware description of the same for device tree representation. See AM65x Technical Reference Manual (SPRUID7, April 2018) for further details: http://www.ti.com/lit/pdf/spruid7 Signed-off-by: Nishanth Menon --- .../bindings/mailbox/ti,message-manager.txt | 58 +++++++++++++++++++--- 1 file changed, 50 insertions(+), 8 deletions(-) diff --git a/Documentation/devicetree/bindings/mailbox/ti,message-manager.txt b/Documentation/devicetree/bindings/mailbox/ti,message-manager.txt index ebf0e3710cee..de796e90cac6 100644 --- a/Documentation/devicetree/bindings/mailbox/ti,message-manager.txt +++ b/Documentation/devicetree/bindings/mailbox/ti,message-manager.txt @@ -7,22 +7,40 @@ manager is broken up into queues in different address regions that are called "proxies" - each instance is unidirectional and is instantiated at SoC integration level to indicate receive or transmit path. +This can also be used to describe Texas Instrument's Secure Proxy +controller that allows for individually configurable "threads" or +"proxies" which allow for independent communication scheme. + Message Manager Device Node: =========================== Required properties: -------------------- -- compatible: Shall be: "ti,k2g-message-manager" -- reg-names queue_proxy_region - Map the queue proxy region. - queue_state_debug_region - Map the queue state debug - region. +- compatible: Shall be one of: "ti,k2g-message-manager", + "ti,am654-secure-proxy" +- reg-names for ti,k2g-message-manager, the following shall exist: + queue_proxy_region - Map the queue proxy region. + queue_state_debug_region - Map the queue state + debug region. + for ti,am654-secure-proxy, the following shall exist: + target_data - Map the proxy data region + rt - Map the realtime status region + scfg - Map the configuration region - reg: Contains the register map per reg-names. -- #mbox-cells Shall be 2. Contains the queue ID and proxy ID in that - order referring to the transfer path. +- #mbox-cells for ti,k2g-message-manager, Shall be 2. Contains the + queue ID and proxy ID in the following order referring + to the transfer path: + queue_proxy_region - Map the queue proxy region. + queue_state_debug_region - Map the queue state + debug region. + for ti,am654-secure-proxy, Shall be 1 and shall refer + to the transfer path called thread. - interrupt-names: Contains interrupt names matching the rx transfer path for a given SoC. Receive interrupts shall be of the - format: "rx_". - For ti,k2g-message-manager, this shall contain: + format: + For ti,k2g-message-manager, this shall be: "rx_" + and shall contain: "rx_005", "rx_057" + for ti,am654-secure-proxy, this shall be: "rx_". - interrupts: Contains the interrupt information corresponding to interrupt-names property. @@ -48,3 +66,27 @@ Example(K2G): <&msgmgr 0 0>; [...] }; + +Example(AM654): +------------ + + 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 = ; + }; + + dmsc: dmsc { + [...] + mbox-names = "rx", "tx"; + # RX Thread ID is 11 + # TX Thread ID is 13 + mboxes= <&secure_proxy 11>, + <&secure_proxy 13>; + [...] + };