Received: by 2002:a05:6a10:6006:0:0:0:0 with SMTP id w6csp16216pxa; Wed, 26 Aug 2020 03:34:21 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyryTBxnu7mIslMisgRIF6USp1Jeq/HxeZbSQEKzaWQ7w580tOL6b5TaIqsPl1XFIrb03cz X-Received: by 2002:a05:6402:3199:: with SMTP id di25mr14622676edb.315.1598438061471; Wed, 26 Aug 2020 03:34:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1598438061; cv=none; d=google.com; s=arc-20160816; b=Va6AoJsjF/OvEvFYfU3BidZmp+OiLuJD5s+VBouMYAl37pSjAl+4aJ/aAdyMHBO0pC T2AXRxfbhbmT6/FwxmhrFQz3ZLSDoia+pKiOAedtmsSWORZt7iZOPB5OofJuyrxw38h9 VZqARtsej/1/GSBnI59aWqkB8eVrLO2M7P1bY7VkxaYi5olt4LIwoCN8gRpnQECtWIIG TkPrR6qqZ5xMmI0MGe+zn2E+OOZLaIjO25O+rOw/iYWk/+a9m2q6+9iYSjh4vxPwviIh ZPWtejuFn1JZ4vc6LhUkNW8Y4yUKtQQ+fX1F7n5wGWqF/d0G6aRAmI/vjE8fZdcA9dxy Gbnw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:date:cc:to:from:subject:message-id :ironport-sdr:dkim-signature:ironport-sdr; bh=27rwWmD415HX/ncQwXXDGJozwAFVMoofoNEjuZfYOVU=; b=GIHvYFq5lQF5hnZoz0yOZLjbbJH7DJds9bDub9p64jllJiOuZEUm7giJ+/Cnf4rhYt t7J8ijuV4nDnS84mIyxciNWRoq44SRs4wxwO72bQI9mV2NnObvxvisiO61pyepjT06RY y9iHx+8Z7i9SnTd02EWT7nK6lW0/k9j+8VbY8R6TUnJVf3yQJuSFRjMEXtPpRF9YFCux 65dF1EnbXi97RPuPckxUFOI237eZ0F6FFQVZLYXQJFhGlO0T1NuNQhKt+AzmRp7DlHGx TITiVdZBRd1HK6wJEtnH4TWpOisoGwrjVxPhf5hdOpfjXdv4hYZaeOhcKvXAI4MgRPhL uAHQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@tq-group.com header.s=key1 header.b="aHOapJ/z"; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id d20si1253959ejz.445.2020.08.26.03.33.58; Wed, 26 Aug 2020 03:34:21 -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=fail header.i=@tq-group.com header.s=key1 header.b="aHOapJ/z"; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728486AbgHZKcX (ORCPT + 99 others); Wed, 26 Aug 2020 06:32:23 -0400 Received: from mx1.tq-group.com ([62.157.118.193]:48669 "EHLO mx1.tq-group.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728132AbgHZKcV (ORCPT ); Wed, 26 Aug 2020 06:32:21 -0400 IronPort-SDR: 9OZKk8jEcvCf/m3dpFJVwSgODe4S/NTgM3/BJZwc+totVibwYjJskgkHIvH1luqMNDHkMlI4mG zgIlbku+Y8eVt0IikwZWK+8XhVAfuuhKfvo6Ykxhyaft6JuOexl8+hqdSIl5NVP1hXwUYj/llX S9Mpzl0lQ8EnZP5QpWa7B2qjdM1zHr9E+qiXNuF//7nrNIEtiTi98bUk0+cgpPYPIbLWHAkd+y Ey93PlVoyr/4vvUSnPoGqUh+eUd1OoVQeFv4fVl+ket3cgLTjv0cxIWJmbgrBGi0KCaLtL26GJ i24= X-IronPort-AV: E=Sophos;i="5.76,355,1592863200"; d="scan'208";a="13605981" Received: from unknown (HELO tq-pgp-pr1.tq-net.de) ([192.168.6.15]) by mx1-pgp.tq-group.com with ESMTP; 26 Aug 2020 12:32:19 +0200 Received: from mx1.tq-group.com ([192.168.6.7]) by tq-pgp-pr1.tq-net.de (PGP Universal service); Wed, 26 Aug 2020 12:32:19 +0200 X-PGP-Universal: processed; by tq-pgp-pr1.tq-net.de on Wed, 26 Aug 2020 12:32:19 +0200 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=tq-group.com; i=@tq-group.com; q=dns/txt; s=key1; t=1598437939; x=1629973939; h=message-id:subject:from:to:cc:date:in-reply-to: references:mime-version:content-transfer-encoding; bh=mkEkX1GM1xbLiXkLbImdPglocH+IeXx6MxzXdXmSuoQ=; b=aHOapJ/zO9nEki7v7TnwPsS+h5yF6dMfYpoCz7nMFPhgXVt57jJp3gvm B1IH2vznv7YhNG3U0pd5ex5+BqQd2NkyxNP0CzE+ZS+Hk286HOIjqWRuJ qvlGBrulS8FVddQszJtWFnl7Ois8VRJQek7K7DiKE4GVNEWj7254/fF/m TLwlO5Eij84qVg/stvnBtQOEJQHOlUN4MeaPs4bbmpQy77l2ycOf70PtJ 6rltUbvoVBDt+O9In/roV7A143w5TX3x7QDf1njCQxZFLyBKLDuwYS9gi 8r/xEWF1YlOZofGI9CRAffjzjsNMukrN55vDoOcHOtlJnywwPWru8hkOM g==; IronPort-SDR: YJeyxRPZU91peRDZT+5Vm5Z4NR4Ycx+N+xtKloknBbXfhabJim5XpCZLDn9YzBXcE4nYPq0kKu y0rzgEi0Y0MefjCCBwAjS/YRoF3JNbxoOFeAuEU++hmnORUiwzvBVX1dWNqGDUFw7TjwBVclyb 8F8TaH874gCnt/7gCtT0UTlWf4KmIlz3pQLYsR+kcF1wCVqJOe64CdoYyB71/kJLAzFMirSRCE hz+NXVb+ZIsWJkOPbfYo7W8qH2UqejHbxLKhqnojoD0cK07w2E9bm9/V8PqkTJf7QS//C+PVLB 7kA= X-IronPort-AV: E=Sophos;i="5.76,355,1592863200"; d="scan'208";a="13605980" Received: from vtuxmail01.tq-net.de ([10.115.0.20]) by mx1.tq-group.com with ESMTP; 26 Aug 2020 12:32:19 +0200 Received: from schifferm-ubuntu4.tq-net.de (schifferm-ubuntu4.tq-net.de [10.117.49.26]) by vtuxmail01.tq-net.de (Postfix) with ESMTPA id B4B6A2800A2; Wed, 26 Aug 2020 12:32:19 +0200 (CEST) Message-ID: <53f5f17735fc2f0ca061a321969bbb131e55efff.camel@ew.tq-group.com> Subject: Re: (EXT) Re: (EXT) Re: (EXT) Re: [PATCH 2/2] ARM: dts: imx6qdl: tqma6: minor fixes From: Matthias Schiffer To: Fabio Estevam Cc: Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , NXP Linux Team , "moderated list:ARM/FREESCALE IMX / MXC ARM ARCHITECTURE" , linux-kernel Date: Wed, 26 Aug 2020 12:32:17 +0200 In-Reply-To: References: <20200824091013.20640-1-matthias.schiffer@ew.tq-group.com> <20200824091013.20640-2-matthias.schiffer@ew.tq-group.com> <4b7d57738ce8e2130c4740a0f3f973fbaf60a7cf.camel@ew.tq-group.com> <7a59492e46f34d213b83f7182c7db73954c5a9c7.camel@ew.tq-group.com> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.28.5-0ubuntu0.18.04.2 Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 2020-08-25 at 14:16 -0300, Fabio Estevam wrote: > On Tue, Aug 25, 2020 at 11:40 AM Matthias Schiffer > wrote: > > > Makes sense. Does the following logic sound correct? > > > > - If num-cs is set, use that (and add it to the docs) > > I would not add num-cs to the docs. As far as I can see there is no > imx dts that uses num-cs currently. But the previous platform data that was removed in 8cdcd8aeee281 ("spi: imx/fsl-lpspi: Convert to GPIO descriptors") set different values for different boards. So maybe some DTS should be using num-cs? > > > - 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 > > default > > > > > > I'm not sure if 3 is a particularly useful default either, but it > > seems > > it was chosen to accommodate boards that previously set this via > > platform data. All SoCs I've checked (i.MX6Q/DL, i.MX6UL, i.MX7) > > have 4 > > internal CS pins per ECSPI instance, so maybe the driver should use > > that as its default instead? > > I think it is time to get rid of i.MX board files. I will try to work > on this when I have a chance. > > bout using 4 as default chip select number, please also check some > older SoCs like imx25, imx35, imx51, imx53, etc Hmm, I just checked i.MX28, and it has only 3 chip selects per instance.