From patchwork Thu Mar 2 17:14:47 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Martyn Welch X-Patchwork-Id: 6045 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:7b8e:b0:9f:8c76:fea4 with SMTP id j14csp5847453dyk; Thu, 2 Mar 2023 09:18:13 -0800 (PST) X-Google-Smtp-Source: AK7set9DhCRZDN3BdYiVfy4x3NpwZuPrDB7ZP1U12s8jFuY3ZqiTVqFmmHwe07ZGxpw64IvBrXnz X-Received: by 2002:aa7:d69a:0:b0:4ad:5950:3f53 with SMTP id d26-20020aa7d69a000000b004ad59503f53mr10994421edr.7.1677777492970; Thu, 02 Mar 2023 09:18:12 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1677777492; cv=none; d=google.com; s=arc-20160816; b=ZikBz9Rke2f7zLssK5Ojtw7vOcRLvdLmkYDKoZdyuJ9rjarWLVQjyO2yZnq9pXvGug c4RI9gXFgustQCNy0kqKhwqN/Mu10/hUn+JCKqlzqcLGQultyphLPGpeCcvd39sIDM0s +As4/EDgiuhiwnNcMNO5pNUYMipDjySCd30tHoUjRndEAqDNPplssDGXOX1lrPyODHAb A5+MQ6fFzbZm6mX8UTHotBQ2gp8JLtmsUavgTJolUSRxs7Vl1lZR8Bwpkzy9hNI56zjz UlCuuRLWsuKN+pkbNex48FW1skGD2dzMOfxryXoSbJVxxlq6itwvNDhRzKeoLuyS6J6I lKbg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=F56mJ9E5k+ESCnbAeKHxz2ngBzzeSWArkOQemjJgfNQ=; b=yVjrJgxPvjDNDL8yn5ILqVuy8kDPfnPBDdw/BfaNNw/6bWm1SFjdamSDgn8VyfS6XI Psw+wodWXR3rWEeOeXFj8uAob0Krz85+aeWljiWEf3hzBMWKC/lRk1GTP2sggn/vI3sZ tVaY1ivawq75ZhoI6SLelydO8qO57GVBIfXJrDb45GvRK4MdPTJ+cp+Lpp+9+AF177oB D6CwrtgPZgRPB6e177G67VeB6JuJtV9ExnrBaUVdu0Jy2jVxUcQd21HV1JWWR8+Te+0f feBE5+Fi+bZYQCHDBXu+6Ut0BpK6MoQFSZGdbJgEeogsjlKP5b6QTra9HSwTZ0UHMLyR 5NtQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b="YJoW6/ka"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id j22-20020aa7c416000000b004c209285102si118185edq.483.2023.03.02.09.17.49; Thu, 02 Mar 2023 09:18:12 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b="YJoW6/ka"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229713AbjCBRPG (ORCPT + 99 others); Thu, 2 Mar 2023 12:15:06 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51736 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229476AbjCBRPE (ORCPT ); Thu, 2 Mar 2023 12:15:04 -0500 Received: from madras.collabora.co.uk (madras.collabora.co.uk [IPv6:2a00:1098:0:82:1000:25:2eeb:e5ab]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E882B1ACD7; Thu, 2 Mar 2023 09:15:01 -0800 (PST) Received: from pan.home (unknown [IPv6:2a00:23c6:c311:3401:45a5:b946:dcd1:2820]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: martyn) by madras.collabora.co.uk (Postfix) with ESMTPSA id 0F3816602F05; Thu, 2 Mar 2023 17:15:00 +0000 (GMT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1677777300; bh=MKf13LLrF97Xk6jvSCKLeu38G4LeLT4CpYwHqJ0gXCo=; h=From:To:Cc:Subject:Date:From; b=YJoW6/ka66QlJHMHOuVwNMdmHdV0K5WZ1PIh68Thkmwp4lJjFLGZxoTOMkVAN5HUO FHQT4sGRnUSCAageWClckm9JJTGyfyF6rnX+/8FvgzguFwZcfunZY320ze+9/7tZcC hT+svAdfTb7puZBUD45MtQ5nk5DLb8teexvJlCvRjDMfe/MhAHJ4JbOXuVYJxowXbw Z7Ix386zEhS++gH/5hDNkd6+YtMQuaWVshG39LdkCcbkhVQ6Hnn+Muc2Jo2OrGAxDD hvXD1WRfmpr3L8SUAqmHsPrfGvyXbMSLQHQzpl1N7nwdeyghG9QexS7Vi6cyOryXav 9jzK0Dkl+hJag== From: Martyn Welch To: andersson@kernel.org, mathieu.poirier@linaro.org, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, hnagalla@ti.com, p.zabel@pengutronix.de Cc: kernel@collabora.com, Martyn Welch , linux-remoteproc@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v3 0/3] TI K3 M4F support on AM64x and AM62x SoCs Date: Thu, 2 Mar 2023 17:14:47 +0000 Message-Id: <20230302171450.1598576-1-martyn.welch@collabora.com> X-Mailer: git-send-email 2.39.1 MIME-Version: 1.0 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1759277212320315658?= X-GMAIL-MSGID: =?utf-8?q?1759277212320315658?= The following series introduces K3 M4F remoteproc driver support for AM64x and AM62x SoC families. These SoCs have a ARM Cortex M4F core in the MCU voltage domain. For safety oriented applications, this core is operated independently with out any IPC to other cores on the SoC. However, for non safety applications, some customers use it as a remote processor and so linux remote proc support is extended to the M4F core. See AM64x Technical Reference Manual (SPRUIM2C – SEPTEMBER 2021) for further details: https://www.ti.com/lit/pdf/SPRUIM2 This series was originally submitted by Hari in Jan 2022. Review comments were made, however I've been unable to find any further submissions. I have tried to contact the author and have received no reply. As we are interested in using this functionality, we have decided to pick this up and see if we can get it merged. Hari Nagalla (1): dt-bindings: remoteproc: k3-m4f: Add bindings for K3 AM64x SoCs Martyn Welch (2): remoteproc: k4: Split out functions common with M4 driver remoteproc: k4-m4: Add a remoteproc driver for M4F subsystem .../bindings/remoteproc/ti,k3-m4f-rproc.yaml | 158 ++++++ drivers/remoteproc/Kconfig | 13 + drivers/remoteproc/Makefile | 3 +- drivers/remoteproc/ti_k3_common.c | 375 +++++++++++++ drivers/remoteproc/ti_k3_common.h | 107 ++++ drivers/remoteproc/ti_k3_dsp_remoteproc.c | 462 +--------------- drivers/remoteproc/ti_k3_m4_remoteproc.c | 491 ++++++++++++++++++ 7 files changed, 1174 insertions(+), 435 deletions(-) create mode 100644 Documentation/devicetree/bindings/remoteproc/ti,k3-m4f-rproc.yaml create mode 100644 drivers/remoteproc/ti_k3_common.c create mode 100644 drivers/remoteproc/ti_k3_common.h create mode 100644 drivers/remoteproc/ti_k3_m4_remoteproc.c