Received: by 2002:a5b:505:0:0:0:0:0 with SMTP id o5csp2696349ybp; Sat, 5 Oct 2019 18:19:07 -0700 (PDT) X-Google-Smtp-Source: APXvYqx9fild7OTAs6O/FuAi++FkVDdF4wItobA7UZAXX8sTjBAfCfpbT6AVoMWXReLKhblyheU5 X-Received: by 2002:a17:906:1152:: with SMTP id i18mr18464168eja.113.1570324747376; Sat, 05 Oct 2019 18:19:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1570324747; cv=none; d=google.com; s=arc-20160816; b=NVKrxZJGCZcY2MV5WEc8E5Gmv+lfYlode6G/kHBEGk6+d3sYyvgJYHYnvjDutu/6D8 g4K8OubSlyMJwQprVXA0kC10a9bmqe8LDJPknKIDYf03ug50hiT8b3P+YPHLJen+WQGI pzYVj48UjVHQII8ncK1le1YzzcB0wjTUN7xp5TIigZVyCozka5fcXdA4/4pbVrWYi7yR S/PU1rjoCbdE4hEWMSQU2WGvCK43JNURA1BrcVHuHGQRAkYa3Fov57INzHLs3CcXVt1F HTc7usHXo5JC6mqxf7hSod5EVAZo3KbxAJ1IjPx8vGUldVFFpaAv6705HvxfsjrIPsTQ p11w== 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=+/V7GWNaJF1xBCQ1Akg5xk1FRDjxzgb03lnMud0DQBQ=; b=H1yO2MEay3NdyCmJ9dtdh8G4mbwaUrbXMkfyfinI6iqjpjuGfsvw4vS50E3nW+98eE xRb8SgfLcRbQd/bcJ59Ej8erZgO4G5nwBeDF7Ce6du6UJl3px6ikJxxa6KKI0Sy7Uuc/ R9NH5mDNDJZUpTHKwvBdJwy2iPCJIANLPQMlRHBQVYO2cviUAWuPyj+e5Ln7O7KyhE4X 9Q8u3hgWJzb9GJndmvFsdyrqPE7x7/Pw0zVO89UInyd4J6xBA3TwPOtoBPFqSFFL8II9 oFSvGxM+v9FYEOGIgcchHYUwgYn323hg7Pw7gWDLeZhrt3hwX1HyUOtVVhsr5kkf18tz tOiA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=PDkNZQlc; 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 z6si5980728edx.139.2019.10.05.18.18.41; Sat, 05 Oct 2019 18:19:07 -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=PDkNZQlc; 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 S1727005AbfJFBQa (ORCPT + 99 others); Sat, 5 Oct 2019 21:16:30 -0400 Received: from mail.kernel.org ([198.145.29.99]:51324 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726956AbfJFBQ3 (ORCPT ); Sat, 5 Oct 2019 21:16:29 -0400 Received: from dragon (li937-157.members.linode.com [45.56.119.157]) (using TLSv1.2 with cipher DHE-RSA-AES128-SHA (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 0727520830; Sun, 6 Oct 2019 01:16:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1570324588; bh=w0gsQYTE+55d9vtKjjYnHHUWNASN6/OWINizJtI09iU=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=PDkNZQlcXFBb5qvCQBbRFAHYMac8LSF0zGVELXPn6eQxWNsoiTNniFSq9qrMeqXhr hYuO8UNew35VxJNJp4OZX4Q95BNp7e3zXX+vMzCRraAiJ0axeiHQNDM1TvGfzQpLlX keAwA6eTwRe2xMbrHaqXYmUyvcHl+cegBlZWWeNg= Date: Sun, 6 Oct 2019 09:16:11 +0800 From: Shawn Guo To: Igor Opaniuk Cc: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, m.felsch@pengutronix.de, robh+dt@kernel.org, mark.rutland@arm.com, s.hauer@pengutronix.de, kernel@pengutronix.de, festevam@gmail.com, linux-imx@nxp.com, marcel@ziswiler.com, marcel.ziswiler@toradex.com, stefan@agner.ch Subject: Re: [PATCH v3 1/1] ARM: dts: colibri: introduce dts with UHS-I support enabled Message-ID: <20191006011610.GH7150@dragon> References: <20190904110918.25009-1-igor.opaniuk@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190904110918.25009-1-igor.opaniuk@gmail.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 Wed, Sep 04, 2019 at 02:09:18PM +0300, Igor Opaniuk wrote: > From: Igor Opaniuk > > Introduce DTS for Colibri iMX6S/DL V1.1x re-design, where UHS-I support was > added. Provide proper configuration for VGEN3, which allows that rail to > be automatically switched to 1.8 volts for proper UHS-I operation mode. > > Signed-off-by: Igor Opaniuk > --- > > v3: > - change hierarchy according to Marco's suggestions [Marco Felsch] > - adjust compatible string adding v1.1 [Stefan Agner] > > v2: > - rework hierarchy of dts files, and a separate dtsi for Colibri > iMX6S/DL V1.1x re-design, where UHS-I was added [Marcel Ziswiler] > - add comments about vgen3 power rail [Marcel Ziswiler] > - fix other minor issues, addressing Marcel's comments. [Marcel Ziswiler] > > arch/arm/boot/dts/Makefile | 1 + > .../boot/dts/imx6dl-colibri-v1_1-eval-v3.dts | 59 +++++++++++++++++++ > arch/arm/boot/dts/imx6qdl-colibri.dtsi | 11 +++- > 3 files changed, 70 insertions(+), 1 deletion(-) > create mode 100644 arch/arm/boot/dts/imx6dl-colibri-v1_1-eval-v3.dts > > diff --git a/arch/arm/boot/dts/Makefile b/arch/arm/boot/dts/Makefile > index 9159fa2cea90..87dfc3db4343 100644 > --- a/arch/arm/boot/dts/Makefile > +++ b/arch/arm/boot/dts/Makefile > @@ -401,6 +401,7 @@ dtb-$(CONFIG_SOC_IMX6Q) += \ > imx6dl-aristainetos2_4.dtb \ > imx6dl-aristainetos2_7.dtb \ > imx6dl-colibri-eval-v3.dtb \ > + imx6dl-colibri-v1_1-eval-v3.dtb \ > imx6dl-cubox-i.dtb \ > imx6dl-cubox-i-emmc-som-v15.dtb \ > imx6dl-cubox-i-som-v15.dtb \ > diff --git a/arch/arm/boot/dts/imx6dl-colibri-v1_1-eval-v3.dts b/arch/arm/boot/dts/imx6dl-colibri-v1_1-eval-v3.dts > new file mode 100644 > index 000000000000..92fcf4e62ba2 > --- /dev/null > +++ b/arch/arm/boot/dts/imx6dl-colibri-v1_1-eval-v3.dts > @@ -0,0 +1,59 @@ > +// SPDX-License-Identifier: GPL-2.0 OR X11 > +/* > + * Copyright 2019 Toradex AG > + */ > + > +/dts-v1/; > + > +#include "imx6dl-colibri-eval-v3.dts" > + > +/ { > + model = "Toradex Colibri iMX6DL/S V1.1 on Colibri Evaluation Board V3"; > + compatible = "toradex,colibri_imx6dl-v1_1-eval-v3", > + "toradex,colibri_imx6dl-v1_1", > + "toradex,colibri_imx6dl-eval-v3", > + "toradex,colibri_imx6dl", Please make sure these compatibles are documented. > + "fsl,imx6dl"; > +}; > + > +&iomuxc { > + pinctrl_usdhc1_100mhz: usdhc1grp100mhz { > + fsl,pins = < > + MX6QDL_PAD_SD1_CMD__SD1_CMD 0x170b1 > + MX6QDL_PAD_SD1_CLK__SD1_CLK 0x100b1 > + MX6QDL_PAD_SD1_DAT0__SD1_DATA0 0x170b1 > + MX6QDL_PAD_SD1_DAT1__SD1_DATA1 0x170b1 > + MX6QDL_PAD_SD1_DAT2__SD1_DATA2 0x170b1 > + MX6QDL_PAD_SD1_DAT3__SD1_DATA3 0x170b1 > + >; > + }; > + > + pinctrl_usdhc1_200mhz: usdhc1grp200mhz { > + fsl,pins = < > + MX6QDL_PAD_SD1_CMD__SD1_CMD 0x170f1 > + MX6QDL_PAD_SD1_CLK__SD1_CLK 0x100f1 > + MX6QDL_PAD_SD1_DAT0__SD1_DATA0 0x170f1 > + MX6QDL_PAD_SD1_DAT1__SD1_DATA1 0x170f1 > + MX6QDL_PAD_SD1_DAT2__SD1_DATA2 0x170f1 > + MX6QDL_PAD_SD1_DAT3__SD1_DATA3 0x170f1 > + >; > + }; > +}; > + > +/* Colibri MMC */ > +&usdhc1 { > + pinctrl-names = "default", "state_100mhz", "state_200mhz"; > + pinctrl-0 = <&pinctrl_usdhc1 &pinctrl_mmc_cd>; > + pinctrl-1 = <&pinctrl_usdhc1_100mhz &pinctrl_mmc_cd>; > + pinctrl-2 = <&pinctrl_usdhc1_200mhz &pinctrl_mmc_cd>; > + vmmc-supply = <®_module_3v3>; > + vqmmc-supply = <&vgen3_reg>; > + enable-sdio-wakeup; Check out Documentation/devicetree/bindings/power/wakeup-source.txt Shawn > + keep-power-in-suspend; > + sd-uhs-sdr12; > + sd-uhs-sdr25; > + sd-uhs-sdr50; > + sd-uhs-sdr104; > + status = "okay"; > + /delete-property/no-1-8-v; > +}; > diff --git a/arch/arm/boot/dts/imx6qdl-colibri.dtsi b/arch/arm/boot/dts/imx6qdl-colibri.dtsi > index 1beac22266ed..27097ab5eaab 100644 > --- a/arch/arm/boot/dts/imx6qdl-colibri.dtsi > +++ b/arch/arm/boot/dts/imx6qdl-colibri.dtsi > @@ -215,7 +215,16 @@ > regulator-always-on; > }; > > - /* vgen3: unused */ > + /* > + * +V3.3_1.8_SD1 coming off VGEN3 and supplying > + * the i.MX 6 NVCC_SD1. > + */ > + vgen3_reg: vgen3 { > + regulator-min-microvolt = <1800000>; > + regulator-max-microvolt = <3300000>; > + regulator-boot-on; > + regulator-always-on; > + }; > > vgen4_reg: vgen4 { > regulator-min-microvolt = <1800000>; > -- > 2.17.1 >