From patchwork Wed Jan 18 07:26:39 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marcel Ziswiler X-Patchwork-Id: 13105745 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 19B13C38159 for ; Wed, 18 Jan 2023 07:28:38 +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=Tkuh0fx/sZ96Pa1h/KD+Fe5b/Cb6zp+/I3D0dgh5GEk=; b=K/qdGAYeikPIi/ 62Z5aismatrh7ryxiQeodd701nxFxVu+ws0js1rNAgTyi8gByCeE4dhFwv2lxm/U89XAcS/bEoGcW fZiTwobDTCPZqTvjusyrcWy3ftoW/OLZYmV9HpjvqVNFV0QL6l5sOYKOwls2N+tfriUgKvgL2s++e 1krBLbPt6SAhsoX6QIRF7+UaJ+9OzyOLT5RnehsccKvYvMbqdeqpqyiQ6awIwXTsKB/hKdPXKBv2i 1pTZlDtZV8iDbVYPz/nrJMYylNUvELsl9vFerJ16lojePKXP1AhOpx5jj2bYFiX7ZDEg/4sTajlQ/ v2wy3zlni+hzDcUqmayg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1pI2r9-00HCBG-2E; Wed, 18 Jan 2023 07:27:35 +0000 Received: from mout.perfora.net ([74.208.4.197]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1pI2r5-00HC9r-Im for linux-arm-kernel@lists.infradead.org; Wed, 18 Jan 2023 07:27:33 +0000 Received: from toolbox.int.toradex.com ([213.55.225.137]) by mrelay.perfora.net (mreueus002 [74.208.5.2]) with ESMTPSA (Nemesis) id 0MTjFe-1p9Lff1kqO-00QU41; Wed, 18 Jan 2023 08:27:16 +0100 From: Marcel Ziswiler To: devicetree@vger.kernel.org Cc: linux-kernel@vger.kernel.org, linux-imx@nxp.com, linux-arm-kernel@lists.infradead.org, Philippe Schenker , Max Krummenacher , Marcel Ziswiler , Fabio Estevam , Frank Li , Krzysztof Kozlowski , Peng Fan , Pengutronix Kernel Team , Rob Herring , Sascha Hauer , Shawn Guo Subject: [PATCH v4 01/17] arm64: dts: freescale: imx8-ss-lsio: add support for lsio_pwm0-3 Date: Wed, 18 Jan 2023 08:26:39 +0100 Message-Id: <20230118072656.18845-2-marcel@ziswiler.com> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20230118072656.18845-1-marcel@ziswiler.com> References: <20230118072656.18845-1-marcel@ziswiler.com> MIME-Version: 1.0 X-Provags-ID: V03:K1:EibaPIfpv7KUPNuvZPNxGfELWGIEYyNvgVLXWedKZBWRUH2mkKx qu08SPQFa0Wn1YvL3Z4ExZ3b/09RjOytzqHHLWCg1mILHvfrO+pzu7TP3tAzAr9XBhJ7cw4 58+pjhlvi9hjuDAVFPpPR7GGFvNOktB4iRKepZ58ZxJV2yaLMZfgq3ZND6354mwGAlRiSSf so4XlEmo5ZGFu5TGeOlkQ== UI-OutboundReport: notjunk:1;M01:P0:NY9Rj/Eb4ko=;yP8Fg9T26Pfdk85MYd4tId1mGfs 8SefZeJKRjl0hx18VMwHmDEMziygR52WWVmYFi/0t15LczX/ENSgcsLsEuTXtN8l27+ry0UQ0 r8XxQZ1h1kkWvK2Cski2Auy46lwTTEj43oER+PeeWXMEupt/TXIj7+dInyQhmuWQbYcClFbyE pY9OEv6BbWjubFyAFmbgtss4BQWmOvGpwbHAPQzKxx8F8jkcfYVYQQSIfgILDuWhziAYXv/aY oDq/rs15wMQrpv2xkN9Sj1YRCT//gCccImw1apL1Gzf5mf/IvZ5ZrxY4lkNdqSQbuQzmGNNc3 GOtK0VGfpIzfSiDHyjfxP6TDIRN+OaY3UrWBizx+YS9X+OEx02y03tMaV8iBJkYFX8FHS/nv1 TOLE9vBfpNyEn1XldMkEDxfGzCnWePr0lOIE5BX1sTbIsarriF2qX7/XFQ9/aokZzj9YhdX9R kTX3xyeKB+ePniQq1ftX2WTYtO7n8rlgWCY20yuXODq0kquKXnLRfPPtF9bw+XLjYNtglLLtS L74UKjK3Sp3p92CqIJT+WzZzPaaA/X0eVa4NmlMRE55JEBHXZLNGPNBoAvSTrbCp5bzjw4IF9 T4facesZZdiKENitZrK0ekMlSlECCJUqrOk/k4wntjN9H2MBFalmb9/5rAbebk0rCnXBGQloj L2dVGh/4uYX0acf7CF25Gud3uzb9cxZrR0MA0rQL4A== X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230117_232731_728545_7DE007FE X-CRM114-Status: UNSURE ( 7.54 ) 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 From: Philippe Schenker Add support for lsio_pwm0-3. Signed-off-by: Philippe Schenker Signed-off-by: Max Krummenacher Signed-off-by: Marcel Ziswiler --- (no changes since v1) .../boot/dts/freescale/imx8-ss-lsio.dtsi | 48 +++++++++++++++++++ 1 file changed, 48 insertions(+) diff --git a/arch/arm64/boot/dts/freescale/imx8-ss-lsio.dtsi b/arch/arm64/boot/dts/freescale/imx8-ss-lsio.dtsi index 1f3d225e64ec..62b7f7a3e1bc 100644 --- a/arch/arm64/boot/dts/freescale/imx8-ss-lsio.dtsi +++ b/arch/arm64/boot/dts/freescale/imx8-ss-lsio.dtsi @@ -28,6 +28,54 @@ lsio_bus_clk: clock-lsio-bus { clock-output-names = "lsio_bus_clk"; }; + lsio_pwm0: pwm@5d000000 { + compatible = "fsl,imx27-pwm"; + reg = <0x5d000000 0x10000>; + clock-names = "ipg", "per"; + clocks = <&pwm0_lpcg 4>, + <&pwm0_lpcg 1>; + assigned-clocks = <&clk IMX_SC_R_PWM_0 IMX_SC_PM_CLK_PER>; + assigned-clock-rates = <24000000>; + #pwm-cells = <2>; + status = "disabled"; + }; + + lsio_pwm1: pwm@5d010000 { + compatible = "fsl,imx27-pwm"; + reg = <0x5d010000 0x10000>; + clock-names = "ipg", "per"; + clocks = <&pwm1_lpcg 4>, + <&pwm1_lpcg 1>; + assigned-clocks = <&clk IMX_SC_R_PWM_1 IMX_SC_PM_CLK_PER>; + assigned-clock-rates = <24000000>; + #pwm-cells = <2>; + status = "disabled"; + }; + + lsio_pwm2: pwm@5d020000 { + compatible = "fsl,imx27-pwm"; + reg = <0x5d020000 0x10000>; + clock-names = "ipg", "per"; + clocks = <&pwm2_lpcg 4>, + <&pwm2_lpcg 1>; + assigned-clocks = <&clk IMX_SC_R_PWM_2 IMX_SC_PM_CLK_PER>; + assigned-clock-rates = <24000000>; + #pwm-cells = <2>; + status = "disabled"; + }; + + lsio_pwm3: pwm@5d030000 { + compatible = "fsl,imx27-pwm"; + reg = <0x5d030000 0x10000>; + clock-names = "ipg", "per"; + clocks = <&pwm3_lpcg 4>, + <&pwm3_lpcg 1>; + assigned-clocks = <&clk IMX_SC_R_PWM_3 IMX_SC_PM_CLK_PER>; + assigned-clock-rates = <24000000>; + #pwm-cells = <2>; + status = "disabled"; + }; + lsio_gpio0: gpio@5d080000 { reg = <0x5d080000 0x10000>; interrupts = ; From patchwork Wed Jan 18 07:26:40 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marcel Ziswiler X-Patchwork-Id: 13105747 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 6916BC32793 for ; Wed, 18 Jan 2023 07:28:53 +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=2Tnm3AxqLw6V6Ir2682aq+j+TtuWnLmslGdCKp7vRXA=; b=q42OA+9jjjmFpu 1jg6AG1nkxmpVYxWuIcMcDRswGzbI9mkiFxv+A15v2cvw5QaY9OnTN7rILGDKyhUiUDosxHFvR+yX QSSPN4Y7Of01BjXlOWP7LMsZcj39HoRq8/rLjgU2FxKhT/RcEgiyXIB+Q0jQixgGAN/8ujJzbQO7B O3q9Ekkqcsvp8zlTiNCF++ykDxDjNFxxIA/ymAbQ7T9NtzEVdqCpKMwIA45rmi7x1StnBdLytJK6S tcKLTmOn8J2MkyVXzd0aVU2pAlxMJI90UdmzTCJJNukth4uxfUEpm6KJW/hzy4Osue3NVXKVtwPds ivWGHhv9LqtJNe6F+wIg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1pI2rH-00HCD4-DO; Wed, 18 Jan 2023 07:27:43 +0000 Received: from mout.perfora.net ([74.208.4.196]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1pI2r6-00HCAC-U3 for linux-arm-kernel@lists.infradead.org; Wed, 18 Jan 2023 07:27:34 +0000 Received: from toolbox.int.toradex.com ([213.55.225.137]) by mrelay.perfora.net (mreueus002 [74.208.5.2]) with ESMTPSA (Nemesis) id 0LptxZ-1olA0G3Jl1-00fhWo; Wed, 18 Jan 2023 08:27:20 +0100 From: Marcel Ziswiler To: devicetree@vger.kernel.org Cc: linux-kernel@vger.kernel.org, linux-imx@nxp.com, linux-arm-kernel@lists.infradead.org, Max Krummenacher , Philippe Schenker , Marcel Ziswiler , Fabio Estevam , Frank Li , Joakim Zhang , Krzysztof Kozlowski , Peng Fan , Pengutronix Kernel Team , Rob Herring , Sascha Hauer , Shawn Guo Subject: [PATCH v4 02/17] arm64: dts: imx8-ss-dma: add io-channel-cells to adc nodes Date: Wed, 18 Jan 2023 08:26:40 +0100 Message-Id: <20230118072656.18845-3-marcel@ziswiler.com> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20230118072656.18845-1-marcel@ziswiler.com> References: <20230118072656.18845-1-marcel@ziswiler.com> MIME-Version: 1.0 X-Provags-ID: V03:K1:qtcyZrXQL4eUfQUxbtKRmKPYf7+xb0oIkImD3UOhsY+sfF3kcbA sJPbp/yXbsInYixh4lmXpj+IfG8MZUcJ/YnaVC3ELqPPtYFiBFoemtNZ0l7um90W8xqTBro FB22tqo+08QhEtIWYv8o6EKFl3xzPxTL9TteavEz8u2DA8U0EPtU1byn0atfmmaGbQlTa4o q4BEnv7W5+Pvwlbn/29Sw== UI-OutboundReport: notjunk:1;M01:P0:RndXisrEm34=;yHrdp2rQcaf2OysPLENiYmu+Hvn sWDl0YyOfF4Fnzt/BbW0B8SAzOAhiCwIIG/SpZ1LlmHwj7dx0UHAz9yiFuYhVMDp840AowW7/ pQj3Zg9uQrUunx9q8TXedER4qVZkYpB4EHHyMi0/A5FQaXxNr1XgZtvWR6qRG0++joSBfP6mE 9ibge7+6f8KBRWdHXFAO86eQioujqjdVIasVs04k35PUyPosLs/gQMQZA+HN+8HeMoQhom/kf TvohYdwv+XeG43cWUG2G6wxdhIWkDD26cqzciJfl974hPFlRpzzcqb2EKt0LE2sHgdMHnAeWe u6DkfH1ntEESkXSz7ipDDLpIYt7ebVFgmOa9j9lKI0RjHuZwo9zSpuFxnMS5GIhXykLveXewc TMPohLeqCgyUyg7yM7/w8WH2vDkjuug0ymUXOrebFONBda5GmxBFes3WK/6gaY++qc4Rm3SiH g/HjIELD+XKrt4VXzZVG2ZGbooMeAsAxao5S6NpnOrHutKV6QclCKkfs6ivpTFD989crXF5yZ 7BbgAerhS26YnryMAwsaBqzEDyUrdLpEypY2+ffvENaNSihNdW7/8p56R1WUNHTD3GBNHf6hS DCtdAsVC3yYGGXJ1H8CamgHewttI4ChojRK2Vhz6NdhT+UKVu8EGv8etGdx8Fv5yzuoXrdiug 4TLpyq1ikQ6n+FVUfHGWhRvguHjhFrgzqxq70epv3q+QbWDFyZeeUfLal3hSeyE= X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230117_232733_057128_603402BA X-CRM114-Status: UNSURE ( 9.21 ) 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 From: Max Krummenacher This commit adds io-channel-cells property to the ADC nodes. This property is required in order for an IIO consumer driver to work. Especially required for Apalis iMX8 QM, as the touchscreen driver uses ADC channels with the ADC driver based on IIO framework. Signed-off-by: Philippe Schenker Signed-off-by: Max Krummenacher Signed-off-by: Marcel Ziswiler --- (no changes since v3) Changes in v3: - Fix subject as pointed out by Shawn. Thanks! arch/arm64/boot/dts/freescale/imx8-ss-dma.dtsi | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm64/boot/dts/freescale/imx8-ss-dma.dtsi b/arch/arm64/boot/dts/freescale/imx8-ss-dma.dtsi index a943a1e2797f..6e5ef8b69bf8 100644 --- a/arch/arm64/boot/dts/freescale/imx8-ss-dma.dtsi +++ b/arch/arm64/boot/dts/freescale/imx8-ss-dma.dtsi @@ -270,6 +270,7 @@ i2c3: i2c@5a830000 { adc0: adc@5a880000 { compatible = "nxp,imx8qxp-adc"; + #io-channel-cells = <1>; reg = <0x5a880000 0x10000>; interrupts = ; interrupt-parent = <&gic>; @@ -284,6 +285,7 @@ adc0: adc@5a880000 { adc1: adc@5a890000 { compatible = "nxp,imx8qxp-adc"; + #io-channel-cells = <1>; reg = <0x5a890000 0x10000>; interrupts = ; interrupt-parent = <&gic>; From patchwork Wed Jan 18 07:26:41 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marcel Ziswiler X-Patchwork-Id: 13105746 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 EA932C32793 for ; Wed, 18 Jan 2023 07:28:46 +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=kWoleaOMHcFfLXqP535D1Z/K6JK/PDTraUtVksaurvQ=; b=jDWMh2KaP7nHUz sBWsu31JPg8fbr+F0ZIKRac3V2G1dm+7DjD+dz+WPPoj/MwPywdcVnJeeETyeoMbAaXlJTeT0KRgU SuVUzPAhByf4jGL6u7sMdMsfMxSbPBmGwy/g7+vnccC0FDYnD4nRZoVQEEOJ9z2MMqnen6swwx5/i V4yODuqIddNUqxJ8O8IW5dvjqD8loCsuuiVM7yIAG7AW50oA2xDFVDcoYShz9Q1Z71C/yUhBWc4P6 WKZHJGhp1HlREIThfmySAIPgkNc0Ndikwm508MsglD2VQxpaWjo1DHW+zwvoZ+UKuRmD43mgcKWSa a3rl+1kVKjUeHt79qpbQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1pI2rQ-00HCFL-FU; Wed, 18 Jan 2023 07:27:52 +0000 Received: from mout.perfora.net ([74.208.4.197]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1pI2r7-00HCAp-NU for linux-arm-kernel@lists.infradead.org; Wed, 18 Jan 2023 07:27:34 +0000 Received: from toolbox.int.toradex.com ([213.55.225.137]) by mrelay.perfora.net (mreueus002 [74.208.5.2]) with ESMTPSA (Nemesis) id 0MStu7-1p7y5x1Fg5-00Rrds; Wed, 18 Jan 2023 08:27:24 +0100 From: Marcel Ziswiler To: devicetree@vger.kernel.org Cc: linux-kernel@vger.kernel.org, linux-imx@nxp.com, linux-arm-kernel@lists.infradead.org, Philippe Schenker , Max Krummenacher , Marcel Ziswiler , Fabio Estevam , Frank Li , Joakim Zhang , Krzysztof Kozlowski , Peng Fan , Pengutronix Kernel Team , Rob Herring , Sascha Hauer , Shawn Guo Subject: [PATCH v4 03/17] arm64: dts: freescale: imx8-ss-dma: set lpspi0 max frequency to 60mhz Date: Wed, 18 Jan 2023 08:26:41 +0100 Message-Id: <20230118072656.18845-4-marcel@ziswiler.com> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20230118072656.18845-1-marcel@ziswiler.com> References: <20230118072656.18845-1-marcel@ziswiler.com> MIME-Version: 1.0 X-Provags-ID: V03:K1:IhUQEeVbH/l4gFaRA/n2cPwKfb4490yN08djRG9UjAk+8/sLvCU t41LOzLB60HPHVIEZHnwCDFN2El/0qaGjXTLrKfsm2+7+bN5T66zbRZYLxzr0BpWOZ9nPYp 2bEdR49dU1qXMHIR6XWqo1F+AnsOSjsamjHgsPWWC9QkavkUHiE2n+aCHWm6krutzK4Elu1 8WK7AbiRl7t4CS3BbNedQ== UI-OutboundReport: notjunk:1;M01:P0:Sb/rNCGwTWo=;aJaJwQcfAM2m1NwfhQNES01yagz O9Ve8jMQ456X4OQkkC1Q+fSwZJO4ZwOm+yAmnCEnpJfTR1kmOYqkjw3Mtp/0QA3U7rw9B2XtP Z0mzoNmqZ2CyLvgRRi6p/sRTRomdDPT8DhmXHALow/5IPqXzyKdGMNwI29u3Dc+ewGln9tB1G fJ44ldCUDvgyjL0z5eTF/6uUmYs2rw3/YdYwq2VsUc4ECQkfzDPua8CV9jZG4FLAbOwFuKymL ldOcf46zNigJMuVHKAiC+wDwF6FEVNU0TpIttc4UUfpbTtArCfpqPse2mq2+ka9FgmhEWd2Hm DlLKhQcWUiUeRFQMI0FqO1I+xRbPrKwxWWLyKN/9cBwVXyNratqkKYOWgjiWN1IrN/xWLiVax j9BkMrWMcBw5HJEv5MWQOjegVBSuPVuAQnIGdtFZGSIk6d9KVoLW/JptW75VckYsWVZoe/w+v L0LmWKqoDDLYmQk4tLJXRL1x/zL2q+W28fKG+dAK1COleqLF6efRtLBnk/7KDn6hWyCoA/lw9 Jsp0gwK2h3ZBDCAel+mpJyfs1vryy6cQbBZPYwHQJ42i0bn+eWWRdS648RTH6ZWCh9MLNHwWl bsTlIiFrGeizTAc62ffr1Rjyt2Rx535FZ8XBnSG/UcwHOrPtCPBoPtJx1rsqSFaR55NcKqWGn NWVGVX6NqneYgni0/rnBckeRyI99mmXfYCmAJwQFoQ== X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230117_232733_857998_FD17F381 X-CRM114-Status: UNSURE ( 9.40 ) 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 From: Philippe Schenker 60MHz is the maximum frequency mentioned in the datasheet for master mode. Set that to 60MHz to match lpspi2. Signed-off-by: Philippe Schenker Signed-off-by: Max Krummenacher Signed-off-by: Marcel Ziswiler --- (no changes since v1) arch/arm64/boot/dts/freescale/imx8-ss-dma.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm64/boot/dts/freescale/imx8-ss-dma.dtsi b/arch/arm64/boot/dts/freescale/imx8-ss-dma.dtsi index 6e5ef8b69bf8..6ccf926b77a5 100644 --- a/arch/arm64/boot/dts/freescale/imx8-ss-dma.dtsi +++ b/arch/arm64/boot/dts/freescale/imx8-ss-dma.dtsi @@ -31,7 +31,7 @@ lpspi0: spi@5a000000 { <&spi0_lpcg 1>; clock-names = "per", "ipg"; assigned-clocks = <&clk IMX_SC_R_SPI_0 IMX_SC_PM_CLK_PER>; - assigned-clock-rates = <20000000>; + assigned-clock-rates = <60000000>; power-domains = <&pd IMX_SC_R_SPI_0>; status = "disabled"; }; From patchwork Wed Jan 18 07:26:42 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marcel Ziswiler X-Patchwork-Id: 13105748 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 81423C004D4 for ; Wed, 18 Jan 2023 07:29:09 +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=DeBNfsbHcpAza/Zdwtx4hVvrMUWm/YIZiAzyWs3F7h0=; b=EE5mfFaR/hnf88 7FS3bLqjO1T4E+fhNO/mk70CxtilgflwRkSYP4tCugfDvIhFgRBwcHTlz2Xy+LkNNj9eqG8ETkFbx jINTj8uq5xwK3EEYS50stOyFXr/inMO4QxsmHx3LjvpoIZb1PAxGNcTo5OoSuMgZxIz0BtlyM6xl+ Of2N2SMVXuzxAQRHbVt5R5d3pEivJD9JGr3KA9qVllXKmkJU+0kYsnPUm3cU4ijpynIjJ7ipI35/t GT62/jCajhlWfGz/qWNPavy7DMs7FX/rzFkvNu3/1P8CTe69MSVB0RXzJ9I5OeXK6iCXqiqwpM/Ri vpUvytRD0iR+Jt77bhxg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1pI2rb-00HCIY-41; Wed, 18 Jan 2023 07:28:03 +0000 Received: from mout.perfora.net ([74.208.4.196]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1pI2rA-00HCBW-5r for linux-arm-kernel@lists.infradead.org; Wed, 18 Jan 2023 07:27:37 +0000 Received: from toolbox.int.toradex.com ([213.55.225.137]) by mrelay.perfora.net (mreueus002 [74.208.5.2]) with ESMTPSA (Nemesis) id 0M1lwy-1oSoqg1fg2-00toWx; Wed, 18 Jan 2023 08:27:29 +0100 From: Marcel Ziswiler To: devicetree@vger.kernel.org Cc: linux-kernel@vger.kernel.org, linux-imx@nxp.com, linux-arm-kernel@lists.infradead.org, Clark Wang , Frank Li , Marcel Ziswiler , Fabio Estevam , Ming Qian , Pengutronix Kernel Team , Sascha Hauer , Shawn Guo , Shijie Qin , Zhou Peng Subject: [PATCH v4 04/17] firmware: imx: scu-pd: add missed lvds lpi2c and pwm power domains Date: Wed, 18 Jan 2023 08:26:42 +0100 Message-Id: <20230118072656.18845-5-marcel@ziswiler.com> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20230118072656.18845-1-marcel@ziswiler.com> References: <20230118072656.18845-1-marcel@ziswiler.com> MIME-Version: 1.0 X-Provags-ID: V03:K1:dCnhbYnZyKaso4/FN13s8VwCP5IQKAEKOdlIBFR9MwXN9ozp1Sj dksMR1ylutde+vWukfuPSNZK+W3M4Lv1FbYXnPMti/dvvPq+yrkAQgb/kTld2dxq1Cb0hIw 6CoUpMgHPhsGpedgvAy9FyqBlkmQSjnA9hYCb/bgVJHGhERem9LYsVxzTLzbPhMuLfL4D3Q dxFw9roguhDIwLlIBILrw== UI-OutboundReport: notjunk:1;M01:P0:X0a/GcqDZIM=;0qd0s/JIUMZxIl/+J0wG6H1eQco l/I1qY+HUgTv+zbdoANANWmwKwjCEgyAp+oLbRsHwP6WWfv/bDzxK63cXuVwHdg/ejXHFgOTt 7nOPQkW5L/aJA+RdfPn3L+e1mHhMwywAhQTYwAMTfSGKmBf1Ndzw9SG1sMtxiPDikg8EYJH+y HtdXZkQMk5oc7kkChNNDI+2H4/i6smmg3bQxBz/Wc2/Yad5504SPUSIxQ0CWkh/AkT9ookxK5 l/a2HIuOmhawLXZQjRIh01wZ0bd8H/xH3EPPZbrejHyRoE6IUkwN14jBDQgFHPrsOmDOELAm+ V/nROKhIumxp+OOGTfbQYysWcTrCZpaRg135kpCLNi71FzqlVU9SwJB7S22MBuezvyMGW8z6K TJvOu6NBxBHGZ71ghGwdP9hIRTfsHH6RnyjJrqsEShu6o/DRHUo0VpOFlmWPbC2C7fTvYQfle usCUvAxyrkfGNzomzDaNiWm8JJzeSlA7D7CyvFpV8KanHfNoXhGVbHk0Xw8YI3g1hzNyMJCb9 NUuTQANh85WiZxmNpuwQWMEy+pXeT3yK2a7B9fY6y7vFcTCI/OKIcbfwtBcidB/+duhfPaJ8W KVMXX63rCHhFwu31BaGIVhl+Zl/5tgxObuTvWjiE8iTG1GipgAPKvGXmjH2PyWsQUWcu/SfAR iC6zWSgkLNgNRtSYw1oIqbeScdIeT13NJQg+HGZ71Q== X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230117_232736_308812_2D80C4BF X-CRM114-Status: UNSURE ( 9.60 ) 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 From: Clark Wang LVDS' lpi2c and pwm power domains definitions are missed. Add them here. Signed-off-by: Clark Wang Reviewed-by: Frank Li Signed-off-by: Marcel Ziswiler --- Changes in v4: - New patch inspired by the following downstream patch: commit 0c36c5b63c1e ("LF-3569-1 firmware: imx: scu-pd: add missed lvds lpi2c and pwm power domains") Avoiding the following being reported upon boot: [ 1.309776] lvds0_pwm0_clk: failed to attached the power domain -2 [ 1.334097] lvds1_pwm0_clk: failed to attached the power domain -2 ... [ 15.281767] platform 57244000.pwm: deferred probe pending ... [ 15.292630] platform backlight: deferred probe pending drivers/firmware/imx/scu-pd.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/drivers/firmware/imx/scu-pd.c b/drivers/firmware/imx/scu-pd.c index 2a4f07423365..84b673427073 100644 --- a/drivers/firmware/imx/scu-pd.c +++ b/drivers/firmware/imx/scu-pd.c @@ -180,7 +180,11 @@ static const struct imx_sc_pd_range imx8qxp_scu_pd_ranges[] = { /* LVDS SS */ { "lvds0", IMX_SC_R_LVDS_0, 1, false, 0 }, + { "lvds0-pwm", IMX_SC_R_LVDS_0_PWM_0, 1, false, 0 }, + { "lvds0-lpi2c", IMX_SC_R_LVDS_0_I2C_0, 2, true, 0 }, { "lvds1", IMX_SC_R_LVDS_1, 1, false, 0 }, + { "lvds1-pwm", IMX_SC_R_LVDS_1_PWM_0, 1, false, 0 }, + { "lvds1-lpi2c", IMX_SC_R_LVDS_1_I2C_0, 2, true, 0 }, /* DC SS */ { "dc0", IMX_SC_R_DC_0, 1, false, 0 }, From patchwork Wed Jan 18 07:26:43 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marcel Ziswiler X-Patchwork-Id: 13105750 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 84BA1C004D4 for ; Wed, 18 Jan 2023 07:29:43 +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=8lzGxQ60hX8e9zQwzn8oOMvXw7XjuyMMyco8uL1AJfM=; b=i79ocF/HBcdrEF lJ54/Dhc2HuJHKuIl+OpcI8Avao6dPOcklxhaZoJqDsPGBOqkeY9eirHP7knh8M4MwugSIyxixnCG avpdm1z/WUbhfgJUnRb+J0ohL5CBblJ8ewvi8n3ss+b7VO4SQl5/06PWR52q1pNV7z5dV55my7eDv t+xcgp08gDMmMFWK/OTvlmjmaALXjEJqPWZ9H1v0NYHN9n+46h3AgsPr5bv1wUeQb/sjF+PKwMkhH eAwoOD3NZW7bwMIO7Vn6092L+Tk+S2ZdXR+QvBBcMulj6/5lDjOL8wo+utoIXFzhz5Y6zDw4RTE9P 9VPGAh7Y6JG8oTxDVSeQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1pI2sH-00HCaJ-Ty; Wed, 18 Jan 2023 07:28:46 +0000 Received: from mout.perfora.net ([74.208.4.196]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1pI2rN-00HCE1-0k for linux-arm-kernel@lists.infradead.org; Wed, 18 Jan 2023 07:27:50 +0000 Received: from toolbox.int.toradex.com ([213.55.225.137]) by mrelay.perfora.net (mreueus002 [74.208.5.2]) with ESMTPSA (Nemesis) id 0MRnRf-1pBGP61vIn-00Sy6a; Wed, 18 Jan 2023 08:27:34 +0100 From: Marcel Ziswiler To: devicetree@vger.kernel.org Cc: linux-kernel@vger.kernel.org, linux-imx@nxp.com, linux-arm-kernel@lists.infradead.org, Liu Ying , Marcel Ziswiler , Abel Vesa , Fabio Estevam , Krzysztof Kozlowski , Oliver Graute , Pengutronix Kernel Team , Pierre Gondois , Rob Herring , Sascha Hauer , Shawn Guo , Viorel Suman , Zhou Peng Subject: [PATCH v4 05/17] arm64: dts: imx8qm: add pwm_lvds0/1 support Date: Wed, 18 Jan 2023 08:26:43 +0100 Message-Id: <20230118072656.18845-6-marcel@ziswiler.com> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20230118072656.18845-1-marcel@ziswiler.com> References: <20230118072656.18845-1-marcel@ziswiler.com> MIME-Version: 1.0 X-Provags-ID: V03:K1:Z2wBgtJmTiYl9K51i06uYAss4G6FkWyJj2br3H/VeO09cIhtJnk +hLDIpFPNY7zjZ761w3vsr28zlvel976oktb90h18j1RAifPyiGQpVShbScIJxz/U4RUq/W Kc/n/HDRZ/U/CCxi/V3/aq4D83pIyJNY0ogDJnjkn4rhczrPxuo5E75+9PhzEZXvaWxnJlc 7uF8+GetclDP1lD+yvDXw== UI-OutboundReport: notjunk:1;M01:P0:QpDf5Lx0bIk=;mqARhiyGE5H/fFjEUTYALlq5IAa fyzAHNsxAxFC2lKf8a/i0FmsrlLTen+vlVBNJLsc/g+A9IqWK7mgO03/ZjDkbU+vskbxi3U80 kr6wLvFw0R/p27Fj4CUYp9SfaTgLIuuGWt7DuNRJ01oAJUVsxEhtzm/Iff2a8UeJgcNKq/TKI svTLmlSUP5vUR3CqW/aoDslWmrfiOe8lOzf2cV5cpDu2ZBCU0nSi4VJJfw6EpA6EIFoN+uwbd RY7p78mKz7YFSrOUnu+xFIeqkLxqQj1skB754K+tFziqvm9gz9c2qUf8UdduRQCtJoQtK0qP8 aJ2f1XU4xopE5wBduyszvPVE7Rl+IyZr0pmcn20IYpwPwpU80tiCf5wPCAwEEQ1LCCUqXqjod cCGVK99X9i71XA/QO+iHPd1F3F0TZgvB66txZyciyE7lMN/I2VqUZnhmMK5LEUqvdqmLVRdYm 3RjBVM9HUgVXVgCfH0oh/ozbkfejCHaQgog+BXq1kuTO+00nkkXsuV9Asv+enfbYy6bHklqm6 PPI4ZqBT1bOyCB8SfKYhE/0/5UX6/pNHkhSnfKRELK85U+bbaeXx+fI7OJd2SvR5vqgp2/1v7 gHuDrXGz3E+PnIvvyqPQxUIrcK80bNNlLMRSO4wI20CAxdNEN7Tvml7kAn9oJDkvYTqfjvKZV woaw8q5j5aNXRdaBSeNVsHPAv+cQVxRFLpFUKDEvsw== X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230117_232749_181350_6A7A9D00 X-CRM114-Status: GOOD ( 13.82 ) 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 From: Liu Ying This patch adds pwm_lvds0/1 support together with a i.MX 8QM LVDS subsystem device tree. Signed-off-by: Liu Ying Signed-off-by: Marcel Ziswiler --- Changes in v4: - New patch combining the following downstream patches limitted to LVDS PWM functionality for now: commit 036c6b28a186 ("arm64: imx8qm.dtsi: Add LVDS0/1 subsystems support") commit c3d29611d9d4 ("arm64: imx8qm-ss-lvds.dtsi: Add pwm_lvds0/1 support") commit baf1b0f22f8a ("LF-882-1 arm64: imx8qm-ss-lvds.dtsi: Separate ipg clock for lvds0/1 subsystems") .../boot/dts/freescale/imx8qm-ss-lvds.dtsi | 83 +++++++++++++++++++ arch/arm64/boot/dts/freescale/imx8qm.dtsi | 1 + 2 files changed, 84 insertions(+) create mode 100644 arch/arm64/boot/dts/freescale/imx8qm-ss-lvds.dtsi diff --git a/arch/arm64/boot/dts/freescale/imx8qm-ss-lvds.dtsi b/arch/arm64/boot/dts/freescale/imx8qm-ss-lvds.dtsi new file mode 100644 index 000000000000..4b940fc3c890 --- /dev/null +++ b/arch/arm64/boot/dts/freescale/imx8qm-ss-lvds.dtsi @@ -0,0 +1,83 @@ +// SPDX-License-Identifier: GPL-2.0+ +/* + * Copyright 2023 NXP + */ + +/ { + lvds1_subsys: bus@56240000 { + compatible = "simple-bus"; + #address-cells = <1>; + #size-cells = <1>; + ranges = <0x56240000 0x0 0x56240000 0x10000>; + + lvds0_ipg_clk: clock-lvds-ipg { + compatible = "fixed-clock"; + #clock-cells = <0>; + clock-frequency = <24000000>; + clock-output-names = "lvds0_ipg_clk"; + }; + + lvds0_pwm_lpcg: clock-controller@5624300c { + compatible = "fsl,imx8qm-lpcg"; + reg = <0x5624300c 0x4>; + #clock-cells = <1>; + clocks = <&clk IMX_SC_R_LVDS_0_PWM_0 IMX_SC_PM_CLK_PER>, + <&lvds0_ipg_clk>; + clock-indices = , ; + clock-output-names = "lvds0_pwm_lpcg_clk", + "lvds0_pwm_lpcg_ipg_clk"; + power-domains = <&pd IMX_SC_R_LVDS_0_PWM_0>; + }; + + pwm_lvds0: pwm@56244000 { + compatible = "fsl,imx27-pwm"; + reg = <0x56244000 0x1000>; + clocks = <&lvds0_pwm_lpcg 0>, + <&lvds0_pwm_lpcg 1>; + clock-names = "per", "ipg"; + assigned-clocks = <&clk IMX_SC_R_LVDS_0_PWM_0 IMX_SC_PM_CLK_PER>; + assigned-clock-rates = <24000000>; + #pwm-cells = <2>; + power-domains = <&pd IMX_SC_R_LVDS_0_PWM_0>; + status = "disabled"; + }; + }; + + lvds2_subsys: bus@57240000 { + compatible = "simple-bus"; + #address-cells = <1>; + #size-cells = <1>; + ranges = <0x57240000 0x0 0x57240000 0x10000>; + + lvds1_ipg_clk: clock-lvds-ipg { + compatible = "fixed-clock"; + #clock-cells = <0>; + clock-frequency = <24000000>; + clock-output-names = "lvds1_ipg_clk"; + }; + + lvds1_pwm_lpcg: clock-controller@5724300c { + compatible = "fsl,imx8qm-lpcg"; + reg = <0x5724300c 0x4>; + #clock-cells = <1>; + clocks = <&clk IMX_SC_R_LVDS_1_PWM_0 IMX_SC_PM_CLK_PER>, + <&lvds1_ipg_clk>; + clock-indices = , ; + clock-output-names = "lvds1_pwm_lpcg_clk", + "lvds1_pwm_lpcg_ipg_clk"; + power-domains = <&pd IMX_SC_R_LVDS_1_PWM_0>; + }; + + pwm_lvds1: pwm@57244000 { + compatible = "fsl,imx27-pwm"; + reg = <0x57244000 0x1000>; + clock-names = "ipg", "per"; + clocks = <&lvds1_pwm_lpcg 4>, + <&lvds1_pwm_lpcg 1>; + assigned-clocks = <&clk IMX_SC_R_LVDS_1_PWM_0 IMX_SC_PM_CLK_PER>; + assigned-clock-rates = <24000000>; + #pwm-cells = <2>; + status = "disabled"; + }; + }; +}; diff --git a/arch/arm64/boot/dts/freescale/imx8qm.dtsi b/arch/arm64/boot/dts/freescale/imx8qm.dtsi index 41ce8336f29e..422edd2f20fa 100644 --- a/arch/arm64/boot/dts/freescale/imx8qm.dtsi +++ b/arch/arm64/boot/dts/freescale/imx8qm.dtsi @@ -222,3 +222,4 @@ rtc: rtc { #include "imx8qm-ss-dma.dtsi" #include "imx8qm-ss-conn.dtsi" #include "imx8qm-ss-lsio.dtsi" +#include "imx8qm-ss-lvds.dtsi" From patchwork Wed Jan 18 07:26:44 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marcel Ziswiler X-Patchwork-Id: 13105751 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 ECEF5C32793 for ; Wed, 18 Jan 2023 07:30: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: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=TClA4QovKyE5clgmEs7NkE7xxwVoTMn26LTii0aA+3I=; b=h+mHAk/5JvHhMy xA8ChDTI2XxAGPmam7jfOr3pJIG62hAo0o8UNpBS+LxcjRsJTgc61QGyu83Hw62CT+wxQ3UWCjA+u 8fcr+Uv8RZ3qk1gcHJg0KqyBRWGWw0olZSIUXka+/zvj/N06V0pDB+RLoZhn2IT/SQ2wEQxxyMQpG SWrD0zvydRbEyI4AitjRJM0aPP64OcVHQQ/HGK01criVGRXKNtl5bouUulNkBV8wJ12IhvnTaync6 Bneua1V4i86Ha4s2sVmNZVIcYB2/fkxyKc2hcKszLhhmcldV9PEy9CA0+hpEhYMT9P+gThNTPQ+5R 9siciVJv7+R7t/dGeTLw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1pI2sk-00HCog-It; Wed, 18 Jan 2023 07:29:14 +0000 Received: from mout.perfora.net ([74.208.4.194]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1pI2rN-00HCE2-2J for linux-arm-kernel@lists.infradead.org; Wed, 18 Jan 2023 07:27:50 +0000 Received: from toolbox.int.toradex.com ([213.55.225.137]) by mrelay.perfora.net (mreueus002 [74.208.5.2]) with ESMTPSA (Nemesis) id 0LhPuw-1ovvVy0A6K-00mXA1; Wed, 18 Jan 2023 08:27:38 +0100 From: Marcel Ziswiler To: devicetree@vger.kernel.org Cc: linux-kernel@vger.kernel.org, linux-imx@nxp.com, linux-arm-kernel@lists.infradead.org, Joakim Zhang , Marcel Ziswiler , Fabio Estevam , Frank Li , Krzysztof Kozlowski , Max Krummenacher , Peng Fan , Pengutronix Kernel Team , Philippe Schenker , Rob Herring , Sascha Hauer , Shawn Guo Subject: [PATCH v4 06/17] arm64: dts: imx8qxp: add flexcan in adma Date: Wed, 18 Jan 2023 08:26:44 +0100 Message-Id: <20230118072656.18845-7-marcel@ziswiler.com> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20230118072656.18845-1-marcel@ziswiler.com> References: <20230118072656.18845-1-marcel@ziswiler.com> MIME-Version: 1.0 X-Provags-ID: V03:K1:TmB1o5W7HRRHwDuvbBbkgN9WMvwI50MJW0sbWoXEGTwyqhXq51R 7qJJSwFkRvJsYrFkja+yWBLgoJsB4gY+P3sQYuT65lXd49Dj8XGZ8aQw/z8P3CvOMQSKcp0 bCVF8Pkp+UJNo7iV90Aqf6bX2vIruV/Gl9gLvJGCFovkumPOhuYODOkJkTkklK66AvM9Dxc x0yPG5euc3Dibg+Y9YSiw== UI-OutboundReport: notjunk:1;M01:P0:IHteSycRHzE=;4Vdgdubryk8QLe4fVwBGViBmleE LCHWHSCkXOBwTRXtcWRLYe/On0+KXyNVcA5VELzSfc+S4n/hxIEKnvRSHCqsZlRpoUloEgk6B AGVAwzYBDsEpb4NGoIf6Ghcu5BZwUEm7btCCehRcNJAHUMqTwqPbpPew7omh3f1imcZ5urZT6 4S1G7hPjFimWYzW/Byve+u/qg3VhrIL1tQYGjp2FanyMH2DQl6Spn1/VZtdiKV/Qqi2UuWQ5M 9q7G/4dTs+UYw5+ns5mBVCudl9TUmaFvsPjVNKf/vv8OrWtFqr7qDTKnLRQwOBBdQ0nH85Z7W 8m07u/uA/gKZz2jxViY5S3RKjHP4Oi4ED3YrvG6Cs2IvxnNvZ3iqsZDmM6Jf5y7mXrsq3WuHZ vr3YxC/WoIBElUkkN8gpCMKGa4p+cSW/bgISLkfQzt+q2NRH9ZWoMrGQ2k1waIv6Bc0cfoeTZ sNJ6Roic+WZB04II5ohDZ36XxjcPsLb69SwEZy6Bu1zCWZxuZKUeviCkXHqq5QgZe599loPiV FDofV2vaPSQV0AIqgriMimdIvtJ4v8OsoQ2AWJcSaVWTd/NqlFnw6N3/0gi3ZYh2XuEtOj50A QR/+A313e8fEdRvHX6zpIF4VXMxWB3hrUWoM5dQzBo4Ffvph1fr9gCHmufSJ45/O9KpfV2saH aku0QGB67oF4YJENNKvrG+eLDKSiNqvaanxjCQogkQ== X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230117_232749_229953_A44023F8 X-CRM114-Status: UNSURE ( 9.56 ) 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 From: Joakim Zhang Add FlexCAN decive in adma subsystem. Signed-off-by: Joakim Zhang Signed-off-by: Marcel Ziswiler --- Changes in v4: - New patch combining the following downstream patches: commit e8fe3f57223a ("arm64: dts: imx8qxp: add FlexCAN in adma") commit 4e90361f1ed3 ("arm64: dts: imx8qxp: add multi-pd support for CAN1/2") commit 899f516e61f8 ("arm64: dts: imx8: dma: fully switched to new clk binding") commit 8a28ca15a058 ("arm64: dts: imx8qxp: drop multi-pd for CAN device") commit c493402197dd ("arm64: dts: imx8: update CAN fsl,clk-source and fsl,scu-index property") .../arm64/boot/dts/freescale/imx8-ss-dma.dtsi | 72 +++++++++++++++++++ 1 file changed, 72 insertions(+) diff --git a/arch/arm64/boot/dts/freescale/imx8-ss-dma.dtsi b/arch/arm64/boot/dts/freescale/imx8-ss-dma.dtsi index 6ccf926b77a5..2dce8f2ee3ea 100644 --- a/arch/arm64/boot/dts/freescale/imx8-ss-dma.dtsi +++ b/arch/arm64/boot/dts/freescale/imx8-ss-dma.dtsi @@ -298,6 +298,65 @@ adc1: adc@5a890000 { status = "disabled"; }; + flexcan1: can@5a8d0000 { + compatible = "fsl,imx8qm-flexcan"; + reg = <0x5a8d0000 0x10000>; + interrupts = ; + interrupt-parent = <&gic>; + clocks = <&can0_lpcg 1>, + <&can0_lpcg 0>; + clock-names = "ipg", "per"; + assigned-clocks = <&clk IMX_SC_R_CAN_0 IMX_SC_PM_CLK_PER>; + assigned-clock-rates = <40000000>; + power-domains = <&pd IMX_SC_R_CAN_0>; + /* SLSlice[4] */ + fsl,clk-source = /bits/ 8 <0>; + fsl,scu-index = /bits/ 8 <0>; + status = "disabled"; + }; + + flexcan2: can@5a8e0000 { + compatible = "fsl,imx8qm-flexcan"; + reg = <0x5a8e0000 0x10000>; + interrupts = ; + interrupt-parent = <&gic>; + /* CAN0 clock and PD is shared among all CAN instances as + * CAN1 shares CAN0's clock and to enable CAN0's clock it + * has to be powered on. + */ + clocks = <&can0_lpcg 1>, + <&can0_lpcg 0>; + clock-names = "ipg", "per"; + assigned-clocks = <&clk IMX_SC_R_CAN_0 IMX_SC_PM_CLK_PER>; + assigned-clock-rates = <40000000>; + power-domains = <&pd IMX_SC_R_CAN_1>; + /* SLSlice[4] */ + fsl,clk-source = /bits/ 8 <0>; + fsl,scu-index = /bits/ 8 <1>; + status = "disabled"; + }; + + flexcan3: can@5a8f0000 { + compatible = "fsl,imx8qm-flexcan"; + reg = <0x5a8f0000 0x10000>; + interrupts = ; + interrupt-parent = <&gic>; + /* CAN0 clock and PD is shared among all CAN instances as + * CAN2 shares CAN0's clock and to enable CAN0's clock it + * has to be powered on. + */ + clocks = <&can0_lpcg 1>, + <&can0_lpcg 0>; + clock-names = "ipg", "per"; + assigned-clocks = <&clk IMX_SC_R_CAN_0 IMX_SC_PM_CLK_PER>; + assigned-clock-rates = <40000000>; + power-domains = <&pd IMX_SC_R_CAN_2>; + /* SLSlice[4] */ + fsl,clk-source = /bits/ 8 <0>; + fsl,scu-index = /bits/ 8 <2>; + status = "disabled"; + }; + i2c0_lpcg: clock-controller@5ac00000 { compatible = "fsl,imx8qxp-lpcg"; reg = <0x5ac00000 0x10000>; @@ -369,4 +428,17 @@ adc1_lpcg: clock-controller@5ac90000 { "adc1_lpcg_ipg_clk"; power-domains = <&pd IMX_SC_R_ADC_1>; }; + + can0_lpcg: clock-controller@5acd0000 { + compatible = "fsl,imx8qxp-lpcg"; + reg = <0x5acd0000 0x10000>; + #clock-cells = <1>; + clocks = <&clk IMX_SC_R_CAN_0 IMX_SC_PM_CLK_PER>, + <&dma_ipg_clk>, <&dma_ipg_clk>; + clock-indices = , , ; + clock-output-names = "can0_lpcg_pe_clk", + "can0_lpcg_ipg_clk", + "can0_lpcg_chi_clk"; + power-domains = <&pd IMX_SC_R_CAN_0>; + }; }; From patchwork Wed Jan 18 07:26:45 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marcel Ziswiler X-Patchwork-Id: 13105752 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 570D5C32793 for ; Wed, 18 Jan 2023 07:30:34 +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=mNQb9a6Cax47+p4am3qMVOYGJBvymNPU9ycyrcNLNx0=; b=0QVTRs5rVEE6TE cNdkzMOXAYaoQ44IWX8lqNkV3BwAR3iGerdLQ06knQjiZuSTOuGf9BTBcte8gzwLsn16a4jo2cMit dMWEQxHKpPTNcXBfhBgeuDRsOy1rGf5NrqSlzRLyE9XlpbNec1qyVnMIs+u7sG2HzkIiPTwUMf2V6 yUqtJmlStUxDPM5CR069ycsBp/5Hknbqp70U4lZCWyB18OOfDsJy5+3mv2adQZhBiPF219r8IOnSh /i66pcp9bNJOJYqwnsS/nMjToPXuG7ZC3IK/yOKyCbypjA9/4Oh7lkE7Z88kaUv9sq3OoAJpSeYAf /F4NWBF1G6EfKhzss1Kg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1pI2sx-00HCuq-76; Wed, 18 Jan 2023 07:29:27 +0000 Received: from mout.perfora.net ([74.208.4.196]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1pI2rP-00HCEs-7K for linux-arm-kernel@lists.infradead.org; Wed, 18 Jan 2023 07:27:52 +0000 Received: from toolbox.int.toradex.com ([213.55.225.137]) by mrelay.perfora.net (mreueus002 [74.208.5.2]) with ESMTPSA (Nemesis) id 0Mb6pp-1p1sU22GL5-00KktW; Wed, 18 Jan 2023 08:27:42 +0100 From: Marcel Ziswiler To: devicetree@vger.kernel.org Cc: linux-kernel@vger.kernel.org, linux-imx@nxp.com, linux-arm-kernel@lists.infradead.org, Joakim Zhang , Marcel Ziswiler , Fabio Estevam , Krzysztof Kozlowski , Pengutronix Kernel Team , Rob Herring , Sascha Hauer , Shawn Guo Subject: [PATCH v4 07/17] arch: arm64: imx8qm: add can node in devicetree Date: Wed, 18 Jan 2023 08:26:45 +0100 Message-Id: <20230118072656.18845-8-marcel@ziswiler.com> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20230118072656.18845-1-marcel@ziswiler.com> References: <20230118072656.18845-1-marcel@ziswiler.com> MIME-Version: 1.0 X-Provags-ID: V03:K1:BmX5IQtw9Cvs/zQcEaxYF//0vcAMqIX7xQcD6kZ7heXWI19Sw+A fmL64UlX+AU5unm1iffpM/YUazDqQJ/RubfXmSgUfODW43uX6pgcavw11/nTfVcRTs9bKrC NnwTVswt+PRdnYKHzJZ8FGcWEqK4D3tVAUzfS5uQRS01oNXBmtom6nXNlQaUJHjwLG0QDBk RCqkXx40xUle5SPBBtBrg== UI-OutboundReport: notjunk:1;M01:P0:HIp150CjYdM=;tbMeHCysnKjaN/MWACEaN0OVmMT A6plwstfLpRIbgpOoougiS6zofltvCOB1h0Hqsac1jDfJhKAbu3zjdLrB2JNVNWXe5fjgtIIn +0C9/0bOWOAreTg1rMYmOo6JCQTZ98G3wUAC+kTEDRnr+Ru7yDyA1FajV5GJmoQHfQL+zAzVW IcXnOwd3/9QyrUj28gDF7Ac5P2dI+nG2E93GKajk+kHvQ2BiwtliOb3axW5Lz9rOXpTQD26mY xUkP14dRwc0ist+KyNnY+jiNHUPkRMWBvdvuOPNx238KkpGp5LcBY//gnFFCf2GYd/bkAf+hA QF23eTot20WL5JRWwlU+RVXSpjWc9lU/X+AlMcbuxvgTVelp/i+YVeu/cHhyZYuT8hrzAwZJa MOSyW/23UrLKE1GaWtYPJmW02EL8/Ynl/GenHCY6lIjwkum56fyuqdxGuC4Zgc4uS7ytQ6EK7 V0P7d9RxzMwtzLggrbXhp9Dor71e5GPauTiF95/ZyFN8vvKbNlO+tVIRQxRGTW7B5tQtx16TD EZ5KoIbPO1mnifRIwJwtjuDYYYXoKVbfSRxRWuCLCarV4oUaBOgIafbWbmxPUu0QYq2vaYVsS gPSVTWrm3DTagh48LFg+MLIgeUjgvE4RgPgxIOzwFcDl5VKfPdQKcRLyAcC6MBDOp+uOAhUwj +30yeSrJAszbU+8EsPbGt67PuPxdh0hi9amgs7F+GQ== X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230117_232751_374142_12206BE7 X-CRM114-Status: UNSURE ( 9.26 ) 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 From: Joakim Zhang Add CAN node for imx8qm in devicetree. Unlike on the i.MX 8QXP where the flexcan clocks are shared between multiple CAN instances, the i.MX 8QM has separate flexcan clock slices. Signed-off-by: Joakim Zhang Signed-off-by: Marcel Ziswiler --- Changes in v4: - New patch inspired by the following downstream patch: commit 117607e6a7b5 ("arm64: dts: imx8qm: add CAN node in devicetree") .../boot/dts/freescale/imx8qm-ss-dma.dtsi | 44 +++++++++++++++++++ 1 file changed, 44 insertions(+) diff --git a/arch/arm64/boot/dts/freescale/imx8qm-ss-dma.dtsi b/arch/arm64/boot/dts/freescale/imx8qm-ss-dma.dtsi index bbe5f5ecfb92..e9b198c13b2f 100644 --- a/arch/arm64/boot/dts/freescale/imx8qm-ss-dma.dtsi +++ b/arch/arm64/boot/dts/freescale/imx8qm-ss-dma.dtsi @@ -16,6 +16,50 @@ uart4_lpcg: clock-controller@5a4a0000 { "uart4_lpcg_ipg_clk"; power-domains = <&pd IMX_SC_R_UART_4>; }; + + can1_lpcg: clock-controller@5ace0000 { + compatible = "fsl,imx8qxp-lpcg"; + reg = <0x5ace0000 0x10000>; + #clock-cells = <1>; + clocks = <&clk IMX_SC_R_CAN_1 IMX_SC_PM_CLK_PER>, + <&dma_ipg_clk>, <&dma_ipg_clk>; + clock-indices = , , ; + clock-output-names = "can1_lpcg_pe_clk", + "can1_lpcg_ipg_clk", + "can1_lpcg_chi_clk"; + power-domains = <&pd IMX_SC_R_CAN_1>; + }; + + can2_lpcg: clock-controller@5acf0000 { + compatible = "fsl,imx8qxp-lpcg"; + reg = <0x5acf0000 0x10000>; + #clock-cells = <1>; + clocks = <&clk IMX_SC_R_CAN_2 IMX_SC_PM_CLK_PER>, + <&dma_ipg_clk>, <&dma_ipg_clk>; + clock-indices = , , ; + clock-output-names = "can2_lpcg_pe_clk", + "can2_lpcg_ipg_clk", + "can2_lpcg_chi_clk"; + power-domains = <&pd IMX_SC_R_CAN_2>; + }; +}; + +&flexcan1 { + fsl,clk-source = /bits/ 8 <1>; +}; + +&flexcan2 { + clocks = <&can1_lpcg 1>, + <&can1_lpcg 0>; + assigned-clocks = <&clk IMX_SC_R_CAN_1 IMX_SC_PM_CLK_PER>; + fsl,clk-source = /bits/ 8 <1>; +}; + +&flexcan3 { + clocks = <&can2_lpcg 1>, + <&can2_lpcg 0>; + assigned-clocks = <&clk IMX_SC_R_CAN_2 IMX_SC_PM_CLK_PER>; + fsl,clk-source = /bits/ 8 <1>; }; &lpuart0 { From patchwork Wed Jan 18 07:26:46 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marcel Ziswiler X-Patchwork-Id: 13105753 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 0B737C32793 for ; Wed, 18 Jan 2023 07:30:48 +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=1d3+RFiZ5CZeFeSUssw0hZia5Xc2wjOolO1f3qH/E3s=; b=lvTygLXX6Jh5yZ QeeDWhR0Usby2ShOvYDOI3xk/ef55PXrLmk9y6FZ4CSwhv7XRhRy0juOtsWgJCX5cZ1kQ3XMzaQ16 vM/MOCt14XZKGd3g6rOaa+bap06b2jAMRE/403E1EUUiYwSrrbDdX+2HMNKHstWTlc/C4ArOO57tn 5c2p/dqzgJ5xzUJccxhRH3h5oNrHSdCAROwYtlJGhvrKB9VOoPViyTgbkPYhinysIDRtrs3rE7pjF QaQ0OhBvgKFopd7ENLT4PgWejohTmbIVR+LSg/1hYHDlaiBDtP1JYDoMrHZcZ7BtQEf5OFdIR9wrz q0is38Wffi9GLFm7fkAQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1pI2tE-00HD4E-Tj; Wed, 18 Jan 2023 07:29:45 +0000 Received: from mout.perfora.net ([74.208.4.197]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1pI2rZ-00HCI5-5L for linux-arm-kernel@lists.infradead.org; Wed, 18 Jan 2023 07:28:02 +0000 Received: from toolbox.int.toradex.com ([213.55.225.137]) by mrelay.perfora.net (mreueus002 [74.208.5.2]) with ESMTPSA (Nemesis) id 0LtZ1G-1oYuRy1LIy-010vHJ; Wed, 18 Jan 2023 08:27:46 +0100 From: Marcel Ziswiler To: devicetree@vger.kernel.org Cc: linux-kernel@vger.kernel.org, linux-imx@nxp.com, linux-arm-kernel@lists.infradead.org, Zhou Peng , Marcel Ziswiler , Abel Vesa , Fabio Estevam , Krzysztof Kozlowski , Liu Ying , Oliver Graute , Pengutronix Kernel Team , Pierre Gondois , Rob Herring , Sascha Hauer , Shawn Guo , Viorel Suman Subject: [PATCH v4 08/17] arm64: dts: imx8qm: add vpu decoder and encoder Date: Wed, 18 Jan 2023 08:26:46 +0100 Message-Id: <20230118072656.18845-9-marcel@ziswiler.com> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20230118072656.18845-1-marcel@ziswiler.com> References: <20230118072656.18845-1-marcel@ziswiler.com> MIME-Version: 1.0 X-Provags-ID: V03:K1:TZM+4zGIh7rnmkNFmsDtvhwdDJJCHWUr9xyBsWyt4tkZc3vmLs9 L1vVWDUYZQTYqi2ld+R43gGX1sxdlBqVxyIV7WjDWDBukqLwe4o68IGIazermtbijDIJCvx X70gl9ZQPbY7ma6zUad+I4l/SLRk9mnuXjrO5UX4QOsTNsMMERpErID/X10XGkz8eLVta7J MTMZmiKQW5Y8D+LDXg7zQ== UI-OutboundReport: notjunk:1;M01:P0:w4VYmIof1Bo=;rJevEcB2O+hvL1BvjUWUQz1vbEI fZvw4UOG4qXMLTYLm3XuafaD0lp0Fi1qgImvnPS8DBOfyUNxkiXzua8f35fpH16m482x25/o4 HAuU13clXKbOttMI/uSPHnzHZD0bz6UbBKXkv7EF+Ro1+6YJl9uHJwV+7tDmJU6qidCUf38xr nfQXOvzsMjMDPL0j0tIPQWjzsShhgzTLPrXvU978OK7p7xM+WDeD6FJ5QcZ2h816BaSUzdOt9 4+JYBx31eppbvH22wmEYjO5eEZiqYX8eqNzJVorGsfgwDrtXWKdEmn55EswjgGLv5zWPaTzs+ rrRjh7AVuVFAQR9PPKM4DLxchUVojcRpO7BZc0XJOh4MQobe9CxrSud2sw9vQmT6q5hDbHlCU paUwMFrsvOdFAh3jsFBT+Fy9lTfoJqk5Kl+ZPPDm2EDj0oR6Fp4Zuojygr/fRKNRCBmKn6AGS mB0Bdf8S6MsbTuWkSXupc6UgwzutgNWzURWkjBU2ftsujoPSUdPJJz19WJvqmU4ZLmKqpp+IJ eh/LdWJwIEZDYCSu9tEk95WcF0SVjkmu5iEDdecDhnldJh4AGHQ6l1tDun853dNJCuU0/HU1E UttY3Va6P4O6n8B/KtHM3VnxQ2pj1PABApkdceV8+DvSvlc26aDrSr1s3U3GJS+iTPLm7zIur 5BNP4NgKRnraK+8xENNzNafgDO0i3twRHG82PK/8sg== X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230117_232801_309166_163C9281 X-CRM114-Status: UNSURE ( 8.51 ) 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 From: Zhou Peng Enable VPU decoder and encoder functionality. Signed-off-by: Zhou Peng Signed-off-by: Marcel Ziswiler --- Changes in v4: - New patch combining the following downstream patches: commit 4f2147ce6f0e ("arm64: dts: imx8qm: add vpu decoder and encoder") commit 0c9f9b64d27d ("LF-6575: imx8q: vpu: switch to amphion upstream driver") arch/arm64/boot/dts/freescale/imx8qm.dtsi | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/arch/arm64/boot/dts/freescale/imx8qm.dtsi b/arch/arm64/boot/dts/freescale/imx8qm.dtsi index 422edd2f20fa..cd3da6de6a1f 100644 --- a/arch/arm64/boot/dts/freescale/imx8qm.dtsi +++ b/arch/arm64/boot/dts/freescale/imx8qm.dtsi @@ -23,6 +23,9 @@ aliases { serial1 = &lpuart1; serial2 = &lpuart2; serial3 = &lpuart3; + vpu_core0 = &vpu_core0; + vpu_core1 = &vpu_core1; + vpu_core2 = &vpu_core2; }; cpus { @@ -212,6 +215,7 @@ rtc: rtc { }; /* sorted in register address */ + #include "imx8-ss-vpu.dtsi" #include "imx8-ss-img.dtsi" #include "imx8-ss-dma.dtsi" #include "imx8-ss-conn.dtsi" From patchwork Wed Jan 18 07:26:47 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marcel Ziswiler X-Patchwork-Id: 13105762 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 468D2C32793 for ; Wed, 18 Jan 2023 07:36: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=7l2dH+RJwu0nJZlE0LvBiOK8TvvyZWYUflyM1M+oyJ8=; b=WBxUTDDnvBnUHN +LbiFav4d5NDGEFN3oUggNShvmH0Z23784jTsq913yHn2OilawBX2Af2hOSJoufCOxUJxYNsu8SzL i+2rPwBNgPHs/F3spEkhBOU2AU/Sh16yjR9iSRCs/2kD0zJ5PdURx6lN5F4p6HESicJVjR9UVPQcm yRoHUIQy2muPmh5hfN1MHtlqpL5tDB6g+0qhX493NQmcCXhGhuc+9g01EoqhqZlU+43yhHW2e51tW +9wwM/IsVTuGHYe05hzgamGsQFgyvTssuU/rRVK3R1zEjaowLHyvNhz2w42RA5mVSSkScBuRYfDIA jVVlcfF1FF8TotHph1dg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1pI2yP-00HFYK-JC; Wed, 18 Jan 2023 07:35:06 +0000 Received: from mout.perfora.net ([74.208.4.197]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1pI2s2-00HCUU-8E for linux-arm-kernel@lists.infradead.org; Wed, 18 Jan 2023 07:28:31 +0000 Received: from toolbox.int.toradex.com ([213.55.225.137]) by mrelay.perfora.net (mreueus002 [74.208.5.2]) with ESMTPSA (Nemesis) id 0MUYKb-1p8WJh3qF9-00RJPW; Wed, 18 Jan 2023 08:27:51 +0100 From: Marcel Ziswiler To: devicetree@vger.kernel.org Cc: linux-kernel@vger.kernel.org, linux-imx@nxp.com, linux-arm-kernel@lists.infradead.org, Marcel Ziswiler , Rob Herring , Denys Drozdov , Fabio Estevam , Frieder Schrempf , Krzysztof Kozlowski , Li Yang , Marek Vasut , Matthias Schiffer , Max Krummenacher , Rob Herring , Shawn Guo , Tim Harvey Subject: [PATCH v4 09/17] dt-bindings: arm: fsl: add toradex,apalis-imx8 et al. Date: Wed, 18 Jan 2023 08:26:47 +0100 Message-Id: <20230118072656.18845-10-marcel@ziswiler.com> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20230118072656.18845-1-marcel@ziswiler.com> References: <20230118072656.18845-1-marcel@ziswiler.com> MIME-Version: 1.0 X-Provags-ID: V03:K1:v1kRmt3/byTvMIBAcIlfKPpnVIVjtGoR2NmWPcsF23wumK5snfP mUhnTT8U+lZBCkXYjQuhv89UaEO6fp3ZM+4v3Wg5as3M24aHo5df/SyQEceGS4V9Eo2E7Li vIVIRCkVQZJHRYSFLHZufHDeFwiEN1eHS+v4DUghcdqjLOtZsRB3xBzfvRuyTYOoGtjbVgy VwtkkmpCCk58MdTIsNbkw== UI-OutboundReport: notjunk:1;M01:P0:Lzo+2VnfgVk=;eDT5/gj21rtYYWFilmFy2ZfgETn +FpmlwTTf44E+i1qRtHbhKPhDAnTFxECBDewnwMxfKd5DLe4S/IXHhNTsbJfaRh06XTqWxA3H AM/NDg8+jhegtf1sfgKgT6NWqZoHGgYd6bg7ruDEfrHZo/3eFtxUZ6JVeaApUiPBbpViXKu9H NyeQZkFYsz3kT+dP7UqCntiSu3/Rj6w0/2o1CqGsh5iJPXlhQC4sfCEtF986Si+ePiAq/qTms Jv6Zj3tsi6N+1XWaTm++x/nHbL25M0R/GwU01yxgya3A41827gkLjH6z6Wx1GWCRWImg3wH1H RNJ9kQFWu7INotryD8TPmqDvIGxPF02qVixGVW9ljMHqA9ChgSgk/UVz2BYq44NmFCJiXAGvK 5IblDr4YW22VPpJc/WFS/BLAkG3TXRvC1FohcMaQZVQkZfqACvRZjymJO+sMNRHu+pgSPbm6t +Jkga+FX7ACe5jZOOP0H6fscIKBbDvcSWVfmNg1OMi9V68y0ZomeFGNS/pveFFfBZuHlqcB9F NMw88jBjE8uBmBqVIUyjR/VkhUqBJw8cDye3RDNFFoQJ35VpBESMIoSFIM3BBNUEBRTx7WHp5 gT668igrp7SiVX/99dzt0hmmHPA6RtAh9PkHR85E4Id3IGavkxD6mVr760I7OMb95W3oVBHxR iEOTgsHko8QfrqiWjhXoTHbISB6by4GRWpOeBuplNw== X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230117_232830_425915_D3815388 X-CRM114-Status: UNSURE ( 6.31 ) 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 From: Marcel Ziswiler Add toradex,apalis-imx8 for the Apalis iMX8 aka QuadMax modules and the carrier boards (Apalis Evaluation board as well as Ixora V1.1 and V1.2) they may be mated in. Signed-off-by: Marcel Ziswiler Acked-by: Rob Herring --- (no changes since v3) Changes in v3: - Properly accommodate for -v1.1 modules curtsey Francesco. Changes in v2: - Fixed missing space in the comment V1.1Module curtsey Max. - Added Rob's ack. .../devicetree/bindings/arm/fsl.yaml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/Documentation/devicetree/bindings/arm/fsl.yaml b/Documentation/devicetree/bindings/arm/fsl.yaml index 05b5276a0e14..eaebef5a71c0 100644 --- a/Documentation/devicetree/bindings/arm/fsl.yaml +++ b/Documentation/devicetree/bindings/arm/fsl.yaml @@ -1035,6 +1035,25 @@ properties: items: - enum: - fsl,imx8qm-mek # i.MX8QM MEK Board + - toradex,apalis-imx8 # Apalis iMX8 Modules + - toradex,apalis-imx8-v1.1 # Apalis iMX8 V1.1 Modules + - const: fsl,imx8qm + + - description: i.MX8QM Boards with Toradex Apalis iMX8 Modules + items: + - enum: + - toradex,apalis-imx8-eval # Apalis iMX8 Module on Apalis Evaluation Board + - toradex,apalis-imx8-ixora-v1.1 # Apalis iMX8 Module on Ixora V1.1 Carrier Board + - const: toradex,apalis-imx8 + - const: fsl,imx8qm + + - description: i.MX8QM Boards with Toradex Apalis iMX8 V1.1 Modules + items: + - enum: + - toradex,apalis-imx8-v1.1-eval # Apalis iMX8 V1.1 Module on Apalis Eval. Board + - toradex,apalis-imx8-v1.1-ixora-v1.1 # Apalis iMX8 V1.1 Module on Ixora V1.1 C. Board + - toradex,apalis-imx8-v1.1-ixora-v1.2 # Apalis iMX8 V1.1 Module on Ixora V1.2 C. Board + - const: toradex,apalis-imx8-v1.1 - const: fsl,imx8qm - description: i.MX8QXP based Boards From patchwork Wed Jan 18 07:26:48 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marcel Ziswiler X-Patchwork-Id: 13105754 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 A1CAAC32793 for ; Wed, 18 Jan 2023 07:31:46 +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=Kw1RCFlFa+TkizKAhOiz1p4GKhJtjmT8rN4s2Rgm2eY=; b=nb05p0pE04Kaiw qZthmOOJoHML+fGHHSFsqKaawVWjREW/iVInFaaqhk9iv3vxFDxUnfLv9Fh5xIUGRmcQrssp0h+Sg hmssV2B+ec/Af3qvJzUcgI5GL64Sd6ES6pdujxkAPhqrhMW29BJ0EMctZbSUUotP/MgvbLMtqPA8v I15SQ9mzx6kU0rRMO1pXhQcEWipNb/pjqcREs+dptASpSYF/0FV4vVGy5S+NHIQCElBBxjqYPmZsD BUDCM/aJ46Z6pqNr/JZMj4sxudamvTUUZEihrMCTanjPlTB1h6f9YHG61XtWJaWUSj25D107Cmnmt trpAi5P6fOpRIWQ8S7LA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1pI2tu-00HDOG-G3; Wed, 18 Jan 2023 07:30:27 +0000 Received: from mout.perfora.net ([74.208.4.196]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1pI2ri-00HCKm-2N for linux-arm-kernel@lists.infradead.org; Wed, 18 Jan 2023 07:28:17 +0000 Received: from toolbox.int.toradex.com ([213.55.225.137]) by mrelay.perfora.net (mreueus002 [74.208.5.2]) with ESMTPSA (Nemesis) id 0M9IQC-1pRPiG1bJ8-00CgJD; Wed, 18 Jan 2023 08:27:55 +0100 From: Marcel Ziswiler To: devicetree@vger.kernel.org Cc: linux-kernel@vger.kernel.org, linux-imx@nxp.com, linux-arm-kernel@lists.infradead.org, Marcel Ziswiler , Fabio Estevam , Krzysztof Kozlowski , Pengutronix Kernel Team , Rob Herring , Sascha Hauer , Shawn Guo Subject: [PATCH v4 10/17] arm64: dts: freescale: add initial apalis imx8 aka quadmax module support Date: Wed, 18 Jan 2023 08:26:48 +0100 Message-Id: <20230118072656.18845-11-marcel@ziswiler.com> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20230118072656.18845-1-marcel@ziswiler.com> References: <20230118072656.18845-1-marcel@ziswiler.com> MIME-Version: 1.0 X-Provags-ID: V03:K1:0uubjc7GG80uGqUVqvcw/uC7cd7x8GHo7rPD5n9txVPZJXWjOQE wj/8oI7J0TSjH2TkzZCY7rEpsbmrdAVXbr2fq3rgKiKQEJcn+KRiZ7I840DKsLB6Or0qHg5 Bdez1wXIYAfu70Te6zHSwvKtCSTXXYSWhxyDsDapxIxum9ECzN6Bj1KGaG+gqNWvVKpFAKv Tg9NsjFAdfn39uoczI/ZQ== UI-OutboundReport: notjunk:1;M01:P0:0sBUQlx32ZA=;SVBGSST8k+NcIQhWtyIsf7TZ62w dzKo0mUeSKM+0YWVxon8hIZ+Lf6EibbV8OoixlVArx5ZgkGcR0M40kblKXevx7DphYUvooNrx aFluozHAoU9ZFTz/A+UKbEopTaW6FE6HYIVO04gGiKAtztIJHdHalVOP1H2b+86encStrkAUS gEOWWBB14eaBRcVg83hP5He0lD/hJZYLZRxEd5cPXpoDLohDT/M/XhpTcCcO3O5FJMJK0Zhuq JJAu1ffRom6BJGp9Pn1OKFBR0eGeP1pHZhmFIjgbBmjPppmyTTR1BEG47tF2cp3lzP09fe1lH cRZEe8/nzqt0kcSzV2omWztkJ578ZwShNwa6phfuoBwp2KzI62AwYWIIsRg29G5uacQXDyfG5 u7UIfAeeKzmuDRdZBx8iNN4a0M9yqaTzrt0hVf0xv1EATLyOkXUx97KNxod3s0ubGxRjDApgi ADMi+46pMklEHSEUXikestGz8Qq0DHIFD2cz9LMhlerUSdtoHxOzignkFpj6tEs9qQ992z5kR yDSYFfcnq2CKokHpUAD1bnIh3YWjAOywz+WQ67FJsaBhPvvY4ZIeUZh+YvsR2KLZmSfcoiRX2 Ej5EqqJTB4YnGeUpHXYN+URt7Dt7Ux0WqE432rGdFf5/m461tbX3INtBdl8NspJxxoPuDWf2B UDirE1AUsu8QEzCDJLzqlh0SMqyYh0sdUbuZi2I/vgD7rXQJhkUkuYgP+/BHg4o= X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230117_232810_340587_56632B2F X-CRM114-Status: GOOD ( 20.47 ) 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 From: Marcel Ziswiler This patch adds the device tree to support Toradex Apalis iMX8 [1] aka QuadMax a computer on module which can be used on different carrier boards. The module consists of an NXP i.MX 8 family SoC (either i.MX 8QuadMax or 8QuadPlus), two PF8100 PMICs, a KSZ9131 Gigabit Ethernet PHY, 2, 4 or 8 GB of LPDDR4 RAM, an eMMC, an SGTL5000 analogue audio codec, an USB3503A USB HSIC hub, an optional I2C EEPROM plus an optional Bluetooth/Wi-Fi module. Anything that is not self-contained on the module is disabled by default. The carrier board device trees in the next patch will include the module's device tree and enable the supported peripherals of the carrier board. Some level of display functionality just landed upstream but requires further integration/testing on our side. Therefore, currently only basic console UART, eMMC and Ethernet functionality work fine. As there is no i.MX 8QuadPlus device tree upstream those have been dropped. However, apart from an error message during boot about it failing to bring up the second Cortex-A72 core this boots fine on QuadPlus' as well. [1] https://www.toradex.com/computer-on-modules/apalis-arm-family/nxp-imx-8 Signed-off-by: Marcel Ziswiler --- (no changes since v1) .../boot/dts/freescale/imx8-apalis-v1.1.dtsi | 1439 +++++++++++++++++ .../dts/freescale/imx8qm-apalis-v1.1.dtsi | 16 + .../boot/dts/freescale/imx8qm-apalis.dtsi | 340 ++++ 3 files changed, 1795 insertions(+) create mode 100644 arch/arm64/boot/dts/freescale/imx8-apalis-v1.1.dtsi create mode 100644 arch/arm64/boot/dts/freescale/imx8qm-apalis-v1.1.dtsi create mode 100644 arch/arm64/boot/dts/freescale/imx8qm-apalis.dtsi diff --git a/arch/arm64/boot/dts/freescale/imx8-apalis-v1.1.dtsi b/arch/arm64/boot/dts/freescale/imx8-apalis-v1.1.dtsi new file mode 100644 index 000000000000..12ab749cc949 --- /dev/null +++ b/arch/arm64/boot/dts/freescale/imx8-apalis-v1.1.dtsi @@ -0,0 +1,1439 @@ +// SPDX-License-Identifier: GPL-2.0-or-later OR MIT +/* + * Copyright 2022 Toradex + */ + +#include + +/ { + chosen { + stdout-path = &lpuart1; + }; + + /* Apalis BKL1 */ + backlight: backlight { + compatible = "pwm-backlight"; + brightness-levels = <0 45 63 88 119 158 203 255>; + default-brightness-level = <4>; + enable-gpios = <&lsio_gpio1 4 GPIO_ACTIVE_HIGH>; /* Apalis BKL1_ON */ + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_gpio_bkl_on>; + /* TODO: hook-up to Apalis BKL1_PWM */ + status = "disabled"; + }; + + gpio_fan: gpio-fan { + compatible = "gpio-fan"; + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_gpio8>; + gpios = <&lsio_gpio3 28 GPIO_ACTIVE_HIGH>; + gpio-fan,speed-map = < 0 0 + 3000 1>; + }; + +/* TODO: LVDS Panel */ + +/* TODO: Shared PCIe/SATA Reference Clock */ + +/* TODO: PCIe Wi-Fi Reference Clock */ + + /* + * Power management bus used to control LDO1OUT of the + * second PMIC PF8100. This is used for controlling voltage levels of + * typespecific RGMII signals and Apalis UART2_RTS UART2_CTS. + * + * IMX_SC_R_BOARD_R1 for 3.3V + * IMX_SC_R_BOARD_R2 for 1.8V + * IMX_SC_R_BOARD_R3 for 2.5V + * Note that for 2.5V operation the pad muxing needs to be changed, + * compare with PSW_OVR field of IMX8QM_COMP_CTL_GPIO_1V8_3V3_ENET_ENETA_PAD. + * + * those power domains are mutually exclusive. + */ + reg_ext_rgmii: regulator-ext-rgmii { + compatible = "regulator-fixed"; + regulator-name = "VDD_EXT_RGMII (LDO1)"; + regulator-min-microvolt = <3300000>; + regulator-max-microvolt = <3300000>; + power-domains = <&pd IMX_SC_R_BOARD_R1>; + + regulator-state-mem { + regulator-off-in-suspend; + }; + }; + + reg_module_3v3: regulator-module-3v3 { + compatible = "regulator-fixed"; + regulator-name = "+V3.3"; + regulator-min-microvolt = <3300000>; + regulator-max-microvolt = <3300000>; + }; + + reg_module_3v3_avdd: regulator-module-3v3-avdd { + compatible = "regulator-fixed"; + regulator-name = "+V3.3_AUDIO"; + regulator-min-microvolt = <3300000>; + regulator-max-microvolt = <3300000>; + }; + + reg_module_wifi: regulator-module-wifi { + compatible = "regulator-fixed"; + gpio = <&lsio_gpio1 28 GPIO_ACTIVE_HIGH>; + enable-active-high; + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_wifi_pdn>; + regulator-name = "wifi_pwrdn_fake_regulator"; + regulator-settling-time-us = <100>; + + regulator-state-mem { + regulator-off-in-suspend; + }; + }; + + reg_pcie_switch: regulator-pcie-switch { + compatible = "regulator-fixed"; + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_gpio7>; + gpio = <&lsio_gpio3 26 GPIO_ACTIVE_HIGH>; + enable-active-high; + regulator-name = "pcie_switch"; + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <1800000>; + startup-delay-us = <100000>; + }; + + reg_usb_host_vbus: regulator-usb-host-vbus { + compatible = "regulator-fixed"; + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_usbh_en>; + regulator-min-microvolt = <5000000>; + regulator-max-microvolt = <5000000>; + /* Apalis USBH_EN */ + gpio = <&lsio_gpio4 4 GPIO_ACTIVE_HIGH>; + enable-active-high; + regulator-always-on; + }; + + reg_usb_hsic: regulator-usb-hsic { + compatible = "regulator-fixed"; + regulator-name = "usb-hsic-dummy"; + regulator-min-microvolt = <3000000>; + regulator-max-microvolt = <3000000>; + }; + + reg_usb_phy: regulator-usb-hsic1 { + compatible = "regulator-fixed"; + regulator-name = "usb-phy-dummy"; + regulator-min-microvolt = <3000000>; + regulator-max-microvolt = <3000000>; + }; + + reserved-memory { + #address-cells = <2>; + #size-cells = <2>; + ranges; + + decoder_boot: decoder_boot@84000000 { + no-map; + reg = <0 0x84000000 0 0x2000000>; + }; + + encoder1_boot: encoder1_boot@86000000 { + no-map; + reg = <0 0x86000000 0 0x200000>; + }; + + encoder2_boot: encoder2_boot@86200000 { + no-map; + reg = <0 0x86200000 0 0x200000>; + }; + + /* + * reserved-memory layout + * 0x8800_0000 ~ 0x8FFF_FFFF is reserved for M4 + * Shouldn't be used at A core and Linux side. + * + */ + m4_reserved: m4@88000000 { + no-map; + reg = <0 0x88000000 0 0x8000000>; + }; + + rpmsg_reserved: rpmsg@90000000 { + no-map; + reg = <0 0x90200000 0 0x200000>; + }; + + vdevbuffer: vdevbuffer@90400000 { + compatible = "shared-dma-pool"; + reg = <0 0x90400000 0 0x100000>; + no-map; + }; + + decoder_rpc: decoder_rpc@92000000 { + no-map; + reg = <0 0x92000000 0 0x200000>; + }; + + dsp_reserved: dsp@92400000 { + no-map; + reg = <0 0x92400000 0 0x2000000>; + }; + + encoder1_rpc: encoder1_rpc@94400000 { + no-map; + reg = <0 0x94400000 0 0x700000>; + }; + + encoder2_rpc: encoder2_rpc@94b00000 { + no-map; + reg = <0 0x94b00000 0 0x700000>; + }; + + /* global autoconfigured region for contiguous allocations */ + linux,cma { + compatible = "shared-dma-pool"; + reusable; + size = <0 0x3c000000>; + alloc-ranges = <0 0xc0000000 0 0x3c000000>; + linux,cma-default; + }; + }; + + /* TODO: Apalis Analogue Audio */ + + /* TODO: HDMI Audio */ + + /* TODO: Apalis SPDIF1 */ + + touchscreen: vf50-touchscreen { + compatible = "toradex,vf50-touchscreen"; + io-channels = <&adc1 2>,<&adc1 1>, + <&adc1 0>,<&adc1 3>; + interrupt-parent = <&lsio_gpio3>; + interrupts = <22 IRQ_TYPE_LEVEL_LOW>; + pinctrl-names = "idle","default"; + pinctrl-0 = <&pinctrl_touchctrl_idle>, <&pinctrl_touchctrl_gpios>; + pinctrl-1 = <&pinctrl_adc1>, <&pinctrl_touchctrl_gpios>; + vf50-ts-min-pressure = <200>; + xp-gpios = <&lsio_gpio2 4 GPIO_ACTIVE_LOW>; + xm-gpios = <&lsio_gpio2 5 GPIO_ACTIVE_HIGH>; + yp-gpios = <&lsio_gpio2 17 GPIO_ACTIVE_LOW>; + ym-gpios = <&lsio_gpio2 21 GPIO_ACTIVE_HIGH>; + /* + * NOTE: you must remove the pinctrl-adc1 from the adc1 + * node below to use the touchscreen + */ + status = "disabled"; + }; + +}; + +&adc0 { + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_adc0>; +}; + +&adc1 { + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_adc1>; +}; + +/* TODO: Asynchronous Sample Rate Converter (ASRC) */ + +/* Apalis ETH1 */ +&fec1 { + fsl,magic-packet; + phy-handle = <ðphy0>; + phy-mode = "rgmii-id"; + pinctrl-names = "default", "sleep"; + pinctrl-0 = <&pinctrl_fec1>; + pinctrl-1 = <&pinctrl_fec1_sleep>; + + mdio { + #address-cells = <1>; + #size-cells = <0>; + + ethphy0: ethernet-phy@7 { + compatible = "ethernet-phy-ieee802.3-c22"; + interrupt-parent = <&lsio_gpio1>; + interrupts = <29 IRQ_TYPE_LEVEL_LOW>; + micrel,led-mode = <0>; + reg = <7>; + reset-assert-us = <2>; + reset-deassert-us = <2>; + reset-gpios = <&lsio_gpio1 11 GPIO_ACTIVE_LOW>; + reset-names = "phy-reset"; + }; + }; +}; + +/* TODO: Apalis CAN1 (driver upstream but device tree part missing) */ + +/* TODO: Apalis CAN2 (driver upstream but device tree part missing) */ + +/* TODO: Apalis CAN3 (optional, driver upstream but device tree part missing) */ + +/* TODO: Apalis HDMI1 */ + +/* On-module I2C */ +&i2c1 { + #address-cells = <1>; + #size-cells = <0>; + clock-frequency = <100000>; + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_lpi2c1>; + status = "okay"; + + /* TODO: Audio Codec */ + + /* USB3503A */ + usb3503@8 { + compatible = "smsc,usb3503a"; + connect-gpios = <&lsio_gpio0 31 GPIO_ACTIVE_LOW>; + initial-mode = <1>; + intn-gpios = <&lsio_gpio1 1 GPIO_ACTIVE_HIGH>; + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_usb3503a>; + refclk-frequency = <25000000>; + reg = <0x08>; + reset-gpios = <&lsio_gpio1 2 GPIO_ACTIVE_LOW>; + }; +}; + +/* Apalis I2C1 */ +&i2c2 { + #address-cells = <1>; + #size-cells = <0>; + clock-frequency = <100000>; + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_lpi2c2>; + + atmel_mxt_ts: touch@4a { + compatible = "atmel,maxtouch"; + reg = <0x4a>; + interrupt-parent = <&lsio_gpio4>; + interrupts = <1 IRQ_TYPE_EDGE_FALLING>; /* Apalis GPIO5 */ + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_gpio5>, <&pinctrl_gpio6>; + reset-gpios = <&lsio_gpio4 2 GPIO_ACTIVE_LOW>; /* Apalis GPIO6 */ + status = "disabled"; + }; + + /* M41T0M6 real time clock on carrier board */ + rtc_i2c: rtc@68 { + compatible = "st,m41t0"; + reg = <0x68>; + status = "disabled"; + }; +}; + +/* Apalis I2C3 (CAM) */ +&i2c3 { + #address-cells = <1>; + #size-cells = <0>; + clock-frequency = <100000>; + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_lpi2c3>; +}; + +&jpegdec { + status = "okay"; +}; + +&jpegenc { + status = "okay"; +}; + +/* TODO: Apalis LVDS1 */ + +/* Apalis SPI1 */ +&lpspi0 { + #address-cells = <1>; + #size-cells = <0>; + cs-gpios = <&lsio_gpio3 5 GPIO_ACTIVE_LOW>; + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_lpspi0>; +}; + +/* Apalis SPI2 */ +&lpspi2 { + #address-cells = <1>; + #size-cells = <0>; + cs-gpios = <&lsio_gpio3 10 GPIO_ACTIVE_LOW>; + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_lpspi2>; +}; + +/* Apalis UART3 */ +&lpuart0 { + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_lpuart0>; +}; + +/* Apalis UART1 */ +&lpuart1 { + dma-names = "",""; + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_lpuart1>; +}; + +/* Apalis UART4 */ +&lpuart2 { + dma-names = "",""; + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_lpuart2>; +}; + +/* Apalis UART2 */ +&lpuart3 { + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_lpuart3>; +}; + +&lsio_gpio0 { + gpio-line-names = "MXM3_279", + "MXM3_277", + "MXM3_135", + "MXM3_203", + "MXM3_201", + "MXM3_275", + "MXM3_110", + "MXM3_120", + "MXM3_1/GPIO1", + "MXM3_3/GPIO2", + "MXM3_124", + "MXM3_122", + "MXM3_5/GPIO3", + "MXM3_7/GPIO4", + "", + "", + "MXM3_4", + "MXM3_211", + "MXM3_209", + "MXM3_2", + "MXM3_136", + "MXM3_134", + "MXM3_6", + "MXM3_8", + "MXM3_112", + "MXM3_118", + "MXM3_114", + "MXM3_116"; +}; + +&lsio_gpio1 { + gpio-line-names = "", + "", + "", + "", + "MXM3_286", + "", + "MXM3_87", + "MXM3_99", + "MXM3_138", + "MXM3_140", + "MXM3_239", + "", + "MXM3_281", + "MXM3_283", + "MXM3_126", + "MXM3_132", + "", + "", + "", + "", + "MXM3_173", + "MXM3_175", + "MXM3_123"; + + hdmi-ctrl-hog { + gpio-hog; + gpios = <30 GPIO_ACTIVE_HIGH>; + line-name = "CONNECTOR_IS_HDMI"; + /* Set signals depending on HDP device type, 0 DP, 1 HDMI */ + output-high; + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_hdmi_ctrl>; + }; +}; + +&lsio_gpio2 { + gpio-line-names = "", + "", + "", + "", + "", + "", + "", + "MXM3_198", + "MXM3_35", + "MXM3_164", + "", + "", + "", + "", + "MXM3_217", + "MXM3_215", + "", + "", + "MXM3_193", + "MXM3_194", + "MXM3_37", + "", + "MXM3_271", + "MXM3_273", + "MXM3_195", + "MXM3_197", + "MXM3_177", + "MXM3_179", + "MXM3_181", + "MXM3_183", + "MXM3_185", + "MXM3_187"; + + /* + * Add GPIO2_20 as a wakeup source: + * Pin: 101 SC_P_SPI3_CS0 (MXM3_37/WAKE1_MICO) + * Type: 5 SC_PAD_WAKEUP_FALL_EDGE + * Line: 20 + */ + pad-wakeup = ; + pad-wakeup-num = <1>; + + pcie-wifi-hog { + gpio-hog; + gpios = <11 GPIO_ACTIVE_HIGH>; + line-name = "PCIE_WIFI_CLK"; + output-high; + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_pcie_wifi_refclk>; + }; +}; + +&lsio_gpio3 { + gpio-line-names = "MXM3_191", + "", + "MXM3_221", + "MXM3_225", + "MXM3_223", + "MXM3_227", + "MXM3_200", + "MXM3_235", + "MXM3_231", + "MXM3_229", + "MXM3_233", + "MXM3_204", + "MXM3_196", + "", + "MXM3_202", + "", + "", + "", + "MXM3_305", + "MXM3_307", + "MXM3_309", + "MXM3_311", + "MXM3_315", + "MXM3_317", + "MXM3_319", + "MXM3_321", + "MXM3_15/GPIO7", + "MXM3_63", + "MXM3_17/GPIO8", + "MXM3_12", + "MXM3_14", + "MXM3_16"; +}; + +&lsio_gpio4 { + gpio-line-names = "MXM3_18", + "MXM3_11/GPIO5", + "MXM3_13/GPIO6", + "MXM3_274", + "MXM3_84", + "MXM3_262", + "MXM3_96", + "", + "", + "", + "", + "", + "MXM3_190", + "", + "", + "", + "MXM3_269", + "MXM3_251", + "MXM3_253", + "MXM3_295", + "MXM3_299", + "MXM3_301", + "MXM3_297", + "MXM3_293", + "MXM3_291", + "MXM3_289", + "MXM3_287"; + + /* Enable pcie root / sata ref clock unconditionally */ + pcie-sata-hog { + gpio-hog; + gpios = <11 GPIO_ACTIVE_HIGH>; + line-name = "PCIE_SATA_CLK"; + output-high; + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_pcie_sata_refclk>; + }; +}; + +&lsio_gpio5 { + gpio-line-names = "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "MXM3_150", + "MXM3_160", + "MXM3_162", + "MXM3_144", + "MXM3_146", + "MXM3_148", + "MXM3_152", + "MXM3_156", + "MXM3_158", + "MXM3_159", + "MXM3_184", + "MXM3_180", + "MXM3_186", + "MXM3_188", + "MXM3_176", + "MXM3_178"; +}; + +&lsio_gpio6 { + gpio-line-names = "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "MXM3_261", + "MXM3_263", + "MXM3_259", + "MXM3_257", + "MXM3_255", + "MXM3_128", + "MXM3_130", + "MXM3_265", + "MXM3_249", + "MXM3_247", + "MXM3_245", + "MXM3_243"; +}; + +/* Apalis PWM3, MXM3 pin 6 */ +&lsio_pwm0 { + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_pwm0>; + #pwm-cells = <3>; +}; + +/* Apalis PWM4, MXM3 pin 8 */ +&lsio_pwm1 { + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_pwm1>; + #pwm-cells = <3>; +}; + +/* Apalis PWM1, MXM3 pin 2 */ +&lsio_pwm2 { + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_pwm2>; + #pwm-cells = <3>; +}; + +/* Apalis PWM2, MXM3 pin 4 */ +&lsio_pwm3 { + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_pwm3>; + #pwm-cells = <3>; +}; + +/* TODO: Messaging Units */ + +/* TODO: Apalis PCIE1 */ + +/* TODO: On-module Wi-Fi */ + +/* TODO: Apalis BKL1_PWM */ + +/* TODO: Apalis DAP1 */ + +/* TODO: Apalis SATA1 */ + +/* TODO: Apalis SPDIF1 */ + +/* TODO: Thermal Zones */ + +/* TODO: Apalis USBH2, Apalis USBH3 and on-module Wi-Fi via on-module HSIC Hub */ + +/* TODO: Apalis USBH4 */ + +/* Apalis USBO1 */ +&usbphy1 { + phy-3p0-supply = <®_usb_phy>; + status = "okay"; +}; + +&usbotg1 { + adp-disable; + ci-disable-lpm; + hnp-disable; + over-current-active-low; + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_usbotg1>; + power-active-high; + srp-disable; +}; + +/* On-module eMMC */ +&usdhc1 { + bus-width = <8>; + non-removable; + pinctrl-names = "default", "state_100mhz", "state_200mhz"; + pinctrl-0 = <&pinctrl_usdhc1>; + pinctrl-1 = <&pinctrl_usdhc1_100mhz>; + pinctrl-2 = <&pinctrl_usdhc1_200mhz>; + status = "okay"; +}; + +/* Apalis MMC1 */ +&usdhc2 { + bus-width = <8>; + cd-gpios = <&lsio_gpio2 9 GPIO_ACTIVE_LOW>; /* Apalis MMC1_CD# */ + no-1-8-v; + pinctrl-names = "default", "state_100mhz", "state_200mhz", "sleep"; + pinctrl-0 = <&pinctrl_usdhc2_4bit>, + <&pinctrl_usdhc2_8bit>, + <&pinctrl_mmc1_cd>; + pinctrl-1 = <&pinctrl_usdhc2_4bit_100mhz>, + <&pinctrl_usdhc2_8bit_100mhz>, + <&pinctrl_mmc1_cd>; + pinctrl-2 = <&pinctrl_usdhc2_4bit_200mhz>, + <&pinctrl_usdhc2_8bit_200mhz>, + <&pinctrl_mmc1_cd>; + pinctrl-3 = <&pinctrl_usdhc2_4bit_sleep>, + <&pinctrl_usdhc2_8bit_sleep>, + <&pinctrl_mmc1_cd_sleep>; +}; + +/* Apalis SD1 */ +&usdhc3 { + bus-width = <4>; + cd-gpios = <&lsio_gpio4 12 GPIO_ACTIVE_LOW>; /* Apalis SD1_CD# */ + no-1-8-v; + pinctrl-names = "default", "state_100mhz", "state_200mhz"; + pinctrl-0 = <&pinctrl_usdhc3>, <&pinctrl_sd1_cd>; + pinctrl-1 = <&pinctrl_usdhc3_100mhz>, <&pinctrl_sd1_cd>; + pinctrl-2 = <&pinctrl_usdhc3_200mhz>, <&pinctrl_sd1_cd>; +}; + +/* TODO: Video Processing Unit (driver upstream but device tree part missing) */ + +&iomuxc { + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_cam1_gpios>, <&pinctrl_dap1_gpios>, + <&pinctrl_esai0_gpios>, <&pinctrl_fec2_gpios>, + <&pinctrl_gpio3>, <&pinctrl_gpio4>, <&pinctrl_gpio_keys>, + <&pinctrl_gpio_usbh_oc_n>, <&pinctrl_lpuart1ctrl>, + <&pinctrl_lvds0_i2c0_gpio>, <&pinctrl_lvds1_i2c0_gpios>, + <&pinctrl_mipi_dsi_0_1_en>, <&pinctrl_mipi_dsi1_gpios>, + <&pinctrl_mlb_gpios>, <&pinctrl_qspi1a_gpios>, + <&pinctrl_sata1_act>, <&pinctrl_sim0_gpios>, + <&pinctrl_usdhc1_gpios>; + + /* Apalis AN1_ADC */ + pinctrl_adc0: adc0grp { + fsl,pins = /* Apalis AN1_ADC0 */ + , + /* Apalis AN1_ADC1 */ + , + /* Apalis AN1_ADC2 */ + , + /* Apalis AN1_TSWIP_ADC3 */ + ; + }; + + /* Apalis AN1_TS */ + pinctrl_adc1: adc1grp { + fsl,pins = /* Apalis AN1_TSPX */ + , + /* Apalis AN1_TSMX */ + , + /* Apalis AN1_TSPY */ + , + /* Apalis AN1_TSMY */ + ; + }; + + /* Apalis CAM1 */ + pinctrl_cam1_gpios: cam1gpiosgrp { + fsl,pins = /* Apalis CAM1_D7 */ + , + /* Apalis CAM1_D6 */ + , + /* Apalis CAM1_D5 */ + , + /* Apalis CAM1_D4 */ + , + /* Apalis CAM1_D3 */ + , + /* Apalis CAM1_D2 */ + , + /* Apalis CAM1_D1 */ + , + /* Apalis CAM1_D0 */ + , + /* Apalis CAM1_PCLK */ + , + /* Apalis CAM1_MCLK */ + , + /* Apalis CAM1_VSYNC */ + , + /* Apalis CAM1_HSYNC */ + ; + }; + + /* Apalis DAP1 */ + pinctrl_dap1_gpios: dap1gpiosgrp { + fsl,pins = /* Apalis DAP1_MCLK */ + , + /* Apalis DAP1_D_OUT */ + , + /* Apalis DAP1_RESET */ + , + /* Apalis DAP1_BIT_CLK */ + , + /* Apalis DAP1_D_IN */ + , + /* Apalis DAP1_SYNC */ + , + /* On-module Wi-Fi_I2S_EN# */ + ; + }; + + /* Apalis LCD1_G1+2 */ + pinctrl_esai0_gpios: esai0gpiosgrp { + fsl,pins = /* Apalis LCD1_G1 */ + , + /* Apalis LCD1_G2 */ + ; + }; + + /* On-module Gigabit Ethernet PHY Micrel KSZ9031 for Apalis GLAN */ + pinctrl_fec1: fec1grp { + fsl,pins = /* Use pads in 3.3V mode */ + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + /* On-module ETH_RESET# */ + , + /* On-module ETH_INT# */ + ; + }; + + pinctrl_fec1_sleep: fec1-sleepgrp { + fsl,pins = , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + ; + }; + + /* Apalis LCD1_ */ + pinctrl_fec2_gpios: fec2gpiosgrp { + fsl,pins = , + /* Apalis LCD1_R1 */ + , + /* Apalis LCD1_R0 */ + , + /* Apalis LCD1_G0 */ + , + /* Apalis LCD1_R7 */ + , + /* Apalis LCD1_DE */ + , + /* Apalis LCD1_HSYNC */ + , + /* Apalis LCD1_VSYNC */ + , + /* Apalis LCD1_PCLK */ + , + /* Apalis LCD1_R6 */ + , + /* Apalis LCD1_R5 */ + , + /* Apalis LCD1_R4 */ + , + /* Apalis LCD1_R3 */ + , + /* Apalis LCD1_R2 */ + ; + }; + + /* Apalis CAN1 */ + pinctrl_flexcan1: flexcan0grp { + fsl,pins = , + ; + }; + + /* Apalis CAN2 */ + pinctrl_flexcan2: flexcan1grp { + fsl,pins = , + ; + }; + + /* Apalis CAN3 (optional) */ + pinctrl_flexcan3: flexcan2grp { + fsl,pins = , + ; + }; + + /* Apalis GPIO1 */ + pinctrl_gpio1: gpio1grp { + fsl,pins = ; + }; + + /* Apalis GPIO2 */ + pinctrl_gpio2: gpio2grp { + fsl,pins = ; + }; + + /* Apalis GPIO3 */ + pinctrl_gpio3: gpio3grp { + fsl,pins = ; + }; + + /* Apalis GPIO4 */ + pinctrl_gpio4: gpio4grp { + fsl,pins = ; + }; + + /* Apalis GPIO5 */ + pinctrl_gpio5: gpio5grp { + fsl,pins = ; + }; + + /* Apalis GPIO6 */ + pinctrl_gpio6: gpio6grp { + fsl,pins = ; + }; + + /* Apalis GPIO7 */ + pinctrl_gpio7: gpio7grp { + fsl,pins = ; + }; + + /* Apalis GPIO8 */ + pinctrl_gpio8: gpio8grp { + fsl,pins = ; + }; + + /* Apalis BKL1_ON */ + pinctrl_gpio_bkl_on: gpiobklongrp { + fsl,pins = ; + }; + + /* Apalis WAKE1_MICO */ + pinctrl_gpio_keys: gpiokeysgrp { + fsl,pins = ; + }; + + /* Apalis USBH_OC# */ + pinctrl_gpio_usbh_oc_n: gpiousbhocngrp { + fsl,pins = ; + }; + + /* On-module HDMI_CTRL */ + pinctrl_hdmi_ctrl: hdmictrlgrp { + fsl,pins = ; + }; + + /* On-module I2C */ + pinctrl_lpi2c1: lpi2c1grp { + fsl,pins = , + ; + }; + + /* Apalis I2C1 */ + pinctrl_lpi2c2: lpi2c2grp { + fsl,pins = , + ; + }; + + /* Apalis I2C3 (CAM) */ + pinctrl_lpi2c3: lpi2c3grp { + fsl,pins = , + ; + }; + + /* Apalis SPI1 */ + pinctrl_lpspi0: lpspi0grp { + fsl,pins = , + , + , + ; + }; + + /* Apalis SPI2 */ + pinctrl_lpspi2: lpspi2grp { + fsl,pins = , + , + , + ; + }; + + /* Apalis UART3 */ + pinctrl_lpuart0: lpuart0grp { + fsl,pins = , + ; + }; + + /* Apalis UART1 */ + pinctrl_lpuart1: lpuart1grp { + fsl,pins = , + , + , + ; + }; + + /* Apalis UART1 */ + pinctrl_lpuart1ctrl: lpuart1ctrlgrp { + fsl,pins = /* Apalis UART1_DTR */ + , + /* Apalis UART1_DSR */ + , + /* Apalis UART1_DCD */ + , + /* Apalis UART1_RI */ + ; + }; + + /* Apalis UART4 */ + pinctrl_lpuart2: lpuart2grp { + fsl,pins = , + ; + }; + + /* Apalis UART2 */ + pinctrl_lpuart3: lpuart3grp { + fsl,pins = , + , + , + ; + }; + + /* Apalis TS_2 */ + pinctrl_lvds0_i2c0_gpio: lvds0i2c0gpiogrp { + fsl,pins = ; + }; + + /* Apalis LCD1_G6+7 */ + pinctrl_lvds1_i2c0_gpios: lvds1i2c0gpiosgrp { + fsl,pins = /* Apalis LCD1_G6 */ + , + /* Apalis LCD1_G7 */ + ; + }; + + /* Apalis TS_3 */ + pinctrl_mipi_dsi_0_1_en: mipidsi0-1engrp { + fsl,pins = ; + }; + + /* Apalis TS_4 */ + pinctrl_mipi_dsi1_gpios: mipidsi1gpiosgrp { + fsl,pins = ; + }; + + /* Apalis TS_1 */ + pinctrl_mlb_gpios: mlbgpiosgrp { + fsl,pins = ; + }; + + /* Apalis MMC1_CD# */ + pinctrl_mmc1_cd: mmc1cdgrp { + fsl,pins = ; + }; + + pinctrl_mmc1_cd_sleep: mmc1cdsleepgrp { + fsl,pins = ; + }; + + /* On-module PCIe_Wi-Fi */ + pinctrl_pcieb: pciebgrp { + fsl,pins = , + , + ; + }; + + /* On-module PCIe_CLK_EN1 */ + pinctrl_pcie_sata_refclk: pciesatarefclkgrp { + fsl,pins = ; + }; + + /* On-module PCIe_CLK_EN2 */ + pinctrl_pcie_wifi_refclk: pciewifirefclkgrp { + fsl,pins = ; + }; + + /* Apalis PWM3 */ + pinctrl_pwm0: pwm0grp { + fsl,pins = ; + }; + + /* Apalis PWM4 */ + pinctrl_pwm1: pwm1grp { + fsl,pins = ; + }; + + /* Apalis PWM1 */ + pinctrl_pwm2: pwm2grp { + fsl,pins = ; + }; + + /* Apalis PWM2 */ + pinctrl_pwm3: pwm3grp { + fsl,pins = ; + }; + + /* Apalis BKL1_PWM */ + pinctrl_pwm_bkl: pwmbklgrp { + fsl,pins = ; + }; + + /* Apalis LCD1_ */ + pinctrl_qspi1a_gpios: qspi1agpiosgrp { + fsl,pins = /* Apalis LCD1_B0 */ + , + /* Apalis LCD1_B1 */ + , + /* Apalis LCD1_B2 */ + , + /* Apalis LCD1_B3 */ + , + /* Apalis LCD1_B5 */ + , + /* Apalis LCD1_B7 */ + , + /* Apalis LCD1_B4 */ + , + /* Apalis LCD1_B6 */ + ; + }; + + /* On-module RESET_MOCI#_DRV */ + pinctrl_reset_moci: resetmocigrp { + fsl,pins = ; + }; + + /* On-module I2S SGTL5000 for Apalis Analogue Audio */ + pinctrl_sai1: sai1grp { + fsl,pins = , + , + , + ; + }; + + /* Apalis SATA1_ACT# */ + pinctrl_sata1_act: sata1actgrp { + fsl,pins = ; + }; + + /* Apalis SD1_CD# */ + pinctrl_sd1_cd: sd1cdgrp { + fsl,pins = ; + }; + + /* On-module I2S SGTL5000 SYS_MCLK */ + pinctrl_sgtl5000: sgtl5000grp { + fsl,pins = ; + }; + + /* Apalis LCD1_ */ + pinctrl_sim0_gpios: sim0gpiosgrp { + fsl,pins = /* Apalis LCD1_G5 */ + , + /* Apalis LCD1_G3 */ + , + /* Apalis TS_5 */ + , + /* Apalis LCD1_G4 */ + ; + }; + + /* Apalis SPDIF */ + pinctrl_spdif0: spdif0grp { + fsl,pins = , + ; + }; + + pinctrl_touchctrl_gpios: touchctrlgpiosgrp { + fsl,pins = , + , + , + ; + }; + + pinctrl_touchctrl_idle: touchctrlidlegrp { + fsl,pins = , + , + , + ; + }; + + /* On-module USB HSIC HUB (active) */ + pinctrl_usb_hsic_active: usbh1activegrp { + fsl,pins = , + ; + }; + + /* On-module USB HSIC HUB (idle) */ + pinctrl_usb_hsic_idle: usbh1idlegrp { + fsl,pins = , + ; + }; + + /* On-module USB HSIC HUB */ + pinctrl_usb3503a: usb3503agrp { + fsl,pins = /* On-module HSIC_HUB_CONNECT */ + , + /* On-module HSIC_INT_N */ + , + /* On-module HSIC_RESET_N */ + ; + }; + + /* Apalis USBH_EN */ + pinctrl_usbh_en: usbhengrp { + fsl,pins = ; + }; + + /* Apalis USBO1 */ + pinctrl_usbotg1: usbotg1grp { + fsl,pins = /* Apalis USBO1_EN */ + , + /* Apalis USBO1_OC# */ + ; + }; + + /* On-module eMMC */ + pinctrl_usdhc1: usdhc1grp { + fsl,pins = , + , + , + , + , + , + , + , + , + , + , + ; + }; + + pinctrl_usdhc1_100mhz: usdhc1-100mhzgrp { + fsl,pins = , + , + , + , + , + , + , + , + , + , + , + ; + }; + + pinctrl_usdhc1_200mhz: usdhc1-200mhzgrp { + fsl,pins = , + , + , + , + , + , + , + , + , + , + , + ; + }; + + /* Apalis TS_6 */ + pinctrl_usdhc1_gpios: usdhc1gpiosgrp { + fsl,pins = ; + }; + + /* Apalis MMC1 */ + pinctrl_usdhc2_4bit: usdhc2grp4bitgrp { + fsl,pins = , + , + , + , + , + , + /* On-module PMIC use */ + ; + }; + + pinctrl_usdhc2_4bit_100mhz: usdhc2-4bit100mhzgrp { + fsl,pins = , + , + , + , + , + , + /* On-module PMIC use */ + ; + }; + + pinctrl_usdhc2_4bit_200mhz: usdhc2-4bit200mhzgrp { + fsl,pins = , + , + , + , + , + , + /* On-module PMIC use */ + ; + }; + + pinctrl_usdhc2_8bit: usdhc2grp8bitgrp { + fsl,pins = , + , + , + ; + }; + + pinctrl_usdhc2_8bit_100mhz: usdhc2-8bit100mhzgrp { + fsl,pins = , + , + , + ; + }; + + pinctrl_usdhc2_8bit_200mhz: usdhc2-8bit200mhzgrp { + fsl,pins = , + , + , + ; + }; + + pinctrl_usdhc2_4bit_sleep: usdhc2-4bitsleepgrp { + fsl,pins = , + , + , + , + , + , + /* On-module PMIC use */ + ; + }; + + pinctrl_usdhc2_8bit_sleep: usdhc2-8bitsleepgrp { + fsl,pins = , + , + , + ; + }; + + /* Apalis SD1 */ + pinctrl_usdhc3: usdhc3grp { + fsl,pins = , + , + , + , + , + , + /* On-module PMIC use */ + ; + }; + + pinctrl_usdhc3_100mhz: usdhc3-100mhzgrp { + fsl,pins = , + , + , + , + , + , + /* On-module PMIC use */ + ; + }; + + pinctrl_usdhc3_200mhz: usdhc3-200mhzgrp { + fsl,pins = , + , + , + , + , + , + /* On-module PMIC use */ + ; + }; + + /* On-module Wi-Fi */ + pinctrl_wifi: wifigrp { + fsl,pins = /* On-module Wi-Fi_SUSCLK_32k */ + , + /* On-module Wi-Fi_PCIE_W_DISABLE */ + ; + }; + + pinctrl_wifi_pdn: wifipdngrp { + fsl,pins = /* On-module Wi-Fi_POWER_DOWN */ + ; + }; +}; diff --git a/arch/arm64/boot/dts/freescale/imx8qm-apalis-v1.1.dtsi b/arch/arm64/boot/dts/freescale/imx8qm-apalis-v1.1.dtsi new file mode 100644 index 000000000000..81ba8b2831ac --- /dev/null +++ b/arch/arm64/boot/dts/freescale/imx8qm-apalis-v1.1.dtsi @@ -0,0 +1,16 @@ +// SPDX-License-Identifier: GPL-2.0-or-later OR MIT +/* + * Copyright 2022 Toradex + */ + +#include +#include "imx8qm.dtsi" +#include "imx8-apalis-v1.1.dtsi" + +/ { + model = "Toradex Apalis iMX8QM V1.1"; + compatible = "toradex,apalis-imx8-v1.1", + "fsl,imx8qm"; +}; + +/* TODO: Cooling Maps */ diff --git a/arch/arm64/boot/dts/freescale/imx8qm-apalis.dtsi b/arch/arm64/boot/dts/freescale/imx8qm-apalis.dtsi new file mode 100644 index 000000000000..1c6af9f549a8 --- /dev/null +++ b/arch/arm64/boot/dts/freescale/imx8qm-apalis.dtsi @@ -0,0 +1,340 @@ +// SPDX-License-Identifier: GPL-2.0-or-later OR MIT +/* + * Copyright 2022 Toradex + */ + +#include "imx8qm-apalis-v1.1.dtsi" + +/ { + model = "Toradex Apalis iMX8QM"; + compatible = "toradex,apalis-imx8", + "fsl,imx8qm"; +}; + +ðphy0 { + interrupts = <5 IRQ_TYPE_LEVEL_LOW>; +}; + +/* + * Apalis iMX8QM V1.0 has PHY KSZ9031. the Micrel PHY driver + * doesn't support setting internal PHY delay for TXC line for + * this PHY model. Use delay on MAC side instead. + */ +&fec1 { + fsl,rgmii_txc_dly; + phy-mode = "rgmii-rxid"; +}; + +/* TODO: Apalis HDMI1 */ + +/* Apalis I2C2 (DDC) */ +&i2c0 { + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_lpi2c0>; + #address-cells = <1>; + #size-cells = <0>; + clock-frequency = <100000>; +}; + +&lsio_gpio0 { + gpio-line-names = "MXM3_279", + "MXM3_277", + "MXM3_135", + "MXM3_203", + "MXM3_201", + "MXM3_275", + "MXM3_110", + "MXM3_120", + "MXM3_1/GPIO1", + "MXM3_3/GPIO2", + "MXM3_124", + "MXM3_122", + "MXM3_5/GPIO3", + "MXM3_7/GPIO4", + "", + "", + "MXM3_4", + "MXM3_211", + "MXM3_209", + "MXM3_2", + "MXM3_136", + "MXM3_134", + "MXM3_6", + "MXM3_8", + "MXM3_112", + "MXM3_118", + "MXM3_114", + "MXM3_116"; +}; + +&lsio_gpio1 { + gpio-line-names = "", + "", + "", + "", + "MXM3_286", + "", + "MXM3_87", + "MXM3_99", + "MXM3_138", + "MXM3_140", + "MXM3_239", + "", + "MXM3_281", + "MXM3_283", + "MXM3_126", + "MXM3_132", + "", + "", + "", + "", + "MXM3_173", + "MXM3_175", + "MXM3_123"; +}; + +&lsio_gpio2 { + gpio-line-names = "", + "", + "", + "", + "", + "", + "", + "MXM3_198", + "MXM3_35", + "MXM3_164", + "", + "", + "", + "", + "MXM3_217", + "MXM3_215", + "", + "", + "MXM3_193", + "MXM3_194", + "MXM3_37", + "", + "MXM3_271", + "MXM3_273", + "MXM3_195", + "MXM3_197", + "MXM3_177", + "MXM3_179", + "MXM3_181", + "MXM3_183", + "MXM3_185", + "MXM3_187"; +}; + +&lsio_gpio3 { + gpio-line-names = "MXM3_191", + "", + "MXM3_221", + "MXM3_225", + "MXM3_223", + "MXM3_227", + "MXM3_200", + "MXM3_235", + "MXM3_231", + "MXM3_229", + "MXM3_233", + "MXM3_204", + "MXM3_196", + "", + "MXM3_202", + "", + "", + "", + "MXM3_305", + "MXM3_307", + "MXM3_309", + "MXM3_311", + "MXM3_315", + "MXM3_317", + "MXM3_319", + "MXM3_321", + "MXM3_15/GPIO7", + "MXM3_63", + "MXM3_17/GPIO8", + "MXM3_12", + "MXM3_14", + "MXM3_16"; +}; + +&lsio_gpio4 { + gpio-line-names = "MXM3_18", + "MXM3_11/GPIO5", + "MXM3_13/GPIO6", + "MXM3_274", + "MXM3_84", + "MXM3_262", + "MXM3_96", + "", + "", + "", + "", + "", + "MXM3_190", + "", + "", + "", + "MXM3_269", + "MXM3_251", + "MXM3_253", + "MXM3_295", + "MXM3_299", + "MXM3_301", + "MXM3_297", + "MXM3_293", + "MXM3_291", + "MXM3_289", + "MXM3_287"; + + /* Enable pcie root / sata ref clock unconditionally */ + pcie-sata-hog { + gpios = <27 GPIO_ACTIVE_HIGH>; + }; + +}; + +&lsio_gpio5 { + gpio-line-names = "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "MXM3_150", + "MXM3_160", + "MXM3_162", + "MXM3_144", + "MXM3_146", + "MXM3_148", + "MXM3_152", + "MXM3_156", + "MXM3_158", + "MXM3_159", + "MXM3_184", + "MXM3_180", + "MXM3_186", + "MXM3_188", + "MXM3_176", + "MXM3_178"; +}; + +&lsio_gpio6 { + gpio-line-names = "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "MXM3_261", + "MXM3_263", + "MXM3_259", + "MXM3_257", + "MXM3_255", + "MXM3_128", + "MXM3_130", + "MXM3_265", + "MXM3_249", + "MXM3_247", + "MXM3_245", + "MXM3_243"; +}; + +&pinctrl_fec1 { + fsl,pins = + /* Use pads in 1.8V mode */ + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + /* On-module ETH_RESET# */ + , + /* On-module ETH_INT# */ + ; +}; + +&pinctrl_fec1_sleep { + fsl,pins = + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + ; +}; + +&iomuxc { + /* Apalis I2C2 (DDC) */ + pinctrl_lpi2c0: lpi2c0grp { + fsl,pins = + , + ; + }; +}; + +/* On-module PCIe_CTRL0_CLKREQ */ +&pinctrl_pcie_sata_refclk { + fsl,pins = + ; +}; + +/* TODO: On-module Wi-Fi */ + +/* Apalis MMC1 */ +&usdhc2 { + /* + * The PMIC on V1.0A HW generates 1.6V instead of 1.8V which creates + * issues with certain SD cards, disable 1.8V signaling for now. + */ + no-1-8-v; +}; + +/* Apalis SD1 */ +&usdhc3 { + /* + * The PMIC on V1.0A HW generates 1.6V instead of 1.8V which creates + * issues with certain SD cards, disable 1.8V signaling for now. + */ + no-1-8-v; +}; From patchwork Wed Jan 18 07:26:49 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marcel Ziswiler X-Patchwork-Id: 13105758 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 07FBFC004D4 for ; Wed, 18 Jan 2023 07:33:11 +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=Lcv3Qu1tnVzHfSdtvqQ16/l6gnnd1f6zi3vJqGUWrrA=; b=DT1O+ifBBBmsgt bJ80iC6IcLdRjrlyWlTjdiuwbvO//zOgXpPH26vPv2Gzk8WITs1U+eRn/OxaRawnuqvJgmntRHGVh e9HeToqoFluJtJ/pgn9dubNDLiP8lbBt3igg84G5PoGjfrDRNLE6O4TUb4V/UpCZ77tBIdlEKFh75 RRRVT3TeQSJbAmDA8Gnj0lFKNucwjZ0DsI1oBkblQDMM4raHYlwJ57qxgn3hDj/TzJ4PFF2wxUGot MFM3vfIbtkuAghxmK8EI0HA5QoRM3e/a8EvaxZiv1Mub67aHZFrThnA46E08Z3kUq0PP3CNBhtnxf ZnibEfJjg4GVb6O5+UHA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1pI2vR-00HE9k-Oo; Wed, 18 Jan 2023 07:32:02 +0000 Received: from mout.perfora.net ([74.208.4.196]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1pI2ro-00HCNd-Pu for linux-arm-kernel@lists.infradead.org; Wed, 18 Jan 2023 07:28:23 +0000 Received: from toolbox.int.toradex.com ([213.55.225.137]) by mrelay.perfora.net (mreueus002 [74.208.5.2]) with ESMTPSA (Nemesis) id 0MN2Bq-1pOcQo3t1M-006dtR; Wed, 18 Jan 2023 08:27:59 +0100 From: Marcel Ziswiler To: devicetree@vger.kernel.org Cc: linux-kernel@vger.kernel.org, linux-imx@nxp.com, linux-arm-kernel@lists.infradead.org, Marcel Ziswiler , Fabio Estevam , Frieder Schrempf , Krzysztof Kozlowski , Marek Vasut , Pengutronix Kernel Team , Reinhold Mueller , Rob Herring , Sascha Hauer , Shawn Guo , Tim Harvey Subject: [PATCH v4 11/17] arm64: dts: freescale: add apalis imx8 aka quadmax carrier board support Date: Wed, 18 Jan 2023 08:26:49 +0100 Message-Id: <20230118072656.18845-12-marcel@ziswiler.com> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20230118072656.18845-1-marcel@ziswiler.com> References: <20230118072656.18845-1-marcel@ziswiler.com> MIME-Version: 1.0 X-Provags-ID: V03:K1:fWrBGV8HO938ETQHYFQdRYzCIMdjCO4XyawEqW1fXv1av2EHm8h SEreq6xvZ2SIFhF/4JAtjFy6BfrcStUg4jK6srEtxM0cxsSxqz53v3fiCG4DD7oGITLhwX7 NpbvAycQj8HMIxub14JCOquy6feVwsX4h2cgK0mBYh+BPCfFMKj8afCXC/oAraotRstsKP/ sCokFWndfTH3ep7Gld2Bg== UI-OutboundReport: notjunk:1;M01:P0:LI1th/1A8ks=;BbzIHDNmzScu3dqfsYP4ynx+ksb VVF7nlWGEKdA59vw2MgOEqU3ln8upn1jSZXCfQWMk8hFp0AWfTLT842yuF3hmLkSky9jZttmN w1A7XLmV8wlSnNt7SU1SWeUJ+kUID+MEC3kFxuxD/Bnp5R4emziyDOpu7I7j5YxvMWWN1hEVN bDHIlZhkvEaGxUfzOCPk2xqsuZt5T2puNWF5CLWK2eVlsg8K1FEgFL/CJNH2Ymo5wrpOZcebR 8v3PU0J5e7l/4OcpsOwW6E471otiVGxJxaUvEU1aQ0PzLBWjFWoOJpVj+pOSHU3EqLPg79DJw JnDtM/GxhywfK/JhCxRECXVEc+hbFXsvHiTUqR+iyZAavD46UYfXzU3zPFKAGepLa47Py6RdI aoGwAKD2I2LXivv8q1ZzyRMV7KN59qCdyEW/vqtTHR5q4rqzhY5/CCb2scLtSYZ0nCsk2Kzqi r0U661vj7cPvngB9DM8kDQl4Ob1aFKuO/3E5+LMVkiH0tEPASpE5/MH//gdiDHBz9DwyPHAgn vMArsLgdFJ2uv1N6pqWDqNDsfFZLe/YlxqlitLBd03dzMc96bhUDljGh4dz5GBypI1X9Tc9Z8 4bkKQcBPEJolZGYtVgKI1SslZPOnWJK+TLn+Bys2gX1AgwnVNOMc1lXZ+SpRGoKb7HowGC1qO ImpQ98Jax9Ua5C6bgAqsAP9JNUzsoLZbWQER8djLDUK1MX42PI8cvMmdMSfTn+k= X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230117_232817_040841_9F0FF97F X-CRM114-Status: GOOD ( 19.57 ) 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 From: Marcel Ziswiler The previous patch added the device tree to support Toradex Apalis iMX8 [1] aka QuadMax a computer on module which can be used on different carrier boards which this patch introduces. The module consists of an NXP i.MX 8 family SoC (either i.MX 8QuadMax or 8QuadPlus), two PF8100 PMICs, a KSZ9131 Gigabit Ethernet PHY, 2, 4 or 8 GB of LPDDR4 RAM, an eMMC, an SGTL5000 analogue audio codec, an USB3503A USB HSIC hub, an optional I2C EEPROM plus an optional Bluetooth/Wi-Fi module. Anything that is not self-contained on the module is disabled by default. The carrier board device trees contained in this patch include the module's device tree and enable the supported peripherals of the carrier board. Some level of display functionality just landed upstream but requires further integration/testing on our side. Therefore, currently only basic console UART, eMMC and Ethernet functionality work fine. As there is no i.MX 8QuadPlus device tree upstream those have been dropped. However, apart from an error message during boot about it failing to bring up the second Cortex-A72 core this boots fine on QuadPlus' as well. [1] https://www.toradex.com/computer-on-modules/apalis-arm-family/nxp-imx-8 Signed-off-by: Marcel Ziswiler --- Changes in v4: - Shorten subject. Changes in v3: - Only use V1.1 compatible for V1.1 module dtsi. - Split patch into separate module and carrier boards parts as suggested by Shawn. - Put reg after compatible as requested by Shawn. - Move atmel_mxt_ts and rtc_i2c into module dtsi to save such duplications as suggested by Shawn. - Change iomuxc pinctrl indent style as suggested by Shawn. - Change led node names to the preferred first form as suggested by Shawn. While at it also add color (yikes), default-state and function properties and remove the deprecated label property. - Put enable-active-high properties after the gpio ones as suggested by Shawn. Thanks! - Remove adc node's vref-supply and accompanying reg_vref_1v8 regulator node. - Rename gpio-hogs adherring to dt schema naming convention. arch/arm64/boot/dts/freescale/Makefile | 5 + .../boot/dts/freescale/imx8-apalis-eval.dtsi | 134 +++++++++ .../dts/freescale/imx8-apalis-ixora-v1.1.dtsi | 210 ++++++++++++++ .../dts/freescale/imx8-apalis-ixora-v1.2.dtsi | 258 ++++++++++++++++++ .../boot/dts/freescale/imx8qm-apalis-eval.dts | 16 ++ .../freescale/imx8qm-apalis-ixora-v1.1.dts | 16 ++ .../dts/freescale/imx8qm-apalis-v1.1-eval.dts | 16 ++ .../imx8qm-apalis-v1.1-ixora-v1.1.dts | 16 ++ .../imx8qm-apalis-v1.1-ixora-v1.2.dts | 16 ++ 9 files changed, 687 insertions(+) create mode 100644 arch/arm64/boot/dts/freescale/imx8-apalis-eval.dtsi create mode 100644 arch/arm64/boot/dts/freescale/imx8-apalis-ixora-v1.1.dtsi create mode 100644 arch/arm64/boot/dts/freescale/imx8-apalis-ixora-v1.2.dtsi create mode 100644 arch/arm64/boot/dts/freescale/imx8qm-apalis-eval.dts create mode 100644 arch/arm64/boot/dts/freescale/imx8qm-apalis-ixora-v1.1.dts create mode 100644 arch/arm64/boot/dts/freescale/imx8qm-apalis-v1.1-eval.dts create mode 100644 arch/arm64/boot/dts/freescale/imx8qm-apalis-v1.1-ixora-v1.1.dts create mode 100644 arch/arm64/boot/dts/freescale/imx8qm-apalis-v1.1-ixora-v1.2.dts diff --git a/arch/arm64/boot/dts/freescale/Makefile b/arch/arm64/boot/dts/freescale/Makefile index ef6f364eaa18..c0d621d1d86e 100644 --- a/arch/arm64/boot/dts/freescale/Makefile +++ b/arch/arm64/boot/dts/freescale/Makefile @@ -112,6 +112,11 @@ dtb-$(CONFIG_ARCH_MXC) += imx8mq-pico-pi.dtb dtb-$(CONFIG_ARCH_MXC) += imx8mq-thor96.dtb dtb-$(CONFIG_ARCH_MXC) += imx8mq-zii-ultra-rmb3.dtb dtb-$(CONFIG_ARCH_MXC) += imx8mq-zii-ultra-zest.dtb +dtb-$(CONFIG_ARCH_MXC) += imx8qm-apalis-eval.dtb +dtb-$(CONFIG_ARCH_MXC) += imx8qm-apalis-ixora-v1.1.dtb +dtb-$(CONFIG_ARCH_MXC) += imx8qm-apalis-v1.1-eval.dtb +dtb-$(CONFIG_ARCH_MXC) += imx8qm-apalis-v1.1-ixora-v1.1.dtb +dtb-$(CONFIG_ARCH_MXC) += imx8qm-apalis-v1.1-ixora-v1.2.dtb dtb-$(CONFIG_ARCH_MXC) += imx8qm-mek.dtb dtb-$(CONFIG_ARCH_MXC) += imx8qxp-ai_ml.dtb dtb-$(CONFIG_ARCH_MXC) += imx8qxp-colibri-eval-v3.dtb diff --git a/arch/arm64/boot/dts/freescale/imx8-apalis-eval.dtsi b/arch/arm64/boot/dts/freescale/imx8-apalis-eval.dtsi new file mode 100644 index 000000000000..25342c886144 --- /dev/null +++ b/arch/arm64/boot/dts/freescale/imx8-apalis-eval.dtsi @@ -0,0 +1,134 @@ +// SPDX-License-Identifier: GPL-2.0-or-later OR MIT +/* + * Copyright 2022 Toradex + */ + +/ { + aliases { + rtc0 = &rtc_i2c; + rtc1 = &rtc; + }; + + reg_usb_host_vbus: regulator-usb-host-vbus { + regulator-name = "VCC USBH2(ABCD) / USBH(3|4)"; + }; +}; + +&adc0 { + status = "okay"; +}; + +&adc1 { + status = "okay"; +}; + +/* TODO: Audio Mixer */ + +/* TODO: Asynchronous Sample Rate Converter (ASRC) */ + +/* TODO: Display Controller */ + +/* TODO: DPU */ + +/* Apalis ETH1 */ +&fec1 { + status = "okay"; +}; + +/* TODO: CAN */ + +/* TODO: GPU */ + +/* Apalis I2C1 */ +&i2c2 { + status = "okay"; + + /* M41T0M6 real time clock on carrier board */ + rtc_i2c: rtc@68 { + status = "okay"; + }; +}; + +/* Apalis I2C3 (CAM) */ +&i2c3 { + status = "okay"; +}; + +/* Apalis SPI1 */ +&lpspi0 { + status = "okay"; +}; + +/* Apalis SPI2 */ +&lpspi2 { + status = "okay"; +}; + +/* Apalis UART3 */ +&lpuart0 { + status = "okay"; +}; + +/* Apalis UART1 */ +&lpuart1 { + status = "okay"; +}; + +/* Apalis UART4 */ +&lpuart2 { + status = "okay"; +}; + +/* Apalis UART2 */ +&lpuart3 { + status = "okay"; +}; + +/* Apalis PWM3, MXM3 pin 6 */ +&lsio_pwm0 { + status = "okay"; +}; + +/* Apalis PWM4, MXM3 pin 8 */ +&lsio_pwm1 { + status = "okay"; +}; + +/* Apalis PWM1, MXM3 pin 2 */ +&lsio_pwm2 { + status = "okay"; +}; + +/* Apalis PWM2, MXM3 pin 4 */ +&lsio_pwm3 { + status = "okay"; +}; + +/* TODO: Apalis PCIE1 */ + +/* TODO: Apalis BKL1_PWM */ + +/* TODO: Apalis DAP1 */ + +/* TODO: Apalis SATA1 */ + +/* TODO: Apalis SPDIF1 */ + +/* TODO: Apalis USBH2, Apalis USBH3 and on-module Wi-Fi via on-module HSIC Hub */ + +/* Apalis USBO1 */ +&usbotg1 { + status = "okay"; +}; + +/* TODO: Apalis USBH4 SuperSpeed */ + +/* Apalis MMC1 */ +&usdhc2 { + status = "okay"; +}; + +/* Apalis SD1 */ +&usdhc3 { + status = "okay"; +}; diff --git a/arch/arm64/boot/dts/freescale/imx8-apalis-ixora-v1.1.dtsi b/arch/arm64/boot/dts/freescale/imx8-apalis-ixora-v1.1.dtsi new file mode 100644 index 000000000000..e720644d6892 --- /dev/null +++ b/arch/arm64/boot/dts/freescale/imx8-apalis-ixora-v1.1.dtsi @@ -0,0 +1,210 @@ +// SPDX-License-Identifier: GPL-2.0-or-later OR MIT +/* + * Copyright 2022 Toradex + */ + +#include + +/ { + aliases { + rtc0 = &rtc_i2c; + rtc1 = &rtc; + }; + + leds { + compatible = "gpio-leds"; + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_leds_ixora>; + + /* LED_4_GREEN / MXM3_188 */ + led-1 { + color = ; + default-state = "off"; + function = LED_FUNCTION_STATUS; + gpios = <&lsio_gpio5 27 GPIO_ACTIVE_HIGH>; + }; + + /* LED_4_RED / MXM3_178 */ + led-2 { + color = ; + default-state = "off"; + function = LED_FUNCTION_STATUS; + gpios = <&lsio_gpio5 29 GPIO_ACTIVE_HIGH>; + }; + + /* LED_5_GREEN / MXM3_152 */ + led-3 { + color = ; + default-state = "off"; + function = LED_FUNCTION_STATUS; + gpios = <&lsio_gpio5 20 GPIO_ACTIVE_HIGH>; + }; + + /* LED_5_RED / MXM3_156 */ + led-4 { + color = ; + default-state = "off"; + function = LED_FUNCTION_STATUS; + gpios = <&lsio_gpio5 21 GPIO_ACTIVE_HIGH>; + }; + }; + + reg_usb_host_vbus: regulator-usb-host-vbus { + regulator-name = "VCC_USBH(2|4)"; + }; +}; + +&adc0 { + status = "okay"; +}; + +&adc1 { + status = "okay"; +}; + +/* TODO: Audio Mixer */ + +/* TODO: Asynchronous Sample Rate Converter (ASRC) */ + +/* TODO: Display Controller */ + +/* TODO: DPU */ + +/* Apalis ETH1 */ +&fec1 { + status = "okay"; +}; + +/* TODO: CAN */ + +/* TODO: GPU */ + +/* Apalis I2C1 */ +&i2c2 { + status = "okay"; + + /* M41T0M6 real time clock on carrier board */ + rtc_i2c: rtc@68 { + status = "okay"; + }; +}; + +/* Apalis I2C3 (CAM) */ +&i2c3 { + status = "okay"; +}; + +&iomuxc { + pinctrl-0 = <&pinctrl_cam1_gpios>, <&pinctrl_dap1_gpios>, + <&pinctrl_esai0_gpios>, <&pinctrl_fec2_gpios>, + <&pinctrl_gpio3>, <&pinctrl_gpio4>, <&pinctrl_gpio_usbh_oc_n>, + <&pinctrl_lpuart1ctrl>, <&pinctrl_lvds0_i2c0_gpio>, + <&pinctrl_lvds1_i2c0_gpios>, <&pinctrl_mipi_dsi_0_1_en>, + <&pinctrl_mipi_dsi1_gpios>, <&pinctrl_mlb_gpios>, + <&pinctrl_qspi1a_gpios>, <&pinctrl_sata1_act>, + <&pinctrl_sim0_gpios>, <&pinctrl_uart24_forceoff>, + <&pinctrl_usdhc1_gpios>; + + pinctrl_leds_ixora: ledsixoragrp { + fsl,pins = , /* LED_4_GREEN */ + , /* LED_4_RED */ + , /* LED_5_GREEN */ + ; /* LED_5_RED */ + }; + + pinctrl_uart24_forceoff: uart24forceoffgrp { + fsl,pins = ; + }; +}; + +/* Apalis SPI1 */ +&lpspi0 { + status = "okay"; +}; + +/* Apalis SPI2 */ +&lpspi2 { + status = "okay"; +}; + +/* Apalis UART3 */ +&lpuart0 { + status = "okay"; +}; + +/* Apalis UART1 */ +&lpuart1 { + status = "okay"; +}; + +/* Apalis UART4 */ +&lpuart2 { + status = "okay"; +}; + +/* Apalis UART2 */ +&lpuart3 { + status = "okay"; +}; + +&lsio_gpio5 { + ngpios = <32>; + gpio-line-names = "gpio5-00", "gpio5-01", "gpio5-02", "gpio5-03", + "gpio5-04", "gpio5-05", "gpio5-06", "gpio5-07", + "gpio5-08", "gpio5-09", "gpio5-10", "gpio5-11", + "gpio5-12", "gpio5-13", "gpio5-14", "gpio5-15", + "gpio5-16", "gpio5-17", "gpio5-18", "gpio5-19", + "LED-5-GREEN", "LED-5-RED", "gpio5-22", "gpio5-23", + "gpio5-24", "UART24-FORCEOFF", "gpio5-26", + "LED-4-GREEN", "gpio5-28", "LED-4-RED", "gpio5-30", + "gpio5-31"; +}; + +/* Apalis PWM3, MXM3 pin 6 */ +&lsio_pwm0 { + status = "okay"; +}; + +/* Apalis PWM4, MXM3 pin 8 */ +&lsio_pwm1 { + status = "okay"; +}; + +/* Apalis PWM1, MXM3 pin 2 */ +&lsio_pwm2 { + status = "okay"; +}; + +/* Apalis PWM2, MXM3 pin 4 */ +&lsio_pwm3 { + status = "okay"; +}; + +/* TODO: Apalis PCIE1 */ + +/* TODO: Apalis BKL1_PWM */ + +/* TODO: Apalis DAP1 */ + +/* TODO: Apalis SATA1 */ + +/* TODO: Apalis SPDIF1 */ + +/* TODO: Apalis USBH2, Apalis USBH3 and on-module Wi-Fi via on-module HSIC Hub */ + +/* Apalis USBO1 */ +&usbotg1 { + status = "okay"; +}; + +/* TODO: Apalis USBH4 SuperSpeed */ + +/* Apalis MMC1 */ +&usdhc2 { + bus-width = <4>; + pinctrl-0 = <&pinctrl_usdhc2_4bit>, <&pinctrl_mmc1_cd>; + pinctrl-1 = <&pinctrl_usdhc2_4bit_100mhz>, <&pinctrl_mmc1_cd>; + pinctrl-2 = <&pinctrl_usdhc2_4bit_200mhz>, <&pinctrl_mmc1_cd>; + pinctrl-3 = <&pinctrl_usdhc2_4bit_sleep>, <&pinctrl_mmc1_cd_sleep>; + status = "okay"; +}; diff --git a/arch/arm64/boot/dts/freescale/imx8-apalis-ixora-v1.2.dtsi b/arch/arm64/boot/dts/freescale/imx8-apalis-ixora-v1.2.dtsi new file mode 100644 index 000000000000..d33c841515ca --- /dev/null +++ b/arch/arm64/boot/dts/freescale/imx8-apalis-ixora-v1.2.dtsi @@ -0,0 +1,258 @@ +// SPDX-License-Identifier: GPL-2.0-or-later OR MIT +/* + * Copyright 2022 Toradex + */ + +#include + +/ { + aliases { + rtc0 = &rtc_i2c; + rtc1 = &rtc; + }; + + leds { + compatible = "gpio-leds"; + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_leds_ixora>; + + /* LED_4_GREEN / MXM3_188 */ + led-1 { + color = ; + default-state = "off"; + function = LED_FUNCTION_STATUS; + gpios = <&lsio_gpio5 27 GPIO_ACTIVE_HIGH>; + }; + + /* LED_4_RED / MXM3_178 */ + led-2 { + color = ; + default-state = "off"; + function = LED_FUNCTION_STATUS; + gpios = <&lsio_gpio5 29 GPIO_ACTIVE_HIGH>; + }; + + /* LED_5_GREEN / MXM3_152 */ + led-3 { + color = ; + default-state = "off"; + function = LED_FUNCTION_STATUS; + gpios = <&lsio_gpio5 20 GPIO_ACTIVE_HIGH>; + }; + + /* LED_5_RED / MXM3_156 */ + led-4 { + color = ; + default-state = "off"; + function = LED_FUNCTION_STATUS; + gpios = <&lsio_gpio5 21 GPIO_ACTIVE_HIGH>; + }; + }; + + reg_3v3_vmmc: regulator-3v3-vmmc { + compatible = "regulator-fixed"; + /* MMC1_PWR_CTRL */ + gpio = <&lsio_gpio5 19 GPIO_ACTIVE_HIGH>; + enable-active-high; + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_enable_3v3_vmmc>; + regulator-max-microvolt = <3300000>; + regulator-min-microvolt = <3300000>; + regulator-name = "3v3_vmmc"; + }; + + reg_can1_supply: regulator-can1-supply { + compatible = "regulator-fixed"; + gpio = <&lsio_gpio5 22 GPIO_ACTIVE_HIGH>; + enable-active-high; + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_enable_can1_power>; + regulator-name = "can1_supply"; + }; + + reg_can2_supply: regulator-can2-supply { + compatible = "regulator-fixed"; + gpio = <&lsio_gpio2 8 GPIO_ACTIVE_HIGH>; + enable-active-high; + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_sata1_act>; + regulator-name = "can2_supply"; + }; + + reg_usb_host_vbus: regulator-usb-host-vbus { + regulator-name = "VCC_USBH(2|4)"; + }; +}; + +&adc0 { + status = "okay"; +}; + +&adc1 { + status = "okay"; +}; + +/* TODO: Audio Mixer */ + +/* TODO: Asynchronous Sample Rate Converter (ASRC) */ + +/* TODO: Display Controller */ + +/* TODO: DPU */ + +/* Apalis ETH1 */ +&fec1 { + status = "okay"; +}; + +/* TODO: CAN */ + +/* TODO: GPU */ + +/* Apalis I2C1 */ +&i2c2 { + status = "okay"; + + eeprom: eeprom@50 { + compatible = "atmel,24c02"; + pagesize = <16>; + reg = <0x50>; + }; + + /* M41T0M6 real time clock on carrier board */ + rtc_i2c: rtc@68 { + status = "okay"; + }; +}; + +/* Apalis I2C3 (CAM) */ +&i2c3 { + status = "okay"; +}; + +&iomuxc { + pinctrl-0 = <&pinctrl_cam1_gpios>, <&pinctrl_dap1_gpios>, + <&pinctrl_esai0_gpios>, <&pinctrl_fec2_gpios>, + <&pinctrl_gpio3>, <&pinctrl_gpio4>, <&pinctrl_gpio_usbh_oc_n>, + <&pinctrl_lpuart1ctrl>, <&pinctrl_lvds0_i2c0_gpio>, + <&pinctrl_lvds1_i2c0_gpios>, <&pinctrl_mipi_dsi_0_1_en>, + <&pinctrl_mipi_dsi1_gpios>, <&pinctrl_mlb_gpios>, + <&pinctrl_qspi1a_gpios>, <&pinctrl_sim0_gpios>, + <&pinctrl_uart24_forceoff>, <&pinctrl_usdhc1_gpios>; + + /* PMIC MMC1 power-switch */ + pinctrl_enable_3v3_vmmc: enable3v3vmmcgrp { + fsl,pins = ; /* MXM3_148, PMIC */ + }; + + /* FlexCAN PMIC */ + pinctrl_enable_can1_power: enablecan1powergrp { + fsl,pins = ; /* MXM3_158, PMIC */ + }; + + pinctrl_leds_ixora: ledsixoragrp { + fsl,pins = , /* LED_4_GREEN */ + , /* LED_4_RED */ + , /* LED_5_GREEN */ + ; /* LED_5_RED */ + }; + + pinctrl_uart24_forceoff: uart24forceoffgrp { + fsl,pins = ; + }; +}; + +/* Apalis SPI1 */ +&lpspi0 { + status = "okay"; +}; + +/* Apalis SPI2 */ +&lpspi2 { + status = "okay"; +}; + +/* Apalis UART3 */ +&lpuart0 { + status = "okay"; +}; + +/* Apalis UART1 */ +&lpuart1 { + status = "okay"; +}; + +/* Apalis UART4 */ +&lpuart2 { + status = "okay"; +}; + +/* Apalis UART2 */ +&lpuart3 { + status = "okay"; +}; + +&lsio_gpio5 { + ngpios = <32>; + gpio-line-names = "gpio5-00", "gpio5-01", "gpio5-02", "gpio5-03", + "gpio5-04", "gpio5-05", "gpio5-06", "gpio5-07", + "gpio5-08", "gpio5-09", "gpio5-10", "gpio5-11", + "gpio5-12", "gpio5-13", "gpio5-14", "gpio5-15", + "gpio5-16", "gpio5-17", "gpio5-18", "gpio5-19", + "LED-5-GREEN", "LED-5-RED", "gpio5-22", "gpio5-23", + "gpio5-24", "UART24-FORCEOFF", "gpio5-26", + "LED-4-GREEN", "gpio5-28", "LED-4-RED", "gpio5-30", + "gpio5-31"; +}; + +/* Apalis PWM3, MXM3 pin 6 */ +&lsio_pwm0 { + status = "okay"; +}; + +/* Apalis PWM4, MXM3 pin 8 */ +&lsio_pwm1 { + status = "okay"; +}; + +/* Apalis PWM1, MXM3 pin 2 */ +&lsio_pwm2 { + status = "okay"; +}; + +/* Apalis PWM2, MXM3 pin 4 */ +&lsio_pwm3 { + status = "okay"; +}; + +/* TODO: Apalis PCIE1 */ + +/* TODO: Apalis BKL1_PWM */ + +/* TODO: Apalis DAP1 */ + +/* TODO: Apalis SATA1 */ + +/* TODO: Apalis SPDIF1 */ + +/* TODO: Apalis USBH2, Apalis USBH3 and on-module Wi-Fi via on-module HSIC Hub */ + +/* Apalis USBO1 */ +&usbotg1 { + status = "okay"; +}; + +/* TODO: Apalis USBH4 SuperSpeed */ + +/* Apalis MMC1 */ +&usdhc2 { + bus-width = <4>; + cap-power-off-card; + /delete-property/ no-1-8-v; + pinctrl-0 = <&pinctrl_usdhc2_4bit>, <&pinctrl_mmc1_cd>; + pinctrl-1 = <&pinctrl_usdhc2_4bit_100mhz>, <&pinctrl_mmc1_cd>; + pinctrl-2 = <&pinctrl_usdhc2_4bit_200mhz>, <&pinctrl_mmc1_cd>; + pinctrl-3 = <&pinctrl_usdhc2_4bit_sleep>, <&pinctrl_mmc1_cd_sleep>; + vmmc-supply = <®_3v3_vmmc>; + status = "okay"; +}; diff --git a/arch/arm64/boot/dts/freescale/imx8qm-apalis-eval.dts b/arch/arm64/boot/dts/freescale/imx8qm-apalis-eval.dts new file mode 100644 index 000000000000..5ab0921eb599 --- /dev/null +++ b/arch/arm64/boot/dts/freescale/imx8qm-apalis-eval.dts @@ -0,0 +1,16 @@ +// SPDX-License-Identifier: GPL-2.0-or-later OR MIT +/* + * Copyright 2022 Toradex + */ + +/dts-v1/; + +#include "imx8qm-apalis.dtsi" +#include "imx8-apalis-eval.dtsi" + +/ { + model = "Toradex Apalis iMX8QM/QP on Apalis Evaluation Board"; + compatible = "toradex,apalis-imx8-eval", + "toradex,apalis-imx8", + "fsl,imx8qm"; +}; diff --git a/arch/arm64/boot/dts/freescale/imx8qm-apalis-ixora-v1.1.dts b/arch/arm64/boot/dts/freescale/imx8qm-apalis-ixora-v1.1.dts new file mode 100644 index 000000000000..68ce58dc7102 --- /dev/null +++ b/arch/arm64/boot/dts/freescale/imx8qm-apalis-ixora-v1.1.dts @@ -0,0 +1,16 @@ +// SPDX-License-Identifier: GPL-2.0-or-later OR MIT +/* + * Copyright 2022 Toradex + */ + +/dts-v1/; + +#include "imx8qm-apalis.dtsi" +#include "imx8-apalis-ixora-v1.1.dtsi" + +/ { + model = "Toradex Apalis iMX8QM/QP on Apalis Ixora V1.1 Carrier Board"; + compatible = "toradex,apalis-imx8-ixora-v1.1", + "toradex,apalis-imx8", + "fsl,imx8qm"; +}; diff --git a/arch/arm64/boot/dts/freescale/imx8qm-apalis-v1.1-eval.dts b/arch/arm64/boot/dts/freescale/imx8qm-apalis-v1.1-eval.dts new file mode 100644 index 000000000000..c8ff75831556 --- /dev/null +++ b/arch/arm64/boot/dts/freescale/imx8qm-apalis-v1.1-eval.dts @@ -0,0 +1,16 @@ +// SPDX-License-Identifier: GPL-2.0-or-later OR MIT +/* + * Copyright 2022 Toradex + */ + +/dts-v1/; + +#include "imx8qm-apalis-v1.1.dtsi" +#include "imx8-apalis-eval.dtsi" + +/ { + model = "Toradex Apalis iMX8QM V1.1 on Apalis Evaluation Board"; + compatible = "toradex,apalis-imx8-v1.1-eval", + "toradex,apalis-imx8-v1.1", + "fsl,imx8qm"; +}; diff --git a/arch/arm64/boot/dts/freescale/imx8qm-apalis-v1.1-ixora-v1.1.dts b/arch/arm64/boot/dts/freescale/imx8qm-apalis-v1.1-ixora-v1.1.dts new file mode 100644 index 000000000000..ad7f644968fa --- /dev/null +++ b/arch/arm64/boot/dts/freescale/imx8qm-apalis-v1.1-ixora-v1.1.dts @@ -0,0 +1,16 @@ +// SPDX-License-Identifier: GPL-2.0-or-later OR MIT +/* + * Copyright 2022 Toradex + */ + +/dts-v1/; + +#include "imx8qm-apalis-v1.1.dtsi" +#include "imx8-apalis-ixora-v1.1.dtsi" + +/ { + model = "Toradex Apalis iMX8QM V1.1 on Apalis Ixora V1.1 Carrier Board"; + compatible = "toradex,apalis-imx8-v1.1-ixora-v1.1", + "toradex,apalis-imx8-v1.1", + "fsl,imx8qm"; +}; diff --git a/arch/arm64/boot/dts/freescale/imx8qm-apalis-v1.1-ixora-v1.2.dts b/arch/arm64/boot/dts/freescale/imx8qm-apalis-v1.1-ixora-v1.2.dts new file mode 100644 index 000000000000..3b2e8c93b846 --- /dev/null +++ b/arch/arm64/boot/dts/freescale/imx8qm-apalis-v1.1-ixora-v1.2.dts @@ -0,0 +1,16 @@ +// SPDX-License-Identifier: GPL-2.0-or-later OR MIT +/* + * Copyright 2022 Toradex + */ + +/dts-v1/; + +#include "imx8qm-apalis-v1.1.dtsi" +#include "imx8-apalis-ixora-v1.2.dtsi" + +/ { + model = "Toradex Apalis iMX8QM V1.1 on Apalis Ixora V1.2 Carrier Board"; + compatible = "toradex,apalis-imx8-v1.1-ixora-v1.2", + "toradex,apalis-imx8-v1.1", + "fsl,imx8qm"; +}; From patchwork Wed Jan 18 07:26:50 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marcel Ziswiler X-Patchwork-Id: 13105755 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 F0B35C38159 for ; Wed, 18 Jan 2023 07:31:48 +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=7XPYP+JgfGDhs8q8jqcuSXFmbmqcEsBn0jjX2gw8ozE=; b=2annQOkLmcIH17 22E98g9/2PCtWgyQAPxYhdrDrOQnPJDpzIYFyaOMYbkF5A2p187k0Dit618qxoi2d3omCn/7CiiVB irH1qfQPoLY0NVX9LE/HvfGUarCwyCVMztSjJ0cK/QojB2479VeuT8HxRrZHBNo1ibIM9c0c03r3O 06tdDtZMfA2U/+838hQ7w/2eHoFoH+RDEE0g5fKDqXa8OzbYftFpG0tHuEnmMoIV8JYnyBc8J/Pnw a8az9Og1m1wS1ScNtAteQMWjNVR5i/hrkqAz5xpslJUak+2ojw7eK2gdUKcB2AEi5Zn3A9XJRZ5QA Lhsd+Qm2ThvweLHwwHpg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1pI2uB-00HDYE-VD; Wed, 18 Jan 2023 07:30:44 +0000 Received: from mout.perfora.net ([74.208.4.196]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1pI2rk-00HCM8-L5 for linux-arm-kernel@lists.infradead.org; Wed, 18 Jan 2023 07:28:20 +0000 Received: from toolbox.int.toradex.com ([213.55.225.137]) by mrelay.perfora.net (mreueus002 [74.208.5.2]) with ESMTPSA (Nemesis) id 0LufTy-1oa0tn2Zgu-00zoob; Wed, 18 Jan 2023 08:28:04 +0100 From: Marcel Ziswiler To: devicetree@vger.kernel.org Cc: linux-kernel@vger.kernel.org, linux-imx@nxp.com, linux-arm-kernel@lists.infradead.org, Marcel Ziswiler , Fabio Estevam , Krzysztof Kozlowski , Pengutronix Kernel Team , Rob Herring , Sascha Hauer , Shawn Guo Subject: [PATCH v4 12/17] arm64: dts: freescale: apalis-imx8: analogue audio comment Date: Wed, 18 Jan 2023 08:26:50 +0100 Message-Id: <20230118072656.18845-13-marcel@ziswiler.com> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20230118072656.18845-1-marcel@ziswiler.com> References: <20230118072656.18845-1-marcel@ziswiler.com> MIME-Version: 1.0 X-Provags-ID: V03:K1:xgilT84UosodsS/XUyvQ3O92wRUDbt8tA9Ngr6iFoa/LXapun83 90RSGsFvFvypfkGN42wFr7N5XqEt0cNGcyHh2+2Keu1xNrJCxll0Z6ZYa+h1puRZ8JuU/15 mWaU6HRt5e2EkJPlkndFyrLztuSfxzn2KanjPHhAZ1tXsvi/xFjb8s18sEcO05p3NKKJ80c AeKnqYbi53UvXZTHtXwEA== UI-OutboundReport: notjunk:1;M01:P0:Yr/c8WmhEuI=;rhrGNJC2Bp4MK1VXTs3RoOi+H8N OYiszrwJXGqwAjqUh22ejKacsWZwo9y/TRcSXGPYa9CJrW2xHXOB7sOlbT2Br6WdpdHGJ2YlH pdqm4vq4y4+K4u5mf+u8jyIVE/8JrxPSz4gxTLAUIMw4HYZIMqOBc72AvoR5ioyTSLubjElTC bvWCQDJ7/mfhxdqeQu62E/qP/N8l2RFlcROvwsOy2KE3sgHEEaUfTwgZJYH6wifLILPU8c/nq iIMRB0StJ264+1RuBMzEYJ9KzSA8YTf8r+BEXbNN+jfAxASc5+V4rvbMSyk0tWYNeSnTbNIxG UpbhbLkXDv5V/7dOlUnjRsYFSWI/y5/QDQylcCPrmFi45LxbR+xJ8KJxnWpLOWKLBT5mZOsLx NvjvcH5ajIzIF57KWrxa9T9IffHCiUiOU1IzAZ79G2SkWoy1HmzlyC2b8WXQejxOdjIFCOZq3 Bjxy9i5RAQN+7UuRLh8tdFnuOLab+GtQ/5s3IoZlNMIDrPDNUDsq42y8yOmAwfJibO7mxF34y dFHyHO5ShJQZ/hTs86ytqq2gLbxY1Py90rwthhyv0cNH4edBzznIK+LKmWSwt+GjTihNvXieX rC2gK8nT+a6HXVdcG/2mUIS8fYM4PGgE98Jt5cLoc73yXf+eETqcPlpZ+mwC2lZTZLIyLtHOI ke9sEkSWBf+X2yVi93E9t+fcg993tg0YrgHOZAuyr8yoJxsj053bK7byqMv2O2I= X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230117_232812_813977_F9DC83A5 X-CRM114-Status: UNSURE ( 7.69 ) 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 From: Marcel Ziswiler Added a comment about Apalis analogue audio being another todo. Signed-off-by: Marcel Ziswiler --- Changes in v4: - New patch adding comment about analogue audio being another todo. arch/arm64/boot/dts/freescale/imx8-apalis-eval.dtsi | 2 ++ arch/arm64/boot/dts/freescale/imx8-apalis-ixora-v1.1.dtsi | 2 ++ arch/arm64/boot/dts/freescale/imx8-apalis-ixora-v1.2.dtsi | 2 ++ arch/arm64/boot/dts/freescale/imx8-apalis-v1.1.dtsi | 2 ++ 4 files changed, 8 insertions(+) diff --git a/arch/arm64/boot/dts/freescale/imx8-apalis-eval.dtsi b/arch/arm64/boot/dts/freescale/imx8-apalis-eval.dtsi index 25342c886144..060454f25c98 100644 --- a/arch/arm64/boot/dts/freescale/imx8-apalis-eval.dtsi +++ b/arch/arm64/boot/dts/freescale/imx8-apalis-eval.dtsi @@ -110,6 +110,8 @@ &lsio_pwm3 { /* TODO: Apalis DAP1 */ +/* TODO: Apalis Analogue Audio */ + /* TODO: Apalis SATA1 */ /* TODO: Apalis SPDIF1 */ diff --git a/arch/arm64/boot/dts/freescale/imx8-apalis-ixora-v1.1.dtsi b/arch/arm64/boot/dts/freescale/imx8-apalis-ixora-v1.1.dtsi index e720644d6892..caaafc9900a6 100644 --- a/arch/arm64/boot/dts/freescale/imx8-apalis-ixora-v1.1.dtsi +++ b/arch/arm64/boot/dts/freescale/imx8-apalis-ixora-v1.1.dtsi @@ -186,6 +186,8 @@ &lsio_pwm3 { /* TODO: Apalis DAP1 */ +/* TODO: Analogue Audio */ + /* TODO: Apalis SATA1 */ /* TODO: Apalis SPDIF1 */ diff --git a/arch/arm64/boot/dts/freescale/imx8-apalis-ixora-v1.2.dtsi b/arch/arm64/boot/dts/freescale/imx8-apalis-ixora-v1.2.dtsi index d33c841515ca..5bc55a58db97 100644 --- a/arch/arm64/boot/dts/freescale/imx8-apalis-ixora-v1.2.dtsi +++ b/arch/arm64/boot/dts/freescale/imx8-apalis-ixora-v1.2.dtsi @@ -231,6 +231,8 @@ &lsio_pwm3 { /* TODO: Apalis DAP1 */ +/* TODO: Analogue Audio */ + /* TODO: Apalis SATA1 */ /* TODO: Apalis SPDIF1 */ diff --git a/arch/arm64/boot/dts/freescale/imx8-apalis-v1.1.dtsi b/arch/arm64/boot/dts/freescale/imx8-apalis-v1.1.dtsi index 12ab749cc949..4c88678e2bc7 100644 --- a/arch/arm64/boot/dts/freescale/imx8-apalis-v1.1.dtsi +++ b/arch/arm64/boot/dts/freescale/imx8-apalis-v1.1.dtsi @@ -682,6 +682,8 @@ &lsio_pwm3 { /* TODO: Apalis DAP1 */ +/* TODO: Analogue Audio */ + /* TODO: Apalis SATA1 */ /* TODO: Apalis SPDIF1 */ From patchwork Wed Jan 18 07:26:51 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marcel Ziswiler X-Patchwork-Id: 13105756 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 01089C38159 for ; Wed, 18 Jan 2023 07:32:10 +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=FTE/ReGxdKdVtgtSPf8X9wTRfQB6tDA1l7DsQjsdfMs=; b=ksb9KuwFEIG2rw KX3vP+5Y1NxXOUzD9Y/hIMBQoZ9wFg9hf8S32tR8/i+arTEmlXsDYaVuvObHuFmlpcRWZ52RY1Xlv cAnnncT4D2zI/kFPWLzhuaTucK8ZaG84rmVvSwpJoOw+BcesrRpiyWfyoBJnYD3tAr/Wd2VcmWoGE 1IhVoJXs9wmyJ+kVrG/3XxILz2SFniWw9lLzZJDWTSJFdQNhECwgjmpGRKArjZQImZeIFGeuylEmb AwzwxrRDX9fH5ZiIA9UmNl3L+v1K8aK2XIt0HPz2u+KM2prOflVZRiae2LOYRQlbPVYzVtX9XhLyt 59BA2vgww+NXsAUu8Cxg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1pI2uX-00HDjp-Ha; Wed, 18 Jan 2023 07:31:05 +0000 Received: from mout.perfora.net ([74.208.4.196]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1pI2rn-00HCNC-Q3 for linux-arm-kernel@lists.infradead.org; Wed, 18 Jan 2023 07:28:20 +0000 Received: from toolbox.int.toradex.com ([213.55.225.137]) by mrelay.perfora.net (mreueus002 [74.208.5.2]) with ESMTPSA (Nemesis) id 0MStu7-1p7y8h4BYT-00Rrds; Wed, 18 Jan 2023 08:28:07 +0100 From: Marcel Ziswiler To: devicetree@vger.kernel.org Cc: linux-kernel@vger.kernel.org, linux-imx@nxp.com, linux-arm-kernel@lists.infradead.org, Marcel Ziswiler , Fabio Estevam , Krzysztof Kozlowski , Pengutronix Kernel Team , Rob Herring , Sascha Hauer , Shawn Guo Subject: [PATCH v4 13/17] arm64: dts: freescale: apalis-imx8: add bkl1_pwm functionality Date: Wed, 18 Jan 2023 08:26:51 +0100 Message-Id: <20230118072656.18845-14-marcel@ziswiler.com> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20230118072656.18845-1-marcel@ziswiler.com> References: <20230118072656.18845-1-marcel@ziswiler.com> MIME-Version: 1.0 X-Provags-ID: V03:K1:XPfPxjgcJ4c9YMwmnfVzwRE9rjbrVlToLd7OpFT8+yt+S2ZAZ++ XsWm04PSs/8GWEO1DuLWSJUcNDlnfpcKOlhCfqtLxndRyQuKhr6Y9hBJ6AJ9eFfg08BOtEx zSkL9VYv7exGPlsyRGAeZ7lbbw4QFUQZKwwUsiCsy3e3tgUz+RD0MNtzQWRLLWPnydkPzjZ YBUbKingi91r6uE0nqAFg== UI-OutboundReport: notjunk:1;M01:P0:KxClaBHLYUg=;tkUyzOBxosW9CbSOLe4xIU31wks M8etEV2BZwqGX5VR8mSBY9l2QzlRm4Pm9qvB9dH46f6uUX64+sWb2mw72cSaNCvkrOCzGfDSJ ZQcgmVjrE/NaIG673sqSexkYriviYLNWHFSrJ1x22JaeaNpTGJ5g/NUcl0XueV2fy7qkB8RPx tfoZFZw8YkpxYUc9Szkq/PouvkypbubAgD2C2Tc0mZ+8zH7TRMlJvH7nalfLICooutmVKkPDf Sz5h8SpEYJ5Ql36///qD2D5jJ8pL5yy6PioFhu301mDMWtp2qOvy9lHe/Uj6zIZFfhZw7y6cQ k1/1u2Rzmc0L+l2qRDMo8jtwl1IUE2fp5d2b4vwt4/FGfFmai7EUnB+h7YWL4ikJXBANmIi87 Va152OEPKa7YdeFpiE9oT5r7XU7xtsIS5rmhaitWUwO3xlgGWk80lzGZlHnsc2OsgUim/AXTv j1Q3giAQiuPppNaaP2SfWQTlckXLJ8WQcXGTLmJoGNZGx6Wxp4ZKTwLuk4iG7ATXmrQvSHIHG b/b5A6KxQ1DhYHZsBMHNaRs7+mXixO/6xD7aVScprZiy+8Eb6f3y/3BEYs8Ugx/+/VDu2VyZD u9phrIsGYvsi52EQDrMioLGa4yrkly7AS4l4DNh7nqHf4pp9QJY56EUszibqNLZ39kpjogAK/ +3GnLgtsb9wo1o2iFXs9NCNtQjbjhWV/qBk8dtUEQA== X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230117_232816_018913_69296B5F X-CRM114-Status: UNSURE ( 8.97 ) 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 From: Marcel Ziswiler Add Apalis BKL1_PWM functionality. Signed-off-by: Marcel Ziswiler --- Changes in v4: - New patch adding Apalis BKL1_PWM functionality. arch/arm64/boot/dts/freescale/imx8-apalis-eval.dtsi | 7 ++++++- .../arm64/boot/dts/freescale/imx8-apalis-ixora-v1.1.dtsi | 7 ++++++- .../arm64/boot/dts/freescale/imx8-apalis-ixora-v1.2.dtsi | 7 ++++++- arch/arm64/boot/dts/freescale/imx8-apalis-v1.1.dtsi | 9 +++++++-- 4 files changed, 25 insertions(+), 5 deletions(-) diff --git a/arch/arm64/boot/dts/freescale/imx8-apalis-eval.dtsi b/arch/arm64/boot/dts/freescale/imx8-apalis-eval.dtsi index 060454f25c98..003bc5377ce7 100644 --- a/arch/arm64/boot/dts/freescale/imx8-apalis-eval.dtsi +++ b/arch/arm64/boot/dts/freescale/imx8-apalis-eval.dtsi @@ -106,7 +106,12 @@ &lsio_pwm3 { /* TODO: Apalis PCIE1 */ -/* TODO: Apalis BKL1_PWM */ +/* Apalis BKL1_PWM */ +&pwm_lvds1 { + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_pwm_bkl>; + status = "okay"; +}; /* TODO: Apalis DAP1 */ diff --git a/arch/arm64/boot/dts/freescale/imx8-apalis-ixora-v1.1.dtsi b/arch/arm64/boot/dts/freescale/imx8-apalis-ixora-v1.1.dtsi index caaafc9900a6..97a7db1f875b 100644 --- a/arch/arm64/boot/dts/freescale/imx8-apalis-ixora-v1.1.dtsi +++ b/arch/arm64/boot/dts/freescale/imx8-apalis-ixora-v1.1.dtsi @@ -182,7 +182,12 @@ &lsio_pwm3 { /* TODO: Apalis PCIE1 */ -/* TODO: Apalis BKL1_PWM */ +/* Apalis BKL1_PWM */ +&pwm_lvds1 { + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_pwm_bkl>; + status = "okay"; +}; /* TODO: Apalis DAP1 */ diff --git a/arch/arm64/boot/dts/freescale/imx8-apalis-ixora-v1.2.dtsi b/arch/arm64/boot/dts/freescale/imx8-apalis-ixora-v1.2.dtsi index 5bc55a58db97..4186c6c9d5ec 100644 --- a/arch/arm64/boot/dts/freescale/imx8-apalis-ixora-v1.2.dtsi +++ b/arch/arm64/boot/dts/freescale/imx8-apalis-ixora-v1.2.dtsi @@ -227,7 +227,12 @@ &lsio_pwm3 { /* TODO: Apalis PCIE1 */ -/* TODO: Apalis BKL1_PWM */ +/* Apalis BKL1_PWM */ +&pwm_lvds1 { + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_pwm_bkl>; + status = "okay"; +}; /* TODO: Apalis DAP1 */ diff --git a/arch/arm64/boot/dts/freescale/imx8-apalis-v1.1.dtsi b/arch/arm64/boot/dts/freescale/imx8-apalis-v1.1.dtsi index 4c88678e2bc7..5508f0daf579 100644 --- a/arch/arm64/boot/dts/freescale/imx8-apalis-v1.1.dtsi +++ b/arch/arm64/boot/dts/freescale/imx8-apalis-v1.1.dtsi @@ -18,7 +18,7 @@ backlight: backlight { enable-gpios = <&lsio_gpio1 4 GPIO_ACTIVE_HIGH>; /* Apalis BKL1_ON */ pinctrl-names = "default"; pinctrl-0 = <&pinctrl_gpio_bkl_on>; - /* TODO: hook-up to Apalis BKL1_PWM */ + pwms = <&pwm_lvds1 0 6666667 PWM_POLARITY_INVERTED>; status = "disabled"; }; @@ -678,7 +678,12 @@ &lsio_pwm3 { /* TODO: On-module Wi-Fi */ -/* TODO: Apalis BKL1_PWM */ +/* Apalis BKL1_PWM */ +&pwm_lvds1 { + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_pwm_bkl>; + #pwm-cells = <3>; +}; /* TODO: Apalis DAP1 */ From patchwork Wed Jan 18 07:26:52 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marcel Ziswiler X-Patchwork-Id: 13105757 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 EC2C2C004D4 for ; Wed, 18 Jan 2023 07:32:50 +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=jJAsuH0YSyp3MLgGOvJt6FLVZ1DNEiUFjXV1RaB5tZ8=; b=K+5CCvWl1fEkg6 4lFBDC3kszCN0++cThVPcLwT813r5Tj1Wah8SQaYIOHkIeJ87H5ZQ08nPiVToJZ6GJTlpAR8Z/wnP knQ/otc4PelJIpFEdjrvHHEQx7EQXZAPhWfvyufliyDn6dgMRhKVmVyqIRYczF0H4zPSiH04Lnlnp WiR/TxYN+AyJd7B6dj0WRe+Z+86Tn9Z42AheUDqQsyL8T31XdyQEl6SGSAOeLwuSxz2bxdMFhK6DZ Sinxr+J3d3HjPB/v/yrnXoEWrfdYc5mLHYprU+IOqRpEIJChmI0NSA0XRshjkRurD1W0L6ajCcZfa VgV8fx45LA8J7i/pQQ6g==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1pI2v1-00HDvw-8U; Wed, 18 Jan 2023 07:31:35 +0000 Received: from mout.perfora.net ([74.208.4.196]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1pI2rq-00HCOb-Hj for linux-arm-kernel@lists.infradead.org; Wed, 18 Jan 2023 07:28:22 +0000 Received: from toolbox.int.toradex.com ([213.55.225.137]) by mrelay.perfora.net (mreueus002 [74.208.5.2]) with ESMTPSA (Nemesis) id 0MbODK-1ozPYM1cNY-00Ip5J; Wed, 18 Jan 2023 08:28:11 +0100 From: Marcel Ziswiler To: devicetree@vger.kernel.org Cc: linux-kernel@vger.kernel.org, linux-imx@nxp.com, linux-arm-kernel@lists.infradead.org, Marcel Ziswiler , Fabio Estevam , Krzysztof Kozlowski , Pengutronix Kernel Team , Rob Herring , Sascha Hauer , Shawn Guo Subject: [PATCH v4 14/17] arm64: dts: freescale: apalis-imx8: add flexcan functionality Date: Wed, 18 Jan 2023 08:26:52 +0100 Message-Id: <20230118072656.18845-15-marcel@ziswiler.com> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20230118072656.18845-1-marcel@ziswiler.com> References: <20230118072656.18845-1-marcel@ziswiler.com> MIME-Version: 1.0 X-Provags-ID: V03:K1:OhorGmlO61nFJqXepEKWLE5RlSaaZhhBH8ez/s2yDzPBvP4oZXt ZsEBMDuOPdcCTEc+5zo8+R89pU+oJd2WBGg/rCXzV4i5cR5bUafrgo90b2SLPsiKxIR9qXR d8X+qMFKEGqwKwQjsdPvMUydoYjnXi3Oqy/7hLOhqza/HsOZiQvCDCNWSLvYgF7PC2nmMca f0T3qC07hRdPFjD+v/bLQ== UI-OutboundReport: notjunk:1;M01:P0:sfv1mYb4Y0k=;EOqfLmYSmsbZRph7Kvkj8pSqb9n /bCIuXc0jyytvYt1aUcn1b9JXKDCWEnUNy0XZ+oLYbakgSwPAxc1pOlFbuen/ErfIrgrsZN8Z 227sV5Z4Eat3oh7Gm+4rnZR8I6UL8I00RikVgtD9YTVzYKvIf9DChpNLPcxlhHHrbhHgvDaIt bU3B7JSTZ1yj9/kvB28Z7QbWzkoQ5IeKwf91YVUN96PGLbzaSKNCFCII55jGb2sdLEQ2JuQRi 1FCyn1IM4Hi2+hlPfpWYfW9u1O6IXPjDif7uAdQXEFhbI3KYq3rlEUsty+ZW9wJUah8VcrF85 qOcaA/bO+HCNxQR0T/SRNVGjRNTr6Mi6eP8bvNNM3ESZWBD5tJSPq7GqfjGDIZSlfwcGGBCMn FSdKD8uDrlMt7eseWr/12BrClhrX3AwfRZqN5+YKg3/clcF1+/4gd4dWlvd3KkW4vatA8HYOz 4ux1V3coclYoCtGygEGYg8WxVRrictLKlq/CFAXPSqwScnSNflSkmBGGiQB6MJp1zOTb56umD qnkOwaVFNXumrdxExIbrw1cTuXXZsi2kwW7nuY95CYWdAPASoyc8yQhI0YzpqrfVn8Surygs4 sjqnCgzyCPu1XW5UzOyF1b2fgdB06gc5MUDJgNmI6pErp1wDjCiBoWTwtJ1Fy0NqNKBBE/SzM XAAtCXC5/9CfXh796fITRiCalLM8rANvn8y+RhhuRR8LFShDup7V8LGrwZ1V/3w= X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230117_232818_735944_0C3E2113 X-CRM114-Status: UNSURE ( 9.24 ) 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 From: Marcel Ziswiler Add Apalis CAN1, CAN2 and optional CAN3 functionality. Signed-off-by: Marcel Ziswiler --- Changes in v4: - New patch adding flexcan functionality. .../boot/dts/freescale/imx8-apalis-eval.dtsi | 10 +++++++++- .../dts/freescale/imx8-apalis-ixora-v1.1.dtsi | 10 +++++++++- .../dts/freescale/imx8-apalis-ixora-v1.2.dtsi | 12 +++++++++++- .../boot/dts/freescale/imx8-apalis-v1.1.dtsi | 18 +++++++++++++++--- 4 files changed, 44 insertions(+), 6 deletions(-) diff --git a/arch/arm64/boot/dts/freescale/imx8-apalis-eval.dtsi b/arch/arm64/boot/dts/freescale/imx8-apalis-eval.dtsi index 003bc5377ce7..3212877773e3 100644 --- a/arch/arm64/boot/dts/freescale/imx8-apalis-eval.dtsi +++ b/arch/arm64/boot/dts/freescale/imx8-apalis-eval.dtsi @@ -35,7 +35,15 @@ &fec1 { status = "okay"; }; -/* TODO: CAN */ +/* Apalis CAN1 */ +&flexcan1 { + status = "okay"; +}; + +/* Apalis CAN2 */ +&flexcan2 { + status = "okay"; +}; /* TODO: GPU */ diff --git a/arch/arm64/boot/dts/freescale/imx8-apalis-ixora-v1.1.dtsi b/arch/arm64/boot/dts/freescale/imx8-apalis-ixora-v1.1.dtsi index 97a7db1f875b..6e248d05992f 100644 --- a/arch/arm64/boot/dts/freescale/imx8-apalis-ixora-v1.1.dtsi +++ b/arch/arm64/boot/dts/freescale/imx8-apalis-ixora-v1.1.dtsi @@ -75,7 +75,15 @@ &fec1 { status = "okay"; }; -/* TODO: CAN */ +/* Apalis CAN1 */ +&flexcan1 { + status = "okay"; +}; + +/* Apalis CAN2 */ +&flexcan2 { + status = "okay"; +}; /* TODO: GPU */ diff --git a/arch/arm64/boot/dts/freescale/imx8-apalis-ixora-v1.2.dtsi b/arch/arm64/boot/dts/freescale/imx8-apalis-ixora-v1.2.dtsi index 4186c6c9d5ec..d221f3aee241 100644 --- a/arch/arm64/boot/dts/freescale/imx8-apalis-ixora-v1.2.dtsi +++ b/arch/arm64/boot/dts/freescale/imx8-apalis-ixora-v1.2.dtsi @@ -105,7 +105,17 @@ &fec1 { status = "okay"; }; -/* TODO: CAN */ +/* Apalis CAN1 */ +&flexcan1 { + xceiver-supply = <®_can1_supply>; + status = "okay"; +}; + +/* Apalis CAN2 */ +&flexcan2 { + xceiver-supply = <®_can2_supply>; + status = "okay"; +}; /* TODO: GPU */ diff --git a/arch/arm64/boot/dts/freescale/imx8-apalis-v1.1.dtsi b/arch/arm64/boot/dts/freescale/imx8-apalis-v1.1.dtsi index 5508f0daf579..545618799852 100644 --- a/arch/arm64/boot/dts/freescale/imx8-apalis-v1.1.dtsi +++ b/arch/arm64/boot/dts/freescale/imx8-apalis-v1.1.dtsi @@ -268,11 +268,23 @@ ethphy0: ethernet-phy@7 { }; }; -/* TODO: Apalis CAN1 (driver upstream but device tree part missing) */ +/* Apalis CAN1 */ +&flexcan1 { + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_flexcan1>; +}; -/* TODO: Apalis CAN2 (driver upstream but device tree part missing) */ +/* Apalis CAN2 */ +&flexcan2 { + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_flexcan2>; +}; -/* TODO: Apalis CAN3 (optional, driver upstream but device tree part missing) */ +/* Apalis CAN3 (optional) */ +&flexcan3 { + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_flexcan3>; +}; /* TODO: Apalis HDMI1 */ From patchwork Wed Jan 18 07:26:53 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marcel Ziswiler X-Patchwork-Id: 13105759 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 93D17C004D4 for ; Wed, 18 Jan 2023 07:33:50 +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=aPWAar6+OcGoBsmJejnrX9Rbhg8BLMvCLmXug5WL3Og=; b=Kx+T1QZAtT2ZBt cqoOgHomKOGtsgzrcvMnVW3EX3vuJaW9J/KOEnXUGLgJ/5m8ggetWKM3ABXHG+kJYDxWQ8Mu632I/ 4JWuvAzwvU336hB1vVRi/EsJ2251K9THD1fioQSoEKKrKPl9kJejrm3Sic+/CmVIJy6zWEl+yymVb WIvmJRJs7y/RPWqHjdQsp0cdBKsXocKtLOwpf5m8C7cRW6pwV8ze+y2m8s+1wgHcu3CY7bha5pqQ9 ApE36EiVyku0Dgcec2iZWegQ1fTT4oec9eT6qhfkgyFNLz+CWU3tg2jcDKqWN6JqgsM+OqW4fxYz3 mNGh0MAfjQPOxFB+O2NQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1pI2w9-00HEW4-Tb; Wed, 18 Jan 2023 07:32:46 +0000 Received: from mout.perfora.net ([74.208.4.196]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1pI2ru-00HCQN-Eh for linux-arm-kernel@lists.infradead.org; Wed, 18 Jan 2023 07:28:23 +0000 Received: from toolbox.int.toradex.com ([213.55.225.137]) by mrelay.perfora.net (mreueus002 [74.208.5.2]) with ESMTPSA (Nemesis) id 0Lk6Xc-1okLfr2Hko-00c99f; Wed, 18 Jan 2023 08:28:14 +0100 From: Marcel Ziswiler To: devicetree@vger.kernel.org Cc: linux-kernel@vger.kernel.org, linux-imx@nxp.com, linux-arm-kernel@lists.infradead.org, Marcel Ziswiler , Fabio Estevam , Krzysztof Kozlowski , Pengutronix Kernel Team , Rob Herring , Sascha Hauer , Shawn Guo Subject: [PATCH v4 15/17] arm64: dts: freescale: apalis-imx8: enable messaging units Date: Wed, 18 Jan 2023 08:26:53 +0100 Message-Id: <20230118072656.18845-16-marcel@ziswiler.com> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20230118072656.18845-1-marcel@ziswiler.com> References: <20230118072656.18845-1-marcel@ziswiler.com> MIME-Version: 1.0 X-Provags-ID: V03:K1:kwlDKTxz2LQEsfdQcwLszuVEN7aZfQEMZ6X3zGMdH3EDcz3FqR+ Ec4Mi/HU+H+NZJlohABP1qljdrhPNVMz32bmUsJfJ6hZ4ToLYGbDsvITJWewwqBxeNRJbvA HYDfY68/4tPLVVgV6cOWqY3/zSum2qzagf5NbPUESraLpamq4Na5Vbs1cHBDzHZVROE2Iv/ OKva3J475z/F+lIUtpyag== UI-OutboundReport: notjunk:1;M01:P0:KDOwYFoE6aY=;+WB+abvHxXUBe+e9QdV7rQE2u+o kqu7RYY4XH7ScO304MjXlte1UBKUC8yiHThFYvsEhBJFwXRe0LKTO1bO0dPhU7tzKCw04QEtG tYthO2TlTPv+cebTAH3bnWOIoeTP5ZmwoJygOm5tr5I++emeyVZwBbK9nj3TjWf7SoV1ZEwBF itOCul62HmtMlOOhsAMZxjNftwdP9ifoi1NedLVEdoItgwbITUVJVtgVSlaQ22Y0vh3ZePg7u 6LPpoDbycYdmlfzhahGVeH4H0JD8FCQIPUcQ+YANW/NBIKMIDK6xTXUQdb3MrHrhSCiccz1o9 raJ+ZwAm8j+OPMSVThAsK0Q/IIAX2Wc4pJmitDdmNr1cm45BEYvOgtGGnHs4VnaWXJFPKrEQ2 CGpq5h4Jh0rJEXUzEwwqR5BA2vd0D90683qPVYo6w3SgIOrlF57tHD0dvAm/YHewK2i0Kd3p+ cX4EDcX/MVqvx72FN3bcEutOm3mbtDZCXmFvUyxa5cDKlXUqvUkFNzbXBhkwf+1Mm6Y3nCZ2q atp30xf1TEAfHkSuRVHCTwKErXdmd1VDufn3NdWVFpfmATMyEPgblAqoxLPiIIsmt1s2WR8Zs TkSTMYxlq5P66Epk8h9pjqhKvkD5gmRsiGLGNQtv6WicDFxIErMjLS3yWq4QjUAApS8kPhWJO QiykRkQel6IvPEuz7lZXErF1hHz+/hfS2ot+PHE7nE5hM1mMkRHcIaqsMt2P8sU= X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230117_232822_614067_6040E37A X-CRM114-Status: UNSURE ( 8.37 ) 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 From: Marcel Ziswiler Enable messaging units aka MUs. Signed-off-by: Marcel Ziswiler --- Changes in v4: - New patch enabling messaging units aka MUs. arch/arm64/boot/dts/freescale/imx8-apalis-v1.1.dtsi | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/arch/arm64/boot/dts/freescale/imx8-apalis-v1.1.dtsi b/arch/arm64/boot/dts/freescale/imx8-apalis-v1.1.dtsi index 545618799852..70c00b92cb05 100644 --- a/arch/arm64/boot/dts/freescale/imx8-apalis-v1.1.dtsi +++ b/arch/arm64/boot/dts/freescale/imx8-apalis-v1.1.dtsi @@ -684,7 +684,18 @@ &lsio_pwm3 { #pwm-cells = <3>; }; -/* TODO: Messaging Units */ +/* Messaging Units */ +&mu_m0{ + status = "okay"; +}; + +&mu1_m0{ + status = "okay"; +}; + +&mu2_m0{ + status = "okay"; +}; /* TODO: Apalis PCIE1 */ From patchwork Wed Jan 18 07:26:54 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marcel Ziswiler X-Patchwork-Id: 13105760 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 B5EE3C32793 for ; Wed, 18 Jan 2023 07:34: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=m68cndJgRdguHMxVmL5Chw9wXJmwbRblY0+nSzhOMNw=; b=oG2EUdwHFzg7Mq +SFW238U02uCYPl09eq8emEWD1rrzkooj2P0FrobefjjoRy2UHw3uMuj2xmDlLREDo+OKkXn9EEbN oht8Bp/EkYLyclcoJs6Y2IA9d2boImSrtGvZhmXiwQviiNkYidnV9A0XNK9iUJvQ3EKjabY1TOoaq mlQm9YmuXQvFeWjyjdo1zzpYaOiJbopk77r9af964D8MoFVjAoS66pI9BEnhize7Zg+sxVyxbSPVp uy6+HvUIrPFMYfg9kQyCvzYeyP1wEnjg8JwJ6SFiHFFeeh67yhS9cjtFekW2/NAicWehHD585qwoc c2gdgo/Lv6Ub1Z+vvUiA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1pI2wl-00HEov-DC; Wed, 18 Jan 2023 07:33:23 +0000 Received: from mout.perfora.net ([74.208.4.194]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1pI2rx-00HCRp-9C for linux-arm-kernel@lists.infradead.org; Wed, 18 Jan 2023 07:28:26 +0000 Received: from toolbox.int.toradex.com ([213.55.225.137]) by mrelay.perfora.net (mreueus002 [74.208.5.2]) with ESMTPSA (Nemesis) id 0Lh8XB-1otzex3rKZ-00oSyE; Wed, 18 Jan 2023 08:28:17 +0100 From: Marcel Ziswiler To: devicetree@vger.kernel.org Cc: linux-kernel@vger.kernel.org, linux-imx@nxp.com, linux-arm-kernel@lists.infradead.org, Marcel Ziswiler , Fabio Estevam , Krzysztof Kozlowski , Pengutronix Kernel Team , Rob Herring , Sascha Hauer , Shawn Guo Subject: [PATCH v4 16/17] arm64: dts: freescale: apalis-imx8: fix reserved-memory node names Date: Wed, 18 Jan 2023 08:26:54 +0100 Message-Id: <20230118072656.18845-17-marcel@ziswiler.com> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20230118072656.18845-1-marcel@ziswiler.com> References: <20230118072656.18845-1-marcel@ziswiler.com> MIME-Version: 1.0 X-Provags-ID: V03:K1:HmKRXVYH4yGPrupSIwZB9fowjSMc6Boy1FuMZBIZ7AjIstGAxks eznLkN13AxAMFDD2EFsIHMJdkphXtpE9jeuLLk+CaZa/2XYa18A8SSpnHd9vEEklBrkLX05 VKvZV0BpR+a8ucqA1CGorJaI6I64BVGVEJJHsrR3d6/s+6wFDe4J5ckhYFxrUWxcJwiSrAw Q4AKn5XWxPK0gpoESgDdQ== UI-OutboundReport: notjunk:1;M01:P0:7G61kjY2w4g=;1SE0RQfTPa/5VNK7/96ZQ35HFG4 DXFMcncfjNcS+yrlWJgA/Y0OZmtW6gZkG/CZriCBbpZa8Gz/2RdWVVz2XgpqZvmJ20DTPeE8c 3Kt4D1/gD1k8VRhDNam2m9k4MF+ftfq1tYjExTXLt54OoQAlDJqk5olAm/kdbaljWVWWA9i0f ee9QZXDjk4BVpDdo8C5nxJDKINIh3M9j6WR3dj4LUU1WwebkKFNnCVN8ZHQeA/Q/MBbd2z4Ox irlvswyv6pUad5hOCJjJSJeSLphKLQaOkumzcF9pzBFdLNDg30k7XtCha1uYlzLCIZkOVhmb2 u10Db+DkMREOS6m8MaJgYcSUihr9FUhdueDKoiwPe6xcrwcSLKI0lzx5sVvyHK9021fYGTjGx xiYWVxQFIime+bGPnzRvELv8ISu/YfaUtzOyduiwqOrbGFtOtW2tuDFyx0JZwjOzCpkCidEsx P1ZL7fQN3ygi1rqdqWK6nfmqEgigvhkSXd5w0IOpP3FRHHpH966kOwjpJGnS1fz1nI51Kp7ns WZKZ/1gYAOcCOQ8wh+fkEVD/t2dWTDiX5PZ3AYkQtpAFRtSzMPreqWs1OlEp4FnHhKS4/Lcmu nc/MffddGSoQ6vAWAvUGGv32pdLW8YgrERKfJUTdc8kRWUTmPzexMZmexAqR1wiF5o1AQTsAg +DB22aiz5NOv/OfsCo2OjBkbYUCve78kxOPYEx7IrA== X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230117_232825_420144_C453F913 X-CRM114-Status: UNSURE ( 7.83 ) 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 From: Marcel Ziswiler Fix reserved-memory node names using dashes rather than underscores. Signed-off-by: Marcel Ziswiler --- Changes in v4: - New patch fixing reserved-memory node names. arch/arm64/boot/dts/freescale/imx8-apalis-v1.1.dtsi | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/arch/arm64/boot/dts/freescale/imx8-apalis-v1.1.dtsi b/arch/arm64/boot/dts/freescale/imx8-apalis-v1.1.dtsi index 70c00b92cb05..6217e0a48f96 100644 --- a/arch/arm64/boot/dts/freescale/imx8-apalis-v1.1.dtsi +++ b/arch/arm64/boot/dts/freescale/imx8-apalis-v1.1.dtsi @@ -133,17 +133,17 @@ reserved-memory { #size-cells = <2>; ranges; - decoder_boot: decoder_boot@84000000 { + decoder_boot: decoder-boot@84000000 { no-map; reg = <0 0x84000000 0 0x2000000>; }; - encoder1_boot: encoder1_boot@86000000 { + encoder1_boot: encoder1-boot@86000000 { no-map; reg = <0 0x86000000 0 0x200000>; }; - encoder2_boot: encoder2_boot@86200000 { + encoder2_boot: encoder2-boot@86200000 { no-map; reg = <0 0x86200000 0 0x200000>; }; @@ -170,7 +170,7 @@ vdevbuffer: vdevbuffer@90400000 { no-map; }; - decoder_rpc: decoder_rpc@92000000 { + decoder_rpc: decoder-rpc@92000000 { no-map; reg = <0 0x92000000 0 0x200000>; }; @@ -180,12 +180,12 @@ dsp_reserved: dsp@92400000 { reg = <0 0x92400000 0 0x2000000>; }; - encoder1_rpc: encoder1_rpc@94400000 { + encoder1_rpc: encoder1-rpc@94400000 { no-map; reg = <0 0x94400000 0 0x700000>; }; - encoder2_rpc: encoder2_rpc@94b00000 { + encoder2_rpc: encoder2-rpc@94b00000 { no-map; reg = <0 0x94b00000 0 0x700000>; }; From patchwork Wed Jan 18 07:26:55 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marcel Ziswiler X-Patchwork-Id: 13105761 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 54BC9C004D4 for ; Wed, 18 Jan 2023 07:35:19 +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=A8lHR6KkSNE9lO2tLTZS8fNfbSzHR9i1laNla+DGAHw=; b=HUianLCtfVVJSY PtxAyFvef/eKz+CVAJDLcnamQ90S7HnI3rl3yr9BboICkTRjAzWYWG5P9g7kNAf6DoNq687xNs7ee mGfGMoU3Nojq58MDx1nAMasnt1Yb/StGRqDpt4PbESMl0vwkaakcUVZzvMn66zsTqERj4KEvM7+3A xswKXMcV8cmnbVByIW/1qUAdwaJvsKqf4uxBSrHkbYk0qGrqJ6OSuSVGSfOi6Iv61ULpunHdMppJ9 guDMaLbP46Y0sZ56+YZ5GwHL4QUsmz+74G8K31gOpAOmofv1eN0MAvv34edemyvKBj0KRlm7bLksB VWSzx5FRvXsjcC73jJPA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1pI2xU-00HFAS-Sc; Wed, 18 Jan 2023 07:34:09 +0000 Received: from mout.perfora.net ([74.208.4.197]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1pI2s0-00HCTn-KW for linux-arm-kernel@lists.infradead.org; Wed, 18 Jan 2023 07:28:30 +0000 Received: from toolbox.int.toradex.com ([213.55.225.137]) by mrelay.perfora.net (mreueus002 [74.208.5.2]) with ESMTPSA (Nemesis) id 0M2bYp-1oPncX1ond-00sQx2; Wed, 18 Jan 2023 08:28:21 +0100 From: Marcel Ziswiler To: devicetree@vger.kernel.org Cc: linux-kernel@vger.kernel.org, linux-imx@nxp.com, linux-arm-kernel@lists.infradead.org, Marcel Ziswiler , Fabio Estevam , Krzysztof Kozlowski , Pengutronix Kernel Team , Rob Herring , Sascha Hauer , Shawn Guo Subject: [PATCH v4 17/17] arm64: dts: freescale: apalis-imx8: enable vpu Date: Wed, 18 Jan 2023 08:26:55 +0100 Message-Id: <20230118072656.18845-18-marcel@ziswiler.com> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20230118072656.18845-1-marcel@ziswiler.com> References: <20230118072656.18845-1-marcel@ziswiler.com> MIME-Version: 1.0 X-Provags-ID: V03:K1:5rAhW80Ovxy9KtsBhzm1WJlP0qfWqOKjQ/UtfptOMvek2i8I+I9 S4rZFXHOgtAkJOomr0+F2N8tnu/A9G63As5kRrtcH7knXT8GZPqYzwIZ2KLpo9fKMI/0XTz ssRJj5KUPCr11ojphitOyZg8zlatnWt6gxdtdx6Qo4Ij6ZKLp0cbmpLj8XLDKgs4n7BtoYg WGykQxxGpioaJWSt6rVaA== UI-OutboundReport: notjunk:1;M01:P0:KPqVSrklASc=;clesvU5X50K2jTXzZMTQUgrVhHw kIeRlXZJJNd4//AHkhA5okE7v8dTZJQyb+ZSn+E3vsmlcL/mgov5n8wa6aqcNHBmcBdALrXZi wPTzSZaD/iwCQvjJOphDttI9hkc4zq9pQykZtxbPmyHl5cUGQJhx5OtSMR1D9denNmmMA9VV2 6jQD7k3Z5ESQO8vzC4StxDoheKF7WpS8c4VnL9dtsSVZjd2NdO3LeUuw/QlM53FbTp1fg0GRV GV1zSzwXJB4TAi+1UfxHj4i5JFIciwOq7xHTVXvYweTnhKAie8o7P1zlWUNk0poQ0S18LlwZf 1Jfo/jibA06xFlyszi0BoTXUP+qqbkDQWrrytzMWazKN5rRhdIO1sI3vQDo/RMW6kuA8DfBWL GxsUeXTjhxWakdrBbXXi0NIKOIToRfbZQyXMWOxS5kQrsDfxCiiPPlvHAmn1ySADIETE0XBwR cjR+AJYO+KLKcZGtYoUnHC3/RU8VMxmzSosrIdWO+gkcwKyyEVs6isQsAvLFyl7njksVuDCzl s0cHn5nQwBypIQXy5tYTW41yq4ylwo+Rh5+nK6fel6/0UOY0AdfFnnABGhtaWDRZ0KcJMKryp TDQks+qmC7bG4NyW94XdNi2/JHWFyl96iXUIeczOgXS+79ifjytQpXzuMyQNaQENcy7qE0vvA AhWvXgQ8N5Ta2JXIaxllwpOzeUXGJB/dOzg36JFQnQ== X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230117_232828_791191_76CC1774 X-CRM114-Status: UNSURE ( 7.97 ) 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 From: Marcel Ziswiler Enable Video Processing Unit (VPU) decoder and encoder functionality. Signed-off-by: Marcel Ziswiler --- Changes in v4: - New patch enabling VPU functionality. .../boot/dts/freescale/imx8-apalis-v1.1.dtsi | 24 ++++++++++++++++++- 1 file changed, 23 insertions(+), 1 deletion(-) diff --git a/arch/arm64/boot/dts/freescale/imx8-apalis-v1.1.dtsi b/arch/arm64/boot/dts/freescale/imx8-apalis-v1.1.dtsi index 6217e0a48f96..37c5fa20f0a4 100644 --- a/arch/arm64/boot/dts/freescale/imx8-apalis-v1.1.dtsi +++ b/arch/arm64/boot/dts/freescale/imx8-apalis-v1.1.dtsi @@ -781,7 +781,29 @@ &usdhc3 { pinctrl-2 = <&pinctrl_usdhc3_200mhz>, <&pinctrl_sd1_cd>; }; -/* TODO: Video Processing Unit (driver upstream but device tree part missing) */ +/* Video Processing Unit */ +&vpu { + compatible = "nxp,imx8qm-vpu"; + status = "okay"; +}; + +&vpu_core0 { + memory-region = <&decoder_boot>, <&decoder_rpc>; + reg = <0x2d080000 0x10000>; + status = "okay"; +}; + +&vpu_core1 { + memory-region = <&encoder1_boot>, <&encoder1_rpc>; + reg = <0x2d090000 0x10000>; + status = "okay"; +}; + +&vpu_core2 { + memory-region = <&encoder2_boot>, <&encoder2_rpc>; + reg = <0x2d0a0000 0x10000>; + status = "okay"; +}; &iomuxc { pinctrl-names = "default";