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 */