Received: by 2002:ac0:bc90:0:0:0:0:0 with SMTP id a16csp39006img; Wed, 27 Mar 2019 16:24:08 -0700 (PDT) X-Google-Smtp-Source: APXvYqzihOCr1JsEl7N4GVw1LLJSEz7ya66jGDDuzWdPFwnxb8XsJk3Ge1BuXtpv2AVfCEAft02w X-Received: by 2002:a63:9dc4:: with SMTP id i187mr28616246pgd.259.1553729048235; Wed, 27 Mar 2019 16:24:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1553729048; cv=none; d=google.com; s=arc-20160816; b=EBTgQYcYlp17XQBOJtKMv6QxRfs/uyGo/2MsOFrhoh5IJnX7qclVqIlRfvhd+TQm3Q 4im+Iqv1GQ+RYWfAxoem8H+6RbTqYLnz+XDZPcac0zEvgeHr8UwuYUUma+/YEM8UD2LA TQ8UtrmZk+dBeoPzGO2jdJEhbhKx8Miy7V8FNjjHYdeiDAs4LU/uIBtSOADcYBDQLisb YK2jWpF1b8B434ONJm5Q1ORn19Peu7iMf0ehylebmcs2u+NNp1gh5Ha+8ZcE8YLHZsIC oA9SZtN/a+dcm/qwKTJ20qFaXzmLJN5Kn6JhAY7a0e9xsipI6chYljgaWHWVpgjPHaFU ojEQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=X9izbOMUwCRZa6WzDZaRDFv5zdrlITT7TLbKNQaKL5w=; b=byal4zsGqLSUDLuqCBIEXJlzFcNfXIFWWh2f1e+bRoq98zyXO2QqDP6J3AKVzAt9kz UEsOQdZCaG8TbbPsaRvINn98Bncambn3fSkBzKMp9ZnWXre8WrG1JRyCypWdB8ayyHoS 7ELnOPt9u2nbXc+wiMnQBqCTwyYT69lQC1PDaOEN1RQdYw+vgJ0bSD2T6PVqBs1Xqexc SZJOHLq6mPR1/BKK1bzP1fQVeLKF4+f7EjY7Knf9DWUU5E5SdzJgNRxuanpxBdX/z9c2 QerBIYJoy8a1BQ9QQaZ+p09sPj7loF6fywM3VrSryemQQRIMsSuDokYJyfnDO/CDrfh1 aICQ== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id y2si13367328pgl.527.2019.03.27.16.23.52; Wed, 27 Mar 2019 16:24:08 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728859AbfC0XXE (ORCPT + 99 others); Wed, 27 Mar 2019 19:23:04 -0400 Received: from mail-ot1-f67.google.com ([209.85.210.67]:36119 "EHLO mail-ot1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726275AbfC0XXE (ORCPT ); Wed, 27 Mar 2019 19:23:04 -0400 Received: by mail-ot1-f67.google.com with SMTP id o74so16605080ota.3; Wed, 27 Mar 2019 16:23:03 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=X9izbOMUwCRZa6WzDZaRDFv5zdrlITT7TLbKNQaKL5w=; b=Px6d8zhP0LerNAB8wREjGV3R3XdyLUzA5EHzTSnVLVGej2nfeQtnSY8eLG1tXkwqQP C6zpx0j13NeWLawuD88/Hq1336Fq/k+7XZxONZiP1Bd0wV1awxK02zDW/jX6GElpyW6b Imqwp/wv6f8I3L+JdTBDAcmMbLqvvOslqCXdzUojGo+4mNPRextXvUgMVOkdiXzDHsdB bFzvZJSUaLqBjYQm+jSNQEPuCwCPc3KepTugOhLIYwTJ6+x2Y1LQC4ecL4SIC9XUDnYe bNQecKTt4KblTLG3DwwnBlXYpFTzrSC7PGnVBYHldNl7Fx8xUJNnqdJHL33uodRRtsg3 jucA== X-Gm-Message-State: APjAAAUycYkVRpcsIPSHSXjSBC8He0/9grtUIVZLnKHLb3ITfTqjI/B0 QQ8rXRMHGI2BYU/TdusFUw== X-Received: by 2002:a05:6830:1248:: with SMTP id s8mr27615188otp.234.1553728983265; Wed, 27 Mar 2019 16:23:03 -0700 (PDT) Received: from localhost (24-155-109-49.dyn.grandenetworks.net. [24.155.109.49]) by smtp.gmail.com with ESMTPSA id x89sm8824006ota.30.2019.03.27.16.23.01 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 27 Mar 2019 16:23:01 -0700 (PDT) Date: Wed, 27 Mar 2019 18:23:01 -0500 From: Rob Herring To: Fabien Dessenne Cc: Mark Rutland , Maxime Coquelin , Alexandre Torgue , Ohad Ben-Cohen , Bjorn Andersson , devicetree@vger.kernel.org, linux-stm32@st-md-mailman.stormreply.com, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-remoteproc@vger.kernel.org, Loic Pallardy , Arnaud Pouliquen , Ludovic Barre , Benjamin Gaignard Subject: Re: [PATCH 2/8] dt-bindings: remoteproc: add bindings for stm32 remote processor driver Message-ID: <20190327232301.GA2172@bogus> References: <1551795849-13672-1-git-send-email-fabien.dessenne@st.com> <1551795849-13672-3-git-send-email-fabien.dessenne@st.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1551795849-13672-3-git-send-email-fabien.dessenne@st.com> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Mar 05, 2019 at 03:24:03PM +0100, Fabien Dessenne wrote: > Add the device tree bindings document for the stm32 remoteproc devices. > > Signed-off-by: Fabien Dessenne > --- > .../devicetree/bindings/remoteproc/stm32-rproc.txt | 67 ++++++++++++++++++++++ > 1 file changed, 67 insertions(+) > create mode 100644 Documentation/devicetree/bindings/remoteproc/stm32-rproc.txt > > diff --git a/Documentation/devicetree/bindings/remoteproc/stm32-rproc.txt b/Documentation/devicetree/bindings/remoteproc/stm32-rproc.txt > new file mode 100644 > index 0000000..cc90c88 > --- /dev/null > +++ b/Documentation/devicetree/bindings/remoteproc/stm32-rproc.txt > @@ -0,0 +1,67 @@ > +STMicroelectronics STM32 Remoteproc > +----------------------------------- > +This document defines the binding for the remoteproc component that loads and > +boots firmwares on the ST32MP family chipset. > + > +Required properties: > +- compatible: Must be "st,stm32mp1-rproc" 'rproc' is what this is called in the h/w manual? > +- reg: Address ranges of the remote processor dedicated memories. > + The parent node should provide an appropriate ranges property > + for properly translating these into bus addresses. > +- resets: Reference to a reset controller asserting the remote processor. > +- reset-names: Must be "mcu_rst" -names is kind of pointless when there is only 1 entry. > +- st,syscfg-holdboot: Reference to the system configuration which holds the > + remote processor reset hold boot > + 1st cell: phandle of syscon block > + 2nd cell: register offset containing the hold boot setting > + 3rd cell: register bitmask for the hold boot field > +- st,syscfg-tz: Reference to the system configuration which holds the RCC trust > + zone mode > + 1st cell: phandle to syscon block > + 2nd cell: register offset containing the RCC trust zone mode setting > + 3rd cell: register bitmask for the RCC trust zone mode bit > + > +Optional properties: > +- interrupt-parent: phandle to the interrupt controller node. This is implied. > +- interrupts: Should contain the watchdog interrupt > +- interrupt-names: Must be "wdg" -names is kind of pointless when there is only 1 entry. > +- mboxes: List of phandle and mailbox channel specifiers: How would one talk to the processor if this is optional? > + - a channel (a) used to communicate through virtqueues with the > + remote proc. > + Bi-directional channel: > + - from local to remote = send message > + - from remote to local = send message ack > + - a channel (b) working the opposite direction of channel (a) > + - a channel (c) used by the local proc to notify the remote proc > + that it is about to be shut down. > + Mono-directional channel: Unidirectional > + - from local to remote, where ACK from the remote means > + that it is ready for shutdown > +- mbox-names: This property is required if the mboxes property is used. > + - must be "vq0" for channel (a) > + - must be "vq1" for channel (b) > + - must be "shutdown" for channel (c) > +- memory-region: list of phandles to the reserved memory regions associated with > + the remoteproc device > + (see ../reserved-memory/reserved-memory.txt) How many? > +- st,syscfg-pdds: Reference to the system configuration which holds the remote > + processor deep sleep setting > + 1st cell: phandle to syscon block > + 2nd cell: register offset containing the deep sleep setting > + 3rd cell: register bitmask for the deep sleep bit > +- auto_boot: If defined, when remoteproc is probed, it looks for a default > + firmware and if it finds some, it loads the firmware and starts > + the remote processor. How do you know what is and isn't default firmware? Seems like this could be accomplished using the standard 'firmware-name' to specify what firmware to load and boot. > +- recovery: If defined, remoteproc enables the crash recovery process. Doesn't seem like a static DT property. This is a feature to enable or something you set on boot to recover? > + > +Example: > + m4_rproc: m4@0 { > + compatible = "st,stm32mp1-rproc"; > + reg = <0x00000000 0x10000>, > + <0x10000000 0x40000>, > + <0x30000000 0x40000>; > + resets = <&rcc MCU_R>; > + reset-names = "mcu_rst"; > + st,syscfg-holdboot = <&rcc 0x10C 0x1>; > + st,syscfg-tz = <&rcc 0x000 0x1>; > + }; > -- > 2.7.4 >