Received: by 2002:ab2:60d1:0:b0:1f7:5705:b850 with SMTP id i17csp1688938lqm; Fri, 3 May 2024 03:40:32 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWtD7p5uYJxB3BU7rsyKWFcOaL1BkwJ8yr7CN8AThMPLEI7k9rCEOuU/mjJbGSeJMG6TCYqOgb317Xmx9eI37QR4kadQd6/402b/+JWvQ== X-Google-Smtp-Source: AGHT+IG2abWaBRFfGuaHR+t+KrbUf/b79+yIaESVWH3Qn6IuFF1X5ZT9FxPmTVidUZKU65DQL875 X-Received: by 2002:a05:622a:5b0d:b0:43a:8525:a622 with SMTP id ea13-20020a05622a5b0d00b0043a8525a622mr2413301qtb.54.1714732831953; Fri, 03 May 2024 03:40:31 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714732831; cv=pass; d=google.com; s=arc-20160816; b=GwG6gJriNxxHW7KPjV+kYSU7dllKfrLZgaZHUVr8O9ggXISA1gJPi0VsPdmIB12LOL ZTox5rHe+YBq+BsiRZowkswp2V6xx7qkRWLwKbAEFyavymM/P6lkUvxtWiktnZuELESY t9ijfMq26+29ZpGeRLzGTBUw2FwAI2gCN5OGrJRAqqcNElDVUKcoRoJSBBZ9dhJ3ttsT gArPpVLPU5ybWvqE6tfaFtGQCDI9r/PS20PZAYTuo/Cm879hFZ02TOzY29H4xBqyejZ2 k4SGYUy38mmgrjalxl9uBYsNEXmVbnQlS83SFbvS5u87At0Vk3Di/lQcTVl4Tfpu10C6 OixQ== 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=2FIHDCOkiK6+tKPqfZrLxLPv4plWx45YVvzFKOw9zK8=; fh=OjAHvvftbD+7y8ccmtAbJ2668Vpf24+P4MHbkoDcBYI=; b=W+rSSJ0a7T9PjJ7Qnh9zP5IqceOtez9hjUrG40kOQHZ8PrkONi3SmxWcSozQkMD1QU rj83ORcAMS0k9J0qFVALNdbcDgN3OrWYx4zgWOnRqWFJHO9nLZ+7vJAVHaMQvBwV+KxM qYy4NkkJ0e/rdebuf6gt2oLaAaM8UuzyUdl2i+fuurq+D72sUoceNbGH+QM5J8DWSucV Y4+DDyY9DezCtvDqHv/u0AOWpgSuQWurHJgiVCYU6N/bWWis7Z7OC4bC42ktpQNfl5tK h1noPZF58aUfxPjHmbMrbxLKVMDtWFNb7BJA/TPiq4Yeb0T2qo6yzpIG6ezMfLCw0Tqo 9IOA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=cSimArr3; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-167526-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-167526-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 et21-20020a05622a4b1500b0043b0a91857dsi2743030qtb.721.2024.05.03.03.40.31 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 03 May 2024 03:40:31 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-167526-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=cSimArr3; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-167526-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-167526-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 56B331C2265A for ; Fri, 3 May 2024 10:40:31 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 47A571514D1; Fri, 3 May 2024 10:40:24 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="cSimArr3" 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 624196AA1; Fri, 3 May 2024 10:40:23 +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=1714732823; cv=none; b=VDQHteUsKYF6RZ1iAwK245pSQz7DnN/QuiUoxYjSeAD8mfZQVFjkKieNCezUkoppsYTzrwNurLH8aE63eVjD+o7093AKFr5zvoBb6F8fqp0GL0j5y81kJe+fbtKjdFaeEq0HF0ZaTik4PgcX40Fbm/MoyTSdN9VzhhIs0WzLwkY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714732823; c=relaxed/simple; bh=HwTDULx37Hivyl033gJtCf+zwXB9XjlSfMV+ADfX2R0=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=ivnVMjsO3Y68x8Gk2NurPG9jkXbbBYf/XNByheYOgGNjSPP4yQEhAlL9RmWz5+MbherfcqQ3UaTjmMzUeY/9rTBFKY7Z6RaANX+h0sI2Ly6UkvTSIy1HHPYHfhF+lnAXP0PfhKdgSnmli1/eCHI2IzHmTzseDhyUolc9zJOwgbM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=cSimArr3; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id A50E8C116B1; Fri, 3 May 2024 10:40:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1714732822; bh=HwTDULx37Hivyl033gJtCf+zwXB9XjlSfMV+ADfX2R0=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=cSimArr3h5HMGwFITZ05NcVzIiDIDgU0D4grxMiFIuv0D7p2lV1eQri4uCWaRU7zW ySK+e0AUgYM7fszEq32bfTG0L/CjV3Q+YdXSnAK3RnM5vyt9VoLh5uPSs5pg1JSRV8 g4CaPgpXfbMr/p9OSviNzHxwgKGHOj8qDRsvMubzrLP56Sr9eRvA1NQXTeSzIPH8EW MeLFLEcRgasif/XJkavoyWC4lZF4ryyXBtn5+pMe0wiZ5L24IlvqNtXpXX8bCq5okY c3w0Sre3oAFRF41ihWTk0oDl9JF8TlmK5tM77kzv5w6nLelQ6UdxU+hZ7Jq7zdqJ4g d77VtLvMbQwLw== Date: Fri, 3 May 2024 11:40:18 +0100 From: Conor Dooley To: Prajna Rajendra Kumar Cc: Mark Brown , Rob Herring , Krzysztof Kozlowski , linux-riscv@lists.infradead.org, linux-spi@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, Conor Dooley , Daire McNamara , valentina.fernandezalanis@microchip.com Subject: Re: [PATCH 2/3] spi: dt-bindings: Add num-cs property for mpfs-spi Message-ID: <20240503-gooey-distill-40e09638c082@spud> References: <20240502143410.12629-1-prajna.rajendrakumar@microchip.com> <20240502143410.12629-3-prajna.rajendrakumar@microchip.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="RpCXvjDOjTtHu/S6" Content-Disposition: inline In-Reply-To: <20240502143410.12629-3-prajna.rajendrakumar@microchip.com> --RpCXvjDOjTtHu/S6 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, May 02, 2024 at 03:34:09PM +0100, Prajna Rajendra Kumar wrote: > The PolarFire SoC SPI controller supports multiple chip selects,but in > the MSS, only one CS line is physically wired. To reflect this hardware > limitation in the device tree, the binding enforces that the 'num-cs' > property defaults to 1 and cannot exceed 1 unless additional > chip select lines are explicitly defined using GPIO descriptors. >=20 > Fixes: 2da187304e55 ("spi: add bindings for microchip mpfs spi") > Signed-off-by: Prajna Rajendra Kumar > --- > .../bindings/spi/microchip,mpfs-spi.yaml | 19 ++++++++++++++++--- > 1 file changed, 16 insertions(+), 3 deletions(-) >=20 > diff --git a/Documentation/devicetree/bindings/spi/microchip,mpfs-spi.yam= l b/Documentation/devicetree/bindings/spi/microchip,mpfs-spi.yaml > index 74a817cc7d94..19951951fdd6 100644 > --- a/Documentation/devicetree/bindings/spi/microchip,mpfs-spi.yaml > +++ b/Documentation/devicetree/bindings/spi/microchip,mpfs-spi.yaml > @@ -13,9 +13,6 @@ description: > maintainers: > - Conor Dooley > =20 > -allOf: > - - $ref: spi-controller.yaml# > - > properties: > compatible: > oneOf: > @@ -43,6 +40,22 @@ required: > - interrupts > - clocks > =20 > +allOf: > + - $ref: spi-controller.yaml# > + - if: > + properties: > + compatible: > + contains: > + const: microchip,mpfs-spi > + not: > + required: > + - cs-gpios > + then: > + properties: > + num-cs: > + default: 1 > + maximum: 1 I think this isn't quite right actually. The default for num-cs should be 1, regardless of whether cs-gpios are used or not, only the maximum is affected by using GPIOs for chip select. > + > unevaluatedProperties: false > =20 > examples: > --=20 > 2.25.1 >=20 --RpCXvjDOjTtHu/S6 Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEABYIAB0WIQRh246EGq/8RLhDjO14tDGHoIJi0gUCZjS/EgAKCRB4tDGHoIJi 0gUKAQCnSigafjhVUe3GHPm6zS2lCDzCAuS4IBfpgkSpfFBarwD/SbdHQKZYcw3w D2Nz5ZJzoYFiIZKxzyWEK7CqQHUspQw= =yaL9 -----END PGP SIGNATURE----- --RpCXvjDOjTtHu/S6--