Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp1442558pxb; Mon, 11 Oct 2021 06:11:46 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzLT+WrSjHYsG+QIZmqjY2EDCeB6F6F5/olRGdCZH9bmpUcJdn1BeKvGcXTN5hOEXAeSZB9 X-Received: by 2002:aa7:cac2:: with SMTP id l2mr41831913edt.168.1633957906371; Mon, 11 Oct 2021 06:11:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1633957906; cv=none; d=google.com; s=arc-20160816; b=xAF4WAWMQUOAC4rvFGTCdS/4DmvFc9qez2F5z1BzZDnGOfvgcot8YXVrV2I0UKLt/l DQq7d67HPOJvYUa7/3hBwLnXEdkneWKOpkJg2hxCBa85EPnj1xKUPo4xKbOUyiQm4rnk Jf7wbo3JvSx7Yq/LlH4oti0hZpAnGgAahQ7718LrYTck4zT8u+M2xiHi25KsIj8anjLq uEAT4O8o0LieR4/jIFBxiAbiJ62wov/Gjmb5OJ5wb8tb5aMLVMiaPMy2Wt+ARRO+L2xT 2DEJNJuD3XIg8CxukERPdV1JocTr7TQSY4OV69xslhX4d7LH0WxsFgklT1Yvqa4f25bo RRXg== 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=WPO6SnnKUkVBmbYIyiKMEXx0nYm6Fdatx9U6obX51aU=; b=hxWzsmTySN1XR35ZQ7NgJexsVZSPaIlNDkm/DIu0CmSPPjCeABnDIi8BXqxtxIfLKz kISKrLHTWWzPYcxn5ivO8C7Z6dLJP3ZZGL/ChiX/+2wXLlDHc2g1zUcL+t6wkcBfk8b9 v/F1SR1IYqwjUKggFYQh0AHeuFQCr04SovFNauc/ZyE9Lsz7akxSAOxEf7T6hKnbhU90 WSctOZecVKNUqbMZbSjo/X9nFCrsHCPj1aBekNFxZ2xUrk7bCW4uzwOQPrXqXg/Yh92k gJHTdCa7kqpD1zIMQRFDCsAEqG4RKOvE/VCkP/8Z/v9VX/lWYEeq+Stm6VWXosK2JXOg FSzg== 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 x17si10584970edi.396.2021.10.11.06.11.22; Mon, 11 Oct 2021 06:11:46 -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 S235587AbhJKJrA (ORCPT + 99 others); Mon, 11 Oct 2021 05:47:00 -0400 Received: from inva020.nxp.com ([92.121.34.13]:45536 "EHLO inva020.nxp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231370AbhJKJrA (ORCPT ); Mon, 11 Oct 2021 05:47:00 -0400 Received: from inva020.nxp.com (localhost [127.0.0.1]) by inva020.eu-rdc02.nxp.com (Postfix) with ESMTP id 4BFB81A0FAE; Mon, 11 Oct 2021 11:44:59 +0200 (CEST) Received: from aprdc01srsp001v.ap-rdc01.nxp.com (aprdc01srsp001v.ap-rdc01.nxp.com [165.114.16.16]) by inva020.eu-rdc02.nxp.com (Postfix) with ESMTP id 140CF1A0F9E; Mon, 11 Oct 2021 11:44:59 +0200 (CEST) Received: from localhost.localdomain (shlinux2.ap.freescale.net [10.192.224.44]) by aprdc01srsp001v.ap-rdc01.nxp.com (Postfix) with ESMTP id 590D5183AD26; Mon, 11 Oct 2021 17:44:57 +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 v6 0/4] Add remoteproc driver for DSP on i.MX Date: Mon, 11 Oct 2021 17:20:11 +0800 Message-Id: <1633944015-789-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 v6: - fix the apply issue for linux-next - add if/then schema according to Rob's comments 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 | 123 +- 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, 1375 insertions(+), 33 deletions(-) create mode 100644 drivers/remoteproc/imx_dsp_rproc.c create mode 100644 drivers/remoteproc/imx_rproc.h -- 2.17.1