From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-15.7 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 004CCC49EA7 for ; Thu, 24 Jun 2021 19:41:10 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id DE0966120D for ; Thu, 24 Jun 2021 19:41:09 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232592AbhFXTn2 (ORCPT ); Thu, 24 Jun 2021 15:43:28 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59550 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232789AbhFXTn2 (ORCPT ); Thu, 24 Jun 2021 15:43:28 -0400 Received: from mail-pg1-x531.google.com (mail-pg1-x531.google.com [IPv6:2607:f8b0:4864:20::531]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CBCD4C06175F for ; Thu, 24 Jun 2021 12:41:07 -0700 (PDT) Received: by mail-pg1-x531.google.com with SMTP id w15so1040088pgk.13 for ; Thu, 24 Jun 2021 12:41:07 -0700 (PDT) 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=+xafYqSgVD8nUH+DnQ+8KYkIuJ1/DagxEHzExEHv1Yk=; b=s1ELRsJ1L3/affpkUOzjF8ZJlTUHW0ZrN/RcHFSj4l2+sYgfbmXfU24TmlKgOmSCQk FQL1L17D95/uRY/UEILoJRT16xm0mbvWMkboQYmaJXXXukYIIDAcy0XHxIrdvbbywQGB 15l9Ii95uFNiMZoqSA4ufg2Wnbi/pvMszX1on4/IFXOvcs+fVZJ3VRczx2d9PlshXNpr lpfTlnxOpL51j8c/p+xq2Y1oR392KHHfa74lrgoPFjeGGrVDVrv4Vo8hK4N3o+f8GLiF 4YfDkoAoOJT9WwNMGbirr0Yly+LqTGTnJm7q0hzxF1mN1GdRuflsOWMmN9y+Mn4eNTXp dydw== 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=+xafYqSgVD8nUH+DnQ+8KYkIuJ1/DagxEHzExEHv1Yk=; b=ZDY27te0mviUG6gWUOX5UgsdnOvsjoDOaENjVNvaj4gf6TJQOhdoo9yXIDvWy/lisY /a2Xe39pzCB+Bl1b67gVMGBXso1jBQ87FXhTICAuBd9bPgF5gThHHQkTUdu5Gj4FcQIg /mA9WlR/BqvC2nWpBSXBFrs+FlDqKuRNJ8XyxxKyXEeKcSnsT8gQJ5H4tP1yfXvu18zn GOqVr9Znomp/fI1F51l32DBuhIi93JrZcsUm+CTkGdzB/qtcGFOOT2ma9n97hyddKCm5 OavjBAgYmhjtaV/PtWi8qvgDd06v1Oj4Hd+SP6u/2j2IlBulz6792ENvXV9QcOqTkQA5 ehxg== X-Gm-Message-State: AOAM532Cy8Hc6MMPPE56wzvmtntWMp7pIP1mDSrijCQRm/9G1clk2b/w /eQqNg3MLqlg65k8LyKMn48vUw== X-Google-Smtp-Source: ABdhPJwUVFpzX28kDds82ZORVhxGs12hO3Flayw0ggl9RAz91JOqJAMu9/GsvdTHoLtcOZIXf44n1A== X-Received: by 2002:a62:1d84:0:b029:304:5af1:65f6 with SMTP id d126-20020a621d840000b02903045af165f6mr4825181pfd.80.1624563667240; Thu, 24 Jun 2021 12:41:07 -0700 (PDT) Received: from p14s (S0106889e681aac74.cg.shawcable.net. [68.147.0.187]) by smtp.gmail.com with ESMTPSA id cu4sm3364755pjb.40.2021.06.24.12.41.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 24 Jun 2021 12:41:06 -0700 (PDT) Date: Thu, 24 Jun 2021 13:41:04 -0600 From: Mathieu Poirier To: Suman Anna Cc: Bjorn Andersson , Rob Herring , Kishon Vijay Abraham I , Lokesh Vutla , Vignesh Raghavendra , Grzegorz Jaszczyk , Jan Kiszka , linux-remoteproc@vger.kernel.org, devicetree@vger.kernel.org, linux-omap@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: Re: [PATCH 2/2] remoteproc: pru: Add support for various PRU cores on K3 AM64x SoCs Message-ID: <20210624194104.GB1090275@p14s> References: <20210623173243.7862-1-s-anna@ti.com> <20210623173243.7862-3-s-anna@ti.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210623173243.7862-3-s-anna@ti.com> Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org On Wed, Jun 23, 2021 at 12:32:42PM -0500, Suman Anna wrote: > The K3 AM64x family of SoCs have a ICSSG IP that is similar to the > version on AM65x SR2.0 SoCs with some minor differences. The AM64x > SoCs contain two instances of this newer ICSSG IP. Each ICSSG processor > subsystem contains 2 primary PRU cores, 2 auxiliary PRU cores called > RTUs, and 2 new auxiliary cores called Transmit PRUs (Tx_PRUs). > > Enhance the existing PRU remoteproc driver to support all these PRU, > RTU and Tx_PRU cores by using specific compatibles. The cores have the > same memory copying limitations as on AM65x, so reuses the custom memcpy > function within the driver's ELF loader implementation. The initial > names for the firmware images for each PRU core are retrieved from > DT nodes, and can be adjusted through sysfs if required. > > Signed-off-by: Suman Anna > --- > drivers/remoteproc/pru_rproc.c | 3 +++ > 1 file changed, 3 insertions(+) > > diff --git a/drivers/remoteproc/pru_rproc.c b/drivers/remoteproc/pru_rproc.c > index e5778e476245..0ecf2675f5eb 100644 > --- a/drivers/remoteproc/pru_rproc.c > +++ b/drivers/remoteproc/pru_rproc.c > @@ -894,6 +894,9 @@ static const struct of_device_id pru_rproc_match[] = { > { .compatible = "ti,j721e-pru", .data = &k3_pru_data }, > { .compatible = "ti,j721e-rtu", .data = &k3_rtu_data }, > { .compatible = "ti,j721e-tx-pru", .data = &k3_tx_pru_data }, > + { .compatible = "ti,am642-pru", .data = &k3_pru_data }, > + { .compatible = "ti,am642-rtu", .data = &k3_rtu_data }, > + { .compatible = "ti,am642-tx-pru", .data = &k3_tx_pru_data }, > {}, Reviewed-by: Mathieu Poirier > }; > MODULE_DEVICE_TABLE(of, pru_rproc_match); > -- > 2.30.1 >