From patchwork Fri Apr 26 15:49:55 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 10919305 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 D51D415A6 for ; Fri, 26 Apr 2019 15:51:28 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id C483D28E67 for ; Fri, 26 Apr 2019 15:51:28 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id B8EE428E6C; Fri, 26 Apr 2019 15:51:28 +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 6F4C228E67 for ; Fri, 26 Apr 2019 15:51:28 +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=RYdE+s2ziEmbfJ p1WCH330Zc+tFAY05nDGNdb9nPe5vcsgePgx0XEcl869khIFAgAmghvIYo64gQfyEIt5CV1OIOu+e NyM6OfIjNXV3q5MrKid4SdK2SGHKgdQOqUnLz62TXzqGPgaA0ioj4tJO/Eb5ja1MihPzHrqDHdK6t md6QCmYhGhG+vvwbZZEsau3PcOWpqB0hTDeyWvdoISG2+4b0X8FBSU5j/cwvACokVN72tdXk+VEBm KUy2FpRgEZ7yZzw8qGWwTH4R558Mk18ATWTjzXProcwMhpMgcBi4GcXRt+4VDtyURWH9SCt+bAm1R ydZo6kHwoT9pVKzBs/gg==; 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 1hK38I-0002uL-KO; Fri, 26 Apr 2019 15:51:26 +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 1hK38F-0002sm-M9 for linux-rockchip@lists.infradead.org; Fri, 26 Apr 2019 15:51:24 +0000 Received: by mail-pg1-x543.google.com with SMTP id z9so1809952pgu.10 for ; Fri, 26 Apr 2019 08:51:23 -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=BfHgoKl6jzGbJEc48HGQFPpDUh9uG4opvk1A7WLZM+bcP/JbPb8JwaFaqa2dsY6MOy UVYhBBTnzVY4nFc1Q9sScy7qGR9EKMulmhHWP6fs7v3sVxtA6tL7xXGkMU9elnZKRZdp kpKyIUbnwG2ZL1HwpMnahn2N7076Gba4+H5bQ= 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=nKaj5Mtnm+pPw9ZKrDaTgraAKfbWiYUV2S+1ViSA3963OGjaxsAmuG280eUv0LfIbq pWJtCf8X2PmfDU1PKB3WIbZS9HReCBOPvuSN3AC8uKi0RrPmoBGrRbqu+QoxAbOnBfIo Dp8EWbdiFxl8sPhYyOQGA+L9+H4ebJKOuQ2GEpK9SVcBgnfo+8ciujSUYfvunniuJha+ EKAjDub/0H04KxBvC9a1D6bd37zjl9X83bBw9UmHm/NHCvkSY68x+MBoKohUoOoUv0lE roWKfjhleYaWzAQKJjyxFfalLduvou1x5h8zgHyLb+wy/TuxPJOqcs8ubSTbZ2hAhcEc +OPA== X-Gm-Message-State: APjAAAVfDPmLGhCz0fVOjn/mPHDvFu7WistNZq5/o5qdlSydghVCPNi/ IneBT04P+uib849GHBNmy/17Yg== X-Google-Smtp-Source: APXvYqw2dLfEen3CBqhKqFUCm/lIALU95sAWpGG1jvDAM5SLLfm0KrVb2VuxzKUQDcPH1Wy6r4qfEA== X-Received: by 2002:a62:2603:: with SMTP id m3mr8891667pfm.232.1556293883132; Fri, 26 Apr 2019 08:51:23 -0700 (PDT) Received: from localhost.localdomain ([115.97.185.144]) by smtp.gmail.com with ESMTPSA id e4sm12019017pfn.185.2019.04.26.08.51.18 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 26 Apr 2019 08:51:22 -0700 (PDT) From: Jagan Teki To: Simon Glass , Philipp Tomsich , Kever Yang , Akash Gajjar , Tom Rini , Manivannan Sadhasivam Subject: [PATCH v4 08/13] rockchip: dts: rk3399: nanopi4: Use CD pin as RK_FUNC_1 Date: Fri, 26 Apr 2019 21:19:55 +0530 Message-Id: <20190426154956.29567-9-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.18.0.321.gffc6fa0e3 In-Reply-To: <20190426154956.29567-1-jagan@amarulasolutions.com> References: <20190426154956.29567-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_085123_717769_29CFC1AE X-CRM114-Status: GOOD ( 12.63 ) 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>; +};