From patchwork Sat Sep 22 07:52:33 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anand Moon X-Patchwork-Id: 10611331 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 E9AE5913 for ; Sat, 22 Sep 2018 07:53:09 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id DEF542BEA2 for ; Sat, 22 Sep 2018 07:53:09 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id D20882BF18; Sat, 22 Sep 2018 07:53:09 +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 6D8D52BEA2 for ; Sat, 22 Sep 2018 07:53:09 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727412AbeIVNpl (ORCPT ); Sat, 22 Sep 2018 09:45:41 -0400 Received: from mail-pl1-f194.google.com ([209.85.214.194]:38850 "EHLO mail-pl1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725837AbeIVNpk (ORCPT ); Sat, 22 Sep 2018 09:45:40 -0400 Received: by mail-pl1-f194.google.com with SMTP id u11-v6so6940682plq.5; Sat, 22 Sep 2018 00:53:03 -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=zVV1QVWDSXH8FUaryikZbig4x0P4dBZVMEQFAsQAPYo=; b=cJGYFNvyOy028cEmQ8aVEH3G7LdSBVG0jKMjw6ZHzpftNuVqiBCW/fhUbZk5h0Fh3t rJftWGw7FO7o1jwQCt7Awup8ac37C9uU2bKd8ykTeLURVgCUzUVpCf+I1yV9j22hvwhL CMmqMlUubIFHmFMfGfh0D7P4+sFKLUMDgXFQMO0IiiKMicRNZ2tqIHD6CTW0U/pg48Zu Bq7KXgCIWVnkomRFzMpTzJO4Vsb1n39+L+aC0Q8Kl1VeE62XS7wVC+cVOprE4/4AlBUT jAYeXhBRYZJ42mtRX9UCMVUQhuaVRgtwJbPJPeAiXJ9Ww3XXFYwlxCEissTFtYBeFXkg FS8Q== 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=zVV1QVWDSXH8FUaryikZbig4x0P4dBZVMEQFAsQAPYo=; b=jW1j1djuCgVivbXeqRSLyYl6GEhvrNdC7zIHAMHJ2N+qG+iFzD+CVHyBzzBl4adlrF 6pI3/o/L5/QSlDS7pU694hPnywasCVmbuqMEgf8t7w/ha23oWvQPM4Bj0NzP5ZYGk97H 3wvBN4KX4I22OnrTchu9iIGSEjZS/Px7X4BD72Fh/WywBDPdPPjImLe3j2ne/P3GK9+r ZYXntG0rBx2PZSwkhvWg8ikKVcvTdxXU1IT08OP/m4rRYNZpl/xRcs3fr49IgT2XUg9M SsATSK1akSzDL1JzJW0wNOzXqfQAZ3UzFYUWS1jZAiijlxayXy6PzOaO2q8aVv9rk/qG OuWQ== X-Gm-Message-State: ABuFfogbPotYkhzB/GPuHtEfYJH/qBFoxtjrSqqVTD+O2ceF2SwmNdZv 2OkC/znHEe7Go016SN6Gz3GpPWhg X-Google-Smtp-Source: ACcGV6103sh4/UH8F22irzFOTWmHMuYmoIu8BHiboNrytPncJzJmItOfCx2hZAxk8Lo4jq0+PewCOA== X-Received: by 2002:a17:902:290a:: with SMTP id g10-v6mr1478698plb.110.1537602783330; Sat, 22 Sep 2018 00:53:03 -0700 (PDT) Received: from localhost.localdomain ([103.51.74.116]) by smtp.gmail.com with ESMTPSA id f67-v6sm53219253pff.29.2018.09.22.00.52.59 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 22 Sep 2018 00:53:02 -0700 (PDT) From: Anand Moon To: Rob Herring , Mark Rutland , Kukjin Kim , Krzysztof Kozlowski , 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: [PATCHv4 1/6] ARM: dts: exynos: Added UHS-I bus speed support Date: Sat, 22 Sep 2018 07:52:33 +0000 Message-Id: <20180922075238.884-3-linux.amoon@gmail.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20180922075238.884-1-linux.amoon@gmail.com> References: <20180922075238.884-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 2fac4baf1eb4..0508e6891f41 100644 --- a/arch/arm/boot/dts/exynos5422-odroid-core.dtsi +++ b/arch/arm/boot/dts/exynos5422-odroid-core.dtsi @@ -503,6 +503,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 Sat Sep 22 07:52:34 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anand Moon X-Patchwork-Id: 10611347 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 1AECF15A6 for ; Sat, 22 Sep 2018 07:53:33 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 0FA572BEF3 for ; Sat, 22 Sep 2018 07:53:33 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 03B3B2BF39; Sat, 22 Sep 2018 07:53:33 +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 AEEDD2BEF3 for ; Sat, 22 Sep 2018 07:53:32 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727474AbeIVNpo (ORCPT ); Sat, 22 Sep 2018 09:45:44 -0400 Received: from mail-pg1-f195.google.com ([209.85.215.195]:46786 "EHLO mail-pg1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725837AbeIVNpo (ORCPT ); Sat, 22 Sep 2018 09:45:44 -0400 Received: by mail-pg1-f195.google.com with SMTP id b129-v6so7028307pga.13; Sat, 22 Sep 2018 00:53:07 -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=C4Mdmn+WkEtGLorwYz0JZmLfHLWBJ/DuiHb977olMvg=; b=uBUufexwvZiirrI7IV3JLCe13iBO4pgnDdDmSJJUaF5gaCB+1FCUvG0Yr0zkAUqJvd 9NxRo52K0nQ28M4xHyhI8ZgB+Bp98oEpYL8G1MC2axTwBuc0FmYmJgO+FUb2bisIvZcD w1p4FMXa4EWkmxiD5DWLUlDdfTlxRvAYpqH4ONtaxKarDcDwOcuGXj+gS/984X5iFT/6 SjbkLR0iZHpvN0RLl+Xl0f/YiqqoyXYLwZ/4nRrKVUybwxQV3jf2ol1xQIaCj/e9/Abx sI5Ey+shpDw25u48HC0oyT7lNeE5yWTqoYFsivS7nEtewvSqNiedbqsPu/2l/F5VW9EX hquw== 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=C4Mdmn+WkEtGLorwYz0JZmLfHLWBJ/DuiHb977olMvg=; b=f21rm0DoC6UV3AqM5GtEFImq3gVHZ+5SifiuybF9/zf6AXou/fj7JQmmBJx6u+fmJd Xs17MDFUZDlbQ1oEK31AszzxDKDKpz+vikM35DiSvS8FVdAceEvXO0dDGLtI5RGri0hg tC6hN5mfXeZSHj0zgynRTXRTN5Rwn4Ha/i4XDyLJPybX0hLE9qKQ15F271hmyfxvqpsK HI64C7Z1O47n7CgSLJPT2k0he2TLwBDzsVSUfBNPj8B2Rdk0DavdunlGHL9agtn03pXf RnpdehQILdeE6ffj5Sh2orrODcae7DoPxh3mWjGv/n4vLakBC/8srJ7CnTeGkkcVrO+Y GNPg== X-Gm-Message-State: ABuFfoh1rDGjaE7FEYZTIdD+bkfI95Tx4qjYC6txRth+t9LQ0/ZFki3V 0nYJwZZk7/oQBKpOy4SjhWY= X-Google-Smtp-Source: ACcGV63n1GoRb2iZ0BIakBIHhnkNTtFk1eqdAvKvEn+1yTyX2wkeFnG3Lb7Zl2/g0SHkUCy+zthd+A== X-Received: by 2002:a63:4f14:: with SMTP id d20-v6mr1286301pgb.121.1537602787101; Sat, 22 Sep 2018 00:53:07 -0700 (PDT) Received: from localhost.localdomain ([103.51.74.116]) by smtp.gmail.com with ESMTPSA id f67-v6sm53219253pff.29.2018.09.22.00.53.03 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 22 Sep 2018 00:53:06 -0700 (PDT) From: Anand Moon To: Rob Herring , Mark Rutland , Kukjin Kim , Krzysztof Kozlowski , 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: [PATCHv4 2/6] ARM: dts: exynos: fix regulator min values of LDO13 for Odroid XU3/XU4 Date: Sat, 22 Sep 2018 07:52:34 +0000 Message-Id: <20180922075238.884-4-linux.amoon@gmail.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20180922075238.884-1-linux.amoon@gmail.com> References: <20180922075238.884-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 0508e6891f41..15ab380e5fcf 100644 --- a/arch/arm/boot/dts/exynos5422-odroid-core.dtsi +++ b/arch/arm/boot/dts/exynos5422-odroid-core.dtsi @@ -231,7 +231,7 @@ ldo13_reg: LDO13 { regulator-name = "vddq_mmc2"; - regulator-min-microvolt = <2800000>; + regulator-min-microvolt = <1800000>; regulator-max-microvolt = <2800000>; }; From patchwork Sat Sep 22 07:52:35 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anand Moon X-Patchwork-Id: 10611333 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 A8096913 for ; Sat, 22 Sep 2018 07:53:13 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 9C0D02BEA2 for ; Sat, 22 Sep 2018 07:53:13 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 8F2072BF18; Sat, 22 Sep 2018 07:53:13 +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 44D232BEA2 for ; Sat, 22 Sep 2018 07:53:13 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727757AbeIVNps (ORCPT ); Sat, 22 Sep 2018 09:45:48 -0400 Received: from mail-pl1-f196.google.com ([209.85.214.196]:39970 "EHLO mail-pl1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725837AbeIVNps (ORCPT ); Sat, 22 Sep 2018 09:45:48 -0400 Received: by mail-pl1-f196.google.com with SMTP id s17-v6so6931168plp.7; Sat, 22 Sep 2018 00:53:11 -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=oQiZIpqZCyb/15muQvEVGtCrC8IrAFJLh0dOxMdHDi4=; b=kfxGSFpo+S3jOPmvY42b/PmgQFCnNrhmYrdpqUkEwkxv1wddhfGN6M+EAwQBxE7M97 SlW54Wno6GuQKAsgve7nYbdfbNsalQYZS9J2xmTGIwrJKInb3L8dlxPaV5IhuaHg5F7T YgBnltGENfPtBUCgIPSgqvE5ooy3pqJyx/Hbbba8kOAE+SQgln9FNq84hZHX1ENfMAe8 n123AVds5ZfYbuXd5AcW9zkZC1eySobTEvrpUsl9zrPhqoCR4B4rWjgaPX0XlPxzTgis KS1ayilSAzaPZl05GF1Nv4ip1yvOVVwl3RdiPR9pkEmU4ixDDIp1zdPJuCmcRQ1dgcOt lbig== 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=oQiZIpqZCyb/15muQvEVGtCrC8IrAFJLh0dOxMdHDi4=; b=JjriI3yNgg3IuiRiwtpzCkGgNe/7TQeZvHFOQTg59fTBWGJV0iUBgXqTlrX0XoUmGq Or8vnkFHuhqjHNAPr85/H6amH+3HhX7sCiDcQLhYqvh8cPUkwguJ10lf2qfUiGjsHxVF 9tbRn10MWHVnEpy0ZQYNItviLeP0RqP+Mt0n7Li68PVc7qQ1kEQvO+ZlBVtakeTjp1eJ AsQbgPldjXhdHP/jTjmjHhdn+m8Vm0b2IQUtgoTTjWwpxZg/fMW/Ydg6bBHjOfQiP7AQ lSzeD34UAC8h9vpylN/HblFGj1qr36/O8vqu8+GEqG6Xqd8vyvwxumBeejcD8dPEf3r8 rfGA== X-Gm-Message-State: ABuFfojcxDizzEAULnOw6pIkB9nAarFFRuDwzc0iBTqmbk2rcKRwmwOB KOsi+cgNL3XEmV+XbBBTwr4= X-Google-Smtp-Source: ACcGV639/Gh6RL1UN07kIN4e/UAVOjBg+yRfR7kYyGnoGHNI4HYc75vB+UTfG8ErXzNg0W2AacW9rg== X-Received: by 2002:a17:902:82c9:: with SMTP id u9-v6mr1476409plz.138.1537602790897; Sat, 22 Sep 2018 00:53:10 -0700 (PDT) Received: from localhost.localdomain ([103.51.74.116]) by smtp.gmail.com with ESMTPSA id f67-v6sm53219253pff.29.2018.09.22.00.53.07 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 22 Sep 2018 00:53:10 -0700 (PDT) From: Anand Moon To: Rob Herring , Mark Rutland , Kukjin Kim , Krzysztof Kozlowski , 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: [PATCHv4 3/6] ARM: dts: exynos: update maximum frequency for sdcard to 200MHz Date: Sat, 22 Sep 2018 07:52:35 +0000 Message-Id: <20180922075238.884-5-linux.amoon@gmail.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20180922075238.884-1-linux.amoon@gmail.com> References: <20180922075238.884-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 15ab380e5fcf..a80b6c045154 100644 --- a/arch/arm/boot/dts/exynos5422-odroid-core.dtsi +++ b/arch/arm/boot/dts/exynos5422-odroid-core.dtsi @@ -501,6 +501,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 Sat Sep 22 07:52:36 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anand Moon X-Patchwork-Id: 10611343 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 303D6913 for ; Sat, 22 Sep 2018 07:53:29 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 25DC92BEA2 for ; Sat, 22 Sep 2018 07:53:29 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 19FE02BF2C; Sat, 22 Sep 2018 07:53:29 +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 B044F2BEA2 for ; Sat, 22 Sep 2018 07:53:28 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728096AbeIVNpx (ORCPT ); Sat, 22 Sep 2018 09:45:53 -0400 Received: from mail-pl1-f195.google.com ([209.85.214.195]:45143 "EHLO mail-pl1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725837AbeIVNpw (ORCPT ); Sat, 22 Sep 2018 09:45:52 -0400 Received: by mail-pl1-f195.google.com with SMTP id j8-v6so6925835pll.12; Sat, 22 Sep 2018 00:53:15 -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=7/9fBhU1cSz/dzE9di8oht9D/bY7/abEoKUW8gmMZRY=; b=SQGAIPaynapX4EfIVvmiF0RJ/5vbVF8mO4YLL+TY6tHO/NPdJPzAabhCAHf/qtMDQz 76eXV1ca2qcHQNK6Y5zsxcvZRQUYkG4Rtvmb1FQ/4QshMd/x8BmGNdlDaOERfmFERxTK 1fBuNRbrc7RmZ4ZhnFpxU7eQpMV/+GIB32Hrznyd8/SFY1k5o9411vKV7ze53Hi5aFpX bxh9nK58p+SqCVM2v0DVKIXzuO5Yn/jwRVvVv0teomHHbzbckGoHatMr1zZ3Ayt/Y0gC n2sKrc33ZOFsAtJP9gsJS8vmddYTh/vIsrgQB2+79BQEMzt16aE1bpYiNgAYSbijPIjD bPIA== 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=7/9fBhU1cSz/dzE9di8oht9D/bY7/abEoKUW8gmMZRY=; b=VJN54Z1YrLDxWiF/aCdTTYC2lKvza/QTxwIR95IzEqguyXmBoz7G22ljDmAB5ns+GJ yCrJ4FY4z+gVVrwkxE26f8F9m6h4fcnGQI+nRmQFKvQQUCdNabHLh3ym8TTpNj3txVt1 nNOExAcOI6s+QfXeRWTfJ27N5yRpDz4KRb2d11+B9XaqYZgYGwPNogt7Jjzc0soANFDx 5CoDwyq9Mm9yq87gBCZ4f0npcXLzNcyhqJaEeTP0IJcLcupabKy7pXu9SFzVFRbU1zzg jZZtaUt+u3XZ1Nm0XEuYhAirWz/r5at4G5l9oB3q7T0myfwPDIYM5tNfQN2hBz0jD6qd Uqlw== X-Gm-Message-State: ABuFfogtF1s2CAV0kwGBkj3meLwKy4EmrwhUdOfVHKJeMVa2lBen3S/S XyATU+CT83C9bHB5JRuU6Gw= X-Google-Smtp-Source: ACcGV62FWCB3ZxSVEPEQTb2ZUQyz/O4FlG89hEcgDbVT8dEw934q3rL4Dk5TB7nfnxvHzYk9tcMkrA== X-Received: by 2002:a17:902:42e2:: with SMTP id h89-v6mr1434204pld.69.1537602794734; Sat, 22 Sep 2018 00:53:14 -0700 (PDT) Received: from localhost.localdomain ([103.51.74.116]) by smtp.gmail.com with ESMTPSA id f67-v6sm53219253pff.29.2018.09.22.00.53.11 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 22 Sep 2018 00:53:14 -0700 (PDT) From: Anand Moon To: Rob Herring , Mark Rutland , Kukjin Kim , Krzysztof Kozlowski , 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: [PATCHv4 4/6] ARM: dts: exynos: Add CD and WP pins to Odroid XU3/XU4 SD card Date: Sat, 22 Sep 2018 07:52:36 +0000 Message-Id: <20180922075238.884-6-linux.amoon@gmail.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20180922075238.884-1-linux.amoon@gmail.com> References: <20180922075238.884-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 and write-protect GPIO pins for OdroidXU3/XU4 SD card by adding pinctrl setting for wp-gpio pin and set it to active low. This also removes debug messages: dwmmc_exynos 12220000.mmc: No GPIO consumer cd found dwmmc_exynos 12220000.mmc: No GPIO consumer wp found Suggested-by: Krzysztof Kozlowski Signed-off-by: Anand Moon --- Fix the commit message and squash it with cd-gpios and wp-gpio patches into single patch as suggested by Krzysztof. --- arch/arm/boot/dts/exynos5420-pinctrl.dtsi | 8 ++++++++ arch/arm/boot/dts/exynos5422-odroid-core.dtsi | 4 +++- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/arch/arm/boot/dts/exynos5420-pinctrl.dtsi b/arch/arm/boot/dts/exynos5420-pinctrl.dtsi index dda8ca2d2324..9a39a0d8ec86 100644 --- a/arch/arm/boot/dts/exynos5420-pinctrl.dtsi +++ b/arch/arm/boot/dts/exynos5420-pinctrl.dtsi @@ -289,6 +289,14 @@ samsung,pin-pud = ; samsung,pin-drv = ; }; + + sd2_wp: sd2-wp { + samsung,pins = "gpc4-0"; + samsung,pin-function = ; + /* Pin is floating so pull it up to disable write-protect */ + samsung,pin-pud = ; + samsung,pin-drv = ; + }; }; &pinctrl_2 { diff --git a/arch/arm/boot/dts/exynos5422-odroid-core.dtsi b/arch/arm/boot/dts/exynos5422-odroid-core.dtsi index a80b6c045154..2aacfb669140 100644 --- a/arch/arm/boot/dts/exynos5422-odroid-core.dtsi +++ b/arch/arm/boot/dts/exynos5422-odroid-core.dtsi @@ -498,10 +498,12 @@ samsung,dw-mshc-sdr-timing = <0 4>; samsung,dw-mshc-ddr-timing = <0 2>; pinctrl-names = "default"; - pinctrl-0 = <&sd2_clk &sd2_cmd &sd2_cd &sd2_bus1 &sd2_bus4>; + pinctrl-0 = <&sd2_clk &sd2_cmd &sd2_cd &sd2_wp &sd2_bus1 &sd2_bus4>; bus-width = <4>; cap-sd-highspeed; max-frequency = <200000000>; + cd-gpios = <&gpc2 2 GPIO_ACTIVE_LOW>; + wp-gpios = <&gpc4 0 GPIO_ACTIVE_LOW>; vmmc-supply = <&ldo19_reg>; vqmmc-supply = <&ldo13_reg>; sd-uhs-sdr50; From patchwork Sat Sep 22 07:52:37 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anand Moon X-Patchwork-Id: 10611341 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 C90D9913 for ; Sat, 22 Sep 2018 07:53:27 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id BCB932BEA2 for ; Sat, 22 Sep 2018 07:53:27 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id B11412BF18; Sat, 22 Sep 2018 07:53:27 +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 718A22BEA2 for ; Sat, 22 Sep 2018 07:53:27 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728243AbeIVNp5 (ORCPT ); Sat, 22 Sep 2018 09:45:57 -0400 Received: from mail-pg1-f195.google.com ([209.85.215.195]:38419 "EHLO mail-pg1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725837AbeIVNp4 (ORCPT ); Sat, 22 Sep 2018 09:45:56 -0400 Received: by mail-pg1-f195.google.com with SMTP id r77-v6so1919305pgr.5; Sat, 22 Sep 2018 00:53:19 -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=dm5u6qPz+qiZpTpZ61emFhPT0rUFtszstfeRwzbhEkA=; b=ZHX8GIrwwc8Zp+n6qr9Vgu7L7GqSLWLKvMfjGswpNzh8Q1YX3BM/uNaDdsFgLzU3ru djRa5qErc0caE/RJOt20EE4JY4JgKwKwBp6oZ0Uv6ZLj+nhX4UzU3ahqxMH98fdnpYHW TcUZPaXIHLKJhqmFi5AAeR/ZQ68xxE24DdZYwVxuI/8S6qv5ki/Vg4DrkFFHF07s72/n IHJq711IFaNxao9jfIk68PLPmjRyXzON6mktws8eu23HwxsMgugaHsdyPmPaYn77cjKR CswkrgU187APPsRk7nVF0m8GZoFtmbdEKEqECrIQlIK2oJHpO2ARKOXQMZx15Gsxj+Qg rZOg== 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=dm5u6qPz+qiZpTpZ61emFhPT0rUFtszstfeRwzbhEkA=; b=deoL8aK6f88nFqYN28MuVkHLx3J3HJWLMaKYZuWD4P6YCBzFi4xweAwfpMGPzLXEkS VLiwlMkl0lBjJ8Kze86lgow3Ftb5SXOGX/FJvRPN69ikdkcntCeh20blbQ+EYYokIrI7 CmoPQuVr6gGCONerCqlaj9nCnfVrzcLPF/7SVur6ieTkqXRKSgMwATaO+Nx9G5G4co0s hBIrCBUmimuyEWZnLWOgGqiRHvNH7oHBWCzH5nODcbSXU/ag5ZYyLuFCRg4jT1pY1lSf bY5W8WNyZtYwFCWdy10VvE75alWawt+Dd7mL7aoew2Fwhi8BTyCVOulS9x2j/Jmd3W2n YDkg== X-Gm-Message-State: ABuFfoh5d9zoEiCoRoxODDz+9iGbCdKPtnRgjRjiSxA6eEG9FtlTk0/n by1cP7jW0jWFYQPs1JnIxoc= X-Google-Smtp-Source: ACcGV60DD5V03qFNq5cEpC4vT5Q5FvnoXmJHel7EXk+y+UxHhcoDy6TttN/+gMrWCBZqySkyr8beAw== X-Received: by 2002:a63:db15:: with SMTP id e21-v6mr1318938pgg.418.1537602798610; Sat, 22 Sep 2018 00:53:18 -0700 (PDT) Received: from localhost.localdomain ([103.51.74.116]) by smtp.gmail.com with ESMTPSA id f67-v6sm53219253pff.29.2018.09.22.00.53.15 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 22 Sep 2018 00:53:18 -0700 (PDT) From: Anand Moon To: Rob Herring , Mark Rutland , Kukjin Kim , Krzysztof Kozlowski , 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: [PATCHv4 5/6] ARM: dts: exynos: update maximum frequency for emmc to 200MHz Date: Sat, 22 Sep 2018 07:52:37 +0000 Message-Id: <20180922075238.884-7-linux.amoon@gmail.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20180922075238.884-1-linux.amoon@gmail.com> References: <20180922075238.884-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 --- eMMC 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 e522edb2bb82..1f2d3987dde1 100644 --- a/arch/arm/boot/dts/exynos5422-odroidxu3-common.dtsi +++ b/arch/arm/boot/dts/exynos5422-odroidxu3-common.dtsi @@ -392,6 +392,7 @@ cap-mmc-highspeed; mmc-hs200-1_8v; mmc-hs400-1_8v; + max-frequency = <200000000>; vmmc-supply = <&ldo18_reg>; vqmmc-supply = <&ldo3_reg>; };