Received: by 2002:a05:6a10:9e8c:0:0:0:0 with SMTP id y12csp2537455pxx; Sun, 1 Nov 2020 01:18:32 -0800 (PST) X-Google-Smtp-Source: ABdhPJyKw0bVPv7m1mki6wXAxJv13VKoB/wujk2Fn5EGaYZhBpyIR8C9Yv2lyA3VUXAMp0Iv8nOc X-Received: by 2002:a17:907:20c3:: with SMTP id qq3mr7273589ejb.274.1604222312145; Sun, 01 Nov 2020 01:18:32 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1604222312; cv=none; d=google.com; s=arc-20160816; b=AQJBPjWoToblXOChn3KyW5/KJZ7SRrtjts9pDNIrZLjEmIttS66lZiOAjkOUnoMcpC VrbRGiMOiCdegnXHc4fYVoB9iCHZg08YF/yxI9TtUFevcTLd9dzIay2Ci753ffd71MAR Xx4QU5pAlHLTgEXd8DlZ/mRi+c+NHFgi82KAZ6zs1N7J0pIkn0fWiIfOFm6+WP+9wsRO WiUnUPOu6YEuWmJjZuMtzsimRMQp6CnGDrDlEosSOviakVeuCxjdewce+tHie4R7rlfz BWrcjFR0mDgFQOqxlaqJSguDJYrFrtkZ4/dt/R60T9ysTAG60+vrlwSkeAoxs8e2eaIu S4Lg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=zpKV2QP+kEylOb1SFoHKtbgf6/k7SfZv0Hkd0VNiGhM=; b=tdkI7pVd7Ej+CNp7FlAhWgUilp/Xpel401oXoHgBt3DG5CKkN8DnTur4IffRVIVv8G 4QKSy1NtlG+MPDrzAQLKAD+sXo8tw1k6l4zQHdH0ohj4DkSzdVKC9rlqbRlR2jfy2AQM ok/Ua+uC4uuBKxfNPQfQoPDI72rKluaFDzZlCeHqw0NqfuGuEcWYIHjAsOfBY6H3oL46 gvRQ4JmyXMwN3lTG47o9y0T+yeJKdNKMadoMed3N1WIWYMd6VPhMnNmPGftjKvP4fZ5K E6mclJE9us7sfGAJqg34oplBYvKMM3/ZxgBWQ77kMIagMm+U9304YCvLOTPuqA5CQwPj tGkA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=zX+bdx7p; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id bi26si9307645edb.553.2020.11.01.01.18.07; Sun, 01 Nov 2020 01:18:32 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=zX+bdx7p; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726145AbgKAJQk (ORCPT + 99 others); Sun, 1 Nov 2020 04:16:40 -0500 Received: from mail.kernel.org ([198.145.29.99]:52156 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726117AbgKAJQd (ORCPT ); Sun, 1 Nov 2020 04:16:33 -0500 Received: from dragon (80.251.214.228.16clouds.com [80.251.214.228]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 8FEA321D40; Sun, 1 Nov 2020 09:16:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1604222192; bh=JIuhINLCifrVA/vA+ij5+ON0MKl2JIOZ/y8TBt/teRQ=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=zX+bdx7p4ZR8/GaB7MFDU7+ujpUbA2N+6ZNqqdKSdQY1UO8303OvVIiOrgvXKAVAT aPBH0bmyPk9oDVE6IJSPt+OZiR/0DsgLZOE1f6UsvuE0nIzAyyC6znjOb8YcS3IuDs /8iU5P1SZgLL2g+upiwVZ37zJHnXlwf/9lYZxdgY= Date: Sun, 1 Nov 2020 17:16:25 +0800 From: Shawn Guo To: Joakim Zhang Cc: s.hauer@pengutronix.de, festevam@gmail.com, linux-imx@nxp.com, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, mkl@pengutronix.de Subject: Re: [PATCH] arm64: dts: imx8mp-evk: add CAN support Message-ID: <20201101091625.GL31601@dragon> References: <1603693376-17206-1-git-send-email-qiangqing.zhang@nxp.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1603693376-17206-1-git-send-email-qiangqing.zhang@nxp.com> User-Agent: Mutt/1.9.4 (2018-02-28) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Oct 26, 2020 at 02:22:56PM +0800, Joakim Zhang wrote: > Add CAN device node and pinctrl on i.MX8MP evk board. > > Signed-off-by: Joakim Zhang > --- > arch/arm64/boot/dts/freescale/imx8mp-evk.dts | 62 ++++++++++++++++++++ > arch/arm64/boot/dts/freescale/imx8mp.dtsi | 30 ++++++++++ > 2 files changed, 92 insertions(+) > > diff --git a/arch/arm64/boot/dts/freescale/imx8mp-evk.dts b/arch/arm64/boot/dts/freescale/imx8mp-evk.dts > index ad66f1286d95..85aaed7dc4bc 100644 > --- a/arch/arm64/boot/dts/freescale/imx8mp-evk.dts > +++ b/arch/arm64/boot/dts/freescale/imx8mp-evk.dts > @@ -33,6 +33,28 @@ > <0x1 0x00000000 0 0xc0000000>; > }; > > + reg_can1_stby: regulator-can1-stby { > + compatible = "regulator-fixed"; > + regulator-name = "can1-stby"; > + pinctrl-names = "default"; > + pinctrl-0 = <&pinctrl_flexcan1_reg>; > + regulator-min-microvolt = <3300000>; > + regulator-max-microvolt = <3300000>; > + gpio = <&gpio5 5 GPIO_ACTIVE_HIGH>; > + enable-active-high; > + }; > + > + reg_can2_stby: regulator-can2-stby { > + compatible = "regulator-fixed"; > + regulator-name = "can2-stby"; > + pinctrl-names = "default"; > + pinctrl-0 = <&pinctrl_flexcan2_reg>; > + regulator-min-microvolt = <3300000>; > + regulator-max-microvolt = <3300000>; > + gpio = <&gpio4 27 GPIO_ACTIVE_HIGH>; > + enable-active-high; > + }; > + > reg_usdhc2_vmmc: regulator-usdhc2 { > compatible = "regulator-fixed"; > pinctrl-names = "default"; > @@ -45,6 +67,20 @@ > }; > }; > > +&flexcan1 { > + pinctrl-names = "default"; > + pinctrl-0 = <&pinctrl_flexcan1>; > + xceiver-supply = <®_can1_stby>; > + status = "okay"; > +}; > + > +&flexcan2 { > + pinctrl-names = "default"; > + pinctrl-0 = <&pinctrl_flexcan2>; > + xceiver-supply = <®_can2_stby>; > + status = "disabled";/* can2 pin conflict with pdm */ > +}; > + > &fec { > pinctrl-names = "default"; > pinctrl-0 = <&pinctrl_fec>; > @@ -144,6 +180,32 @@ > >; > }; > > + pinctrl_flexcan1: flexcan1grp { > + fsl,pins = < > + MX8MP_IOMUXC_SPDIF_RX__CAN1_RX 0x154 > + MX8MP_IOMUXC_SPDIF_TX__CAN1_TX 0x154 > + >; > + }; > + > + pinctrl_flexcan2: flexcan2grp { > + fsl,pins = < > + MX8MP_IOMUXC_SAI5_MCLK__CAN2_RX 0x154 > + MX8MP_IOMUXC_SAI5_RXD3__CAN2_TX 0x154 > + >; > + }; > + > + pinctrl_flexcan1_reg: flexcan1reggrp { > + fsl,pins = < > + MX8MP_IOMUXC_SPDIF_EXT_CLK__GPIO5_IO05 0x154 /* CAN1_STBY */ > + >; > + }; > + > + pinctrl_flexcan2_reg: flexcan2reggrp { > + fsl,pins = < > + MX8MP_IOMUXC_SAI2_MCLK__GPIO4_IO27 0x154 /* CAN2_STBY */ > + >; > + }; > + > pinctrl_gpio_led: gpioledgrp { > fsl,pins = < > MX8MP_IOMUXC_NAND_READY_B__GPIO3_IO16 0x19 > diff --git a/arch/arm64/boot/dts/freescale/imx8mp.dtsi b/arch/arm64/boot/dts/freescale/imx8mp.dtsi > index 6038f66aefc1..cc123a5e3f7e 100644 > --- a/arch/arm64/boot/dts/freescale/imx8mp.dtsi > +++ b/arch/arm64/boot/dts/freescale/imx8mp.dtsi > @@ -545,6 +545,36 @@ > status = "disabled"; > }; > > + flexcan1: can@308c0000 { > + compatible = "fsl,imx8mp-flexcan", "fsl,imx6q-flexcan"; > + reg = <0x308c0000 0x10000>; > + interrupts = ; > + clocks = <&clk IMX8MP_CLK_IPG_ROOT>, > + <&clk IMX8MP_CLK_CAN1_ROOT>; > + clock-names = "ipg", "per"; > + assigned-clocks = <&clk IMX8MP_CLK_CAN1>; > + assigned-clock-parents = <&clk IMX8MP_SYS_PLL1_40M>; > + assigned-clock-rates = <40000000>; > + fsl,clk-source= /bits/ 8 <0>; Missing space before '='. > + fsl,stop-mode = <&gpr 0x10 4>; > + status = "disabled"; > + }; > + > + flexcan2: can@308d0000 { > + compatible = "fsl,imx8mp-flexcan", "fsl,imx6q-flexcan"; > + reg = <0x308d0000 0x10000>; > + interrupts = ; > + clocks = <&clk IMX8MP_CLK_IPG_ROOT>, > + <&clk IMX8MP_CLK_CAN2_ROOT>; > + clock-names = "ipg", "per"; > + assigned-clocks = <&clk IMX8MP_CLK_CAN2>; > + assigned-clock-parents = <&clk IMX8MP_SYS_PLL1_40M>; > + assigned-clock-rates = <40000000>; > + fsl,clk-source= /bits/ 8 <0>; Ditto Shawn > + fsl,stop-mode = <&gpr 0x10 5>; > + status = "disabled"; > + }; > + > crypto: crypto@30900000 { > compatible = "fsl,sec-v4.0"; > #address-cells = <1>; > -- > 2.17.1 >