Message ID | 20230808044529.25925-1-hnagalla@ti.com |
---|---|
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:c44e:0:b0:3f2:4152:657d with SMTP id w14csp2362807vqr; Tue, 8 Aug 2023 13:00:40 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFS3Xh4rXkQOfS6mGj69R2zETZPpAAdNrPSstaNOyp47ws/J6yVfX3Zu+DFKSGIAAgQPV4N X-Received: by 2002:a05:6871:80f:b0:1b0:293e:f8f3 with SMTP id q15-20020a056871080f00b001b0293ef8f3mr646946oap.53.1691524839849; Tue, 08 Aug 2023 13:00:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691524839; cv=none; d=google.com; s=arc-20160816; b=BkIepaKVPS5xg+usDrdD5KcYzMJUrkmRHFgu8F9AIEyrIYGyMCooq8vfCyG6bjqdaW Gd80kreugo0iRZ0fOJOFjHJl36fQvell4Pu78XWAKSt2MR9SsehQJOIDHP194usQ3Xy+ ALAJDRJh+cTZipAJSquDFGkKpLneuHllnODtFLWBPprBpr+ZUa0b1kONLMfachW44BfY OalGOW6CIf4pZQ06/Xw+gJstC2X8D9iW2wmjd/PjbddovHmRsMQJcniq3DSF6zJz2Qpk /8Z4geDX9Od/syZbQ2FEYAh/b4+RX1fzzdJdSScpojJ76IUHBex5yRR9L65iKFQN3s2q uaZA== 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=gOn0Xm5Ns+UYBBHCJQY6EKsCBpx22wZiaoVRu7YAI+k=; fh=nRWqd2TuJEToaeDtwXX1WSffarGhTfUlSdLYacAxjOE=; b=Pduy3zOaAeOoPXOH+eKyHqEWgeTDKkNDivWh857nHNS04kLSeHXqmfHcTLwK99VVev 51QZoim60LqcLDRkEC0Wlu79zaOCeKnYN+tzNprojDfjFrNaeoYb7X4CixC2WPF3l2R1 HpwzaGsQ5Gp/Y8MGtu+4A/W6zVM/gRGMWqL4Ei7Y6A6bsXypJNBxkB7xluuZEi3YEESr tr/MkNRYxtyRGuz/86oKn1bkEOnPta0PriG6B8Nt9XZLuamC69OZfSbiODZiVwDu4H/8 T8GG+gbSu2dpw+WklluDhYDoOYB9+2S84EAbYVgN+21pgGAVswhUGAcxLo1Qcm2gZSlm H/Gg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=rqr2b5Pa; 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=NONE dis=NONE) header.from=ti.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id m67-20020a632646000000b00553ebb05d25si7411885pgm.80.2023.08.08.13.00.22; Tue, 08 Aug 2023 13:00:39 -0700 (PDT) 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=@ti.com header.s=ti-com-17Q1 header.b=rqr2b5Pa; 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=NONE dis=NONE) header.from=ti.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236464AbjHHTdc (ORCPT <rfc822;aaronkmseo@gmail.com> + 99 others); Tue, 8 Aug 2023 15:33:32 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52660 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236267AbjHHTdQ (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Tue, 8 Aug 2023 15:33:16 -0400 Received: from fllv0016.ext.ti.com (fllv0016.ext.ti.com [198.47.19.142]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5D314AC791; Tue, 8 Aug 2023 12:04:58 -0700 (PDT) Received: from fllv0035.itg.ti.com ([10.64.41.0]) by fllv0016.ext.ti.com (8.15.2/8.15.2) with ESMTP id 3784jWc9099071; Mon, 7 Aug 2023 23:45:32 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1691469932; bh=gOn0Xm5Ns+UYBBHCJQY6EKsCBpx22wZiaoVRu7YAI+k=; h=From:To:CC:Subject:Date; b=rqr2b5PaKyOrcsbl3CuDDay802u2cvS9Dfq+opVKwjBwdlejXBOrxPYNhtnoFrMeD oRbzHCSDCXyxuDagw3FpjwhjSA/SE2aXEjFaRoj1vghCOXvNJGqdNorwcH1O5bbGre WJpZKXxq73hMFaMyRnJ+Qz2SSVm9e0SML32AaJC8= Received: from DLEE112.ent.ti.com (dlee112.ent.ti.com [157.170.170.23]) by fllv0035.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 3784jWEb073740 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Mon, 7 Aug 2023 23:45:32 -0500 Received: from DLEE105.ent.ti.com (157.170.170.35) by DLEE112.ent.ti.com (157.170.170.23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23; Mon, 7 Aug 2023 23:45:32 -0500 Received: from lelv0326.itg.ti.com (10.180.67.84) by DLEE105.ent.ti.com (157.170.170.35) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23 via Frontend Transport; Mon, 7 Aug 2023 23:45:32 -0500 Received: from localhost (ileaxei01-snat2.itg.ti.com [10.180.69.6]) by lelv0326.itg.ti.com (8.15.2/8.15.2) with ESMTP id 3784jWBQ017300; Mon, 7 Aug 2023 23:45:32 -0500 From: Hari Nagalla <hnagalla@ti.com> To: <andersson@kernel.org>, <mathieu.poirier@linaro.org>, <p.zabel@pengutronix.de>, <martyn.welch@collabora.com>, <nm@ti.com>, <vigneshr@ti.com>, <kristo@kernel.org>, <robh+dt@kernel.org>, <krzysztof.kozlowski+dt@linaro.org>, <conor+dt@kernel.org> CC: <linux-remoteproc@vger.kernel.org>, <linux-kernel@vger.kernel.org>, <linux-arm-kernel@lists.infradead.org>, <devicetree@vger.kernel.org> Subject: [PATCH v5 0/5] TI K3 M4F support on AM64x and AM62x SoCs Date: Mon, 7 Aug 2023 23:45:24 -0500 Message-ID: <20230808044529.25925-1-hnagalla@ti.com> X-Mailer: git-send-email 2.17.1 MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8bit X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_PASS,SPF_PASS,URIBL_BLOCKED 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: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1773679727098142187 X-GMAIL-MSGID: 1773692350516036687 |
Series |
TI K3 M4F support on AM64x and AM62x SoCs
|
|
Message
Hari Nagalla
Aug. 8, 2023, 4:45 a.m. UTC
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 Hari Nagalla (3): dt-bindings: remoteproc: k3-m4f: Add K3 AM64x SoCs arm64: dts: ti: k3-am62 : Add M4F remote proc node arm64: dts: ti: k3-am64 : Add M4F remote proc node Martyn Welch (2): remoteproc: k3: Split out functions common with M4 driver remoteproc: k3-m4: Add a remoteproc driver for M4F subsystem .../bindings/remoteproc/ti,k3-m4f-rproc.yaml | 136 ++++ arch/arm64/boot/dts/ti/k3-am62-mcu.dtsi | 12 + .../arm64/boot/dts/ti/k3-am62x-sk-common.dtsi | 19 + arch/arm64/boot/dts/ti/k3-am64-mcu.dtsi | 12 + arch/arm64/boot/dts/ti/k3-am642-evm.dts | 18 + arch/arm64/boot/dts/ti/k3-am642-sk.dts | 18 + drivers/remoteproc/Kconfig | 13 + drivers/remoteproc/Makefile | 3 +- drivers/remoteproc/ti_k3_common.c | 513 +++++++++++++++ drivers/remoteproc/ti_k3_common.h | 108 ++++ drivers/remoteproc/ti_k3_dsp_remoteproc.c | 598 +----------------- drivers/remoteproc/ti_k3_m4_remoteproc.c | 333 ++++++++++ 12 files changed, 1213 insertions(+), 570 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
Comments
On Mon, 07 Aug 2023 23:45:25 -0500, Hari Nagalla wrote: > K3 AM64x SoC has a Cortex M4F subsystem in the MCU voltage domain. > The remote processor's life cycle management and IPC mechanisms are > similar across the R5F and M4F cores from remote processor driver > point of view. However, there are subtle differences in image loading > and starting the M4F subsystems. > > The YAML binding document provides the various node properties to be > configured by the consumers of the M4F subsystem. > > Signed-off-by: Martyn Welch <martyn.welch@collabora.com> > Signed-off-by: Hari Nagalla <hnagalla@ti.com> > --- > Changes since v1: > - Spelling corrections > - Corrected to pass DT checks > > Changes since v2: > - Missed spelling correction to commit message > > Changes since v3: > - Removed unnecessary descriptions and used generic memory region names > - Made mboxes and memory-region optional > - Removed unrelated items from examples > > Changes since v4: > - Rebased to the latest kernel-next tree > - Added optional sram memory region for m4f device node > > .../bindings/remoteproc/ti,k3-m4f-rproc.yaml | 136 ++++++++++++++++++ > 1 file changed, 136 insertions(+) > create mode 100644 Documentation/devicetree/bindings/remoteproc/ti,k3-m4f-rproc.yaml > My bot found errors running 'make DT_CHECKER_FLAGS=-m dt_binding_check' on your patch (DT_CHECKER_FLAGS is new in v5.13): yamllint warnings/errors: dtschema/dtc warnings/errors: /builds/robherring/dt-review-ci/linux/Documentation/devicetree/bindings/dma/stericsson,dma40.example.dtb: dma-controller@801c0000: sram:0: [4294967295, 4294967295] is too long from schema $id: http://devicetree.org/schemas/dma/stericsson,dma40.yaml# doc reference errors (make refcheckdocs): See https://patchwork.ozlabs.org/project/devicetree-bindings/patch/20230808044529.25925-2-hnagalla@ti.com The base for the series is generally the latest rc1. A different dependency should be noted in *this* patch. If you already ran 'make dt_binding_check' and didn't see the above error(s), then make sure 'yamllint' is installed and dt-schema is up to date: pip3 install dtschema --upgrade Please check and re-submit after running the above command yourself. Note that DT_SCHEMA_FILES can be set to your schema file to speed up checking your schema. However, it must be unset to test all examples with your schema.