From patchwork Fri Apr 26 17:26:52 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 10919507 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 271A514C0 for ; Fri, 26 Apr 2019 17:27:51 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 0C79628E60 for ; Fri, 26 Apr 2019 17:27:51 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 0024128D27; Fri, 26 Apr 2019 17:27:50 +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 A79D428D27 for ; Fri, 26 Apr 2019 17:27:50 +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=lxJX4Fjnx4P2Oz 7BCuw4KRYMk1Q5q1rc/MBb+3J13UDqNA0Xl//5cRtKJjkTcdJQkl4It5i1pQ3/oYZCaQYnTPWhfMD Cg0ZRi+2i+8UnumSfuawxCtdHnuSzecAHb3iH0EkCY0/HQG6re8nNYwCwfaC/YfaaPt0IGG7vpi7Y kope+2sfCoeWu+OTynXeF3XFx5XwKQWAmgcRzElLwoSS8Gw4LqGPmxpZR5TYpGeFkDCU2csL9yXlo HWhLYI5g4UpJatWvQKWFKSgKCo/dWRxXlkr3bSUWNsmnwQwYIH9HEdQvGjxOhGmK5sgw1fSFcrt15 e46QPn4KQz1K6/FzLYqQ==; 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 1hK4dY-0003nX-Fi; Fri, 26 Apr 2019 17:27:48 +0000 Received: from mail-pg1-x543.google.com ([2607:f8b0:4864:20::543]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1hK4dV-0003lc-Jw for linux-rockchip@lists.infradead.org; Fri, 26 Apr 2019 17:27:47 +0000 Received: by mail-pg1-x543.google.com with SMTP id h1so1948847pgs.2 for ; Fri, 26 Apr 2019 10:27:45 -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=SqeAXw2OuybVwpWF2gkOOBBrFU8nZhZbFjhzpECoTwZoYwFPXouqJApizrJfnZcepk 0/ZfDd4a2jNOuzxTz6+tx90+1JX3VNLf9Hj2Wly8OgtQEkrsXbQOUpKDAPTQGleYynzY h82+R0M5I59lwnn4CP9NzkjXEzlpAj/Z42Qd0= 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=hrDAlnobUG9tjc5LfPMhujWND8/kGSVxnEcGRSddWYzZBpF/yOVKx/xYDWNATAKxe9 wLeiUy5WU/CxQLgIpmHECo7WPvc8jktWN8Vfn/a+Eufk4hxje15MQcrRAyhS+J2ypnBR Gf24EYJIEhzeWva0Gw7AsD12vnLoJtABtUTvaMBe0xnx2KhT2CWHspSifUBh54b7m4zB O3Mu+5LP687njpxWnrF7sHjE1jEKmjvGdufum/pCKGcxtYuLus7WRVOeYjngoXBb8HbT JZakXECdTS9Fw0KgVkhxAv9/noZfFKagbBo/L0v7hnwnwLrngvg3e4pxZrXyR8xLfNH/ OMyA== X-Gm-Message-State: APjAAAX/v+a+qBKvvM9uSr6n0wyHZnbEU9VDOyftboBGmHJ7gV0ynrZs vaYch8OmXJFH3MdQpSP1Rt5Wug== X-Google-Smtp-Source: APXvYqyzaOGkNCRNin4sPbuc7s4LvSCd49N1CHwyJN5+FZweBGGz/BpFdVjdqsnflHmTKGebKX/GjQ== X-Received: by 2002:a63:fe4e:: with SMTP id x14mr2607592pgj.411.1556299664976; Fri, 26 Apr 2019 10:27:44 -0700 (PDT) Received: from localhost.localdomain ([115.97.185.144]) by smtp.gmail.com with ESMTPSA id a129sm40807630pfa.152.2019.04.26.10.27.40 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 26 Apr 2019 10:27:44 -0700 (PDT) From: Jagan Teki To: Simon Glass , Philipp Tomsich , Kever Yang , Akash Gajjar , Tom Rini , Manivannan Sadhasivam Subject: [PATCH v5 08/13] rockchip: dts: rk3399: nanopi4: Use CD pin as RK_FUNC_1 Date: Fri, 26 Apr 2019 22:56:52 +0530 Message-Id: <20190426172653.2930-9-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.18.0.321.gffc6fa0e3 In-Reply-To: <20190426172653.2930-1-jagan@amarulasolutions.com> References: <20190426172653.2930-1-jagan@amarulasolutions.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190426_102745_770754_A007A4AC X-CRM114-Status: GOOD ( 12.84 ) 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>; +};