From patchwork Thu Sep 20 17:58:20 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anand Moon X-Patchwork-Id: 10608397 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 2D0A86CB for ; Thu, 20 Sep 2018 17:59:23 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 26E4C2E52E for ; Thu, 20 Sep 2018 17:59:23 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 1AF4A2E535; Thu, 20 Sep 2018 17:59:23 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-8.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id C25AA2E52E for ; Thu, 20 Sep 2018 17:59:22 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732264AbeITXn1 (ORCPT ); Thu, 20 Sep 2018 19:43:27 -0400 Received: from mail-pf1-f193.google.com ([209.85.210.193]:45112 "EHLO mail-pf1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726827AbeITXn0 (ORCPT ); Thu, 20 Sep 2018 19:43:26 -0400 Received: by mail-pf1-f193.google.com with SMTP id i26-v6so4715742pfo.12; Thu, 20 Sep 2018 10:58:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=xZj4ehUhArcu1C3R0L0csXdj1nGlzB03lWOcBQ0Pwho=; b=DzE2Q/TMaSyc+t7iJHcpJabLOqy7DYsO8LnA/XraEkfpxr/yHD+k9my/kfjzij6kHk uxny4Zwg83E6NYR45MbpV5w4aabZdQ0+mnUcypeqTQVPYFSXquS+GMFti89wf3mCyZib SZJGPqaO8k7/4Evxh3qMklreUhjQ11g5XGhQAb4XAt7WhDbMyLDuOvjFyK7boB9Kx4N6 WWH00KOzv0/N83mXYQxOpYvhF3Pqf24G62klQhiojGJ+rBOOAv/TUq9GwiyvUrCLOsyC m2E8+yj74uQvvsY89rsaa14PguafdvFh6/7qHBAlDZ0EQXHcDzqX4Zfs9UHDlia4aw/x 1JOw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=xZj4ehUhArcu1C3R0L0csXdj1nGlzB03lWOcBQ0Pwho=; b=affzV3pg7WehN4YcIlNqnV4Jm0P/mKKw9uwLOsr2V9YoYHiDkfSrdT+KOFzQ7vxCIC LY4agKrHvatkoEMO3vwQ1s29H1thrB98dz+YiAJUrKMcafxiHhKt0iasizZ9lgrwBK55 dJjZMAjLv+fVADuS30aIHqLgbDh6RyZUdxYh9wY5UeSI2Id+xrvHYEP2W1sGpavgs4c7 JMxT8xW+UMNg4fhw/LJA8VHmV/qEhpNdAheaaNjxQ1W7wovmrBEayrhizdPG6Zw+dqNB KYblmKB6qoqsTlnzgARZsgxbyyt0mYJoNrS553YmQR1+sEFa5KxCui0GBK+VMYkxfzZU GPcw== X-Gm-Message-State: APzg51BNuQ5LEMSITqAQSRPDeaEpFyc6b0Hld5oWhBQ5ZfmGqTtlafqA XTNEpHCnVysWCETbRxDMVVo= X-Google-Smtp-Source: ANB0Vdbg6/LS/J6rpF5pxinGS1aiA3dbytOpXMgLtepOAiV8GJ30AkhlB7s8v/PObNSEU6n8QtTKBA== X-Received: by 2002:a62:6f87:: with SMTP id k129-v6mr42120570pfc.26.1537466327143; Thu, 20 Sep 2018 10:58:47 -0700 (PDT) Received: from localhost.localdomain ([103.51.74.159]) by smtp.gmail.com with ESMTPSA id n29-v6sm29963555pgl.30.2018.09.20.10.58.43 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 20 Sep 2018 10:58:46 -0700 (PDT) From: Anand Moon To: Rob Herring , Mark Rutland , Kukjin Kim , Krzysztof Kozlowski , Marek Szyprowski , Jaehoon Chung , Ulf Hansson Cc: devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, linux-kernel@vger.kernel.org, linux-mmc@vger.kernel.org Subject: [PATCHv3 1/7] ARM: dts: exynos5422: Added UHS-I bus speed support Date: Thu, 20 Sep 2018 17:58:20 +0000 Message-Id: <20180920175826.1284-2-linux.amoon@gmail.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20180920175826.1284-1-linux.amoon@gmail.com> References: <20180920175826.1284-1-linux.amoon@gmail.com> Sender: linux-mmc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-mmc@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Added support for UHS-I bus speed tuning for SDR50, DDR50 SDR104. Signed-off-by: Anand Moon --- [0] http://lists.infradead.org/pipermail/linux-arm-kernel/2015-October/376263.html Changes from above. Fix the subject and commit message. drop sd-uhs-sdr12 and sd-uhs-sdr25 as host driver is not enable as of now --- arch/arm/boot/dts/exynos5422-odroid-core.dtsi | 3 +++ 1 file changed, 3 insertions(+) diff --git a/arch/arm/boot/dts/exynos5422-odroid-core.dtsi b/arch/arm/boot/dts/exynos5422-odroid-core.dtsi index 2f4f40882dab..3a58c935c52a 100644 --- a/arch/arm/boot/dts/exynos5422-odroid-core.dtsi +++ b/arch/arm/boot/dts/exynos5422-odroid-core.dtsi @@ -370,6 +370,9 @@ cap-sd-highspeed; vmmc-supply = <&ldo19_reg>; vqmmc-supply = <&ldo13_reg>; + sd-uhs-sdr50; + sd-uhs-sdr104; + sd-uhs-ddr50; }; &nocp_mem0_0 { From patchwork Thu Sep 20 17:58:21 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anand Moon X-Patchwork-Id: 10608395 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id C1D806CB for ; Thu, 20 Sep 2018 17:59:21 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id BC2572E52E for ; Thu, 20 Sep 2018 17:59:21 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id AFD762E534; Thu, 20 Sep 2018 17:59:21 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-8.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI autolearn=unavailable version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 6B0BF2E52E for ; Thu, 20 Sep 2018 17:59:21 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732601AbeITXna (ORCPT ); Thu, 20 Sep 2018 19:43:30 -0400 Received: from mail-pl1-f195.google.com ([209.85.214.195]:37644 "EHLO mail-pl1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726827AbeITXna (ORCPT ); Thu, 20 Sep 2018 19:43:30 -0400 Received: by mail-pl1-f195.google.com with SMTP id q5-v6so1229797pli.4; Thu, 20 Sep 2018 10:58:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=UBwIuTiMBsD6cj7cWYr6Q/ITOcyWoab9CGhawah+tAg=; b=D32QN1GlD0zrEKarp0ZvlO/otvc4ojSZljmjKiYzGSaxYXjXsVqw0E7Kr+YtDsLePr 7eHJDOy6zzJtupoVqaV6oxNSvZbMRTu4/4foEJUTdKzxoQqZsXSqbcOdbdQA2kYP3qLa z0lymhEexRCzXga5PYdxAhlFtnBXAyRntCq/jP6wx4l313lgIFd1KupUTiv5AindKFTp 3Jq1MhxgcJWeQyZbABRgGj50GGrwQGjoM/QJnv3N5YEMX24b5fw03EEln5X049/fD5i+ fOzjlQTRDUU9jNeAEPkR172uGb7IHUUM4LVMsNicvKPw1/LBZyQLsc2GGdjHaz5eyB3v mTJg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=UBwIuTiMBsD6cj7cWYr6Q/ITOcyWoab9CGhawah+tAg=; b=D0U1e3Ym2bvHHDdwyotVuwpXhSDRO4Wy+P7l/0+nrOPpzhXpalO/Jh/3wAi8hRM37K XjqZYxzOXlrtQ4QZ4biSpQ0GZJ0eIiCuqJKWJbtnMidxRJ33hoZcgmWWmDmpuAP11CBM w9P0OpD7wDPPoXXCAmxJFxTaO2TDGLMknqid51QkZYIJquxtFD99v8IxnTu8RznxllpP kpcQ0z0FyhpVSWWQTThqIZWgcuCHm2l9UhKzz8Ajy5dUZ/qZi0yrLIR9KN8XbAjndEuu YZpyr9YQBM6IbBnXGhTlTacnXicEaYANWQWISFsN/a4XOJO81ViBP5BSwJHxKoH6Iopc q0sg== X-Gm-Message-State: APzg51DiNpcWY3shY9UJrstj/xibNh5nCcTB4wk7o0x1SulNeFWpTM67 23HcLiY+lBzcuQH6vTZ1uuU= X-Google-Smtp-Source: ANB0Vdb46Uo7fWuFpkXN8wO4Hr8+pEBtTL76w4FVxqeqjJ/kZnaztZldre3cGUdw8ZWxolw6m/RM0w== X-Received: by 2002:a17:902:3041:: with SMTP id u59-v6mr39698193plb.99.1537466331232; Thu, 20 Sep 2018 10:58:51 -0700 (PDT) Received: from localhost.localdomain ([103.51.74.159]) by smtp.gmail.com with ESMTPSA id n29-v6sm29963555pgl.30.2018.09.20.10.58.47 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 20 Sep 2018 10:58:50 -0700 (PDT) From: Anand Moon To: Rob Herring , Mark Rutland , Kukjin Kim , Krzysztof Kozlowski , Marek Szyprowski , Jaehoon Chung , Ulf Hansson Cc: devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, linux-kernel@vger.kernel.org, linux-mmc@vger.kernel.org Subject: [PATCHv3 2/7] ARM: dts: exynos5422: fix regulator min values of LDO13 for Odroid XU3/XU4 Date: Thu, 20 Sep 2018 17:58:21 +0000 Message-Id: <20180920175826.1284-3-linux.amoon@gmail.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20180920175826.1284-1-linux.amoon@gmail.com> References: <20180920175826.1284-1-linux.amoon@gmail.com> Sender: linux-mmc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-mmc@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP looking at the schematic sd_2 min/max range from 1.8V/2.8V so fix the regulator min value to 1.8V. Without these changes sdcard will failed to detect on booting when UHS-I tuning is enabled. Signed-off-by: Anand Moon --- [0] http://lists.infradead.org/pipermail/linux-arm-kernel/2015-October/376262.html Fixed the commit message. drop the ramp-delay changes. drop the vmmc-supply/vqmmc-supply changes. --- arch/arm/boot/dts/exynos5422-odroid-core.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/boot/dts/exynos5422-odroid-core.dtsi b/arch/arm/boot/dts/exynos5422-odroid-core.dtsi index 3a58c935c52a..01593f4537ae 100644 --- a/arch/arm/boot/dts/exynos5422-odroid-core.dtsi +++ b/arch/arm/boot/dts/exynos5422-odroid-core.dtsi @@ -224,7 +224,7 @@ ldo13_reg: LDO13 { regulator-name = "vddq_mmc2"; - regulator-min-microvolt = <2800000>; + regulator-min-microvolt = <1800000>; regulator-max-microvolt = <2800000>; }; From patchwork Thu Sep 20 17:58:22 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anand Moon X-Patchwork-Id: 10608391 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 3E9FA913 for ; Thu, 20 Sep 2018 17:59:19 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 341F72E52E for ; Thu, 20 Sep 2018 17:59:19 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 284522E534; Thu, 20 Sep 2018 17:59:19 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-8.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id CC3D32E52E for ; Thu, 20 Sep 2018 17:59:18 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2387913AbeITXnf (ORCPT ); Thu, 20 Sep 2018 19:43:35 -0400 Received: from mail-pf1-f193.google.com ([209.85.210.193]:41178 "EHLO mail-pf1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726827AbeITXnf (ORCPT ); Thu, 20 Sep 2018 19:43:35 -0400 Received: by mail-pf1-f193.google.com with SMTP id h79-v6so4725525pfk.8; Thu, 20 Sep 2018 10:58:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=UAU6/eXRgeoTQS4Qea6/w2qCMQGE0r04ho42F6TDaD4=; b=eSYp4a0BRd89wHMMVhmivDgVDjmU2BomwtXYwdfzosttk/T1Tp2EyiDJaNzCWMDKyz fwqyj1fUor63z4FRMkDabtd6BCz4UoX48it50Zkf35NFEPHvlc17DU8uCDNa4bObJpWZ bx9KpjV3ndl7IDIoQddST6LiCXZNlKEyyNy33euK1gtWE3pHyLJzepIbdglxSIYSZMKm I5tNNeE9Lfdw62eadaIXNytMvOB66cp7d3Gw/S1pVy1mp91xHpSKmGKAZoMJpt5AWTXT 62lx1Jlz3y9XzfyPe3h6VH70bSGIvqoks6hbO0vwV5bXc1BwL2J/3wTHvCbyJUm3iGGY yrJQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=UAU6/eXRgeoTQS4Qea6/w2qCMQGE0r04ho42F6TDaD4=; b=FF9oNm5zVptsSuwmZjzdfHnx+C9Q4KEKZBIfK+q4/kKJF60UF49I/jquqeOgubSiS0 +HrqmfIaQ1b1JszPEQsACItrNkk9IrwwwCoIdWOCQs3ZXIEOrsYyD5q404RKCu6028wv whPgzLyd+sJTMYd9dICYtd7iiavfHB5lSUV+kGxx7WsmMW5c31GSZ1D6tcgshjyge+Qt dkl1UrSZDfYR3DiJpAQWswkGcsJPsUr070JlOxzKPYFVZb6QaJQbLJztDSSQCBgTg/Rk P1+7K+Oi4//m1eg9I5jT/RRJmbrSoIwuLor6jniTQGDkt8cG5au+5+TNRT5+0GIXe749 sm4w== X-Gm-Message-State: APzg51CWt+qBPsJdCJKF2voDKcZsIJa7esZ18fGhGkLhS0yNZUBJW4xW aY1Qkp0V6snQ1m7RrYwGUxU= X-Google-Smtp-Source: ANB0VdZztPGEWLGcOXQk2HjMA+mhqBzhmRBK/DkBhBXt8eeTQURPRvca839jtyYrwq3qPImWw2eOhQ== X-Received: by 2002:a63:5815:: with SMTP id m21-v6mr37815588pgb.78.1537466335578; Thu, 20 Sep 2018 10:58:55 -0700 (PDT) Received: from localhost.localdomain ([103.51.74.159]) by smtp.gmail.com with ESMTPSA id n29-v6sm29963555pgl.30.2018.09.20.10.58.51 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 20 Sep 2018 10:58:55 -0700 (PDT) From: Anand Moon To: Rob Herring , Mark Rutland , Kukjin Kim , Krzysztof Kozlowski , Marek Szyprowski , Jaehoon Chung , Ulf Hansson Cc: devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, linux-kernel@vger.kernel.org, linux-mmc@vger.kernel.org Subject: [PATCHv3 3/7] ARM: dts: exynos5422: update maximum frequency for sdcard to 200MHz Date: Thu, 20 Sep 2018 17:58:22 +0000 Message-Id: <20180920175826.1284-4-linux.amoon@gmail.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20180920175826.1284-1-linux.amoon@gmail.com> References: <20180920175826.1284-1-linux.amoon@gmail.com> Sender: linux-mmc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-mmc@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP set the max-frequency to 200MHz for optimal performace. Signed-off-by: Anand Moon --- This patch is new to this series. microSD card. root@odroid:~# sudo cat /sys/kernel/debug/mmc1/ios clock: 200000000 Hz actual clock: 200000000 Hz vdd: 16 (2.8 ~ 2.9 V) bus mode: 2 (push-pull) chip select: 0 (don't care) power mode: 2 (on) bus width: 2 (4 bits) timing spec: 6 (sd uhs SDR104) signal voltage: 1 (1.80 V) driver type: 0 (driver type B) --- arch/arm/boot/dts/exynos5422-odroid-core.dtsi | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/boot/dts/exynos5422-odroid-core.dtsi b/arch/arm/boot/dts/exynos5422-odroid-core.dtsi index 01593f4537ae..914ee08c7eb2 100644 --- a/arch/arm/boot/dts/exynos5422-odroid-core.dtsi +++ b/arch/arm/boot/dts/exynos5422-odroid-core.dtsi @@ -368,6 +368,7 @@ pinctrl-0 = <&sd2_clk &sd2_cmd &sd2_cd &sd2_bus1 &sd2_bus4>; bus-width = <4>; cap-sd-highspeed; + max-frequency = <200000000>; vmmc-supply = <&ldo19_reg>; vqmmc-supply = <&ldo13_reg>; sd-uhs-sdr50; From patchwork Thu Sep 20 17:58:23 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anand Moon X-Patchwork-Id: 10608389 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 9B5586CB for ; Thu, 20 Sep 2018 17:59:18 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 94EF42E52E for ; Thu, 20 Sep 2018 17:59:18 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 88C382E534; Thu, 20 Sep 2018 17:59:18 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-8.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI autolearn=unavailable version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 45D0B2E52E for ; Thu, 20 Sep 2018 17:59:18 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2387951AbeITXnj (ORCPT ); Thu, 20 Sep 2018 19:43:39 -0400 Received: from mail-pl1-f195.google.com ([209.85.214.195]:45056 "EHLO mail-pl1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726827AbeITXnj (ORCPT ); Thu, 20 Sep 2018 19:43:39 -0400 Received: by mail-pl1-f195.google.com with SMTP id j8-v6so4684988pll.12; Thu, 20 Sep 2018 10:58:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=zC+SpiGvDffisRWF4lDh3IrlftlwiMtadKOftk7sQX0=; b=MpZYqV5r3gmwHip6ZIr1mWhg09ryIX98pmEl1hpeY5uHDtyw83hGNtWbAoXElt84R2 GXlLjL/3/AU8iPedr87hkx0yNTxghp4MGtHXmaF1YTotM0u9ZNJnfFC4xxnVRkBhnOlA /IK5ISwk06vEAp0awpOazoLSSa2g00RK6Hu/v3EQ3pE+wPdgO4GS1591S5gfCkjRusHr epetFVpLU2166YKU4U1H1qMpp+auUGwKoJ8afZpa2MlKJgIEd5gd9v5nUYusaAUjQI9T urPyfnJcnMb1LGDSi3Pyggfr0uipKoXL0tcmGuCVtmI8geNKQyzx7vRdwkvMVYNoqvm6 Dq7Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=zC+SpiGvDffisRWF4lDh3IrlftlwiMtadKOftk7sQX0=; b=kuSY2G5WGlF4AXZP3sMqnEHpkrUePBeHrLXESdSZf5Qed6E7Sl/2NlOFka5zm+6NL0 8MClCqE9TUpqI4Gp3KbwWEimCxWPnihLqkLKPT46s4LH4/mls4zbfhQSZZ1f0ajU0qE6 9dYBC6gyk90nvQQpF7m6HxtPtER7bDKxp6+Gli9WD8tbt0wOtcvZUJcS44grvJJl/Rcj KnNHeXjkdevcv/gT4b9/5lCYIwHEi92n32fAZwQpjsnMN5W4dC++re5m4ePeLwUYe3qe F97f2qNPkQ1TN61vtf7ltRFiGYV3eD8BcmzELwbl51OY9+bzzLzN82PKE333aIkf5Nuv OgVg== X-Gm-Message-State: APzg51DrsT1EcOygHZXKVHvX8hPYESWPZFqa8a63LqnSc48iBiA2oxvL cIYT5nh3ez9PbXN5XHX02LE= X-Google-Smtp-Source: ANB0VdZvHXptXyhQemKjNhxbpN3FzN830lmnRAZm0LGN1IM3+XKDmHfMomwNUy+rHfSY1nhY+eJR+A== X-Received: by 2002:a17:902:d688:: with SMTP id v8-v6mr4407976ply.79.1537466339653; Thu, 20 Sep 2018 10:58:59 -0700 (PDT) Received: from localhost.localdomain ([103.51.74.159]) by smtp.gmail.com with ESMTPSA id n29-v6sm29963555pgl.30.2018.09.20.10.58.55 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 20 Sep 2018 10:58:59 -0700 (PDT) From: Anand Moon To: Rob Herring , Mark Rutland , Kukjin Kim , Krzysztof Kozlowski , Marek Szyprowski , Jaehoon Chung , Ulf Hansson Cc: devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, linux-kernel@vger.kernel.org, linux-mmc@vger.kernel.org Subject: [PATCHv3 4/7] ARM: dts: exynos5422: use cd-gpio method to detect sd-card Date: Thu, 20 Sep 2018 17:58:23 +0000 Message-Id: <20180920175826.1284-5-linux.amoon@gmail.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20180920175826.1284-1-linux.amoon@gmail.com> References: <20180920175826.1284-1-linux.amoon@gmail.com> Sender: linux-mmc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-mmc@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP add the Card Detect GPIO property for sdcard detect, to fix the warning message during boot time. of_get_named_gpiod_flags: can't parse 'cp-gpios' property of node '/soc/mmc@12220000[0]' Signed-off-by: Anand Moon --- [0] http://lists.infradead.org/pipermail/linux-arm-kernel/2015-October/376261.html Fixed the commit message. --- arch/arm/boot/dts/exynos5422-odroid-core.dtsi | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/boot/dts/exynos5422-odroid-core.dtsi b/arch/arm/boot/dts/exynos5422-odroid-core.dtsi index 914ee08c7eb2..03fe02ceae66 100644 --- a/arch/arm/boot/dts/exynos5422-odroid-core.dtsi +++ b/arch/arm/boot/dts/exynos5422-odroid-core.dtsi @@ -369,6 +369,7 @@ bus-width = <4>; cap-sd-highspeed; max-frequency = <200000000>; + cd-gpios = <&gpc2 2 GPIO_ACTIVE_LOW>; vmmc-supply = <&ldo19_reg>; vqmmc-supply = <&ldo13_reg>; sd-uhs-sdr50; From patchwork Thu Sep 20 17:58:24 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anand Moon X-Patchwork-Id: 10608385 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id DCF1B913 for ; Thu, 20 Sep 2018 17:59:16 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id D661E2E52E for ; Thu, 20 Sep 2018 17:59:16 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id CA69B2E534; Thu, 20 Sep 2018 17:59:16 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-8.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI autolearn=unavailable version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 8AB962E53A for ; Thu, 20 Sep 2018 17:59:16 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2388004AbeITXnn (ORCPT ); Thu, 20 Sep 2018 19:43:43 -0400 Received: from mail-pg1-f193.google.com ([209.85.215.193]:46499 "EHLO mail-pg1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726827AbeITXnn (ORCPT ); Thu, 20 Sep 2018 19:43:43 -0400 Received: by mail-pg1-f193.google.com with SMTP id b129-v6so4771327pga.13; Thu, 20 Sep 2018 10:59:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=eWPgu7ZWUMLA4z1NAFc9hmsjM9hmq408YVjcnpIfOr0=; b=qlKqqtzRdsfr5WZWYDJ4MaPL+e9zgFsYTQGGZs9e0V3qSCQTrwst9r7RR7qcljSwl+ jAcXnba+3zP3YtFD1JyMftraStIn5oNRWC1sd+x42bRQREYf56qVuWlBSx5ysgjxTusU a5MFv6GOFHy0oglllHEdhTknneU8eYz4Jfsz9To2jlV0RF1wnsD6souha6m0oith5p/o l+6ckmangIlgv7rg3J4PgJWaE0AAaZkAtoMG/y80VvY/M45Z9pfNpIginKXotJunPZRA c26eHoyohJefO1L+3+LHUjoOrbDIsjQ+Siw1SxBf9gZFdUt+GzhYBOP4cWd0digya0Wm OtkQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=eWPgu7ZWUMLA4z1NAFc9hmsjM9hmq408YVjcnpIfOr0=; b=UnFyVm1uHlga+M4GRGuRxhKtMIhyoDQnI3G1Y5ESS5jwrQMQieA61O6DGOKft38pmR FnwX5j6isrC75LVcAuGYOSCUQxJ3cFCCYwry49ecPGz8QfAX7n6jB8jTmkBkjnTAVQFP SkwvLItAlLhxLK185mu6bgJdB5z/obSpkx6RL/BZoVlueAuNDXjy3YamVUE8UUbGZ9LC dJVRJVg1bVyuV/mGlYK2odct2V44LqrLZswRDG4Z9Fn4bJjDOSDl1FWjtmmQSHA/mJ/T +PhFXP2VWkNEw+oc59O3ztcXzYAjivixMQEDGwQ8F703fs22W8nhPUmN945iWOGzEIyl QCUQ== X-Gm-Message-State: APzg51Bg+rPuerPzCaA/ToiT10iP2VgJOzdMjUDGH6rsJEcUqTo0d6qy M2tGggvvVoG86g7Hq1vml2J+YSnw X-Google-Smtp-Source: ANB0VdY+v35+SvzqbyIkzXhhUYVjb3kJUWTbJdZZzHTe/u0h4VD7xkeTBtmoT7ch/dDe7jMWxutpxQ== X-Received: by 2002:a63:8c4:: with SMTP id 187-v6mr4659767pgi.396.1537466343713; Thu, 20 Sep 2018 10:59:03 -0700 (PDT) Received: from localhost.localdomain ([103.51.74.159]) by smtp.gmail.com with ESMTPSA id n29-v6sm29963555pgl.30.2018.09.20.10.58.59 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 20 Sep 2018 10:59:03 -0700 (PDT) From: Anand Moon To: Rob Herring , Mark Rutland , Kukjin Kim , Krzysztof Kozlowski , Marek Szyprowski , Jaehoon Chung , Ulf Hansson Cc: devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, linux-kernel@vger.kernel.org, linux-mmc@vger.kernel.org Subject: [PATCHv3 5/7] ARM: dts: exynos5422: use wp-gpio method to detect sd-card Date: Thu, 20 Sep 2018 17:58:24 +0000 Message-Id: <20180920175826.1284-6-linux.amoon@gmail.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20180920175826.1284-1-linux.amoon@gmail.com> References: <20180920175826.1284-1-linux.amoon@gmail.com> Sender: linux-mmc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-mmc@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP add the Write Protect GPIO property for sdcard, to fix the warning message during boot time. of_get_named_gpiod_flags: can't parse 'wp-gpios' property of node '/soc/mmc@12220000[0]' Signed-off-by: Anand Moon --- New patch to this series. If we keep the wp-gpio GPIO_ACTIVE_LOW sdcard boot into RO mode. --- arch/arm/boot/dts/exynos5422-odroid-core.dtsi | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/boot/dts/exynos5422-odroid-core.dtsi b/arch/arm/boot/dts/exynos5422-odroid-core.dtsi index 03fe02ceae66..475c38bbc99e 100644 --- a/arch/arm/boot/dts/exynos5422-odroid-core.dtsi +++ b/arch/arm/boot/dts/exynos5422-odroid-core.dtsi @@ -370,6 +370,7 @@ cap-sd-highspeed; max-frequency = <200000000>; cd-gpios = <&gpc2 2 GPIO_ACTIVE_LOW>; + wp-gpios = <&gpc4 0 GPIO_ACTIVE_HIGH>; vmmc-supply = <&ldo19_reg>; vqmmc-supply = <&ldo13_reg>; sd-uhs-sdr50; From patchwork Thu Sep 20 17:58:25 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anand Moon X-Patchwork-Id: 10608381 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 5E553174F for ; Thu, 20 Sep 2018 17:59:14 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 57AD82E52E for ; Thu, 20 Sep 2018 17:59:14 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 4C2762E532; Thu, 20 Sep 2018 17:59:14 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-8.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI autolearn=unavailable version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 0ABC02E535 for ; Thu, 20 Sep 2018 17:59:14 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2388056AbeITXnr (ORCPT ); Thu, 20 Sep 2018 19:43:47 -0400 Received: from mail-pl1-f196.google.com ([209.85.214.196]:41389 "EHLO mail-pl1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726799AbeITXnr (ORCPT ); Thu, 20 Sep 2018 19:43:47 -0400 Received: by mail-pl1-f196.google.com with SMTP id b12-v6so4700646plr.8; Thu, 20 Sep 2018 10:59:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=7ozPV58ZprJGFFho2v59oZM+irN0bDqxCFuUpPHJrUY=; b=ZHmux/k/8jxmv3+h2FLiUodfeb2AKDEFAEVRggaBpGB29zXoMr38Uvp11up9IE3rps 6YRPC4UmSWYJIjYppG6i50HlimtIa9IRbzGX/SdzVBYns4k3GoObqNFEK2iIPeamQq+2 UQhf3lajmTIJWDWiqYyhBeJk80kPEZ85EaxDyssw6v0d9N47J2aIq6/Qi5s+LHGP+b0z n0WszHK8VSJ/PBrDcfkr3L0Bksxp/19pw0VYov8t4Eyejy7G0+7bDPsMLQI3mU9zreBM xowcPtemqw8bRqVhKys4y3Zxsi3EOLgAWtx0UX5Pv6/6E2slz08eqbhk6xc6vaFby71P zkFQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=7ozPV58ZprJGFFho2v59oZM+irN0bDqxCFuUpPHJrUY=; b=gCO9qrR3QXKOZpRktBr97MhLCAMPEj07zaDxcK0E9lm6Hcsh6LkswTBcUhROuDlmF7 j/Xi5EXnpnaDd76cgtO8YF/FcwXXsBnkF3br4FTzYUpCwoSqyLVkmrY1QlK1YA0mzF0M 7n6Qau39nbXJAyC2nzde9Bq4PuoQTbPWa1NgKgKgV45e6rXSC2wDfzhGmR0TkcFydlee pkP7gKMo2buPlmDMymwPP8jfkSZkGC3lRrpvjNpiEvo4Q+LDMMWpWv6X9M3X7y8Qvduh /dovzoYttMcGDSH1JQCq75Lwvy/ugxCfOW4JWkEWjCXqHfidDH4fGLCK/BIFkJbL1xGe RkQw== X-Gm-Message-State: APzg51CGjf2QfbBA7rO0gmwKUzLRg4oNRvI6EFuzwdwCh4bZt3POUWEJ 7me54a34E8vmUx5Id8ILi/rYNByG X-Google-Smtp-Source: ANB0VdbN1hKuu5TfYkUXgbO1f9H3VAhd4Jj6Qkr2sqizS9bZAsKmV7Yap+THbBWhlTruoTpw5RB4GQ== X-Received: by 2002:a17:902:a507:: with SMTP id s7-v6mr39595693plq.303.1537466347809; Thu, 20 Sep 2018 10:59:07 -0700 (PDT) Received: from localhost.localdomain ([103.51.74.159]) by smtp.gmail.com with ESMTPSA id n29-v6sm29963555pgl.30.2018.09.20.10.59.03 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 20 Sep 2018 10:59:07 -0700 (PDT) From: Anand Moon To: Rob Herring , Mark Rutland , Kukjin Kim , Krzysztof Kozlowski , Marek Szyprowski , Jaehoon Chung , Ulf Hansson Cc: devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, linux-kernel@vger.kernel.org, linux-mmc@vger.kernel.org Subject: [PATCHv3 6/7] ARM: dts: exynos5422: update maximum frequency for emmc to 200MHz Date: Thu, 20 Sep 2018 17:58:25 +0000 Message-Id: <20180920175826.1284-7-linux.amoon@gmail.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20180920175826.1284-1-linux.amoon@gmail.com> References: <20180920175826.1284-1-linux.amoon@gmail.com> Sender: linux-mmc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-mmc@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP set the max-frequency to 200MHz for optimal performace of eMMC. Signed-off-by: Anand Moon --- This patch is new to this series. MMC root@odroid:~# sudo cat /sys/kernel/debug/mmc0/ios clock: 200000000 Hz actual clock: 200000000 Hz vdd: 7 (1.65 - 1.95 V) bus mode: 2 (push-pull) chip select: 0 (don't care) power mode: 2 (on) bus width: 3 (8 bits) timing spec: 10 (mmc HS400) signal voltage: 1 (1.80 V) driver type: 0 (driver type B) --- arch/arm/boot/dts/exynos5422-odroidxu3-common.dtsi | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/boot/dts/exynos5422-odroidxu3-common.dtsi b/arch/arm/boot/dts/exynos5422-odroidxu3-common.dtsi index 96e281c0a118..5748f840becc 100644 --- a/arch/arm/boot/dts/exynos5422-odroidxu3-common.dtsi +++ b/arch/arm/boot/dts/exynos5422-odroidxu3-common.dtsi @@ -386,6 +386,7 @@ cap-mmc-highspeed; mmc-hs200-1_8v; mmc-hs400-1_8v; + max-frequency = <200000000>; vmmc-supply = <&ldo18_reg>; vqmmc-supply = <&ldo3_reg>; }; From patchwork Thu Sep 20 17:58:26 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anand Moon X-Patchwork-Id: 10608405 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 2481C913 for ; Thu, 20 Sep 2018 17:59:43 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 1DCE92E537 for ; Thu, 20 Sep 2018 17:59:43 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 11F942E53E; Thu, 20 Sep 2018 17:59:43 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-8.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI autolearn=unavailable version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id C06762E537 for ; Thu, 20 Sep 2018 17:59:42 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727232AbeITXoP (ORCPT ); Thu, 20 Sep 2018 19:44:15 -0400 Received: from mail-pl1-f195.google.com ([209.85.214.195]:34525 "EHLO mail-pl1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726799AbeITXoP (ORCPT ); Thu, 20 Sep 2018 19:44:15 -0400 Received: by mail-pl1-f195.google.com with SMTP id f6-v6so4708778plo.1; Thu, 20 Sep 2018 10:59:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=l9o0Sy1bGvRkbDIdLy+Zzid1+PkJW3yl1pKPiGyiATk=; b=EiQLV67dkt+61R6RBVBAHxsVuy/nKdsS69zmEYj2uuRbT/3G+yUQIriWG9JzA3CvLq SliF0QUTOGV/KJ6b06N4X8CxuzDXQmGIwaLPf5nJjj8wag5CUlFQ06hey0npcQKpQF2J WcryNVVwxKyJyGvrTKYJd32Co/Y7O4At72og5SlotYcZzz2jap+Ukdzb/ydSV739iDa3 p87IYNHmQPWwIOAuKo8DM/TJcYNUj3czUpMVNPd22h8LNW2wWX6g9h3N7K8S2Dj5WPm0 AWwOV6Yq4vrmsrtMYZaZU5C+b0ATrS0JLNZsCa4kVWayw1QvfzuWw0Y8N/W5NmyyjYv2 GuwA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=l9o0Sy1bGvRkbDIdLy+Zzid1+PkJW3yl1pKPiGyiATk=; b=ekrGjyFvEBGItldopj6lyY4oxoejOQu9WJeIR1PI17fCFDZo592qAqD6/RAr+3apbO VV6Vh1Kum/KzFnkClOITCIjj1adXRawNGWyheniTOo2sfe7cXO2VUXIfo8tkkHbRqgGP l5+TKzdWMlBaNAgoXe6ET1Vzk59V4DoOY5MLsfKJn5OTawubjxtvcSUvG4pVwxCKS+ra XG/O4zcRFoRTSU7c+3h79/um0zhnovpz6Qj43mF+O/NC1Ldu72hJhRs0zUye63fGBTlz jQSGP+CL84Ua3JuPxN/FPYgkgZh8AjmlsfoYh2SCm7oEB7U1gygF7dIDLvIRMhlFxhUx BbKA== X-Gm-Message-State: APzg51CUUmb6RzasUXtCUiLCbPM98NgWyZ5Q8rpIwKnyNtYW/ExLZ7W9 MTUsrrYc3nejWVsQOwXloWQ= X-Google-Smtp-Source: ANB0VdYeIKhJ8UyIowtqb+aIQO54vVOCcjYD4B1ghmIc7BUf89AxnTMMD9WynbzQqiICEM7vnT4y7w== X-Received: by 2002:a17:902:900a:: with SMTP id a10-v6mr40494390plp.143.1537466375541; Thu, 20 Sep 2018 10:59:35 -0700 (PDT) Received: from localhost.localdomain ([103.51.74.159]) by smtp.gmail.com with ESMTPSA id n29-v6sm29963555pgl.30.2018.09.20.10.59.31 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 20 Sep 2018 10:59:34 -0700 (PDT) From: Anand Moon To: Rob Herring , Mark Rutland , Kukjin Kim , Krzysztof Kozlowski , Marek Szyprowski , Jaehoon Chung , Ulf Hansson Cc: devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, linux-kernel@vger.kernel.org, linux-mmc@vger.kernel.org Subject: [PATCHv3 7/7] mmc: dw_mmc-exynos: Add tuning for sdr and ddr timing for USH-I mode Date: Thu, 20 Sep 2018 17:58:26 +0000 Message-Id: <20180920175826.1284-8-linux.amoon@gmail.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20180920175826.1284-1-linux.amoon@gmail.com> References: <20180920175826.1284-1-linux.amoon@gmail.com> Sender: linux-mmc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-mmc@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Add tuning for sdr and ddr timing for USH-I mode sdr104/sdr50/ddr50 for host controller. CC: Jaehoon Chung CC: Marek Szyprowski Signed-off-by: Anand Moon --- This patch is new to this series --- drivers/mmc/host/dw_mmc-exynos.c | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/drivers/mmc/host/dw_mmc-exynos.c b/drivers/mmc/host/dw_mmc-exynos.c index ab47b018716a..d46c3439b508 100644 --- a/drivers/mmc/host/dw_mmc-exynos.c +++ b/drivers/mmc/host/dw_mmc-exynos.c @@ -253,6 +253,8 @@ static void dw_mci_exynos_config_hs400(struct dw_mci *host, u32 timing) if (timing == MMC_TIMING_MMC_HS400) { dqs |= DATA_STROBE_EN; strobe = DQS_CTRL_RD_DELAY(strobe, priv->dqs_delay); + } else if (timing == MMC_TIMING_UHS_SDR104) { + dqs &= 0xffffff00; } else { dqs &= ~DATA_STROBE_EN; } @@ -312,6 +314,15 @@ static void dw_mci_exynos_set_ios(struct dw_mci *host, struct mmc_ios *ios) if (ios->bus_width == MMC_BUS_WIDTH_8) wanted <<= 1; break; + case MMC_TIMING_UHS_SDR104: + case MMC_TIMING_UHS_SDR50: + clksel = (priv->sdr_timing & 0xfff8ffff) | + (priv->ciu_div << 16); + break; + case MMC_TIMING_UHS_DDR50: + clksel = (priv->ddr_timing & 0xfff8ffff) | + (priv->ciu_div << 16); + break; default: clksel = priv->sdr_timing; }