Received: by 2002:a05:6500:1b41:b0:1fb:d597:ff75 with SMTP id cz1csp124307lqb; Tue, 4 Jun 2024 07:01:45 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXUBjkoHpjMQjm96lSo5asT9mkcEfNxXXSHm+wH8Kus+Chy+V9svHVnFlIXP3Mbv5cZ+ey4vbp1nrAj/OwHCZdClI1/T1XDEW3oihEqug== X-Google-Smtp-Source: AGHT+IFGQjR71RsqW3M/eaDZS0aY7wQFcHCoDgsvp6QO4E+txCfkoM3qfi6NmCQwYqH8eWldqq7h X-Received: by 2002:a05:6a00:234a:b0:6ed:1c7:8c6b with SMTP id d2e1a72fcca58-702477b664emr14265073b3a.1.1717509704870; Tue, 04 Jun 2024 07:01:44 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717509704; cv=pass; d=google.com; s=arc-20160816; b=F7S+ZOr0zCoCkg7mWLzCNxRt55ZYZr/+m8rYmGL3a7t4JHwOIjKbhVlmPmRjaPGmBo 0GjSj/ISTRA0v+BdQQM+0ABKiUr8FzdvEJErTpzF0GQArS0JUjYne7ZGzfep0EQc7ZAv jVKHTaQzwQWb8eul1L0dzdppp/l/YHOCmig0ZY93a3FuCV+ktT58ciTue9p1xIBWudnn QrwWIviKT+DBIi+rDSclHN8Sdx0P217cq9ltM0Azbj3Kt0vEIbd8/H10/hSWzaqvYmHN rMgedpmeXzTwv2XBDMLTsdBhkt90nz03F9IoDqjpM1dfJL3uTzL/qo7k4yPMigkn2kDL Eciw== 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=4ICNKVo7MCS2eINXXAwpfYBKsrgFJPIS5gOBUknEPts=; b=V+e84fMrBX7JjksLyFk+tY91TPAcYoJ7875R/rWdyWc27RrKJ5tRbhBDm4n+fCGIxB oZMVY00ltp5GmM99dOd4cVJsUWdtmDIEF0I8748kF78UQwJvEjDGkbfA6DK4ddlrDCAR 7alVVlaZBOz+9UEvsdeBYDpRo3iN76HqeOjR5yECPL6yfBwEb7pmoe1Phi0GKMFqzclR +nBMC0VisTh+GzSbLGPBek2gGCklF2yb5RMAUViVs/6zCFSmpuO6ZCME0BfhUpDStaLa pLX9NHYyzSPLRAP4as1ajzIz8fWxSVCq1adCxAfpY5vQ3vR/Ag0xaNZppSbNITO5o/1a 0PYg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=DUKG3prz; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-200767-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-200767-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. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id d2e1a72fcca58-702447617c8si8097521b3a.103.2024.06.04.07.01.44 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 04 Jun 2024 07:01:44 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-200767-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=DUKG3prz; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-200767-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-200767-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 3269F28343F for ; Tue, 4 Jun 2024 14:01:18 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 678ED13D271; Tue, 4 Jun 2024 14:00:07 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="DUKG3prz" 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 87BE413D24F; Tue, 4 Jun 2024 14:00:06 +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=1717509606; cv=none; b=fQkDoZj97OpTrUMemt4/unNmx261Cd5046UBHs2OhW25l1GX75OepqluTCML+Gm5TTWkPI+hH71qYIzrbUrQ/MD/Yp4x4K9YFGQtAgHPWpxqIPMPCUi1KS4viRELFVwlCZm8tmGgUCwrXF/xRURW/8YXIZTODl0MdZS8CuRaKCc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717509606; c=relaxed/simple; bh=pE0vsrGZNwEDC2VKKmVgmDKbUEz9TgECCZmW3XAqSV0=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=cSjf3+Q+if3g0AQUz+JgwpGjICfy0nxIndWE3zkJDQCVaUak3CgIE4H/RlfG6dsEtm46qOIAkbNZA/ygAYnyaSGTvRGzSnlISkKVWLeQdeSP8rxxVPlpY8E50+xHT2Oj07oDlOj1ujmQXLgEaKzPaKfCFV2YVfOKJkCgQodq+Mg= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=DUKG3prz; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 2E536C2BBFC; Tue, 4 Jun 2024 14:00:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1717509606; bh=pE0vsrGZNwEDC2VKKmVgmDKbUEz9TgECCZmW3XAqSV0=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=DUKG3przbpzig4SRmiGEvmdMbq5kM2H8CI5ssas2YppLjjocDr+Dmx7ULl3VI4IAI ASnCH+KaWA5zO0T6GM/NkLjKwK8BOuyzqX5V45VgxRekYG2P6/mcjt02HkKAbrN3KI ka/ELZu9HuDW7eBMAV8E8VEs7T1RpsKPODPUzRcUqJbJyrVAhNDTo7ivx0LRM+H1ZG nJd2S9/PQD7qXcInrO5qTHTWzLnZN9VNQ8wHKhOiRs5ElEYfE3z+pzxVBC5OglRCM8 0TYFywCkvCZwSYAsCFU2Hte28HoupgPOFF20qmkXJFfjy3rvJriSiHyhNU0s2Xy6pw 0ZcqJAVZoTs9A== 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, imx@lists.linux.dev, linux-arm-kernel@lists.infradead.org, Michael Walle Subject: [PATCH 05/10] ARM: dts: imx6qdl-kontron-samx6i: fix SPI0 chip selects Date: Tue, 4 Jun 2024 15:59:29 +0200 Message-Id: <20240604135934.1951189-6-mwalle@kernel.org> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20240604135934.1951189-1-mwalle@kernel.org> References: <20240604135934.1951189-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