Received: by 2002:ab2:6309:0:b0:1fb:d597:ff75 with SMTP id s9csp242724lqt; Thu, 6 Jun 2024 02:08:44 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXCZTpPG5NqO7zFPYY0lgDHDskRC0gcUTh7JgQC6Y5KtkWs1DsJ7LolqvrvEotxXLak52iogodKEqfJmrIz7PA2gnBkW3tqUSNZg/pJLQ== X-Google-Smtp-Source: AGHT+IFke0o3KyAHx2DzsXM/VpLsZtr+yglD7X3SW8robOuF6/58Z9waKPYr5Zx77D6JXtGLsSWn X-Received: by 2002:a05:6e02:178e:b0:374:a412:3d95 with SMTP id e9e14a558f8ab-374b1f3e690mr53276065ab.20.1717664924557; Thu, 06 Jun 2024 02:08:44 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717664924; cv=pass; d=google.com; s=arc-20160816; b=lgGontalu6VMLAODdjAeZRC89D9GjdJOnRwsWSgUBCaDeSPUvkuhMZvQRdwTuGk1ma wEjQvevmoBwp3blamy3dEc9KPtyRbgQmh2vDugUBJaiu61AeJcuFo2DZ04XFSMMFZKwD gaKNPTzHmr8Ad25WCh6fEtlxeF2yK2LhYf8142affnaO3bV9xiZg/gTBqTkkydFEPAFq 2hXw8H/4LZpxsfW8KrUOqO2f5962czDIgv1bjk4VkTAcajy2Iz/WCb38lR2qlCeNuHEW a6n9uXdbhT12CPiS7orLRX0BgXxF3kVcXo/+0pkQ1Dopx1CvNoLssySOsWuC4B5FL7Mp Emlg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=2to+chPoBEi9irXVNNvtHPSY87oWYmDY18PYy8GZgNg=; fh=1NYPRM3qy5MjpJdGnc8yJc3m7Ib9JFJqLhulqQTJHnI=; b=uGswQ6X9OFlCxllQQBaj5mZu3Jhqa8SrRBUEj/tZ2cESSPBz4Rz3El7jcYCcUbtMQj BCZm1g6o3z1TDdptyC1DYfm27PZkNgzcivfVdLjJKptSrB+3Y3GRTEXxAZTAC2SXXy2v MhEZRIumFEpB1qyAWXMvJH/6NIGfInBgHz6kTUNRwN56A2j2rE1MKhPxxp2Ofy0zc4PZ mA9xVp3FvBM1u5leDlQAYtIISE5Szrt2ErFxqOpBPgeTSfAh6oFGSRoK3LOj62HU0Vhx 8Uk7g/dKlOh3NVXqL19nN0UkCdUY7ThJZ6hjkot1rR+7rUADbu8hTus5lqXtJOIXqOxT vB/A==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=lZEUeeJM; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-203934-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-203934-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id 41be03b00d2f7-6de21978fefsi822164a12.212.2024.06.06.02.08.44 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 06 Jun 2024 02:08:44 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-203934-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=lZEUeeJM; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-203934-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-203934-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 2403728BEBE for ; Thu, 6 Jun 2024 09:08:44 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id DB06D1553A2; Thu, 6 Jun 2024 09:02:37 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="lZEUeeJM" 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 0AAF9155385; Thu, 6 Jun 2024 09:02:37 +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=1717664557; cv=none; b=a96cIQVnWa8Dy4OQIS8BJkDnQdO9r55H5EQMafBdc/mNBHmbH8urE3vNCSObEDNxUtM4CRuQxzfpSLoroGM/gd9LFfP7kCNRQJt9X9UaCQI9xjWvobP10t1bc9dOYRa85dTVAzcUFoeC51cO4vIclaan0SuLYXk3FzqgOQTv4Oo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717664557; c=relaxed/simple; bh=pE0vsrGZNwEDC2VKKmVgmDKbUEz9TgECCZmW3XAqSV0=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=BgmMAWNvik1ATiMRv1pUvNzuiZibD/GuCywR9VXxX0ThCnI9vo21ie/RpBnhj4exs63DUBKvrZKdrgJ8p4aKf9LE0fBuaS2U3IrmZcZzVRiCiZ203O4yowRwHlJ5y8GGGSTZFGYGp4SsGMurtwG5smE/mJYBFRgPgsBGzFRWbwE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=lZEUeeJM; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id D6189C4AF0F; Thu, 6 Jun 2024 09:02:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1717664556; bh=pE0vsrGZNwEDC2VKKmVgmDKbUEz9TgECCZmW3XAqSV0=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=lZEUeeJMEbUNU8wARrNbuyW7ZsNzPQJRQfKG2DMHcsaViHQngDoW1FHXMDN6dNapJ mpHcGXXrjXyCdm61vquGV18LKLqiAUeOErpIa1G+A2dLtsBhgQMAeflOrLnERfy46N 30YIbVkaihtmhFPMWA/FcCuaXUrQs1bOI+66tjFeZSEoAyIGDG+cqkt8uQdwEzAcHt U7aUCVSJdn3aJhk8KNW6jBZ5MkYpgtOc7iiqqNrZKY/2hSjPAALzuPPE03yOhTSjsx it6vrWiYMH7m9Nutp/ZljIsv4ZQKdNj8ZqKXGx1QxqGnyXqZW1ddTdxBuQwiLHJXD0 Kn8P6MEqXCuVA== From: Michael Walle To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Shawn Guo , Sascha Hauer , Li Yang Cc: Pengutronix Kernel Team , Fabio Estevam , Priit Laes , Michael Grzeschik , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Marco Felsch , imx@lists.linux.dev, linux-arm-kernel@lists.infradead.org, Michael Walle Subject: [PATCH v2 05/13] ARM: dts: imx6qdl-kontron-samx6i: fix SPI0 chip selects Date: Thu, 6 Jun 2024 11:01:58 +0200 Message-Id: <20240606090206.2021237-6-mwalle@kernel.org> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20240606090206.2021237-1-mwalle@kernel.org> References: <20240606090206.2021237-1-mwalle@kernel.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit There is a comment in the imx6q variant dtsi claiming that these modules will have one more chip select than the imx6dl variant. This is wrong. Ordinary GPIOs are used for chip selects and both variants of the module share the very same PCB and both have this GPIO routed to the SPI0_CS1# pin of the SMARC connector. Fix it by moving the third chip select description to the common dtsi. Fixes: 2125212785c9 ("ARM: dts: imx6qdl-kontron-samx6i: add Kontron SMARC SoM Support") Signed-off-by: Michael Walle --- .../dts/nxp/imx/imx6q-kontron-samx6i.dtsi | 23 ------------------- .../dts/nxp/imx/imx6qdl-kontron-samx6i.dtsi | 5 +++- 2 files changed, 4 insertions(+), 24 deletions(-) diff --git a/arch/arm/boot/dts/nxp/imx/imx6q-kontron-samx6i.dtsi b/arch/arm/boot/dts/nxp/imx/imx6q-kontron-samx6i.dtsi index 4d6a0c3e8455..ff062f4fd726 100644 --- a/arch/arm/boot/dts/nxp/imx/imx6q-kontron-samx6i.dtsi +++ b/arch/arm/boot/dts/nxp/imx/imx6q-kontron-samx6i.dtsi @@ -5,31 +5,8 @@ #include "imx6q.dtsi" #include "imx6qdl-kontron-samx6i.dtsi" -#include / { model = "Kontron SMARC sAMX6i Quad/Dual"; compatible = "kontron,imx6q-samx6i", "fsl,imx6q"; }; - -/* Quad/Dual SoMs have 3 chip-select signals */ -&ecspi4 { - cs-gpios = <&gpio3 24 GPIO_ACTIVE_LOW>, - <&gpio3 29 GPIO_ACTIVE_LOW>, - <&gpio3 25 GPIO_ACTIVE_LOW>; -}; - -&pinctrl_ecspi4 { - fsl,pins = < - MX6QDL_PAD_EIM_D21__ECSPI4_SCLK 0x100b1 - MX6QDL_PAD_EIM_D28__ECSPI4_MOSI 0x100b1 - MX6QDL_PAD_EIM_D22__ECSPI4_MISO 0x100b1 - - /* SPI4_IMX_CS2# - connected to internal flash */ - MX6QDL_PAD_EIM_D24__GPIO3_IO24 0x1b0b0 - /* SPI4_IMX_CS0# - connected to SMARC SPI0_CS0# */ - MX6QDL_PAD_EIM_D29__GPIO3_IO29 0x1b0b0 - /* SPI4_CS3# - connected to SMARC SPI0_CS1# */ - MX6QDL_PAD_EIM_D25__GPIO3_IO25 0x1b0b0 - >; -}; diff --git a/arch/arm/boot/dts/nxp/imx/imx6qdl-kontron-samx6i.dtsi b/arch/arm/boot/dts/nxp/imx/imx6qdl-kontron-samx6i.dtsi index 8c7f21f986e1..4a6ab7e7908a 100644 --- a/arch/arm/boot/dts/nxp/imx/imx6qdl-kontron-samx6i.dtsi +++ b/arch/arm/boot/dts/nxp/imx/imx6qdl-kontron-samx6i.dtsi @@ -244,7 +244,8 @@ &ecspi4 { pinctrl-names = "default"; pinctrl-0 = <&pinctrl_ecspi4>; cs-gpios = <&gpio3 24 GPIO_ACTIVE_LOW>, - <&gpio3 29 GPIO_ACTIVE_LOW>; + <&gpio3 29 GPIO_ACTIVE_LOW>, + <&gpio3 25 GPIO_ACTIVE_LOW>; status = "okay"; /* default boot source: workaround #1 for errata ERR006282 */ @@ -459,6 +460,8 @@ MX6QDL_PAD_EIM_D22__ECSPI4_MISO 0x100b1 MX6QDL_PAD_EIM_D24__GPIO3_IO24 0x1b0b0 /* SPI_IMX_CS0# - connected to SMARC SPI0_CS0# */ MX6QDL_PAD_EIM_D29__GPIO3_IO29 0x1b0b0 + /* SPI4_CS3# - connected to SMARC SPI0_CS1# */ + MX6QDL_PAD_EIM_D25__GPIO3_IO25 0x1b0b0 >; }; -- 2.39.2