From patchwork Fri Jul 21 02:41:20 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tinghan Shen X-Patchwork-Id: 123529 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:c923:0:b0:3e4:2afc:c1 with SMTP id j3csp3526735vqt; Thu, 20 Jul 2023 20:21:12 -0700 (PDT) X-Google-Smtp-Source: APBJJlFM1hS1vG5PUV8IjBfcKWImCNg0R6cA+O2wfr21cmnmCg20EvsqNkPP8q0uuD7PbwZCQi4F X-Received: by 2002:a05:6358:2923:b0:134:d617:e2c9 with SMTP id y35-20020a056358292300b00134d617e2c9mr653776rwb.29.1689909672088; Thu, 20 Jul 2023 20:21:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689909672; cv=none; d=google.com; s=arc-20160816; b=ziUNDBlGnjB02Xo1i3JoIyierl9Tn/+53VChmQE2lZD1PXqB2IdEiCxrOnsJHh9vZT 46E2dxqswQHpzpaf5C0T1ufqQgI9W5/ZDr+L1CZ4eoPHaZ5f9y/uTN+lBidFqv5mdObP 544L3KnPveA7444MelBJepmJG3DIulBgwOxLehKECEWY6U+LQynLuJvJLsZha+8Gz49z 521pOkpBN7R3RUl5uF0fZxR3jNlILubod67SpZ8WC+Y3URxl0+LkaBleA0Jen2FX8o8K mB7i6wooBclOltYMSYHtXOHoBhIqgRko/xhtBDl5TujyxgSH1BYrcdNt7J4Qc6+JUsCc yB7A== 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=0GTgfHZrkSs0xnUZ/LSuab61h/gYO3SBlbVog4q7hk8=; fh=fiUFlTmdXAnPLHH0bIyIc4brKi/t2/OmtpRJQ8s00Ug=; b=HNZmZqkZWjMvha8IkVUDt1jfvBji/OcAG9CY30IO8Z3TW/topz6mLxFSLpcd4JCrkt p0vdYiIIU2VJZk9DuQC3oUeo8XZ6GSYPOIXQSptNtDPvc6yEItqRl9Z7NQVYOSRCDJNg Kg82KF7K7lS8zGrsjzFU4KHxsytGHj7AoGSb0+PwSkiInFzY9S84P+RzsaE95jd4w/r+ snblTa1MX5NGGIVhU+KwmSQM6so8tzXrSAdIiP5UsIhEJRifFxQpEM6k4Qc2bvab4W6N ZWg42Jyc0wFEXCrNF+WO3yywBhhtxnJIbaClCgg/3ZzAdnHEn4qROFGmQRu10sr9HjFF tEgQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=Z62fCUfh; 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 7-20020a630007000000b00553836cb761si2017110pga.717.2023.07.20.20.20.58; Thu, 20 Jul 2023 20:21: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=Z62fCUfh; 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 S229731AbjGUCmJ (ORCPT + 99 others); Thu, 20 Jul 2023 22:42:09 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40998 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229534AbjGUCmE (ORCPT ); Thu, 20 Jul 2023 22:42:04 -0400 Received: from mailgw01.mediatek.com (unknown [60.244.123.138]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 810F7268E; Thu, 20 Jul 2023 19:41:57 -0700 (PDT) X-UUID: 2534e7b4277011ee9cb5633481061a41-20230721 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=0GTgfHZrkSs0xnUZ/LSuab61h/gYO3SBlbVog4q7hk8=; b=Z62fCUfh1fOj6pjKtKMeL5+IbqVdsWICr0II1gO0DEiVXvTmA8XXcOkbxr9KU1bg2389S4wyeaHn+eMGkKb2MzZbM4MZQaaLiHY9JOXEQ5ZWIeixJuLB7DRIGSoBs4Y8luAXHBkByoBbpu179snKDlBOZzFdF3r2X+EQTjm9NqE=; X-CID-P-RULE: Release_Ham X-CID-O-INFO: VERSION:1.1.28,REQID:c0cac047-093c-4f6f-9490-7af227363221,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:176cd25,CLOUDID:6c8df44c-06c1-468b-847d-5b62d44dbb9b,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, DKR:0,DKP:0 X-CID-BVR: 0 X-CID-BAS: 0,_,0,_ X-CID-FACTOR: TF_CID_SPAM_SNR X-UUID: 2534e7b4277011ee9cb5633481061a41-20230721 Received: from mtkmbs11n1.mediatek.inc [(172.21.101.185)] by mailgw01.mediatek.com (envelope-from ) (Generic MTA with TLSv1.2 ECDHE-RSA-AES256-GCM-SHA384 256/256) with ESMTP id 1602522252; Fri, 21 Jul 2023 10:41:50 +0800 Received: from mtkmbs13n2.mediatek.inc (172.21.101.108) by mtkmbs13n2.mediatek.inc (172.21.101.108) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1118.26; Fri, 21 Jul 2023 10:41:49 +0800 Received: from mtksdccf07.mediatek.inc (172.21.84.99) by mtkmbs13n2.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.2.1118.26 via Frontend Transport; Fri, 21 Jul 2023 10:41:49 +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 v15 01/13] dt-bindings: remoteproc: mediatek: Improve the rpmsg subnode definition Date: Fri, 21 Jul 2023 10:41:20 +0800 Message-ID: <20230721024132.6548-2-tinghan.shen@mediatek.com> X-Mailer: git-send-email 2.18.0 In-Reply-To: <20230721024132.6548-1-tinghan.shen@mediatek.com> References: <20230721024132.6548-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_DNSWL_BLOCKED, 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 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1771998724332985783 X-GMAIL-MSGID: 1771998724332985783 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"; }; };