Received: by 2002:ab2:6991:0:b0:1f7:f6c3:9cb1 with SMTP id v17csp63427lqo; Tue, 7 May 2024 12:11:44 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCU4R2OwhCq4hBxIiJW7eoxKkSiTxZo9TCJkzK6PCe776tbfi4aHk1LKxciF9RGDEJaNzui1iiOgmJ7NVaKeHKZxqhQv4xyEDxs9ckXCHQ== X-Google-Smtp-Source: AGHT+IGhiiTGHzt0D6GeOuGFkzji320+ZiEEsAzeQylASkbu2iCWYiYS58YcccvRSKZ4bOBWKv59 X-Received: by 2002:a50:d515:0:b0:572:9503:4f8a with SMTP id 4fb4d7f45d1cf-5731d826fb3mr540494a12.1.1715109104080; Tue, 07 May 2024 12:11:44 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715109104; cv=pass; d=google.com; s=arc-20160816; b=JvA+DURjIYDGJ9qkc2putRoOavFW5AMPMoZREwBpd24T3uiGMMqCPEe3OpCv8mZrr2 rPHratbIUAVPyfI4BXuc61pb5lZvoOXn8ibNqwD4vonCzwdHbHPTqxvxAUvEBhVbbJTX slvPikmr/uWqxVYsy4TraT/pMESOPjgxhFvBHTv+A/DA0j6JiRaSj+YSPAGjwmGJ+2Kp KBMOJTweGRtj/ei35ZPl6cN1mmIMuw4qXdfmkfHTbieoNUGasevywAjclQGGZXmGV/1u 6hJiZVM/fB3ERXB174sp6JAH8BPpdBLJKUA+6nXhtIJdnTw9CqPhhPCjQ3/KJT+stx21 EkZA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=eMQv9vZbfXY3UCUkC16IjApcDpT6NfOgoMUVFlWBoLY=; fh=JmYuWWT+z/QbhuPaGSOpU/k8ISq8LGcteE9Rqb9CT9o=; b=ik9PrdeK63h8jm/aOR01PBcNrprVC+KIxnYJ0Qtz8I2jJwoDHT1isyW5/SaLM9tkrb LzfSKKsmDJylUaApEdIBLypVB/cxO5k/aZsJNC9bk/GketRi7LlsACnUAnLDrpu45mCl jDoNLvTQARNYoOU2HZdVSX/X4uyTtJsn1ku2Yi3FstfSHTEp9pYz9XbbfZ3zb2DjfV9o L57g6ef8rR71HMbiV461PKap+oucEl3trzms5Z/eMdTdQMg6I9lhoLDDVmmDXK4eRI6d slDf6St4/IF9Pn+y3YoVLPMXOJ+c/ZDiBT6vqjumjDZrw9izEJNBK97+24oTKaFMn02L 82ow==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=uj6LsvUP; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-172043-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-172043-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id w24-20020a50fa98000000b00572a8921c4asi5942794edr.17.2024.05.07.12.11.44 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 07 May 2024 12:11:44 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-172043-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=uj6LsvUP; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-172043-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-172043-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org 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 CA8911F26467 for ; Tue, 7 May 2024 19:11:43 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id A442216DEB6; Tue, 7 May 2024 19:11:36 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="uj6LsvUP" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 BEA1416D9A0; Tue, 7 May 2024 19:11:35 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715109095; cv=none; b=TMUPR4FX89ZY2wQhiz6PifPvUP3niocbv54+xAGx6JhcSt38FTxzOzCpZCp1jZ6MlrawvKiTcfEoXi4S1abqwoN0cDGRnG9S3St+8HM6FqU4kR0iYbFIxujPpJhJEktfyaH1nIuFz2mdWO5MeSNPHN/vk/SkgGL6fXdRmXS741M= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715109095; c=relaxed/simple; bh=0QWF8zaj0qi8QUphv7YChHYzkRCmy97vi1jsbdB5UkI=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=TSvjp0HxZ4tVGv3I+jO1FX7D6OL0nFH9P/9Aq99YA8NV1k9EqsgQAoFmiMpA9SPXTRDDFPYwdyPu36dVzjxqkRIGwwn+xgJYgXzMt8mbTgymTX3fpkUXC2dC/ZL3gx+U6wfKYajKFlVLtb4+VLYe+OgXgweJcDPzrXoJo3I/vZs= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=uj6LsvUP; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 03F6EC2BBFC; Tue, 7 May 2024 19:11:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1715109095; bh=0QWF8zaj0qi8QUphv7YChHYzkRCmy97vi1jsbdB5UkI=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=uj6LsvUParyf07o2w6RO/eH3ICzXHMjmesw+8sHjWhcxLq3uBKJnDHMd8qAL6Fu7p F4t214j2bobOmaiBd05h7lIEUz3MDEzwXTUVphAqov6KEY94Sq54M2HJKLcua82r1D FGteBlJu3uDLGTiSNtX/8d77s+DzWR1HjabFZH1DcS49usYPdUnZYHJqtVq6RFZmUW qTNuPmJCkHsis4m4er16i0OH5kMxu+Es25aqJQO4nCcI9Y7txdBv/5BHjl427fVBS3 g32z5tKj6Lo2WyClZvekeaewOIixgWHlr6ei3CalHj4kijMaFoV47VBtmh8SSPKT/1 2SzjSuOfruJtA== Date: Tue, 7 May 2024 14:11:33 -0500 From: Rob Herring To: "Peng Fan (OSS)" Cc: Sudeep Holla , Cristian Marussi , Krzysztof Kozlowski , Conor Dooley , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , Linus Walleij , Dong Aisheng , Jacky Bai , linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, imx@lists.linux.dev, linux-gpio@vger.kernel.org, Peng Fan Subject: Re: [PATCH v4 1/3] dt-bindings: firmware: arm,scmi: Add properties for i.MX95 Pinctrl OEM extensions Message-ID: <20240507191133.GA904879-robh@kernel.org> References: <20240505-pinctrl-scmi-oem-v3-v4-0-7c99f989e9ba@nxp.com> <20240505-pinctrl-scmi-oem-v3-v4-1-7c99f989e9ba@nxp.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20240505-pinctrl-scmi-oem-v3-v4-1-7c99f989e9ba@nxp.com> On Sun, May 05, 2024 at 11:47:17AM +0800, Peng Fan (OSS) wrote: > From: Peng Fan > > i.MX95 Pinctrl is managed by System Control Management Interface(SCMI) > firmware using OEM extensions. No functions, no groups are provided by > the firmware. To reuse generic properties, add the binding to enable > pinmux, slew-rate, bias-pull-up and etc, under a subnode of '-pins'. > > Signed-off-by: Peng Fan > --- > .../devicetree/bindings/firmware/arm,scmi.yaml | 9 ++++-- > .../bindings/firmware/nxp,imx95-scmi-pinctrl.yaml | 37 ++++++++++++++++++++++ > 2 files changed, 43 insertions(+), 3 deletions(-) > > diff --git a/Documentation/devicetree/bindings/firmware/arm,scmi.yaml b/Documentation/devicetree/bindings/firmware/arm,scmi.yaml > index 7de2c29606e5..bd4dfd7a85cd 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/firmware/nxp,imx95-scmi-pinctrl.yaml > + - allOf: > + - $ref: /schemas/pinctrl/pincfg-node.yaml# > + - $ref: /schemas/pinctrl/pinmux-node.yaml# > + > unevaluatedProperties: false > > description: > diff --git a/Documentation/devicetree/bindings/firmware/nxp,imx95-scmi-pinctrl.yaml b/Documentation/devicetree/bindings/firmware/nxp,imx95-scmi-pinctrl.yaml > new file mode 100644 > index 000000000000..1a694881f193 > --- /dev/null > +++ b/Documentation/devicetree/bindings/firmware/nxp,imx95-scmi-pinctrl.yaml > @@ -0,0 +1,37 @@ > +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) > +# Copyright 2024 NXP > +%YAML 1.2 > +--- > +$id: http://devicetree.org/schemas/firmware/nxp,imx95-scmi-pinctrl.yaml# > +$schema: http://devicetree.org/meta-schemas/core.yaml# > + > +title: i.MX System Control and Management Interface (SCMI) Pinctrl Protocol > + > +maintainers: > + - Peng Fan > + > +patternProperties: > + 'grp[0-9a-f]$': > + type: object > + unevaluatedProperties: false > + > + properties: > + pinmux: > + description: | > + An integer array for representing pinmux configurations of > + a device. Each integer has the format, pinid[31:21], mux[20:16], > + daisy_value[15:12], daisy_valid[11:11], daisy_id[10:0]. I would format this with one field per line. Otherwise, Reviewed-by: Rob Herring > + $ref: /schemas/types.yaml#/definitions/uint32-array > + > + drive-strength: > + enum: [ 0, 1, 3, 7, 15, 31, 63 ] > + > + slew-rate: > + enum: [2, 3] > + > + input-schmitt-enable: true > + drive-open-drain: true > + bias-pull-up: true > + bias-pull-down: true > + > +additionalProperties: true > > -- > 2.37.1 >