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: 10917537 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 05D0A76 for ; Thu, 25 Apr 2019 17:35:25 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id DBBAA28CC4 for ; Thu, 25 Apr 2019 17:35:24 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id CBEB528CCD; Thu, 25 Apr 2019 17:35:24 +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=-5.2 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 5879B28CC4 for ; Thu, 25 Apr 2019 17:35:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=2ceHRH4OLLNpjZ/06c7aTFIU2Hr3yD5b/s4BnU6fYJE=; b=A1I6ZZwZ8T4Ggq fbxK9VbgDMjYya5Iw5nPe+1UvcPPORPX9a4+YrmnSVEzcRDDd49uabwuRdNuEJsbgmlDL8XjE/1rq wkYIDUybLZZoe1AhjQELh1rSZ2e8pdC1dv7r29XsO2dP2m8+mtKGnMge/zWJupwVOpPG6d19jal+m uNvK5JBxap3L9OqNi+5Z+AE2Qh93i3rQdmSb9mvQc2FMTm86LcLLhcLWBX0Va6M6DQKT7J9dwy5qF M16Re3DCpk3jdB6hHWBoWoEiuMizX13FiWcMRSkgOuOtuOAqdCZrBbxN+z2o/qqH/1SHf0UEoVP4O 0cIoWQi3fZo4P4rbAUYA==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1hJiHJ-0001hx-R9; Thu, 25 Apr 2019 17:35:21 +0000 Received: from mail-pf1-x444.google.com ([2607:f8b0:4864:20::444]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1hJiHH-0001gJ-RO for linux-rockchip@lists.infradead.org; Thu, 25 Apr 2019 17:35:21 +0000 Received: by mail-pf1-x444.google.com with SMTP id w25so247806pfi.9 for ; Thu, 25 Apr 2019 10:35:19 -0700 (PDT) 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:content-transfer-encoding; bh=d6JHM5/ooTGFq5zs+8Ro6gi/VDxPGLGt5ecNLlHQODg=; b=X8BB9HY9nHAqeVDh4ovYDrBX6gU//qMYAZaG5w24lmh1KLgOmD7nJZvW9sWNsXKNqj D9riTsSAcqzOvm0DYux3e0Rbun9K/Wwx2/WAd83LZNvh88cq7O/4yCVkKOo1xU8k/jUQ a0gDU3JZ8UICjNFayT8zkw/efVpbuu5McGyvc= 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:content-transfer-encoding; bh=d6JHM5/ooTGFq5zs+8Ro6gi/VDxPGLGt5ecNLlHQODg=; b=K+dHB5sWYFsV4Am0E6vwA0gx0GdVlDl5A7tLaN8WnQA4yQr2XGgj8Fmmr9++ILiN+e d7hnvzMZIQjDYDO36r1P70EFQPnbdT8OWTrWpbbVBhPfbD+WHGwQTigN1QqS/k2eTFQA ywZD+zJFcJCne1UcM/xefS39M+VgT+8L3K+jdzV22mvgQQZlegk9Se8wIO6fK14J8uG1 gbAuFK4xXOrY6NUdz0ZpgCOs3gpht835XH6eT3Cdyrff9FKTCfM8TUKYyGfwCqPMscI2 dkPG7HIisg3dF6ZTupkg3Qtk0CXnMVv0j9fCdgP3sugM8ASyxxiJJbZZf0zNQLrC6D9X qpFA== X-Gm-Message-State: APjAAAXCsWznkjMjHZf9tEm6MLgQ834M3g1fLoMAeekfb0Cr3zFAgQND tTXe+fmhth/i6RQozg3U2H4JP7Kvhr4= X-Google-Smtp-Source: APXvYqxIXUXc/ecDWPoAwHEUgMdbCqawQUsTOBxp+NEIJ/V6b/+pzBxZNLze3+hZaQ6n+9ACU5PLnQ== 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 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-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190425_103519_883367_FD97CC49 X-CRM114-Status: GOOD ( 12.79 ) X-BeenThere: linux-rockchip@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Upstream kernel work for Rockchip platforms List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Paul Kocialkowski , linux-rockchip@lists.infradead.org, linux-amarula@amarulasolutions.com, Jagan Teki , u-boot@lists.denx.de Sender: "Linux-rockchip" Errors-To: linux-rockchip-bounces+patchwork-linux-rockchip=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP 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>; +};