Received: by 2002:ab2:6a05:0:b0:1f8:1780:a4ed with SMTP id w5csp2846342lqo; Tue, 14 May 2024 10:52:54 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVMuDshcm41qk6qc46qNdfxQN0n3i3hKUJ3TrrJa4a9Kgc8X87EfchCXa5VNp0y3djQbjk3sCM1ozkUTXlDiMZRnOzd47Iysw7CfL+6Aw== X-Google-Smtp-Source: AGHT+IGBAY/8HigC6JhCKhbFOMjkJ4Fy/xefn2FwB0r/l7vIePuIENc8IALoJyYYi2Iu2UErJPPP X-Received: by 2002:a17:906:a013:b0:a59:aae5:5837 with SMTP id a640c23a62f3a-a5a2d5cd442mr774526966b.44.1715709174178; Tue, 14 May 2024 10:52:54 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715709174; cv=pass; d=google.com; s=arc-20160816; b=oipi1BbdJMyscC/XRg4KeFpcUO0i8JcgsHVZQq7YlMpt3OyWkAO1iy3BHVLUW6F9DD /7WkQRYsvXap5a4NXcxjQ0yolhkYOtQOoU1zSGgiqCDT1V6E3vplXvA+qlOMYd/ey8Me w2UZ45g+xxMYSjA29Rh09/NFjBQOrdDPGS9xOZzdkdAdRBx+EtLq5Hf9dUDLiyXVRznT ITXaCRRBLlT4Ga7HZzG94txnoq8nokd4h9hOiOgP2AvR4736XpezlCkhPqb6HzP+jpQZ Bu57xbe8EHTfezURE0kTCcQVPSxf7H3xVH27F5B/OoJHjGLly4SUf7HFbKJbgVaapLrB N1eA== 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=prtYYs2T6zdD9BwqQZScG15wdlS7Z0q2DOXq5OPJchQ=; fh=OjAHvvftbD+7y8ccmtAbJ2668Vpf24+P4MHbkoDcBYI=; b=Es2KV1LZhabFV8gyhynPnSH5Mz2wte8w0NYe1fFwzM6RuAuGuZs6enDJyk0FwvRre0 KG3hC3APPONX7kWIqvVf9LOtzquv/hQpSwKtaOxfAdVNoFX+JMnMc5bhW/lm25o+8r5C WMLHi3ze/BtP2h9qEknZFbi9taYQUV2+53YbtIxKYMCYHy3vtWqkXYfTeV7ihtZLgFMT ugaCrIqOTwWRTtBUlTGaKB6wkOIeHCiF6Fo2pKiCTt4otlcruMtXNm0X+GJzrWss86L6 vwldLFMnTC9J1dJQjMFGXJLv+ZOiqvhyHJ/yjblZDbNhEVzJsKHFeH69P2WSfo9VzOuI JknQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=cBSn7cCs; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-179019-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-179019-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 a640c23a62f3a-a5a17945cddsi633667366b.161.2024.05.14.10.52.54 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 14 May 2024 10:52:54 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-179019-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=cBSn7cCs; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-179019-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-179019-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 DF3271F2319C for ; Tue, 14 May 2024 17:52:53 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 5D5E61802C0; Tue, 14 May 2024 17:52:47 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="cBSn7cCs" 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 797682AD1C; Tue, 14 May 2024 17:52:46 +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=1715709166; cv=none; b=OUz46lMHrsOkgV/cFKapYTmPJ4YckLJAB91y/cFE+NmQdFVCWdTP+WAFoTbBkayLgdXb495Xgb8rOghIprWJN6BGZpLyCbIaj+K7/l/uZAmPyHy9aiUMIXsTdSb3V5l+gm0pisZICvyCzh2wZ3syAuROf8qWrDfZdt152xDnoIU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715709166; c=relaxed/simple; bh=qNjfAu4NG8Akw8mfYF0kzZEJKjB5jWGN4i5QOPlFrB8=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=GNlcULcK7uYlBPVGK8mdmUeBI50Vmt6jz5Dc92EiycdEj3jIrVfMyRjjmKm8yKaPo+Itxm59D4/NlGIGE1dkLrN2C2gmAN0mtdmw0zEBz1vfGt0L07+5z3vy+0aXljL0P8Jf15aPCbTZ5j7NcUzM1CiLodu/V/CR76P2Mp9r1j4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=cBSn7cCs; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 162D2C2BD10; Tue, 14 May 2024 17:52:43 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1715709166; bh=qNjfAu4NG8Akw8mfYF0kzZEJKjB5jWGN4i5QOPlFrB8=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=cBSn7cCsiYFVHEcWWUE6cMnbPTvP4BFaM+w3KWH/7v//xyStDoT5EBv7cudLYy8Df GS3oSxPvx+AIHWGPD8rj7FXwF1CEquWs9hT99rG2N1LiJE+M7bQs34COp8B5FBiU3j 72GxDJ/PYklcDkTyeA9oAYpOUepbHXsVoI/oKAE28SHZAhfnSnmbeSpU1UyZLBLeP4 AQcdwsjGzh6P/aRKS6vta/ZCh1FTzUwNxrWoaeW1nmJQ26Y9YP2AdidzldlVngz0Ha tUUkpYrBtEzlMWYbMsOFKJOaYkP/f7OFVo/hJnFTLVWHVtH46pjKPmdKRgc8Ev54UZ eez/SBZ6fYYqQ== Date: Tue, 14 May 2024 18:52:42 +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 v2 1/3] spi: dt-bindings: Add num-cs property for mpfs-spi Message-ID: <20240514-parmesan-enslave-444763e785ff@spud> References: <20240514104508.938448-1-prajna.rajendrakumar@microchip.com> <20240514104508.938448-2-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="l5DifMLtxko3ajhl" Content-Disposition: inline In-Reply-To: <20240514104508.938448-2-prajna.rajendrakumar@microchip.com> --l5DifMLtxko3ajhl Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, May 14, 2024 at 11:45:06AM +0100, Prajna Rajendra Kumar wrote: > The PolarFire SoC SPI "hard" controller supports eight CS lines, out of > which only one CS line is physically wired. The default value of > 'num-cs' was never set and it did not didn't impose a maximum value. >=20 > To reflect this hardware limitation in the device tree, the binding > enforces that the 'num-cs' property cannot exceed 1 unless additional > CS 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 | 29 +++++++++++++++++-- > 1 file changed, 26 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..ffa8d1b48f8b 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 I provided the conditions below, so it's maybe a little disingenuous for me to provide a review from a dt-bindings correctness point of view, but then again I am the one listed as a maintainer for this particular binding and what's being done here does match the hardware, so: Reviewed-by: Conor Dooley Cheers, Conor. > =20 > -allOf: > - - $ref: spi-controller.yaml# > - > properties: > compatible: > oneOf: > @@ -43,6 +40,32 @@ required: > - interrupts > - clocks > =20 > +allOf: > + - $ref: spi-controller.yaml# > + > + - if: > + properties: > + compatible: > + contains: > + const: microchip,mpfs-spi > + then: > + properties: > + num-cs: > + default: 1 > + > + - if: > + properties: > + compatible: > + contains: > + const: microchip,mpfs-spi > + not: > + required: > + - cs-gpios > + then: > + properties: > + num-cs: > + maximum: 1 > + > unevaluatedProperties: false > =20 > examples: > --=20 > 2.25.1 >=20 >=20 > _______________________________________________ > linux-riscv mailing list > linux-riscv@lists.infradead.org > http://lists.infradead.org/mailman/listinfo/linux-riscv --l5DifMLtxko3ajhl Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEABYIAB0WIQRh246EGq/8RLhDjO14tDGHoIJi0gUCZkOk6QAKCRB4tDGHoIJi 0uJUAP4wXa6qR/dXqw/b2iphEzu9Bm1hdToleARl0CE/hfXq0gD+L6NBEDBLxgCv w/3GtTtJfnjoa2V5Ll1nAKLqgilP+w4= =MaCe -----END PGP SIGNATURE----- --l5DifMLtxko3ajhl--