Received: by 2002:a05:6a10:6d10:0:0:0:0 with SMTP id gq16csp385397pxb; Fri, 15 Apr 2022 01:45:03 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxJcbMF4RKFhdzgByYFDgk1is9SMlQeroA1oG/rpI8cI07d0cx9SWLi6e0If9nH5RgBOBBd X-Received: by 2002:a17:90b:4b46:b0:1cb:6edf:27f1 with SMTP id mi6-20020a17090b4b4600b001cb6edf27f1mr3004920pjb.173.1650012303295; Fri, 15 Apr 2022 01:45:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1650012303; cv=none; d=google.com; s=arc-20160816; b=dOlBFrsY2bhaJZnQ4gqnJc4Ye/R3EfDII5zuIOjiZJunw7gukyEP7CIHx43e9+Yhni xy0HttrUonQlh3c+lya5dFi0RCSMA9+z4J3g3pAhFrSIubDCmV2f4yMys02BzgjPvgwD lTXweXfyWxA8G/+uedSe5dqHPocc6vkpYf9k6AqIpJaLLZ3jlETbHE4NhZArxbXLsh4B SoPncffJjFmFb2Fzsl2Hu3TYbhujyUSAdpx4M3cAPcp93yC0uqZCNldedbE/aWysWPn8 k7N6ej+LA1MRFsJs6BA0K2Zf26e/9rsAxPn/PWK41FCiJChVdnkrtyM+2i1pybafaPoT xCZQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=XDLlr9judaJIHN1NWbZkwwbWIgXHEpGXnqhFzEoZB+s=; b=AY9904/8TU1l3hQH6SXLKwMrZtVhskrSqwcmtCv+coDxAnJwT6Q7fxIomXZF0mzz0d eny1mmATFBL51Hfscqkk+RFDkw3C0n1uzGG+r158WeEe8PXy+czZg3o8tVuJxNReLPqh e+ab12sRaI4Za0t2ckpy9t203IsxrIlwNWTb6SWhef3OlHXu1m+0p0fdqcwzVjRc1crH P8mQqIebvXlngRh1eMhA9v+af1b+q1xzBZPFTd1qTRCTwxsWP9PrWhokb6cIaofEb0eO FOareNysYeqMNI1/vPRz3fjTcdMg+O8/+khUzuQN0daxIcnJu1Uf5uBb8Fjy7RVrdNOL VGZg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id v5-20020a631505000000b0039d9bea33e4si942745pgl.277.2022.04.15.01.44.50; Fri, 15 Apr 2022 01:45:03 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241165AbiDNIyb (ORCPT + 99 others); Thu, 14 Apr 2022 04:54:31 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57120 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241157AbiDNIyP (ORCPT ); Thu, 14 Apr 2022 04:54:15 -0400 Received: from mout.perfora.net (mout.perfora.net [74.208.4.197]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E01CC65808; Thu, 14 Apr 2022 01:51:50 -0700 (PDT) Received: from toolbox.toradex.int ([31.10.206.124]) by mrelay.perfora.net (mreueus004 [74.208.5.2]) with ESMTPSA (Nemesis) id 1MI55X-1nhO2v2pIV-00FA0Z; Thu, 14 Apr 2022 10:51:39 +0200 From: Marcel Ziswiler To: linux-arm-kernel@lists.infradead.org Cc: Philippe Schenker , Denys Drozdov , Andrejs Cainikovs , Marcel Ziswiler , Fabio Estevam , Frank Rowand , Krzysztof Kozlowski , NXP Linux Team , Pengutronix Kernel Team , Rob Herring , Russell King , Sascha Hauer , Shawn Guo , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v1 06/14] ARM: dts: imx6ull-colibri: update usdhc1 pixmux and signaling Date: Thu, 14 Apr 2022 10:50:58 +0200 Message-Id: <20220414085106.18621-7-marcel@ziswiler.com> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220414085106.18621-1-marcel@ziswiler.com> References: <20220414085106.18621-1-marcel@ziswiler.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Provags-ID: V03:K1:rUA5RPDRMKJxl21IfvOhcWoZcUa0Z6ba6d0SceNu3GExfI7tLxJ d598Bgjo8pMLwAsLqRCX2B9JB+BOMR1tjm4TCsaMvY8dLG5pD7tbAgtJbxi1hwcBBhwrGjI 8iqlehS1L8D+xTt6io/wnGuXhOZA9huOncLlH7/0C/A8k8DS1ZDZ2qic03Yixw9/1Mb7QLn ZNEEQsKcoQdRBN5L0UsRQ== X-UI-Out-Filterresults: notjunk:1;V03:K0:A5ZMQpW7OKE=:th3ZyW4YUS67+GKgXLL5It I0j4lHkmb2FwaklTMttHU3JYWl5/NlvjMz/Wtv7smsbqMvLynZn5A7Xp9BDLmAyIP9C84LWL4 /1ISwSi75O/ksckdwaJEV2BA1nUa0fLFFO/vEO8b4hAt1K1ozOQ2VuZyw+yXem1C1qkcpfXpg pLPyu2rjkJTNb2AqgjO0BrwBqQCnc0u4MstBZK0jSr6dCoTLGoNbKQKDkNg87anUcQAGMLqUj K5MzyycnkiVBC1PjVjb0v75/mUSpBe8ijZVPDcryVRBJn13/oN51o5y6mdmSJQX7XzTxoFPkc +L/otRFg0tHceGdtYupYw7pMMbU4hV163RIN6L/VQm+Xd0OsBwjscA18p3+J7b6wcdgNNzCu2 pyBL5U4trLXKnyUheUwDbNvZ0lXlYAmYBvCViSxRrlXZ0q38pOXXvJiKWliYtw3W7A/+6bsGA C/GSOaG3AufesYNFhEaDE56Ar6f4nXaaxmHcFO2Cs91vZO8+GCzYGwRbt6bDNPLFd0uOC+Svt buNh2plOvkRS45Nk/EHlJLrPwLilPrVzgxmSfNLP8MkgowFe+L7IpQbQx9OaIa329XPTOyL1w +FaMgCKUYR0T1XhHom1+YRGXd46aAPcq003IVJNjgnOqrApm7TfsKO8P69ZzOxpkzmq+SeTKK Cb+/o69jeIAl1DrmwCr4mdJedNuqNsEHnZGsp+wwweYNa0YAbIt6ici/FowJLm76wcGwux6cM uGmC1IwngzQLSBzR X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_PASS,SPF_NONE, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Philippe Schenker Due to many carrier boards pulling the usdhc1 signals up to 3.3 volt we need to disable 1.8 volt signaling. Adding the no-1-8-v property basically disables UHS-I modes by default. Also pull-up the command and data lines to the +V3.3_1.8_SD rail and set them to the 200 MHz speed grade (e.g. pinmux bits 7-6: meaning 11 SPEED_3_max_200MHz). Explicitly specify a bus-width of <4> in the module-level device tree include file and drop the no-1-8-v property from the carrier boards device trees. Signed-off-by: Philippe Schenker Signed-off-by: Denys Drozdov Signed-off-by: Andrejs Cainikovs Signed-off-by: Marcel Ziswiler --- .../arm/boot/dts/imx6ull-colibri-eval-v3.dtsi | 14 -------- arch/arm/boot/dts/imx6ull-colibri.dtsi | 36 ++++++++++++------- 2 files changed, 24 insertions(+), 26 deletions(-) diff --git a/arch/arm/boot/dts/imx6ull-colibri-eval-v3.dtsi b/arch/arm/boot/dts/imx6ull-colibri-eval-v3.dtsi index a78849fd2afa..ea086b305d22 100644 --- a/arch/arm/boot/dts/imx6ull-colibri-eval-v3.dtsi +++ b/arch/arm/boot/dts/imx6ull-colibri-eval-v3.dtsi @@ -159,20 +159,6 @@ &usbotg2 { }; &usdhc1 { - pinctrl-names = "default", "state_100mhz", "state_200mhz", "sleep"; - pinctrl-0 = <&pinctrl_usdhc1 &pinctrl_snvs_usdhc1_cd>; - pinctrl-1 = <&pinctrl_usdhc1_100mhz &pinctrl_snvs_usdhc1_cd>; - pinctrl-2 = <&pinctrl_usdhc1_200mhz &pinctrl_snvs_usdhc1_cd>; - pinctrl-3 = <&pinctrl_usdhc1 &pinctrl_snvs_usdhc1_sleep_cd>; - cd-gpios = <&gpio5 0 GPIO_ACTIVE_LOW>; - disable-wp; - wakeup-source; - keep-power-in-suspend; vmmc-supply = <®_3v3>; - vqmmc-supply = <®_sd1_vmmc>; - sd-uhs-sdr12; - sd-uhs-sdr25; - sd-uhs-sdr50; - sd-uhs-sdr104; status = "okay"; }; diff --git a/arch/arm/boot/dts/imx6ull-colibri.dtsi b/arch/arm/boot/dts/imx6ull-colibri.dtsi index b2345a5573f4..d633288b8ee8 100644 --- a/arch/arm/boot/dts/imx6ull-colibri.dtsi +++ b/arch/arm/boot/dts/imx6ull-colibri.dtsi @@ -35,7 +35,7 @@ reg_module_3v3_avdd: regulator-module-3v3-avdd { regulator-max-microvolt = <3300000>; }; - reg_sd1_vmmc: regulator-sd1-vmmc { + reg_sd1_vqmmc: regulator-sd1-vqmmc { compatible = "regulator-gpio"; gpios = <&gpio5 9 GPIO_ACTIVE_HIGH>; pinctrl-names = "default"; @@ -232,9 +232,21 @@ &usbotg2 { }; &usdhc1 { + pinctrl-names = "default", "state_100mhz", "state_200mhz", "sleep"; + pinctrl-0 = <&pinctrl_usdhc1 &pinctrl_snvs_usdhc1_cd>; + pinctrl-1 = <&pinctrl_usdhc1_100mhz &pinctrl_snvs_usdhc1_cd>; + pinctrl-2 = <&pinctrl_usdhc1_200mhz &pinctrl_snvs_usdhc1_cd>; + pinctrl-3 = <&pinctrl_usdhc1 &pinctrl_snvs_usdhc1_sleep_cd>; assigned-clocks = <&clks IMX6UL_CLK_USDHC1_SEL>, <&clks IMX6UL_CLK_USDHC1>; assigned-clock-parents = <&clks IMX6UL_CLK_PLL2_PFD2>; assigned-clock-rates = <0>, <198000000>; + bus-width = <4>; + cd-gpios = <&gpio5 0 GPIO_ACTIVE_LOW>; + disable-wp; + keep-power-in-suspend; + no-1-8-v; + vqmmc-supply = <®_sd1_vqmmc>; + wakeup-source; }; &wdog1 { @@ -550,8 +562,8 @@ MX6UL_PAD_GPIO1_IO02__GPIO1_IO02 0x10b0 /* SODIMM 129 */ pinctrl_usdhc1: usdhc1-grp { fsl,pins = < - MX6UL_PAD_SD1_CLK__USDHC1_CLK 0x17059 /* SODIMM 47 */ - MX6UL_PAD_SD1_CMD__USDHC1_CMD 0x10059 /* SODIMM 190 */ + MX6UL_PAD_SD1_CLK__USDHC1_CLK 0x10059 /* SODIMM 47 */ + MX6UL_PAD_SD1_CMD__USDHC1_CMD 0x17059 /* SODIMM 190 */ MX6UL_PAD_SD1_DATA0__USDHC1_DATA0 0x17059 /* SODIMM 192 */ MX6UL_PAD_SD1_DATA1__USDHC1_DATA1 0x17059 /* SODIMM 49 */ MX6UL_PAD_SD1_DATA2__USDHC1_DATA2 0x17059 /* SODIMM 51 */ @@ -561,8 +573,8 @@ MX6UL_PAD_SD1_DATA3__USDHC1_DATA3 0x17059 /* SODIMM 53 */ pinctrl_usdhc1_100mhz: usdhc1-100mhz-grp { fsl,pins = < - MX6UL_PAD_SD1_CLK__USDHC1_CLK 0x170b9 - MX6UL_PAD_SD1_CMD__USDHC1_CMD 0x100b9 + MX6UL_PAD_SD1_CLK__USDHC1_CLK 0x100b9 + MX6UL_PAD_SD1_CMD__USDHC1_CMD 0x170b9 MX6UL_PAD_SD1_DATA0__USDHC1_DATA0 0x170b9 MX6UL_PAD_SD1_DATA1__USDHC1_DATA1 0x170b9 MX6UL_PAD_SD1_DATA2__USDHC1_DATA2 0x170b9 @@ -572,12 +584,12 @@ MX6UL_PAD_SD1_DATA3__USDHC1_DATA3 0x170b9 pinctrl_usdhc1_200mhz: usdhc1-200mhz-grp { fsl,pins = < - MX6UL_PAD_SD1_CLK__USDHC1_CLK 0x170f9 - MX6UL_PAD_SD1_CMD__USDHC1_CMD 0x100f9 - MX6UL_PAD_SD1_DATA0__USDHC1_DATA0 0x170b9 - MX6UL_PAD_SD1_DATA1__USDHC1_DATA1 0x170b9 - MX6UL_PAD_SD1_DATA2__USDHC1_DATA2 0x170b9 - MX6UL_PAD_SD1_DATA3__USDHC1_DATA3 0x170b9 + MX6UL_PAD_SD1_CLK__USDHC1_CLK 0x100f9 + MX6UL_PAD_SD1_CMD__USDHC1_CMD 0x170f9 + MX6UL_PAD_SD1_DATA0__USDHC1_DATA0 0x170f9 + MX6UL_PAD_SD1_DATA1__USDHC1_DATA1 0x170f9 + MX6UL_PAD_SD1_DATA2__USDHC1_DATA2 0x170f9 + MX6UL_PAD_SD1_DATA3__USDHC1_DATA3 0x170f9 >; }; @@ -588,7 +600,7 @@ MX6UL_PAD_CSI_DATA01__USDHC2_DATA1 0x17069 MX6UL_PAD_CSI_DATA02__USDHC2_DATA2 0x17069 MX6UL_PAD_CSI_DATA03__USDHC2_DATA3 0x17069 MX6UL_PAD_CSI_HSYNC__USDHC2_CMD 0x17069 - MX6UL_PAD_CSI_VSYNC__USDHC2_CLK 0x17069 + MX6UL_PAD_CSI_VSYNC__USDHC2_CLK 0x10069 MX6UL_PAD_GPIO1_IO03__OSC32K_32K_OUT 0x10 >; -- 2.35.1