Received: by 2002:a05:6a10:6006:0:0:0:0 with SMTP id w6csp158779pxa; Wed, 26 Aug 2020 07:22:18 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxl2jWGZIrVNVUy2GaBw5294et9A+a7xUtCeYa/zC3L7VRsFOcJ8QHZoyzrzjKdaidGVkkn X-Received: by 2002:a17:906:e8f:: with SMTP id p15mr12508915ejf.290.1598451738334; Wed, 26 Aug 2020 07:22:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1598451738; cv=none; d=google.com; s=arc-20160816; b=mGw7F3tcdbhj2T5WfRiAz59bzGxH+eP/sB5ZsiGW5vMXuKpfKUinPpBP8YHl6CqHNd edR0kWjC1isiDJTH9e4qjSule+A/Cn9IhFaG4j67HpqJykfhm4k8kGI5DV4wcuW+2Z6e b09NTcCrbQj1eUR3x9KZoTD0BVY7/lGfArpzmltqrcGkbslricuCNBbh9Mvv1ZduHSYq AtrIRS1W7YSfo25pBITaJ6cdyb3CFzomr9hVIcK04I6kqhiSd9g5KpOSPeY/yh5Gji8t /Vo/3kMFVU6Oak2r/wKJJhwAJ0l3W+a/zULJN8OcIJEcEamSbbZ94ioKNOlTrTjPOP+B lu6w== 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=11O9NZehWRReyAarUWwk4tI2+A8vkI6idFqijpa21NQ=; b=QstKLJNHMzrF/Dmv5lUG/HxSl2oh/K3C9Aw7BUmPaznmCyhgyAfMfsqZ1hjbWtbTPI m2ZIIq0IE2J14h5h3f5tCodkretG/OYo1jGvocHTBHPpHHjuyNnufZCh490h3GtnrxPf BESHeNJqQLeZY7Be9ZTPI0voZA61fQKYwIg5sn6Y0yp7RnpAzXxdonYDd1dPlUTl3mSg sUBqbU3/aui1jGo39lTVGDbv+pOvVN5duQLKhqkg0EhbtX+754Aj36d7qPDpJiwFuASN OEKppiKFTR1NqEac7ZbWiFxpuL7fS8Jhx9lV5vHIZYEWdXU/CTsIDZ9FMzo5+IW/p2tP dinQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@tq-group.com header.s=key1 header.b=YoGfd8WV; 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 z1si1667564eju.231.2020.08.26.07.21.55; Wed, 26 Aug 2020 07:22:18 -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=YoGfd8WV; 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 S1728516AbgHZKe3 (ORCPT + 99 others); Wed, 26 Aug 2020 06:34:29 -0400 Received: from mx1.tq-group.com ([62.157.118.193]:35753 "EHLO mx1.tq-group.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728097AbgHZKeY (ORCPT ); Wed, 26 Aug 2020 06:34:24 -0400 IronPort-SDR: bEmQOhqt/RVxLi8qrohUeFGjfx0whtkFiSe1ttPZpq4EcaXgFr+tqdg/9IC2o55+gIU2+xMrXu W8kYusvoryu1zFuqp/JtyXxfIVRr3odfjStCrRuzAkTy63L2fO9reiKbigD5sgisHRtOACFh8u 9sosAKachGbqLC7+PMpjLmpOmsdHgTs1oL4aDuDpmizQnKiWO5Uz5RIXZvpXg+oLw3mkd0AxuY WE4pVmDlEDyrSnh1agSz3cZ49Ux0GGk4UbtYijLyHi8PEhvaX18/9S4HR78BSVXl9jFkEmP9pM Klk= X-IronPort-AV: E=Sophos;i="5.76,355,1592863200"; d="scan'208";a="13606017" 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:34:23 +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:34:23 +0200 X-PGP-Universal: processed; by tq-pgp-pr1.tq-net.de on Wed, 26 Aug 2020 12:34:23 +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=1598438063; x=1629974063; h=message-id:subject:from:to:cc:date:in-reply-to: references:mime-version:content-transfer-encoding; bh=5i7iaEu0vG5/R+/iniXaInjvHokJLmGCBFxiqsZuCqU=; b=YoGfd8WVBLYhBafhkzyNnNKyR8tsgFYqgze5bQTYr3wecGXkNuNRLKsg T1Ug6LYuq+LelRxYm0PvzGlxvXum9z7nxtoKqcflbchcjLrFI9b7amCOD i8TsHL+fdrf7zp0GRzoHNGDAWvi2sP/63b/uiQD/L+sD2iL+ksHcjv3I1 MAKymo+szoZ19gTLOlvzivu94Ehq2mS6tk9IsoxKsA3sZ6jgLrbZ2XZcR 1l/fU0UKR52+L/QqcisZ72bqFYS6komaBVHZJBFKdHIbylSdwkPBkxVx6 H//jOJrMmPnrqmMkvuLcMlerjjSbAtcBXt5B4I6+yiA2kkazZLG/1oveL A==; IronPort-SDR: Y9y7BnNWEoeJNq87gCXjrHv2slBRkRaCfVKhZtx7kYL028KH3Lsq/tmXFZcTdv08VGICqco1Mt gK5UhlG0YfM+SYfejE6Fwo2R0D3GH+7dyFRouGHcBef6LNiqpPpK1o+9PkPWPH5HQ+QHpGBwO/ /+tnlpQeDteBZcpJ9plyEqKM+AvOZZLkCbndcJRUFDDc9k2N0j2n6P5glNc35rPRvdNbOa1b8p o2mEOYGgHmVPGW6eRpkooAocwSjtz+wrd+Vm7rzHWJVrUewUtgPz9vXZpmYDjhJB0QLsRk9yzD 4gw= X-IronPort-AV: E=Sophos;i="5.76,355,1592863200"; d="scan'208";a="13606016" Received: from vtuxmail01.tq-net.de ([10.115.0.20]) by mx1.tq-group.com with ESMTP; 26 Aug 2020 12:34:23 +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 77D98280070; Wed, 26 Aug 2020 12:34:23 +0200 (CEST) Message-ID: <0ea726119e761368e63fa90d1d3077ff2e44739a.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:34:21 +0200 In-Reply-To: <53f5f17735fc2f0ca061a321969bbb131e55efff.camel@ew.tq-group.com> 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> <53f5f17735fc2f0ca061a321969bbb131e55efff.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 Wed, 2020-08-26 at 12:32 +0200, Matthias Schiffer wrote: > 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. Ah sorry, I got confused, the i.MX28 has a different SPI IP.