From patchwork Tue May 21 10:23:11 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marek Vasut X-Patchwork-Id: 13669233 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 436EBC25B74 for ; Tue, 21 May 2024 10:25:22 +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: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:In-Reply-To:References: List-Owner; bh=ic29r56StcDwrhgicul4cg+1vzxmaj9Hi5sgmAlMXiM=; b=wFz0k0N6XeZbqc 1hijscXfvMf/4TInW51E6i3hgO/0SCDdvExG13bZwGocCjL5HwQNc3e91O1hvpkO5cWdYZRdZgPP9 bVA+gSI8YMAXXChi55M5paATPvPPv60qZa3dKI0WzyXDVzxmaDkbXs4d5DXfqp+TWSyWAlBrIRkHG 3it2DnSB9lFsdcIa9J1j+mShlPCvE+rluJuRPU7j2vg6Kv12e/3e1BEtCyWpaA3E7OIy/lKp9WvRP B91L6L+KcHtDsnOQEgQymPwrWnegIyheQ2Gf6DDjXFnH9uYI7VVfTbhC6TKRx1j6RL/5g1YnidwCb Ik1xao0JsnvAxuIjDm9w==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1s9MgC-0000000H6JB-0VSx; Tue, 21 May 2024 10:25:12 +0000 Received: from phobos.denx.de ([85.214.62.61]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1s9Mg7-0000000H6GW-3aAg for linux-arm-kernel@lists.infradead.org; Tue, 21 May 2024 10:25:09 +0000 Received: from tr.lan (ip-86-49-120-218.bb.vodafone.cz [86.49.120.218]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: marex@denx.de) by phobos.denx.de (Postfix) with ESMTPSA id 516E188096; Tue, 21 May 2024 12:25:03 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=denx.de; s=phobos-20191101; t=1716287103; bh=XVQ8F6XCYJt4od6PuSFr/kuUABm5Sfd++dN0J2y+sO4=; h=From:To:Cc:Subject:Date:From; b=mHTaWBQJWn+qVOhcvYk2+Yq5MBU8+LPrsSBwwf0MQAO8kex9pGrv8czpQpUu8eEwt xwW8HsniSrvJIf6BkS5UjpHs/+eGjftfNLlwpqzOD1ncEzEULV8W5YUoYC6VfMyE9C Voziv51QQKUtNEcrA4wy0pI5HAvXwRdGKp7RB1Vn3SiE50RW3o74VyELiyMZJyC5Lh 4ydIsDRcfQ8KYSXnwMgOESLTFFcM8451x60X7S0qXHh8NvHwbWI2i07xMM8UccemlC t1W4UWt0U8X/RtkK+NQcLrtgOS9RPMHQ2UNk20OTeE1LiRIg0Y4vj5ou5di5mcKHKD cVxmv3F3LIUPw== From: Marek Vasut To: linux-arm-kernel@lists.infradead.org Cc: Marek Vasut , Conor Dooley , Fabio Estevam , Krzysztof Kozlowski , Pengutronix Kernel Team , Rob Herring , Sascha Hauer , Shawn Guo , devicetree@vger.kernel.org, imx@lists.linux.dev Subject: [PATCH 1/3] arm64: dts: imx8mm: Describe carrier board 20 MHz Xtal on i.MX8MM Menlo board Date: Tue, 21 May 2024 12:23:11 +0200 Message-ID: <20240521102435.10019-1-marex@denx.de> X-Mailer: git-send-email 2.43.0 MIME-Version: 1.0 X-Virus-Scanned: clamav-milter 0.103.8 at phobos.denx.de X-Virus-Status: Clean X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240521_032508_113561_15047F9A X-CRM114-Status: GOOD ( 12.54 ) 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 i.MX8MM Menlo carrier board uses dedicated 20 MHz Xtal to supply clock to second SPI CAN controller on the carrier board as well as CPLD on the same board. Fix incorrect reuse of SoM 20 MHz Xtal for that purpose, describe the separate Xtal and use it. Signed-off-by: Marek Vasut --- Cc: Conor Dooley Cc: Fabio Estevam Cc: Krzysztof Kozlowski Cc: Pengutronix Kernel Team Cc: Rob Herring Cc: Sascha Hauer Cc: Shawn Guo Cc: devicetree@vger.kernel.org Cc: imx@lists.linux.dev Cc: linux-arm-kernel@lists.infradead.org --- arch/arm64/boot/dts/freescale/imx8mm-mx8menlo.dts | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/arch/arm64/boot/dts/freescale/imx8mm-mx8menlo.dts b/arch/arm64/boot/dts/freescale/imx8mm-mx8menlo.dts index 0b123a84018b2..4c38979f7333f 100644 --- a/arch/arm64/boot/dts/freescale/imx8mm-mx8menlo.dts +++ b/arch/arm64/boot/dts/freescale/imx8mm-mx8menlo.dts @@ -14,6 +14,13 @@ / { "toradex,verdin-imx8mm", "fsl,imx8mm"; + /* Carrier board Xtal for SPI CAN controller and CPLD */ + clk20mcb: clk-20m-cb { + compatible = "fixed-clock"; + #clock-cells = <0>; + clock-frequency = <20000000>; + }; + /delete-node/ gpio-keys; leds { @@ -60,7 +67,7 @@ &ecspi1 { /* CAN controller on the baseboard */ canfd: can@0 { compatible = "microchip,mcp2518fd"; - clocks = <&clk_xtal20>; + clocks = <&clk20mcb>; interrupt-parent = <&gpio1>; interrupts = <8 IRQ_TYPE_EDGE_FALLING>; reg = <0>; From patchwork Tue May 21 10:23:12 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Marek Vasut X-Patchwork-Id: 13669235 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 5C8F6C25B74 for ; Tue, 21 May 2024 10:25:29 +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=w5jKURomx24FzB3DvH2Ipqy65GQtx9IxOv1oxso848M=; b=RNhQwUb76FiiLO kYc4PppBrPScSmoKdSEL3YxfuyEcD+F+h2z5XmdrK6l3iyLyG5/RRqEVUYxaCev57IaArZwwydKIc MvWWjyH7BuakFRVD5nQORSarqpAUcSUKWyff+0VxdwNJL81McbEyyKmFvIqrE6WpgxsAV0oxlbJZl 4qLg3Hg+NfVP8xI06Lld3+4+x/fmHufkDV62Mf8jzZPmhNMK8EJnXFJi8mOwMqfwy0ce6HuubSDfY hMtTemunKH2NE6NDIEYHiMx6KHAUvDiCTHcBUPB/FSSnUXMNl6x9/YEsGrzbI4snnXjsBgQyyAhFL hbJOfQRK1jIoT3uFMdLg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1s9MgF-0000000H6Lj-1YVo; Tue, 21 May 2024 10:25:15 +0000 Received: from phobos.denx.de ([2a01:238:438b:c500:173d:9f52:ddab:ee01]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1s9Mg7-0000000H6Ga-2nej for linux-arm-kernel@lists.infradead.org; Tue, 21 May 2024 10:25:10 +0000 Received: from tr.lan (ip-86-49-120-218.bb.vodafone.cz [86.49.120.218]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: marex@denx.de) by phobos.denx.de (Postfix) with ESMTPSA id F26C0880A8; Tue, 21 May 2024 12:25:03 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=denx.de; s=phobos-20191101; t=1716287104; bh=kQf1XrDc22DQ1tD3jV9qG10PJK2Jzh9S4KgcrmgoAEE=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=oacA+/V9xUWZRxZ7Ro63VoqZvzcgX9Nl4xk/6XdpPtkYAxl1ANZujL2BGXM4vGj07 dsadQSZ9/4qDTw32Lz7zQ7CjBfYofG455gDES0y/6D6aewG12ZaFefrG35Wxwx6vuH AvG5nyUtK2Uc64CbW6NoknoOKFI40h9GbOWlOTZLc8DMcV84pbedbrZ3FVaCZ5veDl SQ8svQEXXfQCuHEhoZxOdJhj8GkqyvjIhnXDkrT1wKOEgZ+7pEhzpGJhHPZiRwIrzE HiWkgHVRz8wfJthxAS4ukRBrWmXaw9L5mZFhuhYBOmFMxn5mmVjOOO7nF2581X+MzT Ja45UksV1rEhg== From: Marek Vasut To: linux-arm-kernel@lists.infradead.org Cc: Marek Vasut , Conor Dooley , Fabio Estevam , Krzysztof Kozlowski , Pengutronix Kernel Team , Rob Herring , Sascha Hauer , Shawn Guo , devicetree@vger.kernel.org, imx@lists.linux.dev Subject: [PATCH 2/3] arm64: dts: imx8mm: Avoid iMX8MM errata ERR050080 on i.MX8MM Menlo board Date: Tue, 21 May 2024 12:23:12 +0200 Message-ID: <20240521102435.10019-2-marex@denx.de> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240521102435.10019-1-marex@denx.de> References: <20240521102435.10019-1-marex@denx.de> MIME-Version: 1.0 X-Virus-Scanned: clamav-milter 0.103.8 at phobos.denx.de X-Virus-Status: Clean X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240521_032508_084009_42ED743D X-CRM114-Status: GOOD ( 14.88 ) 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 i.MX8MM Mask Set Errata for Mask 0N87W, Rev. 1, 09/2021 document has the following errata, which could affect the beeper and the LEDs. The beeper has external pull down and it is likely gonna be off most of the time, so disable pull resistors altogether. The LEDs do not have any external pull resistors, so enable internal pull down, as they are also likely gonna be off most of the time. The rest of the IO is not affected by the errata, as it is not being driven against the pull resistor for the majority of uptime. " ERR050080: IO: Degradation of internal IO pullup/pulldown current capability for IO's continuously driven in a 3.3V operating mode Description: There is a degradation of the internal IO pullup/pulldown capability when the IO pads are continuously driven in the opposite logic level, for example, when internal pullup is enabled with external logic driving the pin low, and a 3.3V operating condition which limits the pads pullup/pulldown ability. All IO pin groups are impacted except for XTAL, DDR, PCI, USB, and MIPI PHY IO’s. Workaround: Where the IO’s are used for 3.3V operation and the circuit requires pullup or pulldown, use external resistors for the pullup/pulldown and disable the internal pullup/pulldown via software. " Signed-off-by: Marek Vasut --- Cc: Conor Dooley Cc: Fabio Estevam Cc: Krzysztof Kozlowski Cc: Pengutronix Kernel Team Cc: Rob Herring Cc: Sascha Hauer Cc: Shawn Guo Cc: devicetree@vger.kernel.org Cc: imx@lists.linux.dev Cc: linux-arm-kernel@lists.infradead.org --- arch/arm64/boot/dts/freescale/imx8mm-mx8menlo.dts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/arch/arm64/boot/dts/freescale/imx8mm-mx8menlo.dts b/arch/arm64/boot/dts/freescale/imx8mm-mx8menlo.dts index 4c38979f7333f..ed83a019159ac 100644 --- a/arch/arm64/boot/dts/freescale/imx8mm-mx8menlo.dts +++ b/arch/arm64/boot/dts/freescale/imx8mm-mx8menlo.dts @@ -210,7 +210,7 @@ &iomuxc { pinctrl_beeper: beepergrp { fsl,pins = < - MX8MM_IOMUXC_SPDIF_TX_GPIO5_IO3 0x1c4 + MX8MM_IOMUXC_SPDIF_TX_GPIO5_IO3 0x4 >; }; @@ -225,8 +225,8 @@ MX8MM_IOMUXC_ECSPI1_SS0_GPIO5_IO9 0x1c4 pinctrl_led: ledgrp { fsl,pins = < - MX8MM_IOMUXC_SAI1_TXD6_GPIO4_IO18 0x1c4 - MX8MM_IOMUXC_SAI1_TXFS_GPIO4_IO10 0x1c4 + MX8MM_IOMUXC_SAI1_TXD6_GPIO4_IO18 0x184 + MX8MM_IOMUXC_SAI1_TXFS_GPIO4_IO10 0x184 >; }; From patchwork Tue May 21 10:23:13 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marek Vasut X-Patchwork-Id: 13669234 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 B15D8C25B75 for ; Tue, 21 May 2024 10:25:24 +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=UDBAcrqzBEzRkeDMfx2mKNs7DdijgcA3WmLUBhhKObw=; b=w0XQC/Zhx22ues xxvysdhWAGuO1FmDiETPICVPegaU03GGLRSdV+bYt1OpEe4/ToUEfN/vf+Hf4npx/GrMY6vEgpsxb ud9TG5QV2bWmiYHjOCI9qL7RQTItfcp4lnRrzWoIBHx2CAuYbaMy4AEcabOPDZy7+HFctZ7+MCW9L NA1CULxdoNM4gwiRuARHvSDtHP5naN7H01tRJV9SF3TjKAoi0G/lqKbKT9KDIZ0Ioohy1M8CkNK38 j/6kLwaMd6i2GRQ5TJ5pRcPpHFPpAP56chGqU/3SprxT7pTSP7Rfg5OCKwSxwirMMHeb3iQWTbbFw u122OOrctJA83+8LOF+w==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1s9MgB-0000000H6Il-1791; Tue, 21 May 2024 10:25:11 +0000 Received: from phobos.denx.de ([2a01:238:438b:c500:173d:9f52:ddab:ee01]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1s9Mg7-0000000H6Gh-2hpQ for linux-arm-kernel@lists.infradead.org; Tue, 21 May 2024 10:25:09 +0000 Received: from tr.lan (ip-86-49-120-218.bb.vodafone.cz [86.49.120.218]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: marex@denx.de) by phobos.denx.de (Postfix) with ESMTPSA id 8C90D88261; Tue, 21 May 2024 12:25:04 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=denx.de; s=phobos-20191101; t=1716287105; bh=Ipzvrdy9CFhWLrXJw7jrfnNksXZKO1zFwXQTi7Vz/48=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=TbqfSKgUF4i78NKfuxILqq74PFT01n/iNU6PfreU2yPDhdvzVOF5+aMgH/zevDo2b VxgSKNY6M9ND5nCRRymVG5Gsr0L/Ydaw6PGRr6YcfJVrZfViCJA2loCfPrye/tmL4I WXFrXgYQmWkvIGRWSsjHg+y9P7KYAPUwBKR1LY4la/MrxeWB/SAIkXTXtucUPWHO4f 4FDioity0x18QmGSMKcqlb26ek1qa+EnxDf8VhOPljnV8Vrus1SvZC0lT9mBONHFP4 9sjQgsxR5ZQH//w9XOXfY3Hi4crT1tRGZcBaGT+KID53mos+59iF+dfjYZbYsdhFLD JxrtU5MFCS+WA== From: Marek Vasut To: linux-arm-kernel@lists.infradead.org Cc: Marek Vasut , Conor Dooley , Fabio Estevam , Krzysztof Kozlowski , Pengutronix Kernel Team , Rob Herring , Sascha Hauer , Shawn Guo , devicetree@vger.kernel.org, imx@lists.linux.dev Subject: [PATCH 3/3] arm64: dts: imx8mm: Delete SoM hwmon node on i.MX8MM Menlo board Date: Tue, 21 May 2024 12:23:13 +0200 Message-ID: <20240521102435.10019-3-marex@denx.de> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240521102435.10019-1-marex@denx.de> References: <20240521102435.10019-1-marex@denx.de> MIME-Version: 1.0 X-Virus-Scanned: clamav-milter 0.103.8 at phobos.denx.de X-Virus-Status: Clean X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240521_032507_887151_20C3CE75 X-CRM114-Status: GOOD ( 10.39 ) 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 INA239 is not populated on the SoM variant used in i.MX8MM Menlo carrier board, delete the unused hwmon node just like the rest of the unused nodes which are already deleted. Signed-off-by: Marek Vasut --- Cc: Conor Dooley Cc: Fabio Estevam Cc: Krzysztof Kozlowski Cc: Pengutronix Kernel Team Cc: Rob Herring Cc: Sascha Hauer Cc: Shawn Guo Cc: devicetree@vger.kernel.org Cc: imx@lists.linux.dev Cc: linux-arm-kernel@lists.infradead.org --- arch/arm64/boot/dts/freescale/imx8mm-mx8menlo.dts | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm64/boot/dts/freescale/imx8mm-mx8menlo.dts b/arch/arm64/boot/dts/freescale/imx8mm-mx8menlo.dts index ed83a019159ac..b8dc7b299f94c 100644 --- a/arch/arm64/boot/dts/freescale/imx8mm-mx8menlo.dts +++ b/arch/arm64/boot/dts/freescale/imx8mm-mx8menlo.dts @@ -197,6 +197,7 @@ &i2c3 { &i2c4 { /* None of this is present on the SoM. */ /delete-node/ bridge@2c; + /delete-node/ hwmon@40; /delete-node/ hdmi@48; /delete-node/ touch@4a; /delete-node/ sensor@4f;