From patchwork Thu Apr 25 17:34:22 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 254 Return-Path: X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-pf1-f200.google.com (mail-pf1-f200.google.com [209.85.210.200]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id 1E4B03F086 for ; Thu, 25 Apr 2019 19:35:21 +0200 (CEST) Received: by mail-pf1-f200.google.com with SMTP id d21sf390919pfr.3 for ; Thu, 25 Apr 2019 10:35:21 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1556213720; cv=pass; d=google.com; s=arc-20160816; b=C0/AbehB21KNqvQePGK0FQjB1tNPAsugWQRH9xdVeupE2wY/aSx/NXmHQbpOjUE2jl PFh8AladDWBR+F4FehmHsINdm8w3HRKj1Ps7RByJ7coZ/o5hQqOGE6Pt7jrIN8Ijn7z5 UGVMHDDu4BbXbur9kW1p8Hz5tQboCK1C1uD2XiB0RLxP00Sew9U27Wc0R1LuCBQ1eZgw 8c+SQOonBD/3io42CRE2rnamEFYrCgkSh5U2YFGAw/2GZroFU4imf29+7tG5Nk/9/UAW +v8hymRJY+FpL3/hPVs+RQSwgiVX9i58LFzz3+t3jpPuuny90FxrL3oig8D6OiDLlpgQ MYIw== 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:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature; bh=22MukzyYOAAGZQzTudxaO3jK7Ek7pw7exmp1qPOZFeQ=; b=Ty0TJjn3pFyZIgfdRhqPG0Hux6vZh4HbAI9iTfviW/7WoLi1hKLj+WUp9v97EGJw6d 40hNUtYof2rmrcIAGrPCni+CjoluiW/QcU9au93+B2l+mHeVDnq/Dsvtem1kZZoFSKoC +sbubIBUjaidrj4PYbbLtKT5/aCdSU8qxveoylB+MqJU52f3Oub6ry79XkQM1pOuPeWp LFuP81RNyyD5HPJbYfk8W5lPiKflQjh77rSp4bl4ID+7YOn96tw1WcUQnOHc6LSp3pYK ZqaURuDQAqccBV2W3EL81N959wej+f826M0RnXZYfDEEa+djIjeVRQtmjo8P413lTr5L Y0mw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=X8BB9HY9; 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:in-reply-to:references :mime-version:x-original-sender:x-original-authentication-results :precedence:mailing-list:list-id:list-post:list-help:list-archive :list-unsubscribe; bh=22MukzyYOAAGZQzTudxaO3jK7Ek7pw7exmp1qPOZFeQ=; b=G7s47Cpr+NVkLl2f1OJzS84W48lNxWirOfWw9Nb3WJEP7RZhmn6YW3sHupUZUe8YDD LGINsE4yYOvQgoAmiFbUZ1iYlAGwPh3yO/W0CfKX2kjNciGNkYBQnpkcUkTjlMLqb8fv mfvxLNAmbMwyy90mA3YPzXY8Bf7csYzuFgzhI= 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: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=22MukzyYOAAGZQzTudxaO3jK7Ek7pw7exmp1qPOZFeQ=; b=Np4X9PvOz3kuuZrf+FLUn+POW0h9yX32DomvMt3QeESdBetx5M+VtDImtLovmzs/K4 /VCzjAXCjOxm6SgkQ09fSTv0Q4iIJYFjaUNiXzpLu3mBUmf3OBn994Iada5GIW+zuQIU eOn0/ZaFSI71ASy8zpwGta9PUYVJL8qvCSJWh6W0dApatK2e2u9SN2Bxcen7nDLaw69J Y+67yiX95gpIzmAUxF39XIER8xtAT4OuwCNWl3iHc/Mk8o81/8qlElpBi/QvGPaJsrzT Gr+VVffPmiMFW24reKF61nXiSa2c6O/X4hrqdioXKJapfgsY2+zurKa5lEBIeCFz7Z1j mVYg== X-Gm-Message-State: APjAAAVe3YEzLJxiZDOAC3xumK4LvnVKs+0n64S+kWH5GovURoN6XTo1 MYd6U95K9uyr6lMZ5yu01hlIZfMz X-Google-Smtp-Source: APXvYqz9AusGI9weCl5I6g9doOsrv+21JBx77hVgBVaZeKO3C4Y9/qZQ9ME9qWK5eSfh3ARMvmk3sg== X-Received: by 2002:a17:902:382:: with SMTP id d2mr41352951pld.253.1556213719930; Thu, 25 Apr 2019 10:35:19 -0700 (PDT) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a63:6b44:: with SMTP id g65ls4075680pgc.8.gmail; Thu, 25 Apr 2019 10:35:19 -0700 (PDT) X-Received: by 2002:a63:6804:: with SMTP id d4mr38644428pgc.240.1556213719645; Thu, 25 Apr 2019 10:35:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1556213719; cv=none; d=google.com; s=arc-20160816; b=kq/EdCNMuLSK/wdDH96x0uc82hahzAPsGagY1lsi8bTNyUdZaKFxBEU1KbgRN581cG rAJIpCRajkXfuj9JovcP2ZyOUwostmBonFyYv9dJ/Rta54nB1ezvwkNqrMuSiPQ/PIGI I0QiQ/JC82I+Vj2AJleiwbNgl5bX20o7D/dpO3BAjXZT0nZ0LAQS46957fZzpYFmhdhc V4aId2XJXe/JPQ3FaBw1aHYHEYde3HvwfTP6facp+sOJ1Q1v6k7N42dwZvwz30bQ2rnf rF/3qE0qXWrD6Xu2DcozLyJS4rPOeacR+nkj+MXkYFLaJs60b/yRAWEqSJyUASldUJ3d KEtg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature; bh=d6JHM5/ooTGFq5zs+8Ro6gi/VDxPGLGt5ecNLlHQODg=; b=IuluC8q6e/or/XSSgopXkUIWoQ+m4OjSEQEPqKiGS0dOLxWIcysBZ6p8HILTPBfMU1 vGT881GzsBWsTQGr7h3m+rs649KpVFN8VsLmAtFuluUjg87S6uJvAURldGOzsQAcJ1Vk IEJR20DAGNXIPdV0eIFnSqXwNJI4TKsb2YhjjsI+F70UbPAovtHbMbG6g5gpfw5749a/ IYkm/ebw1J4eD990n0KQOHV4tKpZADPch5FglHmhMGv1tBDMS0Kylg7Bfqi0bwyAWoV/ gxR05iWsMfDtWVkJoTwukjl1/yzUvypdGv5VMM5qJ8kfJ/ToAaxrnV/Gu7dh5IyKWrjD 5Msw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=X8BB9HY9; 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 o77sor25782885pfa.60.2019.04.25.10.35.19 for (Google Transport Security); Thu, 25 Apr 2019 10:35:19 -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:a63:c749:: with SMTP id v9mr16590230pgg.432.1556213719360; Thu, 25 Apr 2019 10:35:19 -0700 (PDT) Received: from localhost.localdomain ([115.97.185.144]) by smtp.gmail.com with ESMTPSA id i3sm38265876pgl.57.2019.04.25.10.35.15 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 25 Apr 2019 10:35:18 -0700 (PDT) From: Jagan Teki To: Simon Glass , Philipp Tomsich , Kever Yang , Akash Gajjar Cc: Paul Kocialkowski , linux-rockchip@lists.infradead.org, linux-amarula@amarulasolutions.com, u-boot@lists.denx.de, Jagan Teki Subject: [PATCH v3 08/13] rockchip: dts: rk3399: nanopi4: Use CD pin as RK_FUNC_1 Date: Thu, 25 Apr 2019 23:04:22 +0530 Message-Id: <20190425173427.13445-9-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.18.0.321.gffc6fa0e3 In-Reply-To: <20190425173427.13445-1-jagan@amarulasolutions.com> References: <20190425173427.13445-1-jagan@amarulasolutions.com> 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=X8BB9HY9; 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: , sdmmc cd pin is configured as RK_FUNC_GPIO which is wrong and indeed failed to detect the sdcard on the board with below error Card did not respond to voltage select! So, fix it by replacing RK_FUNC_GPIO with RK_FUNC_1 which is already defined in rk3399.dts so make use of same like other boards. Add these changes in -u-boot.dtsi to make Linux sync easy for future changes. Signed-off-by: Jagan Teki --- arch/arm/dts/rk3399-nanopi4-u-boot.dtsi | 9 +++++++++ 1 file changed, 9 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..20db99c0b8 --- /dev/null +++ b/arch/arm/dts/rk3399-nanopi4-u-boot.dtsi @@ -0,0 +1,9 @@ +// SPDX-License-Identifier: GPL-2.0+ +/* + * Copyright (C) 2019 Jagan Teki + */ + +&sdmmc { + pinctrl-names = "default"; + pinctrl-0 = <&sdmmc_bus4 &sdmmc_clk &sdmmc_cmd &sdmmc_cd>; +};