Received: by 2002:a05:6a10:2785:0:0:0:0 with SMTP id ia5csp2585185pxb; Mon, 11 Jan 2021 13:43:26 -0800 (PST) X-Google-Smtp-Source: ABdhPJyGjnFX2SlD7wcCpd5eJPyry83DEBnls29YVYeEDx2H6GNy71hLFZRfzuxyoYhc1tpaKM0C X-Received: by 2002:a17:906:e093:: with SMTP id gh19mr985083ejb.510.1610401406261; Mon, 11 Jan 2021 13:43:26 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1610401406; cv=none; d=google.com; s=arc-20160816; b=feUxxm/Z9T2PrK/gLw9Fe4gyEdEOHIjWNuIRghpEbCTs7t1MDUUKj0O4nqUrVIE/bI tRYN8uAY5G70Qyj2ywE4d2dg7Ue8YyH8eFit9czOaIdf8n5lUnTu6ABq6Ljlwoa9CFfi yewB0aAv61IdDj+8vbIx7waCh8gnOfpTSc8xB39Eqs6OMR7DS0YacCYEUvueLFEHrucP JAn//lic38zt1Cb5Enj1TUsLFvgdIdDSLVBGd+iUZQb9Ftk7idIeHNkPHzk8K08iLLjN ICFMWHrDVwuQCPe/g5n6rpcj6Xhz/5OvJ/F+4FHYi3lf4SMvNTmvH8eICqIZ00EVT0gJ xVsQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=YAZpy6BnklcTFR4y2uqR/HOMIneLtln1qkeJb17jmmI=; b=F04Syw9FCVtF/mVs9SyVJb6QDmk0f+tFdfo3myTY1m6RsVW/t9DGPaq5o/HgcXMiG5 VSjVxzNt2+9/JuaGY/IMFtByiQdzMXfDoLyx4p2H3M72Kl8cFlM+OfAyF+UTu1+vny5V DM7673V+nnhzHJBEzsx5f5UUikRWVX4DVM6aGKoD10mmQcWKTD/WnE6iwv5ubP2lvcld mwWSbboCMTnPA90wTPWkK2lEYMmzM2VMNTGoSGIp8lY1rpM0j/1TD59F5TPGOI3inCPN Ec6zIFH+SQtmiHubwKrYFuWnTUNGxPSTjillznhMSJsKOrK2rBxD3wHnyvx06/tyzzdc iSSg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Sktn3Wig; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id m15si382707edp.363.2021.01.11.13.43.02; Mon, 11 Jan 2021 13:43:26 -0800 (PST) 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; dkim=pass header.i=@linaro.org header.s=google header.b=Sktn3Wig; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732648AbhAKVlA (ORCPT + 99 others); Mon, 11 Jan 2021 16:41:00 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46000 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730805AbhAKVlA (ORCPT ); Mon, 11 Jan 2021 16:41:00 -0500 Received: from mail-pf1-x436.google.com (mail-pf1-x436.google.com [IPv6:2607:f8b0:4864:20::436]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C1FA9C061786 for ; Mon, 11 Jan 2021 13:40:19 -0800 (PST) Received: by mail-pf1-x436.google.com with SMTP id h10so67672pfo.9 for ; Mon, 11 Jan 2021 13:40:19 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=YAZpy6BnklcTFR4y2uqR/HOMIneLtln1qkeJb17jmmI=; b=Sktn3WigfNxAfBk5bHXDlcDF/Q3JQf3REoXsi5zkmHrLxgBCkxkvFekowTmcZf20xA ZjpP9QSCJdn8xdfiiV6lNL2iFf/rQEXXRzcrS+AUV4NNvE/OMpwA/y3jo930vK3ehrpo Any5usxFUGmR35kGgsD2VVE8b8LE/TSNM8BZnMNgJPJr0NuDJ3nfOBZALah/ecvPvTey dSrxNZKQPjt0F+cyL9MlIO84Iqt7x813X6NcEoxjHRJqeTbluiCJechAKCuff0Fi4taR bBIVegJuvS2eZlBitYJGWJhe6z/nX4TTAKHq6vvKztvXUHtXcW+Bpi5XyVybBn9T2SlQ 3MRw== 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; bh=YAZpy6BnklcTFR4y2uqR/HOMIneLtln1qkeJb17jmmI=; b=WDSYgQJfLKmgr6n7Qn3HKOtAPz+ei2cuQMmyweDHcLwPQ3YErIRfKguNsIRUU6RmKu hndcJ5uIvVfEgN8Rd0jmbgN6UVADAqDOweUZSINp3orTDCX20IkXs1I2Ce+BdIKHfGqH 7iznDpSe8UCVxgG3zMicBP3lucFk0KX0J5NAbHtthQJr5k30uoNk1KCxATpCr7OPa3Vz 8LY7DtZfyxRciR8+wOtW4cekh459wS17SxN/1ySg9tNEYmJh1gpSAKUrzXjc3NfZ+idu yFIbSaTtrCdla9zmQgfpVIM2W+l0AVxrpS3BNzXI0Y+emRoeh8mOCxfhqsvA8Jyi85Ic knrg== X-Gm-Message-State: AOAM5338Uo0drW7GSqGrLvPyIySv8Sikagdnziwd6C77V4tNnxrNZMgr k7HPhi7bVG+BKLszsaZfccQpXQ== X-Received: by 2002:a63:5d7:: with SMTP id 206mr1481880pgf.384.1610401219258; Mon, 11 Jan 2021 13:40:19 -0800 (PST) Received: from xps15 (S0106889e681aac74.cg.shawcable.net. [68.147.0.187]) by smtp.gmail.com with ESMTPSA id 36sm669534pgr.56.2021.01.11.13.40.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 11 Jan 2021 13:40:18 -0800 (PST) Date: Mon, 11 Jan 2021 14:40:16 -0700 From: Mathieu Poirier To: peng.fan@nxp.com Cc: ohad@wizery.com, bjorn.andersson@linaro.org, o.rempel@pengutronix.de, shawnguo@kernel.org, s.hauer@pengutronix.de, kernel@pengutronix.de, festevam@gmail.com, linux-imx@nxp.com, linux-remoteproc@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, paul@crapouillou.net, matthias.bgg@gmail.com, agross@kernel.org, patrice.chotard@st.com, Richard Zhu Subject: Re: [PATCH V5 6/8] remoteproc: imx_rproc: support i.MX8MQ/M Message-ID: <20210111214016.GI144935@xps15> References: <20201229033019.25899-1-peng.fan@nxp.com> <20201229033019.25899-7-peng.fan@nxp.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20201229033019.25899-7-peng.fan@nxp.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Dec 29, 2020 at 11:30:17AM +0800, peng.fan@nxp.com wrote: > From: Peng Fan > > Add i.MX8MQ dev/sys addr map and configuration data structure > i.MX8MM share i.MX8MQ settings. > > Reviewed-by: Richard Zhu > Signed-off-by: Peng Fan > Reviewed-by: Mathieu Poirier > --- > drivers/remoteproc/imx_rproc.c | 39 ++++++++++++++++++++++++++++++++++ > 1 file changed, 39 insertions(+) > > diff --git a/drivers/remoteproc/imx_rproc.c b/drivers/remoteproc/imx_rproc.c > index 3c0075dc1787..f80428afb8a7 100644 > --- a/drivers/remoteproc/imx_rproc.c > +++ b/drivers/remoteproc/imx_rproc.c > @@ -88,6 +88,34 @@ struct imx_rproc { > struct clk *clk; > }; > > +static const struct imx_rproc_att imx_rproc_att_imx8mq[] = { > + /* dev addr , sys addr , size , flags */ > + /* TCML - alias */ > + { 0x00000000, 0x007e0000, 0x00020000, 0 }, > + /* OCRAM_S */ > + { 0x00180000, 0x00180000, 0x00008000, 0 }, > + /* OCRAM */ > + { 0x00900000, 0x00900000, 0x00020000, 0 }, > + /* OCRAM */ > + { 0x00920000, 0x00920000, 0x00020000, 0 }, > + /* QSPI Code - alias */ > + { 0x08000000, 0x08000000, 0x08000000, 0 }, > + /* DDR (Code) - alias */ > + { 0x10000000, 0x80000000, 0x0FFE0000, 0 }, > + /* TCML */ > + { 0x1FFE0000, 0x007E0000, 0x00020000, ATT_OWN }, > + /* TCMU */ > + { 0x20000000, 0x00800000, 0x00020000, ATT_OWN }, > + /* OCRAM_S */ > + { 0x20180000, 0x00180000, 0x00008000, ATT_OWN }, > + /* OCRAM */ > + { 0x20200000, 0x00900000, 0x00020000, ATT_OWN }, > + /* OCRAM */ > + { 0x20220000, 0x00920000, 0x00020000, ATT_OWN }, > + /* DDR (Data) */ > + { 0x40000000, 0x40000000, 0x80000000, 0 }, > +}; > + > static const struct imx_rproc_att imx_rproc_att_imx7d[] = { > /* dev addr , sys addr , size , flags */ > /* OCRAM_S (M4 Boot code) - alias */ > @@ -138,6 +166,15 @@ static const struct imx_rproc_att imx_rproc_att_imx6sx[] = { > { 0x80000000, 0x80000000, 0x60000000, 0 }, > }; > > +static const struct imx_rproc_dcfg imx_rproc_cfg_imx8mq = { > + .src_reg = IMX7D_SRC_SCR, > + .src_mask = IMX7D_M4_RST_MASK, > + .src_start = IMX7D_M4_START, > + .src_stop = IMX7D_M4_STOP, > + .att = imx_rproc_att_imx8mq, > + .att_size = ARRAY_SIZE(imx_rproc_att_imx8mq), > +}; > + > static const struct imx_rproc_dcfg imx_rproc_cfg_imx7d = { > .src_reg = IMX7D_SRC_SCR, > .src_mask = IMX7D_M4_RST_MASK, > @@ -496,6 +533,8 @@ static int imx_rproc_remove(struct platform_device *pdev) > static const struct of_device_id imx_rproc_of_match[] = { > { .compatible = "fsl,imx7d-cm4", .data = &imx_rproc_cfg_imx7d }, > { .compatible = "fsl,imx6sx-cm4", .data = &imx_rproc_cfg_imx6sx }, > + { .compatible = "fsl,imx8mq-cm4", .data = &imx_rproc_cfg_imx8mq }, > + { .compatible = "fsl,imx8mm-cm4", .data = &imx_rproc_cfg_imx8mq }, I don't see a patch that adds those to the imx-rproc.txt bindings document. As far as I can tell the patch that does that was part of your first patchset [1] but was not resubmitted after that. It would be very nice to have an example of how the DT is laid out for those 2 platform, otherwise I have to guess based on the code I am reviewing. [1]. https://patchwork.kernel.org/project/linux-remoteproc/patch/20200724080813.24884-2-peng.fan@nxp.com/ > {}, > }; > MODULE_DEVICE_TABLE(of, imx_rproc_of_match); > -- > 2.28.0 >