Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp595609pxk; Thu, 3 Sep 2020 07:52:16 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy6CuiCZW6ZOidfVHh40BwuoFNckOl/RSWfaILuflRbnHAliHY6+01vyD88peaVYT9r5I6g X-Received: by 2002:a17:906:1ec6:: with SMTP id m6mr2594852ejj.225.1599144736679; Thu, 03 Sep 2020 07:52:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1599144736; cv=none; d=google.com; s=arc-20160816; b=O8Y9e1adMXCv4CI5LFxMNpuGWfEkAILjSmuY18uhPoKNEi6ekd9FAUvAfhLLmdyRCu p/qiSO6wgZ9pZFj8iRWz0jys47IMUJtWYgcNiF+DrzqucDOEA3i187BGTm5KRIuGSu3T zCxIcHnBst3WsPQglXNw05AinuLHmy3riDeJOch74gukUKyyWD/QF2XYQVG4hAYd+pqn +R8kSYH5wXjYLALKnvRXtTHLhFLZfH/vwCjsDgCvIuXFZlHbimI1CO1NYszjPgHy9RIn +KqOEQ1uYF90m+SUR1I7eiIYU5bLKOGMxZ8qFQRPSJvMMpiTMqVKja2BN2+rYp5QMN60 BlHg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=uxrMI+2jcG7Rhw4PCRtsAWbNUWIO2z+gwQ/cr3AcOcg=; b=NRmvl+w2r59T//No9aNCvivP5EG9lqUqIqZMn66+v3rG8yHgOZNY9BDaRrbihtwRJT iGTp0Q42hvkaEkmUHUcbwjP9D+IZqNwSKiZO5p14FegPUphS674tdqtKehEhS5utib9v a71DSaLoxDJPc1q9JGOvILvgyrYn6NaTXwuLaIwnLmtzVffW3Rt5ct/IHBBN+YNVj1f0 lsGIvCaHkzk5bE82USuP/zynsJHhfCEN0C1P1AgBGp+sdqtYKjdzyIDS8ubMhBVE4UWJ /ikBbqGmRQ8WZeFVc/iqFsSx3OMe88o44TqukEkX+rgE32Y+CsLcXn60z+M+MzQk/XRQ 32pQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=P8ytrwH1; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id t25si1955260ejt.49.2020.09.03.07.51.53; Thu, 03 Sep 2020 07:52:16 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=P8ytrwH1; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728878AbgICOvP (ORCPT + 99 others); Thu, 3 Sep 2020 10:51:15 -0400 Received: from mail.kernel.org ([198.145.29.99]:56616 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729234AbgICOP1 (ORCPT ); Thu, 3 Sep 2020 10:15:27 -0400 Received: from localhost (fw-tnat.cambridge.arm.com [217.140.96.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id BB4D6206EB; Thu, 3 Sep 2020 13:23:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1599139402; bh=uxrMI+2jcG7Rhw4PCRtsAWbNUWIO2z+gwQ/cr3AcOcg=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=P8ytrwH16XsbRuGogX7XR0cM8l3saDTV7V6rLJqztA3BTdEm8sKCVMgP9+guQw5oh oX9mOY7DAMKky8hGQ1SKM2O4XgfH9OYRZknrqyBOiFB1S6jyiBp4KzSrTKAj5L+IxY Km69Z3dSrT+aWrT+Mz5zDXcBLLs6dyRRrDBlQyfs= Date: Thu, 3 Sep 2020 14:22:41 +0100 From: Mark Brown To: Matthias Schiffer Cc: Rob Herring , Shawn Guo , Sascha Hauer , Fabio Estevam , NXP Linux Team , linux-spi@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: spi-imx: correct interpretation of num-cs DT property? Message-ID: <20200903132241.GB4771@sirena.org.uk> References: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="ADZbWkCsHQ7r3kzd" Content-Disposition: inline In-Reply-To: X-Cookie: Murphy was an optimist. User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --ADZbWkCsHQ7r3kzd Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Sep 03, 2020 at 11:22:20AM +0200, Matthias Schiffer wrote: > - If num-cs is set, use that > - If num-cs is unset, use the number of cs-gpios > - If num-cs is unset and no cs-gpios are defined, use a driver-provided= =20 > default (which is 3 for spi-imx; this matches the number of native CS > pins in older implementations of this SPI controller; i.MX6 and newer > support up to 4) That sounds like what's expected, though we coould just skip the first step. > Also, would it make sense to add num-cs to all DTS files for boards > that actually use fewer than 3 CS pins? No, it was never a good idea to have that property in the first place and there should be no case where it helps anything. > At the moment, the num-cs property is not explicitly documented for the > spi-imx driver, although the driver understands it. I also suggested to > add this to the docs, which Fabio didn't deem a good idea (I don't > quite understand the reasoning here - isn't num-cs generally a useful > property to have?) Could you explain what benefit you would expect having num-cs to offer? --ADZbWkCsHQ7r3kzd Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAABCgAdFiEEreZoqmdXGLWf4p/qJNaLcl1Uh9AFAl9Q7iAACgkQJNaLcl1U h9DI4Qf+IFmOS7dEEhxYZrT/kDf0F1Z6Kj6qTImRT4ImOPc1hhlzs6e9o2HxAj95 SfPAinxGHrl9ClrK2J8e4XG7xxu+UNfom6FGwma3oz0nhwPJ+kJx6LaQYDdEdCYc mgK3XD+n87gwKoS4DdbZxpFTdAE2XR+ngKlDJUdhYmlWxKgGZuWzJfw4ehTZlqbg Rvgr9CY+AT6mKFDq9dZS2AxFXpD5LLqOHj4XX25MjpWS9AdSjWuWyop24WbvF2nj YJqrMqto0ygGJdW94+ugGz2T+82EOI6Bm17NcpYzXHcSFT7d97GCC2kQbTQmIDql 1sAVyODUHKz5reRHSSFsIebJiRJSjQ== =CrVc -----END PGP SIGNATURE----- --ADZbWkCsHQ7r3kzd--