From patchwork Fri Sep 24 03:39:29 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tinghan Shen X-Patchwork-Id: 12513943 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=-13.2 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,UNPARSEABLE_RELAY,USER_AGENT_GIT 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 2608CC433F5 for ; Fri, 24 Sep 2021 03:42:27 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id DDB7661038 for ; Fri, 24 Sep 2021 03:42:26 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org DDB7661038 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=mediatek.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-ID:Date:Subject:CC :To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=uot1ob4ld/HKGc8JD8l53q1oWcRvbpM4sCkjKvPaehk=; b=Zm7F1FCqan1TmH bW+aBaWq6bnROQlN2p2y1e4nZWp6vPcbB0NFICLYkne6p8KKkRsk3cL/cjarHdQdj0qPAYDyX3RwF d2ew2GI6PH0pENsVwSrqeWKB1dT7M67TFSBLhto5L5yaYzXrwLH6SfH+mCyUkIF96QFJjU5hskETx wRiZO7G9V6iLJEL7/nO4QeSU5+R8i9+MrxjL7G+EXUGr037nOuL3nTO+e5xhDmGQjC48BSny948JC BP+zqQHUslToITLp2/UgSG5L6l8aFoGKhNN6rlWkY+NOqfVk6cvn/2jLvZTNiD4CA9J7+vc1w1vTP q5GnDFXZgMSARgkedoog==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mTc48-00D0P8-Bo; Fri, 24 Sep 2021 03:40:00 +0000 Received: from mailgw01.mediatek.com ([216.200.240.184]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1mTc3u-00D0KQ-5K; Fri, 24 Sep 2021 03:39:47 +0000 X-UUID: d93edf164ec84f7c9b432bfd26984f71-20210923 X-UUID: d93edf164ec84f7c9b432bfd26984f71-20210923 Received: from mtkcas68.mediatek.inc [(172.29.94.19)] by mailgw01.mediatek.com (envelope-from ) (musrelay.mediatek.com ESMTP with TLSv1.2 ECDHE-RSA-AES256-SHA384 256/256) with ESMTP id 1464880229; Thu, 23 Sep 2021 20:39:40 -0700 Received: from MTKMBS07N2.mediatek.inc (172.21.101.141) by MTKMBS62N1.mediatek.inc (172.29.193.41) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Thu, 23 Sep 2021 20:39:39 -0700 Received: from mtkcas11.mediatek.inc (172.21.101.40) by mtkmbs07n2.mediatek.inc (172.21.101.141) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Fri, 24 Sep 2021 11:39:37 +0800 Received: from mtksdccf07.mediatek.inc (172.21.84.99) by mtkcas11.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Fri, 24 Sep 2021 11:39:37 +0800 From: Tinghan Shen To: , , , , CC: , , , , , Tinghan Shen Subject: [PATCH v7 0/6] Mediatek MT8195 SCP support Date: Fri, 24 Sep 2021 11:39:29 +0800 Message-ID: <20210924033935.2127-1-tinghan.shen@mediatek.com> X-Mailer: git-send-email 2.15.GIT MIME-Version: 1.0 X-MTK: N X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210923_203946_233645_37AD4CD1 X-CRM114-Status: GOOD ( 12.21 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Change since v6: - no change (rebased to 5.15-rc1) Change since v5: - Drop adding new vendor-prefix - Rename rpmsg property from "mtk," to "mediatek," to use the name defined in vendor-prefix.yaml for Mediatek Co. Changes since v4: - Move clock acquirement to mtk_scp_of_data - Add new vendor-prefix for Mediatek SCP - Refine mtk,scp.yaml - Remove '|' in 'description' - Add 'items' to replace 'description' in reg-names property - Add 'const' to replace 'description' in clock-names property - Add required property for mt8183 and mt8192 - Rewrite 'patternProperties' by 'additionalProperties' - Rewrite example with 1 address and size-cell. - Drop dts label from example Changes since v3: - Add missing patch version in mail subject - No change to patches. Changes since v2: - Add compatible for mt8192 - Convert mtk,scp.txt to mtk,scp.yaml - Refine clock checking method Changes since v1: - Fix missing 'compatible' line in binding document Tinghan Shen (6): dt-bindings: remoteproc: mediatek: Add binding for mt8195 scp dt-bindings: remoteproc: mediatek: Add binding for mt8192 scp dt-bindings: remoteproc: mediatek: Convert mtk,scp to json-schema remoteproc: mediatek: Support mt8195 scp rpmsg: change naming of mediatek rpmsg property arm64: dts: mt8183: change rpmsg property name .../bindings/remoteproc/mtk,scp.txt | 36 -------- .../bindings/remoteproc/mtk,scp.yaml | 92 +++++++++++++++++++ .../arm64/boot/dts/mediatek/mt8183-kukui.dtsi | 2 +- drivers/remoteproc/mtk_common.h | 1 + drivers/remoteproc/mtk_scp.c | 48 +++++++++- drivers/rpmsg/mtk_rpmsg.c | 2 +- 6 files changed, 138 insertions(+), 43 deletions(-) delete mode 100644 Documentation/devicetree/bindings/remoteproc/mtk,scp.txt create mode 100644 Documentation/devicetree/bindings/remoteproc/mtk,scp.yaml