Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp2847724pxb; Sat, 25 Sep 2021 20:32:48 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwKwD1XJMPcs+ppxlBYqRK1dZTKiCSWhQwRFxWbaqLJplWl6k5qTE7ZvCXX2BpKRlQo8rW1 X-Received: by 2002:a50:e006:: with SMTP id e6mr14966391edl.302.1632627168797; Sat, 25 Sep 2021 20:32:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1632627168; cv=none; d=google.com; s=arc-20160816; b=O+I6dS0motPxkGcTA27PJDrjEG571dFQZ+vF4f6MMRuKlVtbQpHNmEwghcNG6Qs6RH svaxWk1ZWI/uLacSHQl13CcoS9RzJFPtKllbAUnsmzLRGYMX5tD9IceHQy9ETYJxL5eT vjkloCXT2A3gpVDgxDwjYgjekddvEeS9+vh7zdYJr1jrQ/FSD9X+ueLBo4PDspzWy/Li f39HIS0sEI+78sjHWa3iAts/qVaR2Vo9ALs33Cmj/mIIRWg11ayMbrNe2gHOi0oFQYSN OqkxZYiUsiK4ubcEfShEPIcJBaIcj3KJTUPpfWWqX0EJQkRIfvY+DDMJ4/FrvzHvTQ98 Bw2A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:date:subject:cc:to:from; bh=Q0p3D9sphLAntY5t6nsObIeuHXB7E/7hbgTixQrFbJY=; b=dReJQS3/GLRkjTcpdCkwxFTt+6U8+QN14PJQ3lTqapK5gVj5HTSRKYv1SdIH4CZy6F GF4Zb9boi5MqU8rWaxFcQO0V5O6kqszZK9SLFNklTRCa/RiDo3ZXN0XKEbUzuMkWs7Rw g3/iz9uHt1ubdwGaUrfaBStHDz/XSXVXbv93ldGaIewP0g7wgGD+l71v88uCB+z1vHbo YtOiXscQtf2P4DVwaz/oapSUCRs5xVtDsYYuzKzp+lIdkk7J677Kg80646HSnn5q5TlZ Ohvh7SFCWLxauxIa2Jmu8g0lvt4wzx8jhlnSBW95KMIvYq8Fm4/qk6Ud5WoDmzyjfKrd c1JA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id h18si13803524ejt.663.2021.09.25.20.32.25; Sat, 25 Sep 2021 20:32:48 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230453AbhIZDcp (ORCPT + 99 others); Sat, 25 Sep 2021 23:32:45 -0400 Received: from inva021.nxp.com ([92.121.34.21]:58052 "EHLO inva021.nxp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230371AbhIZDcm (ORCPT ); Sat, 25 Sep 2021 23:32:42 -0400 Received: from inva021.nxp.com (localhost [127.0.0.1]) by inva021.eu-rdc02.nxp.com (Postfix) with ESMTP id 7CFFE2035EF; Sun, 26 Sep 2021 05:31:05 +0200 (CEST) Received: from aprdc01srsp001v.ap-rdc01.nxp.com (aprdc01srsp001v.ap-rdc01.nxp.com [165.114.16.16]) by inva021.eu-rdc02.nxp.com (Postfix) with ESMTP id 43E952035F2; Sun, 26 Sep 2021 05:31:05 +0200 (CEST) Received: from localhost.localdomain (shlinux2.ap.freescale.net [10.192.224.44]) by aprdc01srsp001v.ap-rdc01.nxp.com (Postfix) with ESMTP id 92592183AD0B; Sun, 26 Sep 2021 11:31:03 +0800 (+08) From: Shengjiu Wang To: ohad@wizery.com, bjorn.andersson@linaro.org, mathieu.poirier@linaro.org, robh+dt@kernel.org, shawnguo@kernel.org, s.hauer@pengutronix.de, kernel@pengutronix.de, festevam@gmail.com Cc: linux-imx@nxp.com, linux-remoteproc@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, shengjiu.wang@gmail.com Subject: [PATCH v5 0/4] Add remoteproc driver for DSP on i.MX Date: Sun, 26 Sep 2021 11:07:06 +0800 Message-Id: <1632625630-784-1-git-send-email-shengjiu.wang@nxp.com> X-Mailer: git-send-email 2.7.4 X-Virus-Scanned: ClamAV using ClamSMTP Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Provide a basic driver to control DSP processor found on NXP i.MX8QM, i.MX8QXP, i.MX8MP and i.MX8ULP. Currently it is able to resolve addresses between DSP and main CPU, start and stop the processor, suspend and resume. The communication between DSP and main CPU is based on mailbox, there are three mailbox channels (tx, rx, rxdb). This driver was tested on NXP i.MX8QM, i.MX8QXP, i.MX8MP and i.MX8ULP. changes in v5: - refine driver according to Mathieu's comments changes in v4: - merge binding doc to fsl,dsp.yaml for Rob's comments changes in v3: - Add this cover letter - refine clock-names according to Rob's comments - move common struct from imx_rproc.c to header file - add IMX_RPROC_SCU_API enum item - refine driver according to Mathieu's comments changes in v2: - change syscon to fsl,dsp-ctrl - add items for clock-names Shengjiu Wang (4): remoteproc: imx_rproc: Move common structure to header file remoteproc: imx_rproc: Add IMX_RPROC_SCU_API method remoteproc: imx_dsp_rproc: Add remoteproc driver for DSP on i.MX dt-bindings: dsp: fsl: update binding document for remote proc driver .../devicetree/bindings/dsp/fsl,dsp.yaml | 81 +- drivers/remoteproc/Kconfig | 11 + drivers/remoteproc/Makefile | 1 + drivers/remoteproc/imx_dsp_rproc.c | 1206 +++++++++++++++++ drivers/remoteproc/imx_rproc.c | 28 +- drivers/remoteproc/imx_rproc.h | 39 + 6 files changed, 1333 insertions(+), 33 deletions(-) create mode 100644 drivers/remoteproc/imx_dsp_rproc.c create mode 100644 drivers/remoteproc/imx_rproc.h -- 2.17.1