From patchwork Wed Feb 15 04:12:46 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tinghan Shen X-Patchwork-Id: 57359 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:eb09:0:0:0:0:0 with SMTP id s9csp3359231wrn; Tue, 14 Feb 2023 20:15:38 -0800 (PST) X-Google-Smtp-Source: AK7set+no6TV5aBoRlCSMpYZzJl0CogD1UK0tKLMXJqNbCAXag3WVcIDUXcK+wTGMnFTF63YX01c X-Received: by 2002:a17:906:af08:b0:8b1:3a1c:3174 with SMTP id lx8-20020a170906af0800b008b13a1c3174mr718220ejb.77.1676434538272; Tue, 14 Feb 2023 20:15:38 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1676434538; cv=none; d=google.com; s=arc-20160816; b=PC20vGeYN1nCJHuqWBfOBJKW/ekOP4JG7NpkgCewl8XN+DA8QDIObidy5OPRXbrwSN SinqmD1zNz2gFiwcPlMjsqOhaEpmhfQyesXr3or95NIlrSLs9kvETY6YRX2oD3I42qUT UPhYjm7g2mQ/XllEwjLj2ns4XiVtvH0S1hEinGDSVW2feBt/H6MD/I+J11E1aiZK9zyl WYoALqzuwT1ZntSw93qsFaLfJtPwttBXhu9jJ8EaAWq0tAt26alw1JYX9cDEGHTeS9pU VTag6TyV/jeA21R3QqXg7UJqvJ7fokomPR3Yc0Q+JdY8JbXPsTSCC0Dynx44pfZgZczO Zwww== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=X5BMOUCftBqUoS89OY1vJghk0U8zsFcVshTFWmsRm4E=; b=ZpAUDd2iJWWG40metuzCUKwTEa1/jCsrho36Urvm76AMwVbZcMcK+Ur/oIeQEBqxwU rgMAosYHcFrnqT0wlSXQcwG8ZP4XRpTITYP6FNA6t4zN7NDUtoD8csT2AlRq3xBt/6V8 oXBLFPFQhwSgKfIEi76Q+5a9dSCcU8tU4FRcze9AWQ5fIch2hcWGNCaiyzIljPuzRMFr w0PKpblLvSKaGXVKgs5XnwOwbuiDtCeIreCSz+YKowkDpDpWuKubI4rDs+ZAYtP2x6Dq GdGz7ljQsy/MdCzTS/HTRc/IFEwZkMnhsRWPK7pmbMDjv6XBrWfzdHOIORSRPwVgDXCk FxGQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=ejyq+YHS; 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=mediatek.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id 10-20020a17090600ca00b0088c5e867083si18230158eji.807.2023.02.14.20.14.50; Tue, 14 Feb 2023 20:15:38 -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=@mediatek.com header.s=dk header.b=ejyq+YHS; 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=mediatek.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232733AbjBOENX (ORCPT + 99 others); Tue, 14 Feb 2023 23:13:23 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41012 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230474AbjBOENJ (ORCPT ); Tue, 14 Feb 2023 23:13:09 -0500 Received: from mailgw02.mediatek.com (unknown [210.61.82.184]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 916D5241C5; Tue, 14 Feb 2023 20:13:07 -0800 (PST) X-UUID: 087eaf78ace711ed945fc101203acc17-20230215 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=mediatek.com; s=dk; h=Content-Type:MIME-Version:References:In-Reply-To:Message-ID:Date:Subject:CC:To:From; bh=X5BMOUCftBqUoS89OY1vJghk0U8zsFcVshTFWmsRm4E=; b=ejyq+YHSI5KVfeI5h6KewDKUTNARh3EhbjVxUKBG7kYh1H9Qrz8ROj6qLA6y3fw2rvEKJBoCq8pZsmoJ6FLhkhRaQB4AUGHZxJjAtgniJyLVt72igHKslMrHtCxA9kYLQ/d8yp82hjTQur0Gi9vIUi8hWQ1g2hOYFyuznuPsmRI=; X-CID-P-RULE: Release_Ham X-CID-O-INFO: VERSION:1.1.19,REQID:3910c56a-e317-4df8-801e-204e851437cd,IP:0,U RL:0,TC:0,Content:0,EDM:0,RT:0,SF:0,FILE:0,BULK:0,RULE:Release_Ham,ACTION: release,TS:0 X-CID-META: VersionHash:885ddb2,CLOUDID:ba739b25-564d-42d9-9875-7c868ee415ec,B ulkID:nil,BulkQuantity:0,Recheck:0,SF:102,TC:nil,Content:0,EDM:-3,IP:nil,U RL:0,File:nil,Bulk:nil,QS:nil,BEC:nil,COL:0,OSI:0,OSA:0,AV:0 X-CID-BVR: 0,NGT X-UUID: 087eaf78ace711ed945fc101203acc17-20230215 Received: from mtkmbs11n2.mediatek.inc [(172.21.101.187)] by mailgw02.mediatek.com (envelope-from ) (Generic MTA with TLSv1.2 ECDHE-RSA-AES256-GCM-SHA384 256/256) with ESMTP id 456755916; Wed, 15 Feb 2023 12:12:59 +0800 Received: from mtkmbs11n2.mediatek.inc (172.21.101.187) by mtkmbs11n1.mediatek.inc (172.21.101.185) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.792.15; Wed, 15 Feb 2023 12:12:58 +0800 Received: from mtksdccf07.mediatek.inc (172.21.84.99) by mtkmbs11n2.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.2.792.15 via Frontend Transport; Wed, 15 Feb 2023 12:12:58 +0800 From: Tinghan Shen To: Bjorn Andersson , Mathieu Poirier , Rob Herring , Krzysztof Kozlowski , Matthias Brugger , AngeloGioacchino Del Regno , Tinghan Shen CC: , , , , , Subject: [PATCH v7 01/12] dt-bindings: remoteproc: mediatek: Improve the rpmsg subnode definition Date: Wed, 15 Feb 2023 12:12:46 +0800 Message-ID: <20230215041257.14548-2-tinghan.shen@mediatek.com> X-Mailer: git-send-email 2.18.0 In-Reply-To: <20230215041257.14548-1-tinghan.shen@mediatek.com> References: <20230215041257.14548-1-tinghan.shen@mediatek.com> MIME-Version: 1.0 X-MTK: N X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS, SPF_PASS,UNPARSEABLE_RELAY 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?1757869022134669820?= X-GMAIL-MSGID: =?utf-8?q?1757869022134669820?= Improve the definition of the rpmsg subnode by assigning a distinct node name and adding the definition source of node properties. Signed-off-by: Tinghan Shen Acked-by: Rob Herring --- .../bindings/remoteproc/mtk,scp.yaml | 31 +++++++++---------- 1 file changed, 15 insertions(+), 16 deletions(-) diff --git a/Documentation/devicetree/bindings/remoteproc/mtk,scp.yaml b/Documentation/devicetree/bindings/remoteproc/mtk,scp.yaml index 895415772d1d..271081df0e46 100644 --- a/Documentation/devicetree/bindings/remoteproc/mtk,scp.yaml +++ b/Documentation/devicetree/bindings/remoteproc/mtk,scp.yaml @@ -58,6 +58,18 @@ properties: memory-region: maxItems: 1 + cros-ec-rpmsg: + $ref: /schemas/mfd/google,cros-ec.yaml + description: + This subnode represents the rpmsg device. The properties + of this node are defined by the individual bindings for + the rpmsg devices. + + required: + - mediatek,rpmsg-name + + unevaluatedProperties: false + required: - compatible - reg @@ -89,21 +101,7 @@ allOf: reg-names: maxItems: 2 -additionalProperties: - type: object - description: - Subnodes of the SCP represent rpmsg devices. The names of the devices - are not important. The properties of these nodes are defined by the - individual bindings for the rpmsg devices. - properties: - mediatek,rpmsg-name: - $ref: /schemas/types.yaml#/definitions/string-array - description: - Contains the name for the rpmsg device. Used to match - the subnode to rpmsg device announced by SCP. - - required: - - mediatek,rpmsg-name +additionalProperties: false examples: - | @@ -118,7 +116,8 @@ examples: clocks = <&infracfg CLK_INFRA_SCPSYS>; clock-names = "main"; - cros_ec { + cros-ec-rpmsg { + compatible = "google,cros-ec-rpmsg"; mediatek,rpmsg-name = "cros-ec-rpmsg"; }; };