Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp31441488rwd; Thu, 6 Jul 2023 22:34:13 -0700 (PDT) X-Google-Smtp-Source: APBJJlHMS4RavLilSEhX62fXO9khVJZQb9TtIXTxb9FxuBs032he1JkMoK0o7dYGYOKOO9f7II1d X-Received: by 2002:a17:902:930c:b0:1b7:ca9c:4f53 with SMTP id bc12-20020a170902930c00b001b7ca9c4f53mr2744042plb.20.1688708052610; Thu, 06 Jul 2023 22:34:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1688708052; cv=none; d=google.com; s=arc-20160816; b=n3ex5IMHm6wLJLVQ6gkj+pplIrcHJIUFotqxF8O1vttQShJyN9vHMshAlr1DTqPcdV pGAdM8FkEhx9sSeK6cc/00ug8QWUrn2S3GRjfhDfb/JZKvCew4PYp5qfUcUFHgBEuZdV BMvrVplU7Y/No8cftwnGeLtsWV6XytrcszK9w6NLQpt94yLNlTX6mXqHcqmzuZa4TV3V fB0Km6CTQwT54yyKBOrpSYaDhlEYpf8xWWzM76Ji8FYWt/vwVkx2nfAKBn+nUd4ECZpU ljWLg/UaTfL6ikUGRpmjSs3/rbt7ha5Tjh4bW+7WmunJinBncDk5oIuRt+GSeuwsPkl7 nSfg== 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=AezGOQP+D1v1bzBCXXR0/e4pZGQQF4EFtfBU/9TBFe4=; fh=fiUFlTmdXAnPLHH0bIyIc4brKi/t2/OmtpRJQ8s00Ug=; b=slqc+HYR2qIXG0qeD9N8aSlzNFyMc0DUchGEhyg4kY0lbGV6YzBwR8x/AOwpdm7Ypm dL56EiwqZ08tT/FWRJZXOQ7wfWtXS9xHeq2q2Rvo1xFoX8sAYe/0Mfm+ml3NjQDfZ6AT k5ACik4y4JRkeec7FPup5fI7gi+AH9BE1G0AwZuo9jlh2uJdieddJi2J37+JS2G9CsGZ iJ8KP1Bhc4+HAxK2kPoyReoPiPcq0BI2qyJwhimFpSNm4+AN/Kmi6vTItsrifDbipfHt 9KkFDGxUriSnDKiFxrhc8CvsXtbfKIEg/H1fk8Dslb/AN9naG8RmV5uSbCbg8mYR1KOD lpLQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=pHYA2kXB; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id q3-20020a170902f34300b001b878feaec7si2719953ple.203.2023.07.06.22.33.59; Thu, 06 Jul 2023 22:34:12 -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=@mediatek.com header.s=dk header.b=pHYA2kXB; 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 S232570AbjGGF0n (ORCPT + 99 others); Fri, 7 Jul 2023 01:26:43 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42856 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232489AbjGGF0a (ORCPT ); Fri, 7 Jul 2023 01:26:30 -0400 Received: from mailgw02.mediatek.com (unknown [210.61.82.184]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 386161FE4; Thu, 6 Jul 2023 22:26:26 -0700 (PDT) X-UUID: cb4d5c521c8611eeb20a276fd37b9834-20230707 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=AezGOQP+D1v1bzBCXXR0/e4pZGQQF4EFtfBU/9TBFe4=; b=pHYA2kXBvPlBHxUo672BdUtFz2FK/1D9xsymN076WOf6yRlzhU0gk0NHHUSEVFXEkfTwkUF+pYiuyDOVGyFDLFGADIBZPNhZzGZKE6Xk9vLGlTIf4U88dGpphLZCWPpdPSTLMWfzrGQvIqsyIlE+KTFyTZQ94dlS1i27ZZb7H7I=; X-CID-P-RULE: Release_Ham X-CID-O-INFO: VERSION:1.1.27,REQID:c565321e-29ef-4568-937f-cf778af5c5ee,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:01c9525,CLOUDID:dd6caa0d-26a8-467f-b838-f99719a9c083,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,LES:1,SPR:NO X-CID-BVR: 0 X-CID-BAS: 0,_,0,_ X-CID-FACTOR: TF_CID_SPAM_SNR X-UUID: cb4d5c521c8611eeb20a276fd37b9834-20230707 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 1338016942; Fri, 07 Jul 2023 13:26:15 +0800 Received: from mtkmbs11n1.mediatek.inc (172.21.101.186) by mtkmbs13n1.mediatek.inc (172.21.101.193) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1118.26; Fri, 7 Jul 2023 13:26:14 +0800 Received: from mtksdccf07.mediatek.inc (172.21.84.99) by mtkmbs11n1.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.2.1118.26 via Frontend Transport; Fri, 7 Jul 2023 13:26:14 +0800 From: Tinghan Shen To: Bjorn Andersson , Mathieu Poirier , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Matthias Brugger , AngeloGioacchino Del Regno , Tinghan Shen CC: , , , , , Subject: [PATCH v14 01/12] dt-bindings: remoteproc: mediatek: Improve the rpmsg subnode definition Date: Fri, 7 Jul 2023 13:26:01 +0800 Message-ID: <20230707052612.27521-2-tinghan.shen@mediatek.com> X-Mailer: git-send-email 2.18.0 In-Reply-To: <20230707052612.27521-1-tinghan.shen@mediatek.com> References: <20230707052612.27521-1-tinghan.shen@mediatek.com> MIME-Version: 1.0 Content-Type: text/plain 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,SPF_HELO_PASS,SPF_PASS, T_SCC_BODY_TEXT_LINE,UNPARSEABLE_RELAY,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: X-Mailing-List: linux-kernel@vger.kernel.org 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 Reviewed-by: AngeloGioacchino Del Regno --- .../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"; }; }; -- 2.18.0