Received: by 2002:a05:7412:d008:b0:f9:6acb:47ec with SMTP id bd8csp294300rdb; Tue, 19 Dec 2023 17:58:26 -0800 (PST) X-Google-Smtp-Source: AGHT+IH2sr3jMp2VbTS+4DS1+ndhw9zT4L8iRJgpXt5wEm9B1xdXinhcx18gmJ21nr2SmodzLcRg X-Received: by 2002:a05:600c:3651:b0:40c:506:98de with SMTP id y17-20020a05600c365100b0040c050698demr8621768wmq.201.1703037506811; Tue, 19 Dec 2023 17:58:26 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1703037506; cv=pass; d=google.com; s=arc-20160816; b=h1xpGLP0vry8Kv24zwoJfIrCBlTTAPo5uit2dheP8EGrxeUHV6o4pSgzhS3ABBG3KC jkWNO8G9mo0IdQuLl9Ze6BRx5/fhLMUQ3P9mE/xrn8sn3nJ0mR0IvJA1UQILHIWfXAJC ZOfUlvU/DKAAgBaWUohJ5a/hKaOl0vwBaFmQ3a5QDt/pkgQIv9/1FK5FdzsirqIDVpvB H9BcQoI73F1WmptP5a2VzOKrLQ/CkdyytdriU/Te1ACPoFPhpVQMMbwxfqkZlDvYmrRJ XQpuC3B5SDZgbSjwVWS6q6EMAXFv7QaS+M1BXCiqAiKuqtccvcclBCvPDXDp4hLopbYw YHcQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:list-unsubscribe:list-subscribe:list-id:precedence :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=nVkpvzcWjhcQOeuN59q1RDf5wmwCFuDuu6LBr8m0ZRQ=; fh=CSGzC8edAcQrNa4g+XrShOj5MSCZLpbp8Kvq55OcpJg=; b=dfy8zdqGJ1rK5Z7QbjsqNmS8+QUklvg155G3aHxzE5+SckqiTjr/8suOQynHDpeSIj 4ZW4jHFCwxfcMjCAHnzqxuyVDf5K7Y8kxwd/6BmbcSoVQIspS9YKsQPyCOQVKLqs4HYX Gu9Ua5SBp1K9xOU8kh1vi5yGq16epaewTvuNjWUMFNgOFt3WG9sWNBrn3XbyaBVOoruQ 8qblgxA0eYNpGpPv9vcMisWK364PuJSya2uzr203vT980I7wcX931nDqCy/l5PvafqnE PxFqWxXujdSnse+XroO3rpVEmSktaXKlnEr17WeUQAI06wCIXhGCounU+Z9ch6XL1L0U PSXg== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@nxp.com header.s=selector2 header.b=mtFqUrjy; arc=pass (i=1 spf=pass spfdomain=nxp.com dkim=pass dkdomain=nxp.com dmarc=pass fromdomain=nxp.com); spf=pass (google.com: domain of linux-kernel+bounces-6273-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-6273-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=nxp.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id kg26-20020a17090776fa00b00a232eae61b7si3154789ejc.66.2023.12.19.17.58.26 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 19 Dec 2023 17:58:26 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-6273-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@nxp.com header.s=selector2 header.b=mtFqUrjy; arc=pass (i=1 spf=pass spfdomain=nxp.com dkim=pass dkdomain=nxp.com dmarc=pass fromdomain=nxp.com); spf=pass (google.com: domain of linux-kernel+bounces-6273-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-6273-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 39F4C1F2698C for ; Wed, 20 Dec 2023 01:58:26 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id A389C79D8; Wed, 20 Dec 2023 01:58:15 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=nxp.com header.i=@nxp.com header.b="mtFqUrjy" X-Original-To: linux-kernel@vger.kernel.org Received: from EUR03-DBA-obe.outbound.protection.outlook.com (mail-dbaeur03on2052.outbound.protection.outlook.com [40.107.104.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 87FB32030B; Wed, 20 Dec 2023 01:58:12 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=nxp.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=nxp.com ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=EqVsPo6o4nQ5b9yh8QYdBuLK8FxXDrrJNfZOlF1tTVg4HA0gcYxKTgeb3aoHYnkrl5xYuV2aAm/S0E4b4z7+VsrP1KOmWAZs2zs20xU0krQ4c6rfAE0WnsZvkC6Dpc16ysYFZQKyR4ZZVmfp+DMooi30/icURx7CAAVHbUxU9uMUlPdTZ0L3i6gj28T90UvpH28a9jCQ3u5IKOwRZTc5bdXOJs6IBHYTs9+g9zIyWadcsbv28XkQAoeZrqnoNu2maUintwBXsKoWBXyz8xOaSAzo9JWO2aiqDLiTYJRIhSBtdUL1GMk3ReclOouTVF5R5qxauSTGqB+Q1AcLUsMKMA== 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-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=nVkpvzcWjhcQOeuN59q1RDf5wmwCFuDuu6LBr8m0ZRQ=; b=PEIdE1FJkAq2DgrWCXGay6LG0WAJhEkx4xgK3WjlO8mixpPF0uD/7ouBKj6v73ave2cM4UnAGmp2dTd9aBx5slvUeSr7c8KM4Nple3iNpUItW4bAvkNvFFL2Cevc4VQCY2XMF2nYsy38VqeRHU5dUDUaEZ7G6UTBlBvRfkh5e+OA8Rip07XZV22/GTghO8kvivI1HVdxvZ+YtpMOW3+Km97Xf1DJKuM7eilwSMR3eDQgXSUfuPfiz/r21fK4cNzU3T48AWonyBI3pIKS7/RpvZKWKOlTtbwtEVq/flYnxxHd/u3m3HsBhWyK+2hQcBHF87OznnmQClNCDca+5eMlIg== 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=nVkpvzcWjhcQOeuN59q1RDf5wmwCFuDuu6LBr8m0ZRQ=; b=mtFqUrjyVkWxvQlrYb14y4pPJmI8biW5aGHDyTu0pLd8Vq8nTvhGpK5F5kgaMHOKQjMQTTlWDB81Y3FivJnj0GZWHJ6q2W2VQjn+lhKMyqN3uxyTJbmpiq/YfBLLSh4iqo4z0jZVWgUAPqlHo5dNbZuiaJRfC4vq7GcO2+VJ5+Y= Received: from DU0PR04MB9417.eurprd04.prod.outlook.com (2603:10a6:10:358::11) by DU0PR04MB9298.eurprd04.prod.outlook.com (2603:10a6:10:355::9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7091.38; Wed, 20 Dec 2023 01:58:09 +0000 Received: from DU0PR04MB9417.eurprd04.prod.outlook.com ([fe80::ff06:bbb2:c068:5fb3]) by DU0PR04MB9417.eurprd04.prod.outlook.com ([fe80::ff06:bbb2:c068:5fb3%7]) with mapi id 15.20.7091.034; Wed, 20 Dec 2023 01:58:09 +0000 From: Peng Fan To: Marco Felsch , "Peng Fan (OSS)" CC: Sudeep Holla , Cristian Marussi , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Oleksii Moisieiev , Linus Walleij , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , dl-linux-imx , "devicetree@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "linux-arm-kernel@lists.infradead.org" , "linux-gpio@vger.kernel.org" Subject: RE: [PATCH 4/7] dt-bindings: firmware: arm,scmi: support pinctrl protocol Thread-Topic: [PATCH 4/7] dt-bindings: firmware: arm,scmi: support pinctrl protocol Thread-Index: AQHaL00vUsuXdEJTYUWYoB3T3FLKXbCxBK8AgABsGdA= Date: Wed, 20 Dec 2023 01:58:09 +0000 Message-ID: References: <20231215-pinctrl-scmi-v1-0-0fe35e4611f7@nxp.com> <20231215-pinctrl-scmi-v1-4-0fe35e4611f7@nxp.com> <20231219192912.yulmczvqbuh4jizg@pengutronix.de> In-Reply-To: <20231219192912.yulmczvqbuh4jizg@pengutronix.de> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nxp.com; x-ms-publictraffictype: Email x-ms-traffictypediagnostic: DU0PR04MB9417:EE_|DU0PR04MB9298:EE_ x-ms-office365-filtering-correlation-id: 2947aa0b-a5c9-4cab-ed24-08dc00ff1dda x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: lJN2JnxNeKHXs/Opn2863u8vhFDW9dY0caSn/guQIGZ36t4GaM9ueOY4TA3svq7WAPP26R8cLkOcOyj/dP+IHhvfAHdy6hyP0X3VyNGepCHi0hRO6DBBI+9N/6g7QAwA1VFGI0bJsIz7uK1qffbuAbOTSOAE2nEweoZmiIABlluvW9AyIoYtFq260dxKh12P4i9odqxEC8r+RePnqJb6yIIfX7rwKGLaWpKPgQlL5Y8INV15IUu0GckS6KEWwTQH/6U5+piD1/fgpAF+wBZAy7+gULO/bRYn2zaMUoS4zDgxeS9fPW3wzUWNCsjlfneNpVbGZUdqgUi3u+6XNBiZ9xkR3xAWzfnDauCm5qRbfSEW5aPLSjD7wPaUexjuen4BLfFe7uoqQqg3Ya0eztiSuDBQGSeL1PVE0sOjzMBXHwJyoG7HcRkI+/f9GWz299g+ZURsP9ANzmfa822IX40eQ8wu8kvykiSOJ12UlPp9arkIwHGfrf+MLK8EXb8pMGSmnd+Ol/1Yx7nxEi3CcDeSU48MjE6ahb+HPO6UYE9y7pEWrZaWLCFJTJD8ikNDEyQNV2X4W3VGn28TnDG49EEIXNB4vu9TEz616QLq65k9iIzf1xkqAj6Sm+vwOY9QPlTp x-forefront-antispam-report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:DU0PR04MB9417.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230031)(366004)(396003)(39860400002)(376002)(136003)(346002)(230922051799003)(186009)(64100799003)(451199024)(1800799012)(55016003)(8676002)(8936002)(4326008)(316002)(26005)(478600001)(2906002)(52536014)(44832011)(66946007)(66446008)(64756008)(66476007)(110136005)(66556008)(54906003)(71200400001)(76116006)(6506007)(7696005)(5660300002)(9686003)(86362001)(122000001)(38100700002)(33656002)(7416002)(38070700009)(41300700001);DIR:OUT;SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?nYJRLd3phBkj0e0RGVdechtefdvmRCB3vqJbbwP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7xF0WDE/OutO18mvdtxlGGYaa0GtZc/WJoj8HBpqbMeh3iW?= =?us-ascii?Q?9wOBYPizX6xuPY0xoTJjq/n87jOe8oGcyv3ut/5/b2sHh6x8a9rDLXY0fEIX?= =?us-ascii?Q?SU6DjQ6g342gONJ5VcIM29T7ESdELOAcpiuzeJk1qwt9PxXpxdzNxOYrjBkp?= =?us-ascii?Q?vfQuF75m58cgZ3a2Wp+qOKnpUev9VlBWHWACs+Eh1m4nz0GQX63nVSNyZQxl?= =?us-ascii?Q?rxL+oWvyf50bNFf4/Sq5KA18ggAT8bL90entRctQ9D9xYHrmrHgHj0t9tq6V?= =?us-ascii?Q?r8F4XqlCYyycH/MO1tE6aw7kwncU8AXb4ki+IpOXIOd+KXUouTSGY0XI4ey3?= =?us-ascii?Q?vSSDUVj/9A2iiqvf2MbfWtt/Le6N4xVjNU2ovHHHXCWvZOJiY9sg+RcPW2A2?= =?us-ascii?Q?SKPsLsvvu4innQdGhbSbFWh4AlULBPE6qOrnZv4RLvVNBv/Gc6iJBV2Jjnfg?= =?us-ascii?Q?fKq5oe111Gzsd0VZNXZdVjIM91jNXghdzcZh3K8EvYI+mBOQOAMxcYUUST64?= =?us-ascii?Q?41AFPC3vRe2af7TCarrWPE6tQb49hMHxBQbTESIXxWyx2KVGmyk4SFDmIkVm?= =?us-ascii?Q?QYED9jmdKgxs87uk6KUr3ZicsSB55FFcBpp8rl0fa6NtK/jgYPaLl96QnEp7?= =?us-ascii?Q?Wwccr8hWjrYuYjhTujU=3D?= Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: DU0PR04MB9417.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 2947aa0b-a5c9-4cab-ed24-08dc00ff1dda X-MS-Exchange-CrossTenant-originalarrivaltime: 20 Dec 2023 01:58:09.7224 (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: SyzRSk05k0ZVK7rgteYnMV5ATTj2bF41Oj6zGJhz0HO6K/k7+0/MQjyZws3sfC6mzFHG2P2YiAk8ncLPfTflEw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DU0PR04MB9298 > Subject: Re: [PATCH 4/7] dt-bindings: firmware: arm,scmi: support pinctrl > protocol >=20 > Hi Peng, >=20 > On 23-12-15, Peng Fan (OSS) wrote: > > From: Peng Fan > > > > Add SCMI v3.2 pinctrl protocol bindings and example. > > > > Signed-off-by: Peng Fan > > --- > > .../devicetree/bindings/firmware/arm,scmi.yaml | 99 > ++++++++++++++++++++++ > > 1 file changed, 99 insertions(+) > > > > diff --git a/Documentation/devicetree/bindings/firmware/arm,scmi.yaml > > b/Documentation/devicetree/bindings/firmware/arm,scmi.yaml > > index 4591523b51a0..bfd2b6a89979 100644 > > --- a/Documentation/devicetree/bindings/firmware/arm,scmi.yaml > > +++ b/Documentation/devicetree/bindings/firmware/arm,scmi.yaml > > @@ -247,6 +247,85 @@ properties: > > reg: > > const: 0x18 > > > > + protocol@19: >=20 > ... >=20 > > @@ -401,6 +480,26 @@ examples: > > scmi_powercap: protocol@18 { > > reg =3D <0x18>; > > }; > > + > > + scmi_pinctrl: protocol@19 { > > + reg =3D <0x19>; > > + #pinctrl-cells =3D <0>; > > + > > + i2c2-pins { > > + groups =3D "i2c2_a", "i2c2_b"; > > + function =3D "i2c2"; > > + }; > > + > > + mdio-pins { > > + groups =3D "avb_mdio"; > > + drive-strength =3D <24>; > > + }; > > + > > + keys_pins: keys-pins { > > + pins =3D "GP_5_17", "GP_5_20", "GP_5_22", "GP_2_1"= ; > > + bias-pull-up; > > + }; > > + }; >=20 > This example is different to the one you mentioned within the cover-lette= r. I > didn't checked all patches just want to ask which API will be implemented= by > this patchset? I kept this change since it was tested by Oleksii, but anyway i.MX not use = these. The API, I suppose you are asking about this? static const struct pinctrl_ops pinctrl_scmi_pinctrl_ops =3D { = =20 .get_groups_count =3D pinctrl_scmi_get_groups_count, = =20 .get_group_name =3D pinctrl_scmi_get_group_name, = =20 .get_group_pins =3D pinctrl_scmi_get_group_pins, = =20 #ifdef CONFIG_OF = =20 .dt_node_to_map =3D pinconf_generic_dt_node_to_map_all, = =20 .dt_free_map =3D pinconf_generic_dt_free_map, = =20 #endif = =20 }; static const struct pinctrl_ops pinctrl_scmi_imx_pinctrl_ops =3D { = =20 .get_groups_count =3D pinctrl_scmi_get_groups_count, = =20 .get_group_name =3D pinctrl_scmi_get_group_name, = =20 .get_group_pins =3D pinctrl_scmi_get_group_pins, = =20 #ifdef CONFIG_OF = =20 .dt_node_to_map =3D pinctrl_scmi_imx_dt_node_to_map, = =20 .dt_free_map =3D pinconf_generic_dt_free_map, = =20 #endif = =20 }; Thanks, Peng. >=20 > Regards, > Marco >=20 > > }; > > }; > > > > > > -- > > 2.37.1 > > > > > >