From patchwork Mon Aug 9 05:19:53 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tinghan Shen X-Patchwork-Id: 12425417 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=-12.5 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,URIBL_BLOCKED, USER_AGENT_GIT autolearn=ham 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 7B190C4338F for ; Mon, 9 Aug 2021 05:23:32 +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 44E8460F55 for ; Mon, 9 Aug 2021 05:23:32 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 44E8460F55 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=SP/Tt0LVkJtZnz/p8YLTFq5TtKqrd6g4exp7YWL93BY=; b=GY90w2zXc2zuDd koqnG14+hxazAox5EgEeCQXN97pEkJbN6Ds+o2JS5oau2Vu659O06Dbh3iTrdfo4hSMzlA1fI6WtL nua6wNB1LlBn5oMVdR1HH8dM//57WN5Cgnz0siP9bY4TUKOpVH09ASmvL2fXTzxhplgM+BaLEY9kb 8iVHMLCLtnSb8C+s7IL1NFqTm0yDPjTcRfATgydG5wreggG5RG5fKMOJVX2l4agi9QR5qUEjkkhLo c988OlU5/kAiLmWegJ3IBM+tF54/8J6TyeZENgrQF9cT/7Q6Uii97R/mijKkGTslIFsCxQpOqpa8d IjRdJoS24mQQSoFrEscg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mCxiu-00HA66-Gk; Mon, 09 Aug 2021 05:21:17 +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 1mCxhu-00H9g4-Rk; Mon, 09 Aug 2021 05:20:16 +0000 X-UUID: e7f82fde9ef0400fa4c6cb31d4134414-20210808 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=mediatek.com; s=dk; h=Content-Transfer-Encoding:Content-Type:MIME-Version:Message-ID:Date:Subject:CC:To:From; bh=aUSRXXIgBpr3VlIMWFKnQLyUKpDCmEf6ZngHglO62oE=; b=Mf1+GqA/D275VFTSR2I5FxYXiThX6zRsZQ/wzGmRVYoNwTESs/A9y+sVR+pYolwJYlijP0LiCoPeYDyntyhMeRv58Mx3RWnoeE1opwuqGUBUmFzsUB9OE73d7iqkXl2gf+3op8QSV4BOETs6pPfKRAHeFzdBB1i7uDFEcboEmq4=; X-UUID: e7f82fde9ef0400fa4c6cb31d4134414-20210808 Received: from mtkcas66.mediatek.inc [(172.29.193.44)] by mailgw01.mediatek.com (envelope-from ) (musrelay.mediatek.com ESMTP with TLSv1.2 ECDHE-RSA-AES256-SHA384 256/256) with ESMTP id 396404589; Sun, 08 Aug 2021 22:20:04 -0700 Received: from MTKMBS02N1.mediatek.inc (172.21.101.77) by MTKMBS62N1.mediatek.inc (172.29.193.41) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Sun, 8 Aug 2021 22:20:03 -0700 Received: from mtkcas10.mediatek.inc (172.21.101.39) by mtkmbs02n1.mediatek.inc (172.21.101.77) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Mon, 9 Aug 2021 13:20:01 +0800 Received: from mtksdccf07.mediatek.inc (172.21.84.99) by mtkcas10.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Mon, 9 Aug 2021 13:20:01 +0800 From: Tinghan Shen To: , , , , , , , , , , , , CC: , , , , , Tinghan Shen Subject: [PATCH v6 0/6] Mediatek MT8195 SCP support Date: Mon, 9 Aug 2021 13:19:53 +0800 Message-ID: <20210809051959.31136-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-20210808_222014_948192_D4C7B34B X-CRM114-Status: GOOD ( 11.81 ) 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 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