From patchwork Tue Jun 4 13:59:25 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michael Walle X-Patchwork-Id: 13685374 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id E9CFBC25B78 for ; Tue, 4 Jun 2024 14:00:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=C2NcOCr9TAuJk7rnO0jcPlkxDk+3Pbc+IRhqajIIOgY=; b=CIQW0p5RKh+58v 1C6caAWg+YjhW5nlyDRESU2eGTTffr1CfEH+G50iy2tBat7PUWbIZehFTO8JYrgC5XH6WiJJ4Fn5z 7GgW12ojLjpVP07k34gQPEfWe27OijDIRNizGaVRg5bPE2IINQLQftBWH3cIEa2tI727H9NzjeqL1 DlWnSr7s3syE8R/ZOO0jaknrQD42Iv/VhO0oa5rAGRmqEv5yBaBuo80jnfis77kaZOoOACLxIJS2m MeKOm6WD02JUyuyhQKLNFU9a9K8/Z/neWtcS/cT+k+daCO8Lyl+UxquY2OTU8bjB+jyFNtjS4CsJZ tN/cmrnQoHJ9yFKVQy0w==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sEUhg-00000002ay3-2hfU; Tue, 04 Jun 2024 13:59:56 +0000 Received: from dfw.source.kernel.org ([2604:1380:4641:c500::1]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sEUhd-00000002ax8-2EHt for linux-arm-kernel@lists.infradead.org; Tue, 04 Jun 2024 13:59:54 +0000 Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by dfw.source.kernel.org (Postfix) with ESMTP id 5D6B061303; Tue, 4 Jun 2024 13:59:52 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 325A0C32786; Tue, 4 Jun 2024 13:59:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1717509592; bh=Fc3EWf1xyaS4qCDa8Ib0P/io9+UBcvdp5p0ftGP6Cpk=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=qCqaUlTVX31xEbNvWVZsSdUFZg+20t161rlA6M3O5hkG5wjWkXXH1T5jUZGux42Wr B5/UngxDYKXJ+d3GaG2xZLS9VVokncniWMzwzCh8tg0fS2cJQBWh05hrLS2LyiAmwr 95cZ5k+iBJFE5y/5w12LwMl5vJon6BGizZDcTfkpJNEnGS3K087wEBcPZ5FbkCpZFr LWLbM2O5j2Y2WrFCDzs+ISXUVy89/gynAvzXaq7W5+PySuB0gmle/9qbgnrHGn1r5w SIwEHxdbjweK/TLmKzdNMLBfAktRiyDvzhPLyhal+L4HVUquuoPLI7iCtCRpzJOmVD G8jpq00zbQH9Q== 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 01/10] ARM: dts: imx6qdl-kontron-samx6i: fix phy-mode Date: Tue, 4 Jun 2024 15:59:25 +0200 Message-Id: <20240604135934.1951189-2-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> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240604_065953_672253_0BE63254 X-CRM114-Status: GOOD ( 12.21 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org The iMX.6 cannot add any RGMII delays. The PHY has to add both the RX and TX delays on the RGMII interface. Fix the interface mode. While at it, use the new phy-connection-type property name. Fixes: 5694eed98cca ("ARM: dts: imx6qdl-kontron-samx6i: move phy reset into phy-node") Signed-off-by: Michael Walle --- arch/arm/boot/dts/nxp/imx/imx6qdl-kontron-samx6i.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 85aeebc9485d..d8c1dfb8c9ab 100644 --- a/arch/arm/boot/dts/nxp/imx/imx6qdl-kontron-samx6i.dtsi +++ b/arch/arm/boot/dts/nxp/imx/imx6qdl-kontron-samx6i.dtsi @@ -259,7 +259,7 @@ smarc_flash: flash@0 { &fec { pinctrl-names = "default"; pinctrl-0 = <&pinctrl_enet>; - phy-mode = "rgmii"; + phy-connection-type = "rgmii-id"; phy-handle = <ðphy>; mdio { From patchwork Tue Jun 4 13:59:26 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michael Walle X-Patchwork-Id: 13685375 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id D93A7C25B78 for ; Tue, 4 Jun 2024 14:00:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=cVoLhyd8I/NbDtD2XnME7OSkYFntvdIVj4FUaWDwht4=; b=VkCCrlVNyA3rPD V4/AG/rkVvT0JSf0xh/fnI9ooD1h0XhxMqR+HR5ld7+woZa3NwNrTdR6MSOjJ8q6DtzpNMQpUm3Rk AqxamyEm2R72FR7qLouQ39zcFgANnfyzpD8A2+HgXNaLF6KBuuDVFXUKDHvhUtbZOh00UHDKGmnWy Y0WJYM16FvDU2hkqoJAd5ROhT/O45qDut541W+Z3EFG5SFABDWlzoxZ21e+UYmZZ/hIpgMG0+XmBe xc0f21J+eoxkY2e12p0oyZCkUEYHCEwhcnGM05AIc52ysiCnPRSPsam22v/P2gxiJU56inOSxhTEI k0sJix+mlVyEMsRVj7tg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sEUhj-00000002b00-3imx; Tue, 04 Jun 2024 13:59:59 +0000 Received: from dfw.source.kernel.org ([139.178.84.217]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sEUhg-00000002ay0-41e0 for linux-arm-kernel@lists.infradead.org; Tue, 04 Jun 2024 13:59:58 +0000 Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by dfw.source.kernel.org (Postfix) with ESMTP id CD20D61309; Tue, 4 Jun 2024 13:59:55 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id A02AAC2BBFC; Tue, 4 Jun 2024 13:59:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1717509595; bh=2Qw+7Rve50c6UoNrfytgIz8RzG/OQfuJ1xjLwlqspyo=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=WeRH4UBAp34KH9bLuOJCjmEiebZzChPZgnBRhtxkGe1K2BtDSFHntaN0fdjrck//a LQfoTbvTonNz/oyzjZErxU5vPzzzDMlBQ+7dwQYR0FDBK43OW7BjjEoq0Cs6lenjz8 zum7bSsdyk6LZQWM+oN81iUovvg4KRS3Y69Zaxouhpjh0SM9ubntBo9sqvsA3Yre7r NaPRubsW8VmWRvXv0/BIoj4LL4VAHbSYVg0ZjnrQyaaZG62UOTibh7CvySxJMMFN+m Uu/9rUUZKAbLEt2Aie9NLxmkEXUdgYn6fruLW1jhnIr0aWK0LJHyIhY5cVWiLVCajC aHHcnIbhjJ2uA== 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 02/10] ARM: dts: imx6qdl-kontron-samx6i: fix PHY reset Date: Tue, 4 Jun 2024 15:59:26 +0200 Message-Id: <20240604135934.1951189-3-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> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240604_065957_167634_06E1FA4C X-CRM114-Status: GOOD ( 12.75 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org The PHY reset line is connected to both the SoC (GPIO1_25) and the CPLD. We must not use the GPIO1_25 as it will drive against the output buffer of the CPLD. Instead there is another GPIO (GPIO2_01), an input to the CPLD, which will tell the CPLD to assert the PHY reset line. Fixes: 2a51f9dae13d ("ARM: dts: imx6qdl-kontron-samx6i: Add iMX6-based Kontron SMARC-sAMX6i module") Fixes: 5694eed98cca ("ARM: dts: imx6qdl-kontron-samx6i: move phy reset into phy-node") Signed-off-by: Michael Walle --- arch/arm/boot/dts/nxp/imx/imx6qdl-kontron-samx6i.dtsi | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 d8c1dfb8c9ab..d6c049b9a9c6 100644 --- a/arch/arm/boot/dts/nxp/imx/imx6qdl-kontron-samx6i.dtsi +++ b/arch/arm/boot/dts/nxp/imx/imx6qdl-kontron-samx6i.dtsi @@ -269,7 +269,7 @@ mdio { ethphy: ethernet-phy@1 { compatible = "ethernet-phy-ieee802.3-c22"; reg = <1>; - reset-gpios = <&gpio1 25 GPIO_ACTIVE_LOW>; + reset-gpios = <&gpio2 1 GPIO_ACTIVE_LOW>; reset-assert-us = <1000>; }; }; @@ -516,7 +516,7 @@ MX6QDL_PAD_RGMII_RX_CTL__RGMII_RX_CTL 0x1b0b0 MX6QDL_PAD_ENET_MDIO__ENET_MDIO 0x1b0b0 MX6QDL_PAD_ENET_MDC__ENET_MDC 0x1b0b0 MX6QDL_PAD_ENET_REF_CLK__ENET_TX_CLK 0x1b0b0 - MX6QDL_PAD_ENET_CRS_DV__GPIO1_IO25 0x1b0b0 /* RST_GBE0_PHY# */ + MX6QDL_PAD_NANDF_D1__GPIO2_IO01 0x1b0b0 /* RST_GBE0_PHY# */ >; }; From patchwork Tue Jun 4 13:59:27 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michael Walle X-Patchwork-Id: 13685376 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 33F03C27C50 for ; Tue, 4 Jun 2024 14:00:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=wc6U4JVyAkbAy5aMWKgjXee5h2WIWHBt+wiqs/8nUUA=; b=3C7f3NQXRsquG0 /EG7m+pLJ4EbMvCJm1Kp/pMar/2Mg2e7/YXwpDVNBKonX8Y6yF+cVK3Ey/DqKLJnGbT9V3V9dI0SS BzHg93V9ZNSarjvT9MHmZJMdxvOrJ6ppEaAgjrRlZkmhu5buB7g8xv3bE8ftEtPIr5Z2WEqzSdAGW Ik5/MC/T4G+BImJH0MmgVrjTk7GsetOqztnW7YeTHasFvHP5H0Ngo5pxp3qvQ9VU7aZjAHF2669Yv t62Fl92V7ARMLjJvsl+N2rUIieGcJ/RY/hDSz6uSY9HXx7sjPP/zsbFd2HbYcbmePD1+TSF7a+fND qmdFg/LkI2G7pCY8UkWw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sEUhp-00000002b3v-3qn1; Tue, 04 Jun 2024 14:00:06 +0000 Received: from sin.source.kernel.org ([145.40.73.55]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sEUhl-00000002b0Z-3oY9 for linux-arm-kernel@lists.infradead.org; Tue, 04 Jun 2024 14:00:03 +0000 Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by sin.source.kernel.org (Postfix) with ESMTP id 0503BCE116D; Tue, 4 Jun 2024 14:00:00 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 1DABEC4AF0A; Tue, 4 Jun 2024 13:59:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1717509599; bh=pmxH+3/T6ldwrIaJrUq9EPud/gdsJYcTk1L1yQXC5Yc=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=WWjTgzr1Ptqbqdy5Pd6ic/b9wCn/kdyxwV6JUkUiTOADIQSUrZrXa5I8apEAUYi59 oJHPb/1TtSz00s1cWAGiYnYFCNTw4tED1Ssxmu0JWNx4Y2vj9YMMyRPCH166pVcdC5 7HILtsZXM2XG6jWixxC36gTrCaewYK5mia98fDZpICQuEqYUov7kaNCFskrxHI4yJj ayVO1R4aongYVCHQwlYgDO40g33/maBd2TgDCsnYhmvvke2pHHcsbis1XIutoY0DNp MlsKwX9cg743IF/0V6AbFzNGZwlg0eJk7U+kqP2NCC853jyXPKt9mJRXdnl1dfp6yF OlcOOx6PanRlQ== 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 03/10] ARM: dts: imx6qdl-kontron-samx6i: fix board reset Date: Tue, 4 Jun 2024 15:59:27 +0200 Message-Id: <20240604135934.1951189-4-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> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240604_070002_346548_A9127636 X-CRM114-Status: GOOD ( 11.13 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On iMX.6 the board is reset by the watchdog. But in turn to do a complete board reset, we have to assert the WDOG_B output which is routed also to the CPLD which then do a complete power-cycle of the board. Fixes: 2125212785c9 ("ARM: dts: imx6qdl-kontron-samx6i: add Kontron SMARC SoM Support") Signed-off-by: Michael Walle --- arch/arm/boot/dts/nxp/imx/imx6qdl-kontron-samx6i.dtsi | 1 + 1 file changed, 1 insertion(+) 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 d6c049b9a9c6..700780bf64f5 100644 --- a/arch/arm/boot/dts/nxp/imx/imx6qdl-kontron-samx6i.dtsi +++ b/arch/arm/boot/dts/nxp/imx/imx6qdl-kontron-samx6i.dtsi @@ -817,5 +817,6 @@ &wdog1 { /* CPLD is feeded by watchdog (hardwired) */ pinctrl-names = "default"; pinctrl-0 = <&pinctrl_wdog1>; + fsl,ext-reset-output; status = "okay"; }; From patchwork Tue Jun 4 13:59:28 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michael Walle X-Patchwork-Id: 13685377 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id C2EE7C25B78 for ; Tue, 4 Jun 2024 14:00:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=d/pqaZbZe4yjm7Ncvym+ajBQa07GXLDkPm0g0HhGREo=; b=Ty7YwSYH866omR hgvfaulwh4B1VLGZqqx9qfJaldjg24D0eOQPSSGcGUPFQ6L41dV8geStkzuQoZGT3BRao49cG55KR iqYil8hG6b4ckNoj4BGLpZ/56q6UWtuJAE+Wc9UNYiUmupMltIHpNoJ20s4I5GYw3cSn/vHJ/4oeH o7qkaI/UFxxAE9Yk3Ywlj7XBUOzdQF39zkNL22eT3oGEWioHdRYduwVH7RiZt7sOaOxlG4oM8v4n0 SZSPUpcclAc5rvd2ZfIllTalHxbJhkgBZC/Tg4IOayKPjBziiDAHMYVj4v4Sz0BvcBCmImj+PCzLR 8aG1dJaoagPd+v/esSKw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sEUhs-00000002b5M-1u5z; Tue, 04 Jun 2024 14:00:08 +0000 Received: from dfw.source.kernel.org ([139.178.84.217]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sEUhn-00000002b2F-2Nsu for linux-arm-kernel@lists.infradead.org; Tue, 04 Jun 2024 14:00:04 +0000 Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by dfw.source.kernel.org (Postfix) with ESMTP id DDC0C6130C; Tue, 4 Jun 2024 14:00:02 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 8BBB2C4AF08; Tue, 4 Jun 2024 13:59:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1717509602; bh=pyCuKjBDzEztSGL5VPV6DvGUsY4tB58LJ6wtMtXdCKw=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=uGsGogX1Rff5OZP/fg8dZcaHUX296tarnWi8+y5fqmKcVPyoxViU8VehFvUhCclSS H7rxF0Atv120NqCRniYpcHvxZUj7mNCMqsXROm/hhUiazarxz+XUARZt4JgVzt3M2O ALdAPEniThHo6zDvjfj+q59AXXYMT0tXVK9kUaWVM32fFGqRF0jsdfmvPMWBIUr6Bo p7iBK29Zo/xlueS6gO/uPQ3k5ir0mFqCmwYlEoXtALuONkKlNoif5CJbdO6oZ07tPA gMqfT8siKnXneH3f9xBafqlPcCJqWe0TdAmJ3tT4i+m+27JZouOkZfBtMZoz03BORd hRqI665E5QGcQ== 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 04/10] ARM: dts: imx6qdl-kontron-samx6i: cleanup the PMIC node Date: Tue, 4 Jun 2024 15:59:28 +0200 Message-Id: <20240604135934.1951189-5-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> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240604_070003_741259_10F4F968 X-CRM114-Status: GOOD ( 11.34 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Remove the comment, remove the unused phandle name for the VGEN5 output. VGEN5 is not used at all. Signed-off-by: Michael Walle --- arch/arm/boot/dts/nxp/imx/imx6qdl-kontron-samx6i.dtsi | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) 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 700780bf64f5..8c7f21f986e1 100644 --- a/arch/arm/boot/dts/nxp/imx/imx6qdl-kontron-samx6i.dtsi +++ b/arch/arm/boot/dts/nxp/imx/imx6qdl-kontron-samx6i.dtsi @@ -356,10 +356,6 @@ reg_vrefddr: vrefddr { regulator-always-on; }; - /* - * Per schematics, of all VGEN's, only VGEN5 has some - * usage ... but even that - over DNI resistor - */ vgen1 { regulator-min-microvolt = <800000>; regulator-max-microvolt = <1550000>; @@ -380,8 +376,7 @@ vgen4 { regulator-max-microvolt = <3300000>; }; - reg_2p5v_s0: vgen5 { - regulator-name = "V_2V5_S0"; + vgen5 { regulator-min-microvolt = <1800000>; regulator-max-microvolt = <3300000>; }; From patchwork Tue Jun 4 13:59:29 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michael Walle X-Patchwork-Id: 13685378 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 74033C27C50 for ; Tue, 4 Jun 2024 14:00:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=GJBj37I5vS+w4YmWQxEOUxIyok4CjthcfE5eH/JshOY=; b=CQRL7iH0mCu6Fj DJ7Gf9mKfEsGaNewMsuwteJPJoLQ++GwbQERYYaqWiDWre+CbZKzVJ5gUgFQS9CnQIDzw2H3kFB9U 7MIDu0MWdjtr0akrdnKLd6hXtr5FP1pvuSW49jbDMHevWWOkQhcP1dnGRtj0tyBubfReeW63FDs/7 QzbRkqrK9tx0f/n/StAssI8JMx6UdJP1wdleP+jfa/GocYOwj+9pRQMfiQYk8sBrag325J5VEwp3X VnVQmkIiIgcW6huUnrHz7G/eGoHhl/C8JrafPz/o375ObhgQVRxCrbi+SOi2zbsvJSD4z9MajJnq9 P3VtxF1OWssDvPJ7ZzwA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sEUhu-00000002b6v-1yIv; Tue, 04 Jun 2024 14:00:10 +0000 Received: from dfw.source.kernel.org ([2604:1380:4641:c500::1]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sEUhr-00000002b4C-2H7q for linux-arm-kernel@lists.infradead.org; Tue, 04 Jun 2024 14:00:09 +0000 Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by dfw.source.kernel.org (Postfix) with ESMTP id 755DA61314; Tue, 4 Jun 2024 14:00:06 +0000 (UTC) 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> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240604_070007_780517_66E24458 X-CRM114-Status: GOOD ( 12.95 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org 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 >; }; From patchwork Tue Jun 4 13:59:30 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michael Walle X-Patchwork-Id: 13685379 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 30ACDC25B78 for ; Tue, 4 Jun 2024 14:00:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=gxb0tmbp0oq5kwWMOhCbUThdCqFlcJobEDVC/diuidg=; b=278mmQE6+y3sMC xEA9MZ6rLK4UDIjNHmGHb07xashqkjjreurh5i+wWlBSZresrYk9Z1+AgKpmgg9L4bTJtqm3At3+W upJX/0Fr273fkCWSW12BoK5mDRLuytUptVoyYubUfkHtTyKtj5MXjlBsNAGCyokO0AEvtdPkgOV10 x4YE3+F0xRV6X0Exj88G90fv9M2rxwTifvMFL2KQB5As4woqUqYQBWt1OU0SWr3fbp/phqNVJKZwd D2J6v4XlnHlry7X56q1FOmjmNzGqoPBhK8GmwlJ3RrnWniaPkN2dkp0eyWhHrQQpWmDisMpwbANxp q7VeATc5WI1nzfIjN3HQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sEUhy-00000002bA8-1PiT; Tue, 04 Jun 2024 14:00:14 +0000 Received: from dfw.source.kernel.org ([2604:1380:4641:c500::1]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sEUhu-00000002b6k-30J4 for linux-arm-kernel@lists.infradead.org; Tue, 04 Jun 2024 14:00:12 +0000 Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by dfw.source.kernel.org (Postfix) with ESMTP id DCE666130D; Tue, 4 Jun 2024 14:00:09 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id AEC62C4AF07; Tue, 4 Jun 2024 14:00:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1717509609; bh=cP7uD/wG7u91xicq/qibn/jCrRGqs0slZIoz+5q3tuk=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=RYUL7o6uWryWEjlN0rRCAeL587woAKjq97KzFJcTzeBKoUAQbSoMwAAuIifxaB1ey AX8pwjTg4ngTXHHOsVxU6EV3mbV9TBP8xyCAz2D2xTH2+spNZsKUD7CtHLuQeSDUnZ D4X1U4BgDhfhoQew587hNofF7X8J1/tGEV0Z+JUdHk4Ziv+yXiMTM91h8JtPfrJSjE Xlp94kJsIL/NoU0cnBcKStNPxEFD+PyHLfOAQ1eLO40U8iw7JgwG6kXkotUc1LQqGd BNwEzZTlIL0tlDHHp1aB9bZdObI925AA8AGJ+Gf4lZM+gaaoC9/SVGL6f+eCYYYYYq Sgj8DVHk0Jlzg== 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 06/10] ARM: dts: imx6qdl-kontron-samx6i: fix product name Date: Tue, 4 Jun 2024 15:59:30 +0200 Message-Id: <20240604135934.1951189-7-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> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240604_070011_033999_1B625AC3 X-CRM114-Status: GOOD ( 11.45 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org The correct name of the product is "Kontron SMARC-sAMX6i". See also https://www.kontron.com/en/products/smarc-samx6i/p89810 Signed-off-by: Michael Walle --- arch/arm/boot/dts/nxp/imx/imx6dl-kontron-samx6i.dtsi | 2 +- arch/arm/boot/dts/nxp/imx/imx6q-kontron-samx6i.dtsi | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/arm/boot/dts/nxp/imx/imx6dl-kontron-samx6i.dtsi b/arch/arm/boot/dts/nxp/imx/imx6dl-kontron-samx6i.dtsi index a864fdbd5f16..5a9b819d7ee8 100644 --- a/arch/arm/boot/dts/nxp/imx/imx6dl-kontron-samx6i.dtsi +++ b/arch/arm/boot/dts/nxp/imx/imx6dl-kontron-samx6i.dtsi @@ -7,6 +7,6 @@ #include "imx6qdl-kontron-samx6i.dtsi" / { - model = "Kontron SMARC sAMX6i Dual-Lite/Solo"; + model = "Kontron SMARC-sAMX6i Dual-Lite/Solo"; compatible = "kontron,imx6dl-samx6i", "fsl,imx6dl"; }; 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 ff062f4fd726..e76963436079 100644 --- a/arch/arm/boot/dts/nxp/imx/imx6q-kontron-samx6i.dtsi +++ b/arch/arm/boot/dts/nxp/imx/imx6q-kontron-samx6i.dtsi @@ -7,6 +7,6 @@ #include "imx6qdl-kontron-samx6i.dtsi" / { - model = "Kontron SMARC sAMX6i Quad/Dual"; + model = "Kontron SMARC-sAMX6i Quad/Dual"; compatible = "kontron,imx6q-samx6i", "fsl,imx6q"; }; From patchwork Tue Jun 4 13:59:31 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michael Walle X-Patchwork-Id: 13685380 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 99976C25B78 for ; Tue, 4 Jun 2024 14:00:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=1Jz8wqFT/s89WVJPiJ04HtqL5Vjcq1IgnM9skTB6Nts=; b=Ij/oVDk4UK09n+ s9TgC5IgCcyol+e65HaohaPR/qz8Z5aSF6bCCX5MpyDWrZk1cZdvO3gp5HFov33EHFM4I3ZhVWAzo 4q4v7PxfttRTd76oOrHAZY5W9d9wNDyIA8BfygYn1rNeppQdIUv36vGiun7WF5Zo0kquDjdo5PlHe FBSdVqY50zOKMQxWy94Z1dOYRZlcKFDTzleXmq74+e6r6449KIXOHt1vzLiuddeapyaeXN+pRSDHo EN1SV78wt2hed1Lv2gi4o0oMJ/XSC3z+PRwfV9kH5xJ68ZxgQ3rXGFsS2XV9nvAFSnGWNXwQnlncM 02XVKDEr3vR1vKVVYvrg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sEUi4-00000002bFm-1Jcy; Tue, 04 Jun 2024 14:00:20 +0000 Received: from dfw.source.kernel.org ([139.178.84.217]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sEUhy-00000002b9o-0huq for linux-arm-kernel@lists.infradead.org; Tue, 04 Jun 2024 14:00:15 +0000 Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by dfw.source.kernel.org (Postfix) with ESMTP id 54B0861325; Tue, 4 Jun 2024 14:00:13 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 278F9C2BBFC; Tue, 4 Jun 2024 14:00:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1717509613; bh=bp4RUBBoDBNxBmueQhwpMXLVezAaB2zJTWzVJs7lfD8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=eZTqIUin6QMORoeiFVbD804WbJDlgJ7D5GtxruxhrtSHTjJQyYCVzoKPGvLAa4E2j ofSSDd2suDVVfLZ1TlDX4s653lNKNPEHAtJvJQCs64r6q5f75cDDVzhKRI3elI80xC rtQ6eYScDyQItOnoG6srCQee12gBfXHNNhpA2/JkLHhHkkRq/HlwYl39n4mapXGGAJ 3qaUii2Zo9ekQtEWPa2ONsDwROdiQpJm1U8QyDeebCg/vuObbHBk47p6Xn0HQlyeSb 16CsS7X+YOA181TdABY75YTewaDVcNr3vun2FjarbbDFSoP8NlM21ZzEURBlvxk+OD 09/WG9cZUz/pQ== 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 07/10] ARM: dts: imx6qdl-kontron-samx6i: always enable eMMC Date: Tue, 4 Jun 2024 15:59:31 +0200 Message-Id: <20240604135934.1951189-8-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> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240604_070014_385687_F94DFAC8 X-CRM114-Status: GOOD ( 11.49 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org There are no variants of this module without an eMMC. Signed-off-by: Michael Walle --- arch/arm/boot/dts/nxp/imx/imx6qdl-kontron-samx6i.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 4a6ab7e7908a..4d3cd338a707 100644 --- a/arch/arm/boot/dts/nxp/imx/imx6qdl-kontron-samx6i.dtsi +++ b/arch/arm/boot/dts/nxp/imx/imx6qdl-kontron-samx6i.dtsi @@ -800,7 +800,6 @@ &usdhc3 { /* SDMMC */ &usdhc4 { - /* Internal eMMC, optional on some boards */ pinctrl-names = "default"; pinctrl-0 = <&pinctrl_usdhc4>; bus-width = <8>; @@ -809,6 +808,7 @@ &usdhc4 { non-removable; vmmc-supply = <®_3p3v_s0>; vqmmc-supply = <®_1p8v_s0>; + status = "okay"; }; &wdog1 { From patchwork Tue Jun 4 13:59:32 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michael Walle X-Patchwork-Id: 13685381 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id D00C9C27C50 for ; Tue, 4 Jun 2024 14:00:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=36EpdXfKnxzIhnz/tyL7lc62gHzkLeWRy+jL3M6EktY=; b=sim4hqYzBRHxVO jRbhuxEfaYrWUx8O6/fezLkUiz9xCA0ci4IylZv/ULdYccn4SCrDdlC1/NF9z7MGxV0V/5L1PSzbM cxsVcLTx1wsbne7nJNO/MM4lEPc/QSumzooh+bAK4eB3hZOVdQbkuJ+eGYTzqEDQD651Jf87/3JiK vAFb6lEgQZC/hqCGffOTU2ySA5gYIL4KYx/G+k7fUHK3buyVT7X9+ETWTg7fc0XtI/f/6v4NYmZfa kMDlD2p0LsdqHVK3zi2C29yY0qYS5oTgt+ChZqdva6R8ulW2F2KCQayR8i+wt7AFV6m9wUVVXpJYU vQ23oGHXEeto5OMhxoHA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sEUi8-00000002bJo-3ABu; Tue, 04 Jun 2024 14:00:24 +0000 Received: from dfw.source.kernel.org ([139.178.84.217]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sEUi1-00000002bDF-3jda for linux-arm-kernel@lists.infradead.org; Tue, 04 Jun 2024 14:00:19 +0000 Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by dfw.source.kernel.org (Postfix) with ESMTP id DE0D161290; Tue, 4 Jun 2024 14:00:16 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 95D78C4AF09; Tue, 4 Jun 2024 14:00:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1717509616; bh=rFDucDznyAp9KdW6DmpqQ16mThJdgkTuPLsOXBQR5oo=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=aphoHj1iBTcKQXKi3MxhatfTqitW3ZHgLOzyXkL3OgeTdWQNWhyfMdxW0Ozdhiy9C YwpUG9zWnVCBUllJExAftLctkpA7S4RfNL2B0yS38axBmxvOHl+EjIlHApG/Q/XoWF mhB4lDj22qWlJFtgjydgQvhIVZ/XDVa3ruenQPDberDElA8J+iNPJf1LXnI4S3h6ss tMqqif91QcvwQrzjeAvyTf3bOqyT5VypHgfAHvbu5V6MuxZBeuE+7aq33ehZVW9Ul1 ifm0plRpKbhDlSxzQ+9Q+vqbOphN2+DnK249Je9eIRlWo0uS5EYp81r73wRAHcsTUb XRvWKXiJzRXIQ== 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 08/10] ARM: dts: imx6qdl-kontron-samx6i: add SDIO_PWR_EN support Date: Tue, 4 Jun 2024 15:59:32 +0200 Message-Id: <20240604135934.1951189-9-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> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240604_070018_176753_44C7AB58 X-CRM114-Status: GOOD ( 12.80 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org The module can enable/disable the SD card power supply and has it's dedicated pin SDIO_PWR_EN for that reason. This is esp. useful to be able to reset the SD card if it was in an UHS mode. Signed-off-by: Michael Walle --- .../dts/nxp/imx/imx6qdl-kontron-samx6i.dtsi | 20 ++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) 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 4d3cd338a707..d36743e47552 100644 --- a/arch/arm/boot/dts/nxp/imx/imx6qdl-kontron-samx6i.dtsi +++ b/arch/arm/boot/dts/nxp/imx/imx6qdl-kontron-samx6i.dtsi @@ -61,6 +61,18 @@ reg_3p3v_s5: regulator-3p3v-s5 { vin-supply = <®_smarc_suppy>; }; + reg_sdio: regulator-sdio { + compatible = "regulator-fixed"; + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_reg_sdio>; + regulator-name = "V_3V3_SD"; + regulator-min-microvolt = <3300000>; + regulator-max-microvolt = <3300000>; + gpio = <&gpio1 29 GPIO_ACTIVE_HIGH>; + off-on-delay-us = <20000>; + enable-active-high; + }; + reg_smarc_lcdbklt: regulator-smarc-lcdbklt { compatible = "regulator-fixed"; pinctrl-names = "default"; @@ -640,6 +652,12 @@ MX6QDL_PAD_SD1_CMD__PWM4_OUT 0x1b0b1 >; }; + pinctrl_reg_sdio: reg-sdiogrp { + fsl,pins = < + MX6QDL_PAD_ENET_TXD1__GPIO1_IO29 0x1b0b0 /* SDIO_PWR_EN */ + >; + }; + pinctrl_uart1: uart1grp { fsl,pins = < MX6QDL_PAD_CSI0_DAT11__UART1_RX_DATA 0x1b0b1 @@ -692,7 +710,6 @@ MX6QDL_PAD_SD3_DAT3__SD3_DATA3 0x17059 MX6QDL_PAD_NANDF_CS1__GPIO6_IO14 0x1b0b0 /* CD */ MX6QDL_PAD_ENET_RXD1__GPIO1_IO26 0x1b0b0 /* WP */ - MX6QDL_PAD_ENET_TXD1__GPIO1_IO29 0x1b0b0 /* PWR_EN */ >; }; @@ -795,6 +812,7 @@ &usdhc3 { pinctrl-0 = <&pinctrl_usdhc3>; cd-gpios = <&gpio6 14 GPIO_ACTIVE_LOW>; wp-gpios = <&gpio1 26 GPIO_ACTIVE_HIGH>; + vmmc-supply = <®_sdio>; no-1-8-v; }; From patchwork Tue Jun 4 13:59:33 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michael Walle X-Patchwork-Id: 13685382 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 459CFC25B78 for ; Tue, 4 Jun 2024 14:00:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=L4sMZQ0WOzTYB61o/V7OPn7wf2VH3Fib0Lc+RlT6ENs=; b=4gyAHK8NoFPGTZ vlK8CSRMLKWDuv2/vZFHTvKFgez1xpIYQTDfIhiM3uIwHru3SYooMJT8GqpKvWeBvS9wOsDHxFc6q fkONKZu9aLRtDtya71Uug435SyymptaH1Ia/RbehvJItpvT1ZaVU15khzF6XmESTGDyIIKHP12jlL pem+h6tiikg2LSZUWW2S12p8ktC5MGLKrQ8q6UheHKQor8Q9M6rAEMKPEbXQE0wVH+qAOM6Thy4pk 2B/SiElyJa7lgkLaXjiYUDnYiNVEmkfgwGhZxvZ1u4InI3ldy4Dj8BXKdsZ0ph0DdGY2HNFrSRjLp Mxj0ACZA6L0hoPATXJhA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sEUiE-00000002bNZ-01jq; Tue, 04 Jun 2024 14:00:30 +0000 Received: from sin.source.kernel.org ([145.40.73.55]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sEUi7-00000002bHO-1neM for linux-arm-kernel@lists.infradead.org; Tue, 04 Jun 2024 14:00:25 +0000 Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by sin.source.kernel.org (Postfix) with ESMTP id 7F2EECE112D; Tue, 4 Jun 2024 14:00:21 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 12185C32786; Tue, 4 Jun 2024 14:00:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1717509620; bh=hTgdd4VxlXEUeWp19ojj9wjG3qoCtaUyDpv0giCGjYo=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=jjLxrkVx8rhNxbn81JEIiRJS3xk/CEOvBAYj0uN3KJDxLrkyoW57Mo0geQxofjexm sgd8ysO7okVCKeiG6GGahAZNf3pk/DKgbA8BAVNdBFrLcOqPKN59cJawfOkqchJiEj /soPIZxT/OYluCuOyDquntycyaZzZSK9KGT2lNfVXsm1Tp+QSK7uiIo+8ZlCMJD2tm cA9+J6Sgym75E96RFFB3Ft70nTjH9R792BhsQknqbKOnhR4dzfKqMwlBXgRtWj8Sv/ MRg/w9trieAbE2Xg3rhVGjoDFnbk0TVeKeP9ew6GSHmrJK6vFYVT3svxF46sE77ZY0 Oi+AZBSzexX3A== 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 09/10] dt-bindings: arm: fsl: document Kontron SMARC-sAMX6i boards Date: Tue, 4 Jun 2024 15:59:33 +0200 Message-Id: <20240604135934.1951189-10-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> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240604_070023_768909_1A56CF11 X-CRM114-Status: UNSURE ( 9.13 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org The Kontron SMARC-sAMX6i is just a module. There was no device tree for an actual board for now. Document the binding to use the module on the evaluation carrier. Signed-off-by: Michael Walle Acked-by: Krzysztof Kozlowski --- Documentation/devicetree/bindings/arm/fsl.yaml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/Documentation/devicetree/bindings/arm/fsl.yaml b/Documentation/devicetree/bindings/arm/fsl.yaml index 6d185d09cb6a..f731fb5b5e2a 100644 --- a/Documentation/devicetree/bindings/arm/fsl.yaml +++ b/Documentation/devicetree/bindings/arm/fsl.yaml @@ -363,6 +363,12 @@ properties: - const: gw,ventana - const: fsl,imx6q + - description: i.MX6Q Kontron SMARC-sAMX6i on SMARC Eval Carrier 2.0 + items: + - const: kontron,imx6q-samx6i-ads2 + - const: kontron,imx6q-samx6i + - const: fsl,imx6q + - description: i.MX6Q PHYTEC phyBOARD-Mira items: - enum: @@ -544,6 +550,12 @@ properties: - const: gw,ventana - const: fsl,imx6dl + - description: i.MX6DL Kontron SMARC-sAMX6i on SMARC Eval Carrier 2.0 + items: + - const: kontron,imx6dl-samx6i-ads2 + - const: kontron,imx6dl-samx6i + - const: fsl,imx6dl + - description: i.MX6DL PHYTEC phyBOARD-Mira items: - enum: From patchwork Tue Jun 4 13:59:34 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michael Walle X-Patchwork-Id: 13685383 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id A4EEAC25B78 for ; Tue, 4 Jun 2024 14:00:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=kjleSdvo0C6apGe3xk4o1NYnOBSrTgAnRPFOGZrjAQ4=; b=ccrFWUl0eJZGdu ZjshxX5B6NcAGBM5GqGGfjHnuHUHIM6j5fdFJh1Qe5AxY5soNFRII3NBaiH9W34YkFdPzvdPhKnT+ hAh4O9/EmahsfraysWP9fp9p/lHSPm7LgrelEgo7asWVwCVO8UvTLK0hSlrGn2crLM3bjqulczEyk BkI596a36b0Y067oycWsWwtpUCv1k1ont7efHymSsTGZR2PEpkQ5v6VA7wNxSOaXW3PwmJ5AVwgay tP0yymgEhzxSQXj0cGk4yTO1hAh6ogMX/9dZWCdNFOHRkejZvfTfNe4HgL44finKN5Rt0JGPPapM+ 0YOsPqgTf/jGKiN0zyXA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sEUiJ-00000002bS0-3MAQ; Tue, 04 Jun 2024 14:00:35 +0000 Received: from sin.source.kernel.org ([145.40.73.55]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sEUiA-00000002bKE-2f5i for linux-arm-kernel@lists.infradead.org; Tue, 04 Jun 2024 14:00:28 +0000 Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by sin.source.kernel.org (Postfix) with ESMTP id AEE72CE117C; Tue, 4 Jun 2024 14:00:24 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 7DFD3C4AF09; Tue, 4 Jun 2024 14:00:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1717509623; bh=TuTC4xMc7GZShagg8C4/PapTgXr8QVOOxVdDj2YUO5k=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=beELly/CphT0spKfPrIMjBbO5t3cx+jVCiTq36qfzDNQjw0il4I6dzs2iUfkBKypM F7jMyF/XKkAklCMlGdzkWifNgDZonhtqeN3tmQDnBLKs2Od3Scow1bRD9v/3nIwSXM edownA4rOB3pMgM4a4Nt0fWHMFsT8iA5swWTp88PkMtT/8Ng6XLmIIZS+rKfy5/GZJ D2gkPeVeWqQVQlN009nnVkAS69lEI0BFV2Pt/jhMpMAmcbDBzADyEDAFVZXcDtF9ev L/dzAupQ4fqSucbVpG7NSjdlq/HQxNY4Iyuo6JVYLUhskLbmd0An/rUDGT6C6/xyjK TZBqXSSZOEN1w== 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 10/10] ARM: dts: imx6qdl-kontron-samx6i: add actual device trees Date: Tue, 4 Jun 2024 15:59:34 +0200 Message-Id: <20240604135934.1951189-11-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> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240604_070027_291970_8D53FC2D X-CRM114-Status: GOOD ( 14.36 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org For now, there wasn't any in-tree users of the dtsi files for the Kontron SMARC-sAMX6i board. Let's add device trees, for this board on a Kontron SMARC Eval 2.0 Carrier. Signed-off-by: Michael Walle --- arch/arm/boot/dts/nxp/imx/Makefile | 2 + .../nxp/imx/imx6dl-kontron-samx6i-ads2.dts | 12 ++ .../dts/nxp/imx/imx6q-kontron-samx6i-ads2.dts | 12 ++ .../nxp/imx/imx6qdl-kontron-samx6i-ads2.dtsi | 121 ++++++++++++++++++ 4 files changed, 147 insertions(+) create mode 100644 arch/arm/boot/dts/nxp/imx/imx6dl-kontron-samx6i-ads2.dts create mode 100644 arch/arm/boot/dts/nxp/imx/imx6q-kontron-samx6i-ads2.dts create mode 100644 arch/arm/boot/dts/nxp/imx/imx6qdl-kontron-samx6i-ads2.dtsi diff --git a/arch/arm/boot/dts/nxp/imx/Makefile b/arch/arm/boot/dts/nxp/imx/Makefile index 231c0d73a53e..92e291603ea1 100644 --- a/arch/arm/boot/dts/nxp/imx/Makefile +++ b/arch/arm/boot/dts/nxp/imx/Makefile @@ -99,6 +99,7 @@ dtb-$(CONFIG_SOC_IMX6Q) += \ imx6dl-icore.dtb \ imx6dl-icore-mipi.dtb \ imx6dl-icore-rqs.dtb \ + imx6dl-kontron-samx6i-ads2.dtb \ imx6dl-lanmcu.dtb \ imx6dl-mamoj.dtb \ imx6dl-mba6a.dtb \ @@ -207,6 +208,7 @@ dtb-$(CONFIG_SOC_IMX6Q) += \ imx6q-icore-ofcap10.dtb \ imx6q-icore-ofcap12.dtb \ imx6q-icore-rqs.dtb \ + imx6q-kontron-samx6i-ads2.dtb \ imx6q-kp-tpc.dtb \ imx6q-logicpd.dtb \ imx6q-marsboard.dtb \ diff --git a/arch/arm/boot/dts/nxp/imx/imx6dl-kontron-samx6i-ads2.dts b/arch/arm/boot/dts/nxp/imx/imx6dl-kontron-samx6i-ads2.dts new file mode 100644 index 000000000000..6a0c53f23a15 --- /dev/null +++ b/arch/arm/boot/dts/nxp/imx/imx6dl-kontron-samx6i-ads2.dts @@ -0,0 +1,12 @@ +// SPDX-License-Identifier: GPL-2.0 OR X11 + +/dts-v1/; + +#include "imx6dl.dtsi" +#include "imx6qdl-kontron-samx6i.dtsi" +#include "imx6qdl-kontron-samx6i-ads2.dtsi" + +/ { + model = "Kontron SMARC-sAMX6i Dual-Lite/Solo on SMARC Eval 2.0 carrier"; + compatible = "kontron,imx6dl-samx6i-ads2", "kontron,imx6dl-samx6i", "fsl,imx6dl"; +}; diff --git a/arch/arm/boot/dts/nxp/imx/imx6q-kontron-samx6i-ads2.dts b/arch/arm/boot/dts/nxp/imx/imx6q-kontron-samx6i-ads2.dts new file mode 100644 index 000000000000..94c395cc020e --- /dev/null +++ b/arch/arm/boot/dts/nxp/imx/imx6q-kontron-samx6i-ads2.dts @@ -0,0 +1,12 @@ +// SPDX-License-Identifier: GPL-2.0 OR X11 + +/dts-v1/; + +#include "imx6q.dtsi" +#include "imx6qdl-kontron-samx6i.dtsi" +#include "imx6qdl-kontron-samx6i-ads2.dtsi" + +/ { + model = "Kontron SMARC-sAMX6i Quad/Dual on SMARC Eval 2.0 carrier"; + compatible = "kontron,imx6q-samx6i-ads2", "kontron,imx6q-samx6i", "fsl,imx6q"; +}; diff --git a/arch/arm/boot/dts/nxp/imx/imx6qdl-kontron-samx6i-ads2.dtsi b/arch/arm/boot/dts/nxp/imx/imx6qdl-kontron-samx6i-ads2.dtsi new file mode 100644 index 000000000000..e5b3183d4ae0 --- /dev/null +++ b/arch/arm/boot/dts/nxp/imx/imx6qdl-kontron-samx6i-ads2.dtsi @@ -0,0 +1,121 @@ +// SPDX-License-Identifier: (GPL-2.0+ OR MIT) +/* + * Device Tree include for the Kontron SMARC-sAMX6i board on a SMARC Eval + * 2.0 carrier (ADS2). + * + */ + +/ { + chosen { + stdout-path = "serial0:115200n8"; + }; + + sound { + #address-cells = <1>; + #size-cells = <0>; + compatible = "simple-audio-card"; + simple-audio-card,format = "i2s"; + simple-audio-card,bitclock-master = <&dailink_master>; + simple-audio-card,frame-master = <&dailink_master>; + simple-audio-card,widgets = + "Headphone", "Headphone Jack", + "Line", "Line Out Jack", + "Microphone", "Microphone Jack", + "Line", "Line In Jack"; + simple-audio-card,routing = + "Line Out Jack", "LINEOUTR", + "Line Out Jack", "LINEOUTL", + "Headphone Jack", "HPOUTR", + "Headphone Jack", "HPOUTL", + "IN1L", "Line In Jack", + "IN1R", "Line In Jack", + "Microphone Jack", "MICBIAS", + "IN2L", "Microphone Jack", + "IN2R", "Microphone Jack"; + + simple-audio-card,cpu { + sound-dai = <&ssi1>; + }; + + dailink_master: simple-audio-card,codec { + sound-dai = <&wm8904>; + }; + }; +}; + +&audmux { + status = "okay"; +}; + +&can1 { + status = "okay"; +}; + +&can2 { + status = "okay"; +}; + +&ecspi4 { + flash@1 { + compatible = "jedec,spi-nor"; + m25p,fast-read; + spi-max-frequency = <100000000>; + reg = <1>; + }; +}; + +&fec { + status = "okay"; +}; + +&i2c1 { + status = "okay"; + + wm8904: audio-codec@1a { + #sound-dai-cells = <0>; + compatible = "wlf,wm8904"; + reg = <0x1a>; + clocks = <&clks IMX6QDL_CLK_CKO2>; + clock-names = "mclk"; + }; +}; + +&i2c3 { + eeprom@57 { + compatible = "atmel,24c64"; + reg = <0x57>; + pagesize = <32>; + }; +}; + +&ssi1 { + status = "okay"; +}; + +&uart1 { + status = "okay"; +}; + +&uart2 { + status = "okay"; +}; + +&uart4 { + status = "okay"; +}; + +&uart5 { + status = "okay"; +}; + +&usbh1 { + status = "okay"; +}; + +&usbotg { + status = "okay"; +}; + +&usdhc3 { + status = "okay"; +};