Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp317074pxb; Mon, 2 Nov 2020 23:41:13 -0800 (PST) X-Google-Smtp-Source: ABdhPJySbk3U4EzAI/yWx6RLmvHq4MbUos6U9YkzJF0Wkqg9LKLz/lwbbuwIyAbjt+0u8D6mJfYs X-Received: by 2002:a17:906:d285:: with SMTP id ay5mr18628109ejb.84.1604389273350; Mon, 02 Nov 2020 23:41:13 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1604389273; cv=none; d=google.com; s=arc-20160816; b=CVmr2Z1H19utVy1H2UjbNcgP0IHpsn9Y6vtC3YawgNnH41AxfXwJR4qEsaU1ljj4e/ xMlRfchxX1u1XIh7q64oGrxufDVLfcEN2tQcjWzCjyYEgOPN+G3pd8/rdc6ckfpMZMQj DrQeATmwtWDtG63R89rkuEzjAhZzdiyLmuW30TDG2DIjahtLROe4GC8pLdC57Cp79UjV Px1zSDlRjYF9bN9xSt7zuwvbYlyyOg4R30THsGXT6KzHT1I2wW5nUw82zbEw2Gv7sNL6 i/rvQcFDG8sKVzHbDeAAQEDC8sd52Wu8Y/FIC/EofcPZTlfJUIzHRxEj+v/ZeTZ6AsEN 8NkQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=em2cWn9FiPjrfBKmSbh8ClvNRYQpKiCRfEkyrqZc8Y0=; b=QQ7RwkzHq5FuUT1R9cnmFf/Zt70H4XJcR/RfOkgXUk5+KLaCVYgvGUQ1DpTFcRMynY d1C3XEZ8rzx/ql+W9rhQju83VSNcCkLA+k96FZr41Fk3AOZ4zrmN1gpvYmDoSOmfaAJE UwfHc8ITu0M0A4ul/LV6mTnQmREvn6wdLifPgqNUDT7RZY8GIxTjZ+1sWVxfJvpXfilA MKzGGjikSJSknRWgxZYt7uG/FlVRDPdIwOSu0iHEWx7n6A26tuxWe/OXmMm54O+3xxg8 MUwPJRyD8Rw7LHR7LwBJ0l4KbLim2plaekBQVdkFI9BSBycUzycnRF3ewqE7qRvTjHxe 2vMQ== ARC-Authentication-Results: i=1; mx.google.com; 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 y8si5131923edw.80.2020.11.02.23.40.50; Mon, 02 Nov 2020 23:41:13 -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; 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 S1727483AbgKCHjH convert rfc822-to-8bit (ORCPT + 99 others); Tue, 3 Nov 2020 02:39:07 -0500 Received: from mail-wm1-f67.google.com ([209.85.128.67]:38169 "EHLO mail-wm1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725958AbgKCHjG (ORCPT ); Tue, 3 Nov 2020 02:39:06 -0500 Received: by mail-wm1-f67.google.com with SMTP id h62so6935027wme.3; Mon, 02 Nov 2020 23:39:04 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:content-transfer-encoding :in-reply-to; bh=bXuOa5KbndwxymZMhvdD2xbY7A2ognK9fHBfraWla5A=; b=rPpjewIAbYcTSCakUEvD6eQmvPf9KnMO+huuTxnh8AlUvqDPHq/oQY9oFeBmGnB3/0 hTkzY6wDpHPdkl0c7/tDyyOw1SmpxltvNEBiPJ3opiRp/VMlTg7x6s1ZDkK+PhqqOB+v 8uOaxT4xsEoP2zj09+PaPy4jWhKQ60pYz4RgMlnYiyv2c9nkhnhxLfgBOaEewhsvpjaV H4yNYhhDINRFl21VScBdZ0NMLGGz0uq9HDJWefx6qKpu3Nt5lEWa9Ly+s006OpRWCtOk ii4s65EuB7jNpQCYrZujDK5wcwPQTican2i94AM7NNjrRkZ2HxfiMIeKJfsv1lHYU093 vRvw== X-Gm-Message-State: AOAM5329YM2GGjeabwGTJ97QOeuIzGoLRcXF7UcjFCvbKu7ip7hH+1l/ DQZblrdIY4Y2NiJ/W3cVwxc= X-Received: by 2002:a1c:2905:: with SMTP id p5mr2096786wmp.187.1604389144305; Mon, 02 Nov 2020 23:39:04 -0800 (PST) Received: from kozik-lap (adsl-84-226-167-205.adslplus.ch. [84.226.167.205]) by smtp.googlemail.com with ESMTPSA id a185sm1983713wmf.24.2020.11.02.23.39.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 02 Nov 2020 23:39:03 -0800 (PST) Date: Tue, 3 Nov 2020 08:39:01 +0100 From: Krzysztof Kozlowski To: Joakim Zhang Cc: "shawnguo@kernel.org" , "s.hauer@pengutronix.de" , "festevam@gmail.com" , dl-linux-imx , "devicetree@vger.kernel.org" , "linux-arm-kernel@lists.infradead.org" , "linux-kernel@vger.kernel.org" , "mkl@pengutronix.de" Subject: Re: [PATCH V2] arm64: dts: imx8mp-evk: add CAN support Message-ID: <20201103073901.GA3599@kozik-lap> References: <20201102021634.6480-1-qiangqing.zhang@nxp.com> <20201102082853.GB6152@kozik-lap> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8BIT In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Nov 03, 2020 at 01:23:12AM +0000, Joakim Zhang wrote: > > > -----Original Message----- > > From: Krzysztof Kozlowski > > Sent: 2020年11月2日 16:29 > > To: Joakim Zhang > > Cc: shawnguo@kernel.org; s.hauer@pengutronix.de; festevam@gmail.com; > > dl-linux-imx ; devicetree@vger.kernel.org; > > linux-arm-kernel@lists.infradead.org; linux-kernel@vger.kernel.org; > > mkl@pengutronix.de > > Subject: Re: [PATCH V2] arm64: dts: imx8mp-evk: add CAN support > > > > On Mon, Nov 02, 2020 at 10:16:34AM +0800, Joakim Zhang wrote: > > > Add CAN device node and pinctrl on i.MX8MP evk board. > > > > > > Signed-off-by: Joakim Zhang > > > --- > > > ChangeLogs: > > > V1->V2: > > > * add missing space before '=', > > > fsl,clk-source= /bits/ 8 <0> -> fsl,clk-source = /bits/ 8 <0> > > > --- > > > 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 908b92bb4dcd..b10dce8767a4 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 479312293036..ecccfbb4f5ad 100644 > > > --- a/arch/arm64/boot/dts/freescale/imx8mp.dtsi > > > +++ b/arch/arm64/boot/dts/freescale/imx8mp.dtsi > > > @@ -552,6 +552,36 @@ > > > status = "disabled"; > > > }; > > > > > > + flexcan1: can@308c0000 { > > > + compatible = "fsl,imx8mp-flexcan", "fsl,imx6q-flexcan"; > > > > Undocumented compatible in > > Documentation/devicetree/bindings/net/can/fsl-flexcan.txt > > Hi Krzsztof, > > Yes, I will resend the patch after below patch goes into mainline. Thanks. > https://www.spinics.net/lists/linux-can/msg04896.html Thanks for the link. It's all good and there is no need to resend because your compatible is mentioned there. Best regards, Krzysztof