Received: by 2002:ac0:98c7:0:0:0:0:0 with SMTP id g7-v6csp1319469imd; Sun, 4 Nov 2018 00:34:01 -0700 (PDT) X-Google-Smtp-Source: AJdET5fEHZBgPecQT2u4q5Qxi7PjKO+vkOiKp6IJsv8QcytkgUviXSq81Tq5V0oAaN03cApVzd3g X-Received: by 2002:a62:6a88:: with SMTP id f130-v6mr2594017pfc.98.1541316841764; Sun, 04 Nov 2018 00:34:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1541316841; cv=none; d=google.com; s=arc-20160816; b=fsEqAxNa0dDEQjXGe1RuewrAtNx+FnasaCmB1l38Za+AqkCQeEHgWsMMCJGYsWuQwe JgQcxjIdoldLx+8rYdh7g7kCcYZAD6LIzgDgnvXmUaFQB2yHRQOeqONLiGOkvhwThg2g ZVZdLbP4zSqGwKVe0P3tsvtIGbdrSvpfVqMjq8jj12EKcYwQycTIivYvzfVLNZ5M6xhB MqJssi7BAtTaWMBHWUojf3PveJpLYBu3TCmEgmROmy4XJSv9M9ulNlMb5wKRfD45+jS6 TxIrfw/B7vsTr0OsXmdmZTSUZoNaEpFI7BKvS0yfb3zBkBoFSum/VUmjrkpjFcitOoF3 klvA== 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=6VoTfH5xFqNMCxmAV2DsHeyUtxtmk6lRrBcfhFU3iAo=; b=RjOKRK5jDGjX9GTXLljhwkdC6d1YyVSi5x45P7aHRa8BXq0OYYDXcHmx7p8tJ7j/Ef Zm3sPy893ovX35FkFAj3O6f9CKFvDg9TEVaPQ/booT8vliDla4NH0yOZ5ILakEbVartG 2ycKk7VcaC2xKpEuSuYQGrFqHmrJ9rXF1XcmcIyFmNKlw12wDd3r5WHy6bht/cQEcU90 HfCPEuVF9qYFaE4kGfhhOjeKVBrU8vdb9M0Ei1BcuGOy8VI7rdt0BEFObrTdkbSxCaNe vgn+nHNtKIYcyD59XAzTQH6jag+0PdDIY2SbjAe8rkZm6BDC5k02yzGYv9CdYYDQgqVy ONyA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=DZJ3uY3g; 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 i8-v6si40400015pgj.283.2018.11.04.00.33.18; Sun, 04 Nov 2018 00:34:01 -0700 (PDT) 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=DZJ3uY3g; 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 S1728906AbeKDQl7 (ORCPT + 99 others); Sun, 4 Nov 2018 11:41:59 -0500 Received: from mail.kernel.org ([198.145.29.99]:47204 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726280AbeKDQl7 (ORCPT ); Sun, 4 Nov 2018 11:41:59 -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 199D02081C; Sun, 4 Nov 2018 07:27:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1541316480; bh=WnBPXfx+6cvWy0N9Mz6bJc1HSwYuJPo+lUkOFkc6KRs=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=DZJ3uY3gbImCwrqsH+GL2o6DS0non0H6mtL2o3agxMMZdtgiRNItzlCfopIxMCylt LBLPVBagm40RIV+Jzg8Dff+YYeT1qX3KHrlyGvb4I049EuOK3MZIJ1U9Er3tgQ5EZS H+VSFEDuO8Z/EQeS8UY1QNXlEKNU83Xt7tzz354I= Date: Sun, 4 Nov 2018 15:27:38 +0800 From: Shawn Guo To: Joakim Zhang Cc: "s.hauer@pengutronix.de" , "kernel@pengutronix.de" , Fabio Estevam , "robh+dt@kernel.org" , "mark.rutland@arm.com" , "A.s. Dong" , "devicetree@vger.kernel.org" , "linux-kernel@vger.kernel.org" , dl-linux-imx , "linux-arm-kernel@lists.infradead.org" Subject: Re: [PATCH v2 1/1] ARM: dts: imx6sx-sdb: Add flexcan support Message-ID: <20181104072734.GA26016@tiger> References: <20181020023318.21663-1-qiangqing.zhang@nxp.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20181020023318.21663-1-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 Sat, Oct 20, 2018 at 02:35:36AM +0000, Joakim Zhang wrote: > From: Dong Aisheng > > CAN transceiver is different on RevA and RevB board. > It's active high on RevA while active low on Rev B. > > Signed-off-by: Dong Aisheng > Signed-off-by: Joakim Zhang > --- > arch/arm/boot/dts/imx6sx-sdb-reva.dts | 12 ++++++++ > arch/arm/boot/dts/imx6sx-sdb.dts | 5 ++++ > arch/arm/boot/dts/imx6sx-sdb.dtsi | 42 +++++++++++++++++++++++++++ > 3 files changed, 59 insertions(+) > > diff --git a/arch/arm/boot/dts/imx6sx-sdb-reva.dts b/arch/arm/boot/dts/imx6sx-sdb-reva.dts > index 9cc6ff206aea..d98dcf00b9c4 100644 > --- a/arch/arm/boot/dts/imx6sx-sdb-reva.dts > +++ b/arch/arm/boot/dts/imx6sx-sdb-reva.dts > @@ -10,6 +10,18 @@ > > / { > model = "Freescale i.MX6 SoloX SDB RevA Board"; > + > + /* Transceiver EN/STBY is active high on RevA board */ > + reg_can_en: regulator-can-en { > + gpio = <&gpio4 25 GPIO_ACTIVE_HIGH>; > + enable-active-high; > + }; Please use label node to make it easier for both yourself and readers. ®_can_en { ... }; Shawn > + > + reg_can_stby: regulator-can-stby { > + gpio = <&gpio4 27 GPIO_ACTIVE_HIGH>; > + enable-active-high; > + vin-supply = <®_can_en>; > + }; > }; > > &i2c1 { > diff --git a/arch/arm/boot/dts/imx6sx-sdb.dts b/arch/arm/boot/dts/imx6sx-sdb.dts > index 6dd9bebfe027..092b8de142a8 100644 > --- a/arch/arm/boot/dts/imx6sx-sdb.dts > +++ b/arch/arm/boot/dts/imx6sx-sdb.dts > @@ -10,6 +10,11 @@ > > / { > model = "Freescale i.MX6 SoloX SDB RevB Board"; > + > + /* Transceiver EN/STBY is active low on RevB board */ > + reg_can_stby: regulator-can-stby { > + gpio = <&gpio4 27 GPIO_ACTIVE_LOW>; > + }; > }; > > &i2c1 { > diff --git a/arch/arm/boot/dts/imx6sx-sdb.dtsi b/arch/arm/boot/dts/imx6sx-sdb.dtsi > index f8f31872fa14..e37ec4b396a2 100644 > --- a/arch/arm/boot/dts/imx6sx-sdb.dtsi > +++ b/arch/arm/boot/dts/imx6sx-sdb.dtsi > @@ -136,6 +136,20 @@ > regulator-max-microvolt = <5000000>; > }; > > + reg_can_en: regulator-can-en { > + compatible = "regulator-fixed"; > + regulator-name = "can-en"; > + regulator-min-microvolt = <3300000>; > + regulator-max-microvolt = <3300000>; > + }; > + > + reg_can_stby: regulator-can-stby { > + compatible = "regulator-fixed"; > + regulator-name = "can-stby"; > + regulator-min-microvolt = <3300000>; > + regulator-max-microvolt = <3300000>; > + }; > + > sound { > compatible = "fsl,imx6sx-sdb-wm8962", "fsl,imx-audio-wm8962"; > model = "wm8962-audio"; > @@ -202,6 +216,20 @@ > status = "okay"; > }; > > +&flexcan1 { > + pinctrl-names = "default"; > + pinctrl-0 = <&pinctrl_flexcan1>; > + xceiver-supply = <®_can_stby>; > + status = "okay"; > +}; > + > +&flexcan2 { > + pinctrl-names = "default"; > + pinctrl-0 = <&pinctrl_flexcan2>; > + xceiver-supply = <®_can_stby>; > + status = "okay"; > +}; > + > &i2c3 { > clock-frequency = <100000>; > pinctrl-names = "default"; > @@ -397,6 +425,20 @@ > >; > }; > > + pinctrl_flexcan1: flexcan1grp { > + fsl,pins = < > + MX6SX_PAD_QSPI1B_DQS__CAN1_TX 0x1b020 > + MX6SX_PAD_QSPI1A_SS1_B__CAN1_RX 0x1b020 > + >; > + }; > + > + pinctrl_flexcan2: flexcan2grp { > + fsl,pins = < > + MX6SX_PAD_QSPI1B_SS1_B__CAN2_RX 0x1b020 > + MX6SX_PAD_QSPI1A_DQS__CAN2_TX 0x1b020 > + >; > + }; > + > pinctrl_gpio_keys: gpio_keysgrp { > fsl,pins = < > MX6SX_PAD_CSI_DATA04__GPIO1_IO_18 0x17059 > -- > 2.17.1 > > > _______________________________________________ > linux-arm-kernel mailing list > linux-arm-kernel@lists.infradead.org > http://lists.infradead.org/mailman/listinfo/linux-arm-kernel