From patchwork Wed Jun 7 07:22:12 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tinghan Shen X-Patchwork-Id: 104308 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:994d:0:b0:3d9:f83d:47d9 with SMTP id k13csp75665vqr; Wed, 7 Jun 2023 00:37:52 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4F6LxnGFdNjASBffP85Bg+g37c9Epr5Lif33ZX7wZyn9SVw+thRNjnoreZ1Nm3j6JFOBzI X-Received: by 2002:a92:d24b:0:b0:33b:c0d8:26af with SMTP id v11-20020a92d24b000000b0033bc0d826afmr6953127ilg.7.1686123472034; Wed, 07 Jun 2023 00:37:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686123472; cv=none; d=google.com; s=arc-20160816; b=OB7OMMbPnKVE5LDE6ZColtRBEHUzF4SIsaj47DxwZDP9xVTA5m6DuPosSkXbzojTf9 urrsfQ9TExMCHVqvvKysAt/6R2I7Pa1Fqwt4QuJAaXry5dcVCJLP7KahgUgJGTeJHbmw P1hn92sEb6SAC4Gh37ORfUf7O3Et0ZXZatbImAK5E2Jhw4DY5wzAfHoRVL6KHkppXJSt lSCr1kpsYmFESQs3U/9dNICwzlndI2qoQrwC1jnTpKhZJ/Mz/bqLFN+VRNOGm3mb70of M6E+uKxyGnIkBMsxKNXCnKDKoPOVuVuWSVuDkxJtq5amxsezSv2dN3f5gHGgM+1HCVcU ieMA== 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=AM8VOhi/BgFbYOd7UCwOpJqaqXUwsx2ExnZ2bJKtyHkY0qAEpdVt9stTZyk85fOQFd 13IANrQ3cAfg9FCB6VPH0T0mWlmb0CBlct4/oVka1QSYNwZe2gneVuU2rriEqpoDjWHz H6+SfNcWlHHvZNsKA6vA2d4tVY/N1qiPiqzrE4h/uGOVpXVp4TNca6iiV/ucigDQZiPq NAQ5oXpjbtrO59BJPqmLsfGZ8LzI88YMDi5Q89hN9gl0yVEeHo4ljJa5wsrMERH87f6/ 6C78180d3ThSVPek9a5B2oc6MWT2fkljkNUFCa6VKit85M729uqKp+zgrLDsIoFM4+hJ pNEQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=RAebdOL9; 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 m67-20020a633f46000000b00534842e134fsi8615217pga.272.2023.06.07.00.37.39; Wed, 07 Jun 2023 00:37:51 -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=RAebdOL9; 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 S238988AbjFGHWj (ORCPT + 99 others); Wed, 7 Jun 2023 03:22:39 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52826 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233896AbjFGHWd (ORCPT ); Wed, 7 Jun 2023 03:22:33 -0400 Received: from mailgw02.mediatek.com (unknown [210.61.82.184]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 51E9610DE; Wed, 7 Jun 2023 00:22:31 -0700 (PDT) X-UUID: 0ce07810050411eeb20a276fd37b9834-20230607 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=RAebdOL9IMCaOrswEQkjcwQ7yecxC9rTEhGSDm6hf7YHJ0TByVPcfSSE17Tghs4wFe2s96+5S03teJ6dceOVYmpEQNRaf0bUXjGG8O0ZxRI5TSumgXq5P0ZZtYMPQQBk1EoVZ0bEkJ3y/4yRWbRrivWRZdmdt5VGpOldvoeuvgs=; X-CID-P-RULE: Spam_GS6885AD X-CID-O-INFO: VERSION:1.1.25,REQID:a5cd49cb-0bdd-4c14-b219-548842106368,IP:0,U RL:0,TC:0,Content:0,EDM:25,RT:0,SF:95,FILE:0,BULK:0,RULE:Spam_GS6885AD,ACT ION:quarantine,TS:120 X-CID-INFO: VERSION:1.1.25,REQID:a5cd49cb-0bdd-4c14-b219-548842106368,IP:0,URL :0,TC:0,Content:0,EDM:25,RT:0,SF:95,FILE:0,BULK:0,RULE:Spam_GS981B3D,ACTIO N:quarantine,TS:120 X-CID-META: VersionHash:d5b0ae3,CLOUDID:c2544a6e-2f20-4998-991c-3b78627e4938,B ulkID:230607152226HOI5JZC7,BulkQuantity:0,Recheck:0,SF:48|38|29|28|17|19,T C:nil,Content:0,EDM:5,IP:nil,URL:0,File:nil,Bulk:nil,QS:nil,BEC:nil,COL:0, OSI:0,OSA:0,AV:0 X-CID-BVR: 0,NGT X-CID-BAS: 0,NGT,0,_ X-UUID: 0ce07810050411eeb20a276fd37b9834-20230607 Received: from mtkmbs13n1.mediatek.inc [(172.21.101.193)] by mailgw02.mediatek.com (envelope-from ) (Generic MTA with TLSv1.2 ECDHE-RSA-AES256-GCM-SHA384 256/256) with ESMTP id 1548324687; Wed, 07 Jun 2023 15:22:24 +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; Wed, 7 Jun 2023 15:22:23 +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; Wed, 7 Jun 2023 15:22:23 +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 v13 01/11] dt-bindings: remoteproc: mediatek: Improve the rpmsg subnode definition Date: Wed, 7 Jun 2023 15:22:12 +0800 Message-ID: <20230607072222.8628-2-tinghan.shen@mediatek.com> X-Mailer: git-send-email 2.18.0 In-Reply-To: <20230607072222.8628-1-tinghan.shen@mediatek.com> References: <20230607072222.8628-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,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: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1768028606041568666?= X-GMAIL-MSGID: =?utf-8?q?1768028606041568666?= 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"; }; };