Received: by 2002:ab2:69cc:0:b0:1f4:be93:e15a with SMTP id n12csp1878578lqp; Mon, 15 Apr 2024 23:41:42 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVz8hbzG5wKxImTWkEcf6y/BW+Jxu+MkEyk6tJ1Y2ZdVoNazEecvjfTiXHk4x8IDDv2tRD1XGnQwY+Gr3G75o3Uo5ivWk7cElVypswi7A== X-Google-Smtp-Source: AGHT+IGMT/6vPFCXxGGHTVbsnPN/ORWThH5foUzMmgmwGgsg8/qIhv0jUkMF9xUVCK1QuWKvza/X X-Received: by 2002:a05:6122:da9:b0:4da:a531:ba26 with SMTP id bc41-20020a0561220da900b004daa531ba26mr9801370vkb.6.1713249702328; Mon, 15 Apr 2024 23:41:42 -0700 (PDT) Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id y17-20020ad45311000000b0069944eba8d3si11723648qvr.299.2024.04.15.23.41.42 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 15 Apr 2024 23:41:42 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-146361-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@nxp.com header.s=selector2 header.b=Twy8jQGU; arc=fail (signature failed); spf=pass (google.com: domain of linux-kernel+bounces-146361-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-146361-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id B63941C20D6B for ; Tue, 16 Apr 2024 06:41:41 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id A4B0D6E5ED; Tue, 16 Apr 2024 06:41:33 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=nxp.com header.i=@nxp.com header.b="Twy8jQGU" Received: from EUR05-VI1-obe.outbound.protection.outlook.com (mail-vi1eur05on2062.outbound.protection.outlook.com [40.107.21.62]) (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 F1D396DCE3; Tue, 16 Apr 2024 06:41:28 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.21.62 ARC-Seal:i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713249692; cv=fail; b=U49qHdm1Nj3Nv7nkZoYrTvhS0cFhyLxNuEmwFtnSDYRbJM4XzfCqQemR/PCAZVBpXKcZwNW3D7PByHCOEH8NyAa1e5zr22eUv3cJsoIxeA2zpaGKvIo3hoRJECLPlXj76RZmuhKl3XMm0ir7Me2wI/COGSnadmV9rJSOxFzo9bQ= ARC-Message-Signature:i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713249692; c=relaxed/simple; bh=KSmPltwVZQvzrSyOWqE4B/Ar+KJ/2EkJxupXdkYelD8=; h=From:To:CC:Subject:Date:Message-ID:References:In-Reply-To: Content-Type:MIME-Version; b=XmhXO32hwCjDhNwpOidlTY8jvnIwetLO4vfXuL5n4GCRDM44qtkenh2Nq1n+5g21eDWquFJBMudl03mgWlJlpJAvNr0/P3yvZLxAnJzsLxskAbnTQ/+2dDv3LQq/sen8tTtfuuBGi+Ak1ee4weF7dtxMU86uN1knWm3dUyoa6jQ= ARC-Authentication-Results:i=2; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=nxp.com; spf=pass smtp.mailfrom=nxp.com; dkim=pass (1024-bit key) header.d=nxp.com header.i=@nxp.com header.b=Twy8jQGU; arc=fail smtp.client-ip=40.107.21.62 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=DFF+HfgSBLcrdKtOBfEwH3BhO9hh7je4T8E6xQ3J4R35BiWFNJlLNVK6hUOEczU+Nc6ZatBZhNkwTaZXd6VoUHAuItk4iWWRpFSGNUBXY1QvXy6GFQr33o0yN3LgnAXBBPcTJrfCxQfVf9sefH8gqb/j6GljynOd3suif09Gox7B3qi+WVVsRNft1wWBvzuIFuzUcET1FxbvOYrktHcfcnHSJAvvuhb5j2l7+w49jD//n+oe/B6aJlKDSeFBKSHKzAV6xeG2Q25ai9y0r9WCuRj8OWSQWD4tqqrSHYw261PMarx+wlUaYn+r25RKrzAvvC8rnT4wPqPPV+QBX8Sb7Q== 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=T4dWuYCWNnSxkT41Og5vrvBLO3JF6VjGkDdVzSdKUj4=; b=hazLW5nSAO6lZ6LFmJDoV9nz9rnywZNf+eixAHLCeQM+JZKHN4MC/LUoLGLWqXfibt9FcyIgnrUgoa3VK0iNFObSpqXTotaevXcvHgL3VDSFCQt5Xmk88+VOVB0m1kuPGZS/meFTjKyWHAGKXiu5yDbU8zdBnmP6ukEqUuWBh1TpgfjRd0HlBbkj/gZGqF2QRDLrKb7nsOUJ9ERV6f5RtSuW0p6zqciFOo7mE7WmIilS9ZkbYrrEuVukqNoaz0+m8IYSZqk1bx7ScuI1yov9sUqBGIB2spLvAwvGJCuGgyyhl4Gs/D0OM4CI1W6kKemG5hC7L653fve8UwCnThPxdw== 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=T4dWuYCWNnSxkT41Og5vrvBLO3JF6VjGkDdVzSdKUj4=; b=Twy8jQGUQ4aGE3xD8zLC0JVL6H/BdIdLzADMJ5nxOP2O9xHLK32OQ5cNF/JkFPAf32g5Y8d4yG/khFvp5Rgx+Yk/Grox4/MbU3KgnHY8C76BKX8F7594OaTgeq00hb6vKyw3lGUKJ68foHo/A1/O+AJvFCF2lyq3XYZ+FhpgAoM= Received: from DU0PR04MB9417.eurprd04.prod.outlook.com (2603:10a6:10:358::11) by AS5PR04MB9969.eurprd04.prod.outlook.com (2603:10a6:20b:67c::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7452.50; Tue, 16 Apr 2024 06:41:25 +0000 Received: from DU0PR04MB9417.eurprd04.prod.outlook.com ([fe80::d30b:44e7:e78e:662d]) by DU0PR04MB9417.eurprd04.prod.outlook.com ([fe80::d30b:44e7:e78e:662d%4]) with mapi id 15.20.7452.049; Tue, 16 Apr 2024 06:41:25 +0000 From: Peng Fan To: Peng Fan , Rob Herring , "Peng Fan (OSS)" CC: Linus Walleij , Krzysztof Kozlowski , Conor Dooley , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , Sudeep Holla , Cristian Marussi , "linux-gpio@vger.kernel.org" , "devicetree@vger.kernel.org" , "imx@lists.linux.dev" , "linux-arm-kernel@lists.infradead.org" , "linux-kernel@vger.kernel.org" Subject: RE: [PATCH 2/3] dt-bindings: firmware: arm,scmi: support i.MX95 SCMI Pinctrl Thread-Topic: [PATCH 2/3] dt-bindings: firmware: arm,scmi: support i.MX95 SCMI Pinctrl Thread-Index: AQHajG9fogbrSJSEIkC/zlbnV4Z6dbFp93iAgABErECAADwqIA== Date: Tue, 16 Apr 2024 06:41:25 +0000 Message-ID: References: <20240412-pinctrl-scmi-oem-v1-v1-0-704f242544c1@nxp.com> <20240412-pinctrl-scmi-oem-v1-v1-2-704f242544c1@nxp.com> <20240415225637.GA234203-robh@kernel.org> In-Reply-To: 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_|AS5PR04MB9969:EE_ x-ms-office365-filtering-correlation-id: 32490c32-5fc2-48eb-c339-08dc5de03cbb x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: HGdqhWScfC1BlfkFb8I/z02nHe8EhhTwHO98A/ozN8XsXccm2/akD4dQr7+SZmyBlSuls+69s8YY+KC5p8T0iAgi1fO6GcZD8+6rcVqW+jJ8bQELhhl3buhM7oficb6A0rPgTZ91UXWETlyJwDR69FgqURuoZmLWdet0oWFuiKON3YJK++4cePMuujvTvk59RBHwsWYzhSPCWfxlDUx3l7NyFSTlf0ma1G8CDJGAU9G2s9MD7qcOfjf21sRi1hPEkbDJfQzMO/rKTo7Hg1cDjultR2AsI+ct15zfEtbGfkZCI/8JNu62Zi0PKi+zNMP0vmEOeGfk5gho0DwMW4JzWc3jsuUMG/exBo1Wg/rQJE0SkyN3CS+ejalkXYXaJbLcbF3b4hxMKi6P3FxWCIg7dHow9Rt4Ju139YzJk9K2clETdn/VFzm6t1rQnxRqImSulaMXLbbPIQSS0n3wC2rU0x0fEykHynBf3tbfFWSmMLUPqI9nHUcEeFXKkXSvc7T2CuzWMu0VdFd/MXqyPSMOdQYFIzo5K9bJeNhDnG/agYPOFBGXMKFKIb4NBuZYDucaB3tkGtVNPBR9m3nK0GHr7xesZVz4OuhGrxoRk50MdBwHV+2Ei4UD1Atc6DSUdvQCIHaeK34d5GNV4o22EYYG+T5mYouLy+5Mm0TUjIha9wRsdZFK0rUUz46wplHhXOpmxnXB2qz0yDwZR4h73dFferfGWCp22G3na7oeMOmWbUU= 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)(1800799015)(7416005)(376005)(366007)(38070700009);DIR:OUT;SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?wa8ehcEj+Vk87xjH63szBYzVTv+R2Vn5FqkSrvfvxTEQXWTSN0vYEGCZWLhs?= =?us-ascii?Q?WuTGyrVkP9HWAC3aR8jYH+rUp/vXRW5tGQMUzz0+dnjn7DpinAN7Bep50Vp1?= =?us-ascii?Q?NoxRIRV0jc5/hGTaFxbSlCkO+1mt/slE9NVGLzZzE4hhkK/6THaPXSI0Zfl2?= =?us-ascii?Q?+kN9w8VVhl2+Z6xyIvUuHk0jZ1Nygk9hxGsA1GUxZMCOoydOn6E6wTHN7lAT?= =?us-ascii?Q?IJlZibX1qVD6u8BV3phqe5v+PGFHYteZHCu1tIPjOIYAwrhXS/L4gbkxoae4?= =?us-ascii?Q?WFeSAOcrbfInzFxSIvRbckp0KoKXwF4nQ8vttZEktMj1xjz1OqN6irrYmhAv?= =?us-ascii?Q?Y011hOsyBoksCxYWs7P0ARM0xLUrZo1kDnQ+y62JCT9iy1OBZTAgKSrteMwt?= =?us-ascii?Q?HE3bjIdQ8ZPVN3wur/aqmvHqzQZfo2qaxQAXBTrlIHB0YuTebVFL85Pg2n+S?= =?us-ascii?Q?706xuSX5LH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8M98dw?= =?us-ascii?Q?LQNaxvoG+QKWgyj6oN9r/Y4L0fs3iaAe5vtxRA5pLUOkH3Q+wjalXlA7udr3?= =?us-ascii?Q?XSIjE+g0lcVeK/i6Hj3v6Q2o50xgYC6F0KqYgnykHppHaGUWP2oaJoE7za1Z?= =?us-ascii?Q?ECckeHlo2ELHXlzOXpk0GrnQoTMBNhXW78dBWpPXYHKaSm2IKkJk/kO59xDf?= =?us-ascii?Q?uBLj/2h2DK3x+9BDt24=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: 32490c32-5fc2-48eb-c339-08dc5de03cbb X-MS-Exchange-CrossTenant-originalarrivaltime: 16 Apr 2024 06:41:25.2568 (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: zj6zJzFdy2LGoraMfzOyI5Qjb87gfSqCbhFxw8BYLAsfrj2sbtB5YpELVYrA24yJWI/D5gI/unR84ZUC3kGUeg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AS5PR04MB9969 > Subject: RE: [PATCH 2/3] dt-bindings: firmware: arm,scmi: support i.MX95 > SCMI Pinctrl >=20 > Hi Rob, >=20 > > Subject: Re: [PATCH 2/3] dt-bindings: firmware: arm,scmi: support > > i.MX95 SCMI Pinctrl > > > > On Fri, Apr 12, 2024 at 08:29:26AM +0800, Peng Fan (OSS) wrote: > > > From: Peng Fan > > > > > > i.MX95 SCMI Pinctrl uses OEM specific units, so add '$ref' to > > > '/schemas/pinctrl/nxp,imx95-pinctrl.yaml' and an example. > > > > > > Signed-off-by: Peng Fan > > > --- > > > Documentation/devicetree/bindings/firmware/arm,scmi.yaml | 8 > > > +++++--- > > > 1 file changed, 5 insertions(+), 3 deletions(-) > > > > > > diff --git > > > a/Documentation/devicetree/bindings/firmware/arm,scmi.yaml > > > b/Documentation/devicetree/bindings/firmware/arm,scmi.yaml > > > index e9d3f043c4ed..ebc6c083b538 100644 > > > --- a/Documentation/devicetree/bindings/firmware/arm,scmi.yaml > > > +++ b/Documentation/devicetree/bindings/firmware/arm,scmi.yaml > > > @@ -249,9 +249,11 @@ properties: > > > > > > protocol@19: > > > type: object > > > - allOf: > > > - - $ref: '#/$defs/protocol-node' > > > - - $ref: /schemas/pinctrl/pinctrl.yaml > > > > I don't think anything from here was actually used... >=20 After some check, I work out the following: diff --git a/Documentation/devicetree/bindings/firmware/arm,scmi.yaml b/Doc= umentation/devicetree/bindings/firmware/arm,scmi.yaml index e9d3f043c4ed..26b7395c4326 100644 --- a/Documentation/devicetree/bindings/firmware/arm,scmi.yaml +++ b/Documentation/devicetree/bindings/firmware/arm,scmi.yaml @@ -262,9 +262,12 @@ properties: patternProperties: '-pins$': type: object - allOf: - - $ref: /schemas/pinctrl/pincfg-node.yaml# - - $ref: /schemas/pinctrl/pinmux-node.yaml# + anyOf: + - $ref: /schemas/pinctrl/nxp,imx95-pinctrl.yaml + - allOf: + - $ref: /schemas/pinctrl/pincfg-node.yaml# + - $ref: /schemas/pinctrl/pinmux-node.yaml# + unevaluatedProperties: false =20 description: The nxp,imx95-pinctrl.yaml: +patternProperties: + '[a-f0-9]+$': + type: object + unevaluatedProperties: false + + properties: + pins: + $ref: /schemas/types.yaml#/definitions/string + description: name of the pin + + nxp,func-id: + $ref: /schemas/types.yaml#/definitions/uint32 + description: Indicates the PAD connections which function module + + nxp,pin-conf: + $ref: /schemas/types.yaml#/definitions/uint32 + description: The PAD configuration + + nxp,daisy-id: + $ref: /schemas/types.yaml#/definitions/uint32 + description: The select input register ID + + nxp,daisy-conf: + $ref: /schemas/types.yaml#/definitions/uint32 + description: The select input register value + +additionalProperties: true The node will as below: scmi_pinctrl: protocol@19 { = =20 reg =3D <0x19>; = =20 = =20 sd-pins { = =20 sd1cmd { = =20 pins =3D "sd1cmd"; = =20 nxp,func-id =3D <0>; = =20 nxp,pin-conf =3D <0x138e>; = =20 }; = =20 sd1data0 { = =20 pins =3D "sd1data0"; = =20 nxp,func-id =3D <0>; = =20 nxp,pin-conf =3D <0x138e>; = =20 }; = =20 }; I will use the upper in v2. Thanks, Peng. > You mean this not used? > allOf: > - $ref: '#/$defs/protocol-node' > - $ref: /schemas/pinctrl/pinctrl.yaml >=20 > Or below? > > > > > > > + anyOf: > > > + - $ref: /schemas/pinctrl/nxp,imx95-pinctrl.yaml > > > + - allOf: > > > + - $ref: '#/$defs/protocol-node' > > > > This must always apply and should not be under the anyOf. >=20 > I just try in arm,scmi.yaml: > protocol@19: > type: object > allOf: > - $ref: '#/$defs/protocol-node' > - anyOf: > - $ref: /schemas/pinctrl/nxp,imx95-pinctrl.yaml > - $ref: /schemas/pinctrl/pinctrl.yaml >=20 > unevaluatedProperties: false >=20 > And in nxp,imx95-pinctrl.yaml: > patternProperties: > 'grp$': > type: object > additionalProperties: false >=20 > patternProperties: > '[a-f0-9]+$': > type: object > unevaluatedProperties: false >=20 > But the following example always reports: > pinctrl_usdhc1: usdhc1grp { > sd1-pin0 { > pins =3D "sd1cmd"; > nxp,func-id =3D <0>; > nxp,pin-conf =3D <0x138e>; > }; > }; >=20 > arm,scmi.example.dtb: scmi: protocol@19: Unevaluated properties are not > allowed ('usdhc1grp' was unexpected) >=20 > Do you have any suggestions on how to write the yaml correct? >=20 > Thanks, > Peng. >=20 > > > > > + - $ref: /schemas/pinctrl/pinctrl.yaml > > > > > > unevaluatedProperties: false > > > > > > > > > -- > > > 2.37.1 > > >