Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp2704895pxa; Tue, 25 Aug 2020 00:24:21 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwO8T6SPeILpNPve2H6cyqY3NnNXZhwJWPLNt7EzfsVVK1j4v3WC0K7MxT/HP/RODjthDJ3 X-Received: by 2002:a17:906:a8d:: with SMTP id y13mr6477275ejf.400.1598340261688; Tue, 25 Aug 2020 00:24:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1598340261; cv=none; d=google.com; s=arc-20160816; b=0YBOkTvEiSerBGXSpaYPwGpDA190N/sG1fhRAy8D0pB57iO+uujgsoCn9ZyQekC16H UnFuYiyLGrnJuxj3w1C+x/CljCv3yyDW/bRC15wYmmIY78rcE83Ao1e4dw5xex3GhMJ/ Lmfr69oSBACgI1SP94nxPYkC4Qh9I5M6v1wolbbh4sAwEltLEO1zlue4mb22atBf1NNR yJvHH5lnR4cgM6uup3+/IRlR4NtsmXqcpdvjuRMPBh67Wc15vJU1a4HTiCGg2xMMwPEr af84DYzsNTtqnjgv5xKt7IW3ibx7o545U06JOjNEyxxRQXNvY0MiE26m4BOGPneOVCrn QK+Q== 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=b1eI61Hxpc8kH3SczckRRwuEC/icQUi9Ow4N4fieNb4=; b=UrnC8AZrFw487tvi0bQTasxG4ErSsFhdnmDXOW2qaD4tiMpS9WqsL6e0mVWsFASd6Y rThIUJzHQlgZJsn1I/zZ6IMwQ6e0d7yYLZcnEzpNo8+JXt3pzr3dlGpddHlt9sUOZzGA biRpa/9Hz8Lb78Zmv/WMwan3/dZ+O92R5em9HxT2bJcjKo8vVgdgGCVJ/tvrnFMoWPy1 Wu6yOncP1jCK6Dd9LOug+7xXp+BiIKNta/T+mZtCOejtFYDgj+0EbiXP4O+5aI4BLlxr Kfs9ecpw6dPr4rYJbhem+Hz4qc6FL+D9HhOPjHgAQwAZN3a5SS+N4r9Rz3idgyFMSlxH eaUQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@tq-group.com header.s=key1 header.b=S9mqBrBK; 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 g6si7131560edq.456.2020.08.25.00.23.58; Tue, 25 Aug 2020 00:24: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=S9mqBrBK; 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 S1729399AbgHYHWb (ORCPT + 99 others); Tue, 25 Aug 2020 03:22:31 -0400 Received: from mx1.tq-group.com ([62.157.118.193]:12666 "EHLO mx1.tq-group.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729363AbgHYHW2 (ORCPT ); Tue, 25 Aug 2020 03:22:28 -0400 IronPort-SDR: eNmFQX5PpPmcEviaQ2tfOjEkWWdWkKRzvrImmUXl5mVRrlUFPtqZ1wE+lK5yUYBsvhcmqsJCih WZDOx5VMYDnh/viACzRfE1Tkh+vbv8SOTGngblCPqnNJLtiYDqHBsS5aA5nttEjVzxD8QJC3I7 ex0xbFCkwsEMSF4s6ua0kKt75D+5gMj+RgDujclKkAP8wBUQcuoyiwyYCv9HyUg4fj5mw8T5nS YdSyBiigWoxxCAXJ4Z56l3KNpG2OmZkMQYvXTzJvIQI35XhVFRjkMSh1p9SzyhUAXp+PfZ4NFG UCs= X-IronPort-AV: E=Sophos;i="5.76,351,1592863200"; d="scan'208";a="13583860" Received: from unknown (HELO tq-pgp-pr1.tq-net.de) ([192.168.6.15]) by mx1-pgp.tq-group.com with ESMTP; 25 Aug 2020 09:22:25 +0200 Received: from mx1.tq-group.com ([192.168.6.7]) by tq-pgp-pr1.tq-net.de (PGP Universal service); Tue, 25 Aug 2020 09:22:25 +0200 X-PGP-Universal: processed; by tq-pgp-pr1.tq-net.de on Tue, 25 Aug 2020 09:22:25 +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=1598340145; x=1629876145; h=message-id:subject:from:to:cc:date:in-reply-to: references:mime-version:content-transfer-encoding; bh=4N6dkL/kwNBk8VB5tEU1JJE9/9Y0/PoteI2pocptzkY=; b=S9mqBrBKlNgb+0T+IF2kdpiiEGgikcqmK+2fhaPMQJBD4DIq/WyVeZUY hk8Uc7pGbgtT8T0BxzUrOWgSdvR3pbcNFDU/uHEqRutJi94N0uOETQEe3 TZOW8vs4lTYu+W0Vs9DTPtJgkis5DHAzYDcHO4XNtIqflxmKkfxpqw86G 4HVkmztL4Vayzhc17aZ/7uLrlikyPvTs04c+TcCWzM1ZxBFP6HxJka2oC 4N/Fb24BOEWifJHAHJUFk9wPPpD1fePf3eNrUr6kcFi4DDfLnm7qSZd94 6KWM+/iLV9kkdgWoUbtmvWeXFh+8DBSNy2OwowGeZwTC6lEnHHNCTGCRu A==; IronPort-SDR: Mo8sm6JNKdJHPOvnPGZCJUM1pHbd62JlnrYNHSQgJoCMunDMl/YvYKBGo/yinevAYV9fXAP/dm /N+Bn7rRGKn+6l2bl09VCsiCxkYyPE2Y/rmrtBKTia197y7YgLR10w/PNaGf9dGkJUOGd/1rFn 8qBVKRuQKPewSYPNAY1bruwsF8E7N67Z/3slrcCdP1CmsG2HAdsoMrjAhx63ZU6m5BDP5Eg+zg Z/TbokoBRUguSjMRQNg/JF5yOx52odm/yjXG0ZnZI5tB3Bia0cYgNTus5WzDoZWHYBc6fbdP0X YMg= X-IronPort-AV: E=Sophos;i="5.76,351,1592863200"; d="scan'208";a="13583859" Received: from vtuxmail01.tq-net.de ([10.115.0.20]) by mx1.tq-group.com with ESMTP; 25 Aug 2020 09:22:25 +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 87F0B280065; Tue, 25 Aug 2020 09:22:25 +0200 (CEST) Message-ID: <4b7d57738ce8e2130c4740a0f3f973fbaf60a7cf.camel@ew.tq-group.com> Subject: 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: Tue, 25 Aug 2020 09:22:23 +0200 In-Reply-To: References: <20200824091013.20640-1-matthias.schiffer@ew.tq-group.com> <20200824091013.20640-2-matthias.schiffer@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 Mon, 2020-08-24 at 18:36 -0300, Fabio Estevam wrote: > Hi Matthias, > > On Mon, Aug 24, 2020 at 6:10 AM Matthias Schiffer > wrote: > > > diff --git a/arch/arm/boot/dts/imx6qdl-tqma6.dtsi > > b/arch/arm/boot/dts/imx6qdl-tqma6.dtsi > > index 9513020ddd1a..7aaae83c1fae 100644 > > --- a/arch/arm/boot/dts/imx6qdl-tqma6.dtsi > > +++ b/arch/arm/boot/dts/imx6qdl-tqma6.dtsi > > @@ -20,7 +20,7 @@ > > &ecspi1 { > > pinctrl-names = "default"; > > pinctrl-0 = <&pinctrl_ecspi1>; > > - fsl,spi-num-chipselects = <1>; > > + num-cs = <1>; > > You could simply remove fsl,spi-num-chipselects without passing num- > cs. > > The spi core is able to count the number of chipselects passed via > cs-gpios in the device tree. Hmm, unless I'm overlooking something, this is not going to work: - spi_get_gpio_descs() sets num_chipselect to the maximum of the num_chipselect set in the driver and the number of cs-gpios - spi_imx_probe() sets num_chipselect to 3 if not specified in the device tree So I think we would end up with 3 instead of 1 chipselect. Kind regards, Matthias