Received: by 2002:ac0:98c7:0:0:0:0:0 with SMTP id g7-v6csp2036823imd; Sun, 4 Nov 2018 15:35:16 -0800 (PST) X-Google-Smtp-Source: AJdET5dJUYyE9ERsqc2A1hvEHAcsn8zu8I0BAwX6dOxGqznqa99hYg36R8Jsusy6Iy+3GB4NfErP X-Received: by 2002:a17:902:2006:: with SMTP id n6-v6mr20202619pla.131.1541374516875; Sun, 04 Nov 2018 15:35:16 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1541374516; cv=none; d=google.com; s=arc-20160816; b=hnh5ngDmxlBo+SCCb05aelNRifp4j1jyFI6GNz8j7R9NL27jTVgUViK91QTdvnL3Vb kTuUcQ02FSNYInxNTOfgaQZeJ+Wh38G5yB9yeiBygslkn5uct/OdaFPyUVyO3Dy91PpL vha3Tj9avQCXV0VqCu+wKaLFc+IgUfXn2JDkvu29YFBSXmOUUrpSjvikd7TjGGEr40mk bh4WjBdz3R/3S2I9trZCISjvcTkjctpO5SyvBNJOTtNEFtVNDoL1js8TuVRVHO4gGRTO Sntw1XhAu1+okm43fCEofXZ7Mb+4BSDBMjbGzo0RRYoSQ4yMXk5kvxHjIG2xe5JV+jtC iFrg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=XtHyFmBmt/7GFczvPSNfpDyZYh0hxPsdZeVXPRWRe14=; b=GFeFQZa3in9/UQlnrW6PyaA/zj2wqfYpagwn7xWmhxsIP2T6iOKoGaYiboR6eCw7vV 8DO9ThSPU79Efg3mkr4D9zuh/KkX0LtYNtYH0fYP03XxIA45LNBSwti55peeOd72nVpJ iJue2keEkstuoCU2M2IdjMgK+CWMowLRGazcAQIY3IWGzOu9PoJF3XkyPgY/foLoArzG 53vs0xUVfgtHxAEdYjoEL+P8fWODxIlMVxcZS/OCeNjfsgeeknG/7b0x5bjUW6ocAsHB OdDFoquk74rXtqdbfIVLvaKCz1epMswKChe8G6yraZjQw5Url/ljViuLy38mDI45M9t2 lrBQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=ZPSfGhVF; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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. [209.132.180.67]) by mx.google.com with ESMTP id w1-v6si14105066pff.47.2018.11.04.15.34.19; Sun, 04 Nov 2018 15:35:16 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=ZPSfGhVF; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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 S1729585AbeKDXm0 (ORCPT + 99 others); Sun, 4 Nov 2018 18:42:26 -0500 Received: from mail.kernel.org ([198.145.29.99]:38540 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727834AbeKDXm0 (ORCPT ); Sun, 4 Nov 2018 18:42:26 -0500 Received: from tiger (61-216-91-114.HINET-IP.hinet.net [61.216.91.114]) (using TLSv1.2 with cipher DHE-RSA-AES128-SHA (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id D7C222082E; Sun, 4 Nov 2018 14:27:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1541341633; bh=3O6kSj3K11OgWR0DUchTyygA/EfFIfHSdBJCdFYtROw=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=ZPSfGhVFW18cPu9fm1DNOS1NIYzupLtF4ZvMoLs6JIMzE7flzuPG7XXW/T+BjrPeR pzLd7y+OlzIPbKyQsq0fjLVWP21xCTqkkBgDzCZOPHawk1yAYcrEhKVkXicT7+21Do F6EmzyldCcGUGH1xyIudJOW/pucJ7yLtxGlqTHHQ= Date: Sun, 4 Nov 2018 22:26:51 +0800 From: Shawn Guo To: Joakim Zhang Cc: "s.hauer@pengutronix.de" , "kernel@pengutronix.de" , Fabio Estevam , dl-linux-imx , "robh+dt@kernel.org" , "linux-arm-kernel@lists.infradead.org" , "devicetree@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "A.s. Dong" Subject: Re: [PATCH V2 3/3] ARM: dts: sabreauto: Add flexcan support Message-ID: <20181104142647.GH26016@tiger> References: <20181030083954.26440-1-qiangqing.zhang@nxp.com> <20181030083954.26440-4-qiangqing.zhang@nxp.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20181030083954.26440-4-qiangqing.zhang@nxp.com> User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Oct 30, 2018 at 08:42:47AM +0000, Joakim Zhang wrote: > From: Dong Aisheng > > The flexcan1 is pin conflict with fec. So we add a new dts file with > flexcan1 enabled with fec disabled for user to use. > > Signed-off-by: Dong Aisheng > Signed-off-by: Joakim Zhang We do not want to maintain a pile of DTS files for a single development board with pin sharing among different devices. Shawn > --- > .../boot/dts/imx6dl-sabreauto-flexcan1.dts | 14 ++++++ > .../arm/boot/dts/imx6q-sabreauto-flexcan1.dts | 14 ++++++ > arch/arm/boot/dts/imx6qdl-sabreauto.dtsi | 47 +++++++++++++++++++ > 3 files changed, 75 insertions(+) > create mode 100644 arch/arm/boot/dts/imx6dl-sabreauto-flexcan1.dts > create mode 100644 arch/arm/boot/dts/imx6q-sabreauto-flexcan1.dts > > diff --git a/arch/arm/boot/dts/imx6dl-sabreauto-flexcan1.dts b/arch/arm/boot/dts/imx6dl-sabreauto-flexcan1.dts > new file mode 100644 > index 000000000000..4ebcc283f549 > --- /dev/null > +++ b/arch/arm/boot/dts/imx6dl-sabreauto-flexcan1.dts > @@ -0,0 +1,14 @@ > +// SPDX-License-Identifier: GPL-2.0 > +// > +// Copyright (C) 2013 Freescale Semiconductor, Inc. > + > +#include "imx6dl-sabreauto.dts" > + > +&can1{ > + status = "okay"; > +}; > + > +&fec { > + /* pin conflict with flexcan1 */ > + status = "disabled"; > +}; > diff --git a/arch/arm/boot/dts/imx6q-sabreauto-flexcan1.dts b/arch/arm/boot/dts/imx6q-sabreauto-flexcan1.dts > new file mode 100644 > index 000000000000..e7e684656f09 > --- /dev/null > +++ b/arch/arm/boot/dts/imx6q-sabreauto-flexcan1.dts > @@ -0,0 +1,14 @@ > +// SPDX-License-Identifier: GPL-2.0 > +// > +// Copyright (C) 2013 Freescale Semiconductor, Inc. > + > +#include "imx6q-sabreauto.dts" > + > +&can1{ > + status = "okay"; > +}; > + > +&fec { > + /* pin conflict with flexcan1 */ > + status = "disabled"; > +}; > diff --git a/arch/arm/boot/dts/imx6qdl-sabreauto.dtsi b/arch/arm/boot/dts/imx6qdl-sabreauto.dtsi > index a10f0ad0bfb1..c1111b972b46 100644 > --- a/arch/arm/boot/dts/imx6qdl-sabreauto.dtsi > +++ b/arch/arm/boot/dts/imx6qdl-sabreauto.dtsi > @@ -101,6 +101,25 @@ > enable-active-high; > }; > > + reg_can_en: regulator-can-en { > + compatible = "regulator-fixed"; > + regulator-name = "can-en"; > + regulator-min-microvolt = <3300000>; > + regulator-max-microvolt = <3300000>; > + gpio = <&max7310_b 6 GPIO_ACTIVE_HIGH>; > + enable-active-high; > + }; > + > + reg_can_stby: regulator-can-stby { > + compatible = "regulator-fixed"; > + regulator-name = "can-stby"; > + regulator-min-microvolt = <3300000>; > + regulator-max-microvolt = <3300000>; > + gpio = <&max7310_b 5 GPIO_ACTIVE_HIGH>; > + enable-active-high; > + vin-supply = <®_can_en>; > + }; > + > sound-cs42888 { > compatible = "fsl,imx6-sabreauto-cs42888", > "fsl,imx-audio-cs42888"; > @@ -279,6 +298,20 @@ > status = "okay"; > }; > > +&can1 { > + pinctrl-names = "default"; > + pinctrl-0 = <&pinctrl_flexcan1>; > + xceiver-supply = <®_can_stby>; > + status = "disabled"; /* pin conflict with fec */ > +}; > + > +&can2 { > + pinctrl-names = "default"; > + pinctrl-0 = <&pinctrl_flexcan2>; > + xceiver-supply = <®_can_stby>; > + status = "okay"; > +}; > + > &gpmi { > pinctrl-names = "default"; > pinctrl-0 = <&pinctrl_gpmi_nand>; > @@ -494,6 +527,20 @@ > >; > }; > > + pinctrl_flexcan1: flexcan1grp { > + fsl,pins = < > + MX6QDL_PAD_KEY_ROW2__FLEXCAN1_RX 0x17059 > + MX6QDL_PAD_KEY_COL2__FLEXCAN1_TX 0x17059 > + >; > + }; > + > + pinctrl_flexcan2: flexcan2grp { > + fsl,pins = < > + MX6QDL_PAD_KEY_COL4__FLEXCAN2_TX 0x17059 > + MX6QDL_PAD_KEY_ROW4__FLEXCAN2_RX 0x17059 > + >; > + }; > + > pinctrl_gpio_keys: gpiokeysgrp { > fsl,pins = < > MX6QDL_PAD_SD2_CMD__GPIO1_IO11 0x1b0b0 > -- > 2.17.1 >