From patchwork Thu May 9 03:49:21 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 403 Return-Path: X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-pf1-f198.google.com (mail-pf1-f198.google.com [209.85.210.198]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id 802823F066 for ; Thu, 9 May 2019 05:49:47 +0200 (CEST) Received: by mail-pf1-f198.google.com with SMTP id l16sf635473pfb.23 for ; Wed, 08 May 2019 20:49:47 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1557373785; cv=pass; d=google.com; s=arc-20160816; b=hUuqyw4q6bpuIrbuui+z7CVpKiF/PfLfqaofqRz9q2nJeJe7s2j4hQPHjXHHpzbZJ1 4SL4D+sDVr+hnz0W5SxwhYYYGCbhFeFiNwurAUmlNpI1f03aUGXqdcsztDgrnGaxQwAO mbq3K8wmIoBBLOWB9kl224gfy+oHYcnR+lgbFWyQldPFmFgVDpWfVxhcJ9QM2LJi856a CmgX7rJTz7QbSqIGNZy//rYj8gu7XMDuZvSONjZDOjEFwcSEf5JkLp0IclbXUoRv1xc0 2Y4yuSTtFL3eE58gyyda9yCNmY369Pbdx1bRIet8w4Noy2MhSkFYLJgD5VD4gWDLiXct hitg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-unsubscribe:list-archive:list-help:list-post:list-id :mailing-list:precedence:mime-version:message-id:date:subject:cc:to :from:dkim-signature; bh=maySNv2kXli/Fd+z+8UHe+Vt+wK4wdttcrMgssDqPWw=; b=MlTonblWtP6c6REY5T0VuqhsUBU1Ly+co2Y92PVXkFqxbgWZkSJgoWgpWrO4FJrHwf gkVpl6dP5pbR8mlYd92zNvCzp6/12pQhspOQuJ0hJhSjPpSKHyoZxdFQiV7pdF26RZqh oFEwS5TC9rtVlfih7s4wCy6wmuOgZnH96I+TPRDy4qJXF8LydhDyhFnPnO7KJV3tl1pS MupDdwXn8zWD+KNRVXwBUHMqg/hrCdYMrIPxdYNl6d32I8YhCEp/uV3hy0WBcvhwphqf kgx1Ohg2H58iL8QhOGK0lSi06xsCzGcbBtFw85H5cJMqDK6TvEGkqGq5RazGfB3Ia0BJ 55kQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=icR0nWb0; spf=pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.65 as permitted sender) smtp.mailfrom=jagan@amarulasolutions.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions.com; s=google; h=from:to:cc:subject:date:message-id:mime-version:x-original-sender :x-original-authentication-results:precedence:mailing-list:list-id :list-post:list-help:list-archive:list-unsubscribe; bh=maySNv2kXli/Fd+z+8UHe+Vt+wK4wdttcrMgssDqPWw=; b=ZBaF0xfWCBRf8OChT2fBOj9v+IyhHbbaEU+NqRJ49Q+Q6CEIJSteM9YhHRBon5CbtS RxWyhjGV+HUeg4ugx117QkDSwGLGOBjZDklM5FbgZ4lNR6HbQXIgf6aUnN6ERzdEpww5 oNc7TpFS3RoYHSFYcem6TzdSdYE/FrXhlLVdA= 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:mime-version :x-original-sender:x-original-authentication-results:precedence :mailing-list:list-id:x-spam-checked-in-group:list-post:list-help :list-archive:list-unsubscribe; bh=maySNv2kXli/Fd+z+8UHe+Vt+wK4wdttcrMgssDqPWw=; b=sqAng/FIpq/a04NnkH8I5fvz/wKTYKAl9sejzMaRwZu7l0d9WMvpSPGefAuSOOy/ub GMQ+CvLkoDIf0Vaik4gtwBlx2+ayl31sXG5FWl9Kp/z8b0lKxp6nq53ipI4VBTEEiL8X DpPUUQmBHWUUGhVcdjHqlOIfvz2O4osxzxBYvnadaEuS80UZviKv+uBZc6ooT5WwZnFD XFH19ZojUjEkUllJm2JJQHll9Fc+inAzD5CxTLPVSNKMdnuURZk0GsfochakAboVmvUH +GXs0WYIdMyblYyN578mjgoi2R70+gGMoWfXKFBz4o7zG/PdtJsL2mIxGKkWgD0RkLG+ Wvcw== X-Gm-Message-State: APjAAAXkdk0vIItUA2VQibU+ApGhg6eBnIZThNkOR6+uZvHJli6/ucWM i7vDESK0duM+GaWPWWo/57HeSLsY X-Google-Smtp-Source: APXvYqzkj8LXVX0Ds52P9mwy6YaZo2gOUjr1kpm+9m+I5+51/OrsYLZuus1pHxLaq6bDNe8qezyr8w== X-Received: by 2002:a17:902:2dc3:: with SMTP id p61mr2164959plb.308.1557373785622; Wed, 08 May 2019 20:49:45 -0700 (PDT) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a17:902:2928:: with SMTP id g37ls271494plb.11.gmail; Wed, 08 May 2019 20:49:45 -0700 (PDT) X-Received: by 2002:a17:902:bc83:: with SMTP id bb3mr1997591plb.303.1557373785273; Wed, 08 May 2019 20:49:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1557373785; cv=none; d=google.com; s=arc-20160816; b=KiqdG159G4O3NQsorWMmqLWGdbB00Rn/4dmJxgkjN3H65bLpF6U8jZNWPsnUpsaHBz tLJSbrkkomwLNAMx7uSyoSoIse6JaRIyDYNabLeV72Dk4nZd7w7V1mx7O9XAwS2B5XrJ r7Go4aa8r413TMgLxcac+35AXN6U1FSMMDGun4AULKmzHT6pqbQBdsEzb4on3+p8bSUi IUokxnZ5Dn4hbved1Rebq4VqF/Z20h45q1fxuhe0w1cRP7cE0TnUf3SdhUwGknjlipWH ng2sdZjjaHR5UJ5VyhlkBqNopwAQsoPvMqFtC/R7WvqeAXDpsN55z7cYl7VhPuQ16x2M vWEw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:dkim-signature; bh=vCS43YNsukNXHBS7I5C51JquGcaCwnhipWsJ6aqgr8c=; b=lVhND7zEHGmfd9AuhoDwH6+b5Mb8UWgEMJKybRYIWjMJHwPo5oXyqK5OKtLNZz26oP jouzkorUoudwDa1Oi+GKx98+dovxPdRO/uZZOlinOk7Usxxh5UhDq4RHRo2+POcg84Ii gFLCWNBberyF2G1EM+rBe/pO78O5C5uphYqpdJw6DsMZL4QO7ONS96EOvYgAMXmrId0w dQlXgOnEckSwD1ACLkoaDi2HVoZguqzc2ZkfNgaOptI0qghgvi+vz6ca8JV4Z+yDT9aU EVUQWhXl5eoqX7C0YdeALKJ2HdQJtIv4LhkURi7QZwQLPbY3cCLQex9FxNsjdHAQEcsw ZW4w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=icR0nWb0; spf=pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.65 as permitted sender) smtp.mailfrom=jagan@amarulasolutions.com Received: from mail-sor-f65.google.com (mail-sor-f65.google.com. [209.85.220.65]) by mx.google.com with SMTPS id l10sor740433pgg.80.2019.05.08.20.49.44 for (Google Transport Security); Wed, 08 May 2019 20:49:44 -0700 (PDT) Received-SPF: pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.65 as permitted sender) client-ip=209.85.220.65; X-Received: by 2002:a65:5c8c:: with SMTP id a12mr2638601pgt.452.1557373783980; Wed, 08 May 2019 20:49:43 -0700 (PDT) Received: from localhost.localdomain ([115.97.185.144]) by smtp.gmail.com with ESMTPSA id s9sm874524pfe.183.2019.05.08.20.49.39 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 08 May 2019 20:49:43 -0700 (PDT) From: Jagan Teki To: Simon Glass , Philipp Tomsich , Kever Yang , Akash Gajjar Cc: linux-rockchip@lists.infradead.org, linux-amarula@amarulasolutions.com, u-boot@lists.denx.de, Jagan Teki , Robin Murphy Subject: [PATCH v8] rockchip: dts: rk3399: nanopi4: Use CD pin as RK_FUNC_1 Date: Thu, 9 May 2019 09:19:21 +0530 Message-Id: <20190509034921.2865-1-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.18.0.321.gffc6fa0e3 MIME-Version: 1.0 X-Original-Sender: jagan@amarulasolutions.com X-Original-Authentication-Results: mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=icR0nWb0; spf=pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.65 as permitted sender) smtp.mailfrom=jagan@amarulasolutions.com Content-Type: text/plain; charset="UTF-8" Precedence: list Mailing-list: list linux-amarula@amarulasolutions.com; contact linux-amarula+owners@amarulasolutions.com List-ID: X-Spam-Checked-In-Group: linux-amarula@amarulasolutions.com X-Google-Group-Id: 476853432473 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , Attaching GPIO functionality to SDMMC0_DET pin (which does in Linux base dts) make dwmmc driver "fail to detect the card". Card did not respond to voltage select! It may be because the existing driver can't support gpio card detection. So, change the pinctrl functionality from RK_FUNC_GPIO to RK_FUNC_1 like other rk3399 dts does via sdmmc_cd pin. Add this change in -u-boot.dtsi so once we have a proper fix or more details we may drop it this in future. Cc: Robin Murphy Reviewed-by: Kever Yang Signed-off-by: Jagan Teki --- Changes for v8: - drop pinctrl-names - update proper commit arch/arm/dts/rk3399-nanopi4-u-boot.dtsi | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 arch/arm/dts/rk3399-nanopi4-u-boot.dtsi diff --git a/arch/arm/dts/rk3399-nanopi4-u-boot.dtsi b/arch/arm/dts/rk3399-nanopi4-u-boot.dtsi new file mode 100644 index 0000000000..bb8bdf08c5 --- /dev/null +++ b/arch/arm/dts/rk3399-nanopi4-u-boot.dtsi @@ -0,0 +1,8 @@ +// SPDX-License-Identifier: GPL-2.0+ +/* + * Copyright (C) 2019 Jagan Teki + */ + +&sdmmc { + pinctrl-0 = <&sdmmc_bus4 &sdmmc_clk &sdmmc_cmd &sdmmc_cd>; +};