Received: by 2002:a89:48b:0:b0:1f5:f2ab:c469 with SMTP id a11csp647336lqd; Wed, 24 Apr 2024 12:30:18 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVqno4Cdw5HDlGFBKzdfix7DQvdN/WMqOhnH3bW1ws+601VOJMDMFkoJtN6oBJUlX+NIbDeILnx2CEL/YcX4gJxAN7LHfcDshRNq2fsqw== X-Google-Smtp-Source: AGHT+IHAp1TO9TAWsEeGyj8+z+fZa9IfiPwnxUoDgX88Tl/NFTfDjFGr3Qv98SvczWXR7l3IeZjI X-Received: by 2002:a05:620a:4609:b0:78e:c5eb:f0c2 with SMTP id br9-20020a05620a460900b0078ec5ebf0c2mr4213698qkb.49.1713987018110; Wed, 24 Apr 2024 12:30:18 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713987018; cv=pass; d=google.com; s=arc-20160816; b=MCFTzEtJ0B6p6OG8FX2ZfhRqQ3l+yWlQcI3JUjDTE55FaVSQDEZMFyozJ7TZKbx/w6 LZ94rz/e3Bu1ByWmVizCEXqZ//b0ktoQvYHbIAhostQAVwgFON7eRaqsLBJ419NMYwsB 8m/0IXyL2UtJq99SX2XTYoGzA3G23HCCbdrLWl2EYu2n4PS9BJhlkIAdBgJ8pgkra19S 94a5iB8eEm9iyD52n4w2I3n0tVY4pBJ02Wzo2HmotJCqXleWFbwXcR/WS9Oxzh6XMdsy q4LXx452wFNXSEON0ZeqZ5QID+qiwjMX+ZMqlIdnoBzqQHW37uLM3EvzsZsoiz/BqXxM m3LQ== 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=7AOlSCdXPL+DYCu633Sa7Xw7ztSKHH4Sc+GMrEdgAq8=; fh=dwveckx3DXOUhz7kFuIcv6mVaS7puO855C4kclTs0Dw=; b=uvRioPuGJPyYQkqlSjd/aXbxqP3SBCoMd73DuA1NZKapk8G/lcwMCNPQOB08z3U8Ps X6wU7yxTindMoXaNQ1rwIshbae2/ktXo0OmGgNLoyxAR7Itk9x4hfX9maGGF6wAeCgjE dLO6UEhwPR3MNCnhYHOqdv8rV9Xebfiz+sriu7bmJ6OSRL2s8ztN7k/l86q5zWNsTFYx +sOZ9qlNgJqcQgUemcGkniHJ6OI1o4vWt0q+ZxZwp0C0kLXll+VYYxppA+86m90iC3tw Ts6gttkW65tFCVE6USRxn9xbU+dKor7CBm4aeGKyETGvi5iHSMAfqxieb2KzEbRmZpgV UYtA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=eX9+L10y; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-157611-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-157611-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id j12-20020a37c24c000000b0078efd19db86si15870798qkm.410.2024.04.24.12.30.17 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 24 Apr 2024 12:30:18 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-157611-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=eX9+L10y; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-157611-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-157611-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id C32881C22F8F for ; Wed, 24 Apr 2024 19:30:17 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id C205177F08; Wed, 24 Apr 2024 19:30:10 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="eX9+L10y" 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 CD6661CD23; Wed, 24 Apr 2024 19:30:09 +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=1713987009; cv=none; b=rq+bENb13ckjqj1aPf4O5rwCS3XsO5TXSeHOf0asiJ2XIuK+9B6fkNC7n/rK8CGdbe9rVFvQIrMvrb8TDOu9/0N4YlbNrrVXNpzVo3A7WjmMDEtCdlzL1ILAfhdd9+h0X00cW78UHSDKIFzUpzhB1lyviJFKe9meA7ddLzp6Hk0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713987009; c=relaxed/simple; bh=Wk+gwE5ehkKwjW4/Y27fgFajy225vRzlpOwadmoSOKs=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=Eai8p0OgqeWlEnRtN3CEWRNfPewlojJUSDGAeU34y8HpHPGM0piFprTNOouCnaPJcP0NjUTuu+JYxzf2QFXPe8BERV2Uwsqj7wOe0qL6Y6LDnl2Z6bCgUmy5pkbWTeRn7cqUPi1jSlI+F8ZIfPic1Oo3O0V3FsOjqX62EajfXUk= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=eX9+L10y; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 2C089C113CD; Wed, 24 Apr 2024 19:30:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1713987009; bh=Wk+gwE5ehkKwjW4/Y27fgFajy225vRzlpOwadmoSOKs=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=eX9+L10yAooMM4/Cvm95YwxgpjJkB+reJYSrqqlKxztC2/tWDoFDE9RMuzL37f5pN 3YdGsUohZZ/gStHYQEXxVQlDXpUs6dCmd2hhDtrwA36+bav+jIBhREKECzxGxMDrqX MJGDP1EVmXM4DrGinfbB/2DMoC9G2IjDKzM48O0OrxVaIhsJxWt80YL3bcF08XL+H8 /xEdCBWlMR7KDFe2bUviG5eHyRwmdbftEknYbtyzltZZzPvvgUSoDDDvQnlATCgaR0 1GyfhLIj7NHw5o2nAuzqaGyUl4XbdnQrDU3WTgSyJjY4jJIQXYvifbrRIclKIvQuwG djSkO89fBcRVQ== Date: Wed, 24 Apr 2024 14:30:07 -0500 From: Rob Herring To: "Peng Fan (OSS)" Cc: Linus Walleij , Krzysztof Kozlowski , Conor Dooley , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , Peng Fan , 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, Peng Fan Subject: Re: [PATCH v2 1/2] dt-bindings: firmware: arm,scmi: Add properties for i.MX95 Pinctrl OEM extensions Message-ID: <20240424193007.GA329896-robh@kernel.org> References: <20240418-pinctrl-scmi-oem-v1-v2-0-3a555a3c58c3@nxp.com> <20240418-pinctrl-scmi-oem-v1-v2-1-3a555a3c58c3@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: <20240418-pinctrl-scmi-oem-v1-v2-1-3a555a3c58c3@nxp.com> On Thu, Apr 18, 2024 at 10:53:17AM +0800, Peng Fan (OSS) wrote: > From: Peng Fan > > i.MX95 Pinctrl is managed by SCMI firmware using OEM extensions. This > patch is to add i.MX95 Pinctrl OEM extensions properties. > > Signed-off-by: Peng Fan > --- > .../devicetree/bindings/firmware/arm,scmi.yaml | 9 ++- > .../bindings/firmware/nxp,imx95-scmi-pinctrl.yaml | 66 ++++++++++++++++++++++ > 2 files changed, 72 insertions(+), 3 deletions(-) > > diff --git a/Documentation/devicetree/bindings/firmware/arm,scmi.yaml b/Documentation/devicetree/bindings/firmware/arm,scmi.yaml > index e9d3f043c4ed..e530bfff141a 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..f6c18e9fafec > --- /dev/null > +++ b/Documentation/devicetree/bindings/firmware/nxp,imx95-scmi-pinctrl.yaml > @@ -0,0 +1,66 @@ > +# 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: > + '[a-f0-9]+$': > + type: object > + unevaluatedProperties: false > + > + properties: > + pins: > + $ref: /schemas/types.yaml#/definitions/string > + description: name of the pin > + items: > + enum: [ daptdi, daptmsswdio, daptclkswclk, daptdotraceswo, > + gpioio00, gpioio01, gpioio02, gpioio03, gpioio04, ioio? > + gpioio05, gpioio06, gpioio07, gpioio08, gpioio09, > + gpioio10, gpioio11, gpioio12, gpioio13, gpioio14, > + gpioio15, gpioio16, gpioio17, gpioio18, gpioio19, > + gpioio20, gpioio21, gpioio22, gpioio23, gpioio24, > + gpioio25, gpioio26, gpioio27, gpioio28, gpioio29, > + gpioio30, gpioio31, gpioio32, gpioio33, gpioio34, > + gpioio35, gpioio36, gpioio37, ccmclko1, ccmclko2, > + ccmclko3, ccmclko4, enet1mdc, enet1mdio, enet1td3, > + enet1td2, enet1td1, enet1td0, enet1txctl, enet1txc, > + enet1rxctl, enet1rxc, enet1rd0, enet1rd1, enet1rd2, > + enet1rd3, enet2mdc, enet2mdio, enet2td3, enet2td2, > + enet2td1, enet2td0, enet2txctl, enet2txc, enet2rxctl, > + enet2rxc, enet2rd0, enet2rd1, enet2rd2, enet2rd3, > + sd1clk, sd1cmd, sd1data0, sd1data1, sd1data2, sd1data3, > + sd1data4, sd1data5, sd1data6, sd1data7, sd1strobe, > + sd2vselect, sd3clk, sd3cmd, sd3data0, sd3data1, > + sd3data2, sd3data3, xspi1data0, xspi1data1, xspi1data2, > + xspi1data3, xspi1data4, xspi1data5, xspi1data6, > + xspi1data7, xspi1dqs, xspi1sclk, xspi1ss0b, xspi1ss1b, > + sd2cdb, sd2clk, sd2cmd, sd2data0, sd2data1, sd2data2, > + sd2data3, sd2resetb, i2c1scl, i2c1sda, i2c2scl, i2c2sda, > + uart1rxd, uart1txd, uart2rxd, uart2txd, pdmclk, > + pdmbitstream0, pdmbitstream1, sai1txfs, sai1txc, > + sai1txd0, sai1rxd0, wdogany, fccuerr0 ] > + > + nxp,func-id: > + $ref: /schemas/types.yaml#/definitions/uint32 > + description: Indicates the PAD connections which function module The description makes no sense... > + > + nxp,pin-conf: > + $ref: /schemas/types.yaml#/definitions/uint32 > + description: The PAD configuration PAD stands for? Or is it pin configuration as the property name says? This is just a raw register values? Why can't standard pinctrl properties be used here. What's the point of using SCMI pinctrl if you are just shuttling register values to SCMI? > + > + 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 I remember some daisy chaining stuff in iomuxc, but otherwise What's the relationship between these 2 properties? Is it valid if only 1 is present? I doubt it. Looks like an address and value pair. Either the schema needs to define allowed combinations or design the properties in a way you don't have too. IOW, make a single property that's a tuple of register ID and value. Rob