From patchwork Tue Apr 16 14:58:11 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fabien DESSENNE X-Patchwork-Id: 10903285 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 8E26D14DB for ; Tue, 16 Apr 2019 14:59:54 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 791AF27BA5 for ; Tue, 16 Apr 2019 14:59:54 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 6D74428718; Tue, 16 Apr 2019 14:59:54 +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=-8.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 16C8F27BA5 for ; Tue, 16 Apr 2019 14:59:54 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727816AbfDPO6u (ORCPT ); Tue, 16 Apr 2019 10:58:50 -0400 Received: from mx07-00178001.pphosted.com ([62.209.51.94]:28100 "EHLO mx07-00178001.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725796AbfDPO6u (ORCPT ); Tue, 16 Apr 2019 10:58:50 -0400 Received: from pps.filterd (m0046668.ppops.net [127.0.0.1]) by mx07-00178001.pphosted.com (8.16.0.27/8.16.0.27) with SMTP id x3GEuLp1007177; Tue, 16 Apr 2019 16:58:35 +0200 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=st.com; h=from : to : cc : subject : date : message-id : mime-version : content-type; s=STMicroelectronics; bh=a0WPuEtezcJ43FTbI4cZhrZcoa/ZI4CHF8RviI7aspo=; b=TFlCBvGZGvf9HvCOfPpV2NnDeBk0iCe8IlYIh1VyqAroOpb6Y+vhlHgglk6g5g1C6B+8 KfeZ3xAfIwvt9hkSN7sbFA2oibSCdQuFNKuLZD+6CeAdPeOBVnOxu6hvF7Oik5xUx21r UzEzEeMc6TyLYHOlPM9hxWxVTMhSilVPp1yQbUSX+ESX2mij+VVn48Q70bJs9yxQgPAW f+wWwqAnJzBQOXemBcPWdxh48d3tkKa+vF78Qkhz2MG60DukdANCIR8gX7zQGSxSea+J HJfd+PsNh7EbGphpAlKAYVQkfpztCtr87XqfWSVIFH5jv6lRQI/plGpUARw1hb4jUJpi Bw== Received: from beta.dmz-eu.st.com (beta.dmz-eu.st.com [164.129.1.35]) by mx07-00178001.pphosted.com with ESMTP id 2ru5800uh7-1 (version=TLSv1 cipher=ECDHE-RSA-AES256-SHA bits=256 verify=NOT); Tue, 16 Apr 2019 16:58:35 +0200 Received: from zeta.dmz-eu.st.com (zeta.dmz-eu.st.com [164.129.230.9]) by beta.dmz-eu.st.com (STMicroelectronics) with ESMTP id 1EC6F3A; Tue, 16 Apr 2019 14:58:33 +0000 (GMT) Received: from Webmail-eu.st.com (Safex1hubcas24.st.com [10.75.90.94]) by zeta.dmz-eu.st.com (STMicroelectronics) with ESMTP id BA53E269D; Tue, 16 Apr 2019 14:58:33 +0000 (GMT) Received: from SAFEX1HUBCAS23.st.com (10.75.90.47) by Safex1hubcas24.st.com (10.75.90.94) with Microsoft SMTP Server (TLS) id 14.3.439.0; Tue, 16 Apr 2019 16:58:33 +0200 Received: from localhost (10.201.23.25) by webmail-ga.st.com (10.75.90.48) with Microsoft SMTP Server (TLS) id 14.3.439.0; Tue, 16 Apr 2019 16:58:33 +0200 From: Fabien Dessenne To: Rob Herring , Mark Rutland , Maxime Coquelin , Alexandre Torgue , Ohad Ben-Cohen , Bjorn Andersson , , , , , CC: Fabien Dessenne , Loic Pallardy , Arnaud Pouliquen , "Ludovic Barre" , Benjamin Gaignard Subject: [PATCH v2 0/8] stm32 m4 remoteproc on STM32MP157c Date: Tue, 16 Apr 2019 16:58:11 +0200 Message-ID: <1555426699-5340-1-git-send-email-fabien.dessenne@st.com> X-Mailer: git-send-email 2.7.4 MIME-Version: 1.0 X-Originating-IP: [10.201.23.25] X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:,, definitions=2019-04-16_05:,, signatures=0 Sender: linux-remoteproc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-remoteproc@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP STMicrolectronics STM32MP157 MPU are based on a Dual Arm Cortex-A7 core and a Cortex-M4. This patchset adds the support of the stm32_rproc driver allowing to control the M4 remote processor. Changes since v1: - Gave details about the memory mapping (in bindings). - Used 'dma-ranges' instead of 'ranges'. - Updated the 'compatible' property. - Remove the 'recovery', 'reset-names' and 'interrupt-names' properties. - Clarified why / when mailboxes are optional. Fabien Dessenne (8): dt-bindings: stm32: add bindings for ML-AHB interconnect dt-bindings: remoteproc: add bindings for stm32 remote processor driver remoteproc: stm32: add an ST stm32_rproc driver ARM: dts: stm32: add m4 remoteproc support on STM32MP157c ARM: dts: stm32: declare copro reserved memories on STM32MP157c-ed1 ARM: dts: stm32: enable m4 coprocessor support on STM32MP157c-ed1 ARM: dts: stm32: declare copro reserved memories on STM32MP157a-dk1 ARM: dts: stm32: enable m4 coprocessor support on STM32MP157a-dk1 .../devicetree/bindings/arm/stm32/mlahb.txt | 37 ++ .../devicetree/bindings/remoteproc/stm32-rproc.txt | 64 +++ arch/arm/boot/dts/stm32mp157a-dk1.dts | 52 ++ arch/arm/boot/dts/stm32mp157c-ed1.dts | 52 ++ arch/arm/boot/dts/stm32mp157c.dtsi | 20 + drivers/remoteproc/Kconfig | 15 + drivers/remoteproc/Makefile | 1 + drivers/remoteproc/stm32_rproc.c | 628 +++++++++++++++++++++ 8 files changed, 869 insertions(+) create mode 100644 Documentation/devicetree/bindings/arm/stm32/mlahb.txt create mode 100644 Documentation/devicetree/bindings/remoteproc/stm32-rproc.txt create mode 100644 drivers/remoteproc/stm32_rproc.c