Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp479393ybv; Fri, 7 Feb 2020 03:02:30 -0800 (PST) X-Google-Smtp-Source: APXvYqwS7zDCz9XDwbqV/jyCdzeZv56vXkZu41s8nwG4UNcznXUrJRtMs2xV1v0qpDm15mhtUVEk X-Received: by 2002:a9d:12cf:: with SMTP id g73mr2068789otg.329.1581073350483; Fri, 07 Feb 2020 03:02:30 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1581073350; cv=pass; d=google.com; s=arc-20160816; b=UH63fCAbwzlbnBWMxlC5h3qlg+Z9mZYXyMAMnnqnxjhOUw+XPBZx7UeBiK9XuCsod1 CK5riwSr/bOvR8wY9qgUj9PZeQ3DqvvNztnzXtDA3A5vLeSwx67S+NvqPLSqJYeAtoxX 6BRm1XLY5AjYM82zFcjXpRLPODxXPItq9VXlvugyrB1ADH1y+oNf+O8nX0FfQJvgy1PL yRXylH3H1dS63Rzz5CtaQm+LJRnEB4z4JSelk1JEvDImLblXuT5eEg2583I9VhCFS7Ks DMrjRKqqA6NOXpfbgB1bDjQiNATrxUloEoM6lN6z5pzyXG2YI9D+PemWWRLj5z9xFtPX n3zw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :content-language:accept-language:in-reply-to:references:message-id :date:thread-index:thread-topic:subject:cc:to:from:dkim-signature; bh=7G/cmdHluzNoYYE6ZQ1anzZfnq9erUBGBQoZ8GzzkiI=; b=d3adD2W4diOkLW9p6GxjIyJjYffgo4A7/jpaKXVMyGTYM43MX3sN+m1aH9fUKNKIVr rjXJgVoQlVe3/O26+qYsCWjeOvMl0VdnGL7rctqtz9AtvxOjVPHW6+FeoiALSNA844Et JOyKpX8Sn/U2RZCZRLHz/vP8dkan1mdAx55aUgcvDdW4/Z8GoOnBA/I91U+SfkuIoCi3 kAGFvuDnuR3asfN+2iytp/fcaBNBp8rOnSqFqg4Nt6eMULRYh00XgpU5JKf/jKGUKjNq gFI8ipAoUlUAQJQS6pKMRt3gwym7epOB0saF8mdpq8mRnGvjvfMNz1FRcFvdDrLlH8C5 f9kg== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@nxp.com header.s=selector2 header.b=VMGzk4Ax; arc=pass (i=1 spf=pass spfdomain=nxp.com dkim=pass dkdomain=nxp.com dmarc=pass fromdomain=nxp.com); spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=nxp.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id t3si3778811oig.25.2020.02.07.03.02.18; Fri, 07 Feb 2020 03:02:30 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@nxp.com header.s=selector2 header.b=VMGzk4Ax; arc=pass (i=1 spf=pass spfdomain=nxp.com dkim=pass dkdomain=nxp.com dmarc=pass fromdomain=nxp.com); spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727005AbgBGLBV (ORCPT + 99 others); Fri, 7 Feb 2020 06:01:21 -0500 Received: from mail-eopbgr10062.outbound.protection.outlook.com ([40.107.1.62]:48209 "EHLO EUR02-HE1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726798AbgBGLBV (ORCPT ); Fri, 7 Feb 2020 06:01:21 -0500 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=h5es4ieO58rDmmpbAgBuwLQC6gjPTzpzYAqaogKHnJ9gnNSaui38Pjrfq4OXJhQEgwcQ7MHpJWrgcw2RgjM8Svpc9PfwCq06t+CGNDtss7hQTD6hDnVF/0bYBXYN5JqgRpM++jQBbcJquhobTSuVFGFOyqWxPUu3EGxVHpq0l/kuhLQPt5d2Hu5H2zbA0hhopLA353XsQGWjEfmH98cXa+Jn2eBh89ZV526B7W2bglPpvrOeELYSQ2SsLxxxr6mgfLEyNoYVk1L+jaUhQeXQyOBYQKoLPyMofDea6ien7rrOBctPLpONI4qybf44/docNWWugOJxABROrJEGQB6/yw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=7G/cmdHluzNoYYE6ZQ1anzZfnq9erUBGBQoZ8GzzkiI=; b=C/s46WL6ZhIsRpgG3j4wKZ9sPC2YVqXQOnRXLFllKNJDrPUchFWvxme72L1sKKRITenN38pFPXBU+JWLHXKJOZK+M/roBJhlU+nqYKy3M4aEOQNM2mmOptmAv2Am3k2jFt14SsTFfDh2pO+NVPyxT3skpCvg/PozkzGVun/deA5I05z0FtqwUyuLSinEf3SabqeQRX3be11AjPj2HoBW7ZL6UzarJgee0X2ibHgc2G72XMLLdKQ9OvLnawSw1W18KA+YkIL2ld01g9ZsEVpgcarH2AUCZgD4lS18wxINsnW8A1uKpSGiMcPUeYna8N6LTwL2X+IArWsP6nUaeAe9/Q== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nxp.com; dmarc=pass action=none header.from=nxp.com; dkim=pass header.d=nxp.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=7G/cmdHluzNoYYE6ZQ1anzZfnq9erUBGBQoZ8GzzkiI=; b=VMGzk4Ax4doU7ttwNJy9wmQJc2FH01kEwEyrSq/qdrI8eoHDmHBLDlc1jPMn9jaRC0PyEAIFfhwP/2hlG2cVmh7qVWB82s1p8pvBgLnCszXWTOTkLoBuf0ReGPMW28a2vsTXEROe8Oy/NV9DNtSGrUE44vPHeDnZgpbxtJCK2Mo= Received: from AM0PR04MB4481.eurprd04.prod.outlook.com (52.135.147.15) by AM0PR04MB4946.eurprd04.prod.outlook.com (20.176.214.147) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2707.24; Fri, 7 Feb 2020 11:00:37 +0000 Received: from AM0PR04MB4481.eurprd04.prod.outlook.com ([fe80::91e2:17:b3f4:d422]) by AM0PR04MB4481.eurprd04.prod.outlook.com ([fe80::91e2:17:b3f4:d422%3]) with mapi id 15.20.2707.024; Fri, 7 Feb 2020 11:00:37 +0000 From: Peng Fan To: Marc Zyngier , Sudeep Holla CC: "robh+dt@kernel.org" , "mark.rutland@arm.com" , "devicetree@vger.kernel.org" , "f.fainelli@gmail.com" , "viresh.kumar@linaro.org" , "linux-kernel@vger.kernel.org" , dl-linux-imx , "andre.przywara@arm.com" , "linux-arm-kernel@lists.infradead.org" Subject: RE: [PATCH 1/2] dt-bindings: arm: arm,scmi: add smc/hvc transports Thread-Topic: [PATCH 1/2] dt-bindings: arm: arm,scmi: add smc/hvc transports Thread-Index: AQHV3O5LIqtUB1cLq0qKBDDFKN5B7qgPg0IAgAAK5QCAAAIrgIAAAERw Date: Fri, 7 Feb 2020 11:00:37 +0000 Message-ID: References: <1580994086-17850-1-git-send-email-peng.fan@nxp.com> <1580994086-17850-2-git-send-email-peng.fan@nxp.com> <7875e2533c4ba23b8ca0a2a296699497@kernel.org> <20200207104736.GB36345@bogus> <5a073c37e877d23977e440de52dba6e0@kernel.org> In-Reply-To: <5a073c37e877d23977e440de52dba6e0@kernel.org> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: spf=none (sender IP is ) smtp.mailfrom=peng.fan@nxp.com; x-originating-ip: [119.31.174.68] x-ms-publictraffictype: Email x-ms-office365-filtering-ht: Tenant x-ms-office365-filtering-correlation-id: b524a86d-155c-4daa-08e2-08d7abbcf674 x-ms-traffictypediagnostic: AM0PR04MB4946:|AM0PR04MB4946: x-ms-exchange-transport-forked: True x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:2000; x-forefront-prvs: 0306EE2ED4 x-forefront-antispam-report: SFV:NSPM;SFS:(10009020)(4636009)(396003)(376002)(346002)(136003)(366004)(39860400002)(189003)(199004)(6506007)(54906003)(110136005)(53546011)(33656002)(7696005)(52536014)(2906002)(4326008)(66476007)(66556008)(64756008)(66946007)(478600001)(66446008)(5660300002)(76116006)(316002)(55016002)(9686003)(44832011)(71200400001)(81156014)(7416002)(86362001)(8936002)(81166006)(8676002)(26005)(186003)(142933001);DIR:OUT;SFP:1101;SCL:1;SRVR:AM0PR04MB4946;H:AM0PR04MB4481.eurprd04.prod.outlook.com;FPR:;SPF:None;LANG:en;PTR:InfoNoRecords;MX:1;A:1; received-spf: None (protection.outlook.com: nxp.com does not designate permitted sender hosts) x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: xiGUPC+ssnLtaEkNijws71FdkSs4d4zUySoZWGmUwYZd+Ek7+xw0seafecOd/hXKiERUluxAyRUb81/fA5kkkIzr+7uMgbMrvixsp2fTYMD9aRdV1ANkMm0W4AKN4TVxtZ7kaPEmel/xaAe8+Wq3UaiinwkfzXIyd2V2mMFcFBjHPWTvWLTFWLEiJ8CbtgJHX0rQfZiDWbATNbKMHxffmHoaV3oexDvxou6q4lz/ILeHZYqSyICakcHOo9NYhub0c+mlWTavWQfaSds/pN8w/KbzE2dni0+c1v6C2cM9NE0ABbQ1fXP2mAbBqT7KPNQhbxB6nNIw3ZWi4dqKQ0Z3zqikdRPJPQbBcxp97BZDW0Ux5rjAGnYtysTTdtAT08ZYy2rJrbtjK3BEQv9gMrYfd4uClq56YaXrrdoy3hve70sT4/yQ3B1ATHuxDe9oXvxOWHlXTHN5meKnrbCVt5yrtKBSkb1q/MTP2m7zrBrQKhXiXWAM0VcFg2a2FeoBdlWF x-ms-exchange-antispam-messagedata: Dd9LD3XSy6Sx9DS/BI/mzqldNcvGWzaNK24jiI951thW0HugZc4lj2DGU/TX+5bru8K4SZ9mnU3sL2HGVin45++vPlx8XahNKhoslZZa2QYUFqz5g5Ym4184KZlKYZSbBu/xsz7rJJ1KGZlc5PXj5g== Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: b524a86d-155c-4daa-08e2-08d7abbcf674 X-MS-Exchange-CrossTenant-originalarrivaltime: 07 Feb 2020 11:00:37.1226 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: w5qW5qHlW18phbcVVts5a/txt23jBGFPTUTadBpm9+k0rIQoU0WfUy1HKdhj91lbs/lh7Ea0L2vIXXcSgzazGw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM0PR04MB4946 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > Subject: Re: [PATCH 1/2] dt-bindings: arm: arm,scmi: add smc/hvc transpor= ts >=20 > On 2020-02-07 10:47, Sudeep Holla wrote: > > On Fri, Feb 07, 2020 at 10:08:36AM +0000, Marc Zyngier wrote: > >> On 2020-02-06 13:01, peng.fan@nxp.com wrote: > >> > From: Peng Fan > >> > > >> > SCMI could use SMC/HVC as tranports, so add into devicetree binding > >> > doc. > >> > > >> > Signed-off-by: Peng Fan > >> > --- > >> > Documentation/devicetree/bindings/arm/arm,scmi.txt | 4 +++- > >> > 1 file changed, 3 insertions(+), 1 deletion(-) > >> > > >> > diff --git a/Documentation/devicetree/bindings/arm/arm,scmi.txt > >> > b/Documentation/devicetree/bindings/arm/arm,scmi.txt > >> > index f493d69e6194..03cff8b55a93 100644 > >> > --- a/Documentation/devicetree/bindings/arm/arm,scmi.txt > >> > +++ b/Documentation/devicetree/bindings/arm/arm,scmi.txt > >> > @@ -14,7 +14,7 @@ Required properties: > >> > > >> > The scmi node with the following properties shall be under the > >> > /firmware/ node. > >> > > >> > -- compatible : shall be "arm,scmi" > >> > +- compatible : shall be "arm,scmi" or "arm,scmi-smc" > >> > - mboxes: List of phandle and mailbox channel specifiers. It > >> > should contain > >> > exactly one or two mailboxes, one for transmitting messages("tx"= ) > >> > and another optional for receiving the notifications("rx") if > >> > @@ -25,6 +25,8 @@ The scmi node with the following properties shall > >> > be under the /firmware/ node. > >> > protocol identifier for a given sub-node. > >> > - #size-cells : should be '0' as 'reg' property doesn't have any si= ze > >> > associated with it. > >> > +- arm,smc-id : SMC id required when using smc transports > >> > +- arm,hvc-id : HVC id required when using hvc transports > >> > > >> > Optional properties: > >> > >> Not directly related to DT: Why do we need to distinguish between SMC > >> and HVC? > > > > IIUC you want just one property to get the function ID ? Does that > > align with what you are saying ? I wanted to ask the same question and > > I see no need for 2 different properties. >=20 > Exactly. Using SMC or HVC should come from the context, and there is zero > value in having different different IDs, depending on the conduit. >=20 > We *really* want SMC and HVC to behave the same way. Any attempt to > make them different should just be NAKed. ok. Then just like psci node, Add a "method" property for each protocol, and add "arm,func-id" to indicate the ID. How about this? Thanks, Peng. >=20 > Thanks, >=20 > M. > -- > Jazz is not dead. It just smells funny...