From patchwork Sat Apr 27 11:48:50 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 299 Return-Path: X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-pg1-f200.google.com (mail-pg1-f200.google.com [209.85.215.200]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id AB7D53F089 for ; Sat, 27 Apr 2019 13:49:39 +0200 (CEST) Received: by mail-pg1-f200.google.com with SMTP id d1sf3812164pgk.21 for ; Sat, 27 Apr 2019 04:49:39 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1556365778; cv=pass; d=google.com; s=arc-20160816; b=RXAruJ0Kf9Eqmn0dtYbWaRJwyyVSZgnQqXl93JADAnKl1eSRgXuDAdkV/Qyqps9wnm M7CWtKGRRYIDFGjHN5OucXHVOV1GSpzegBN3Pk1gFhoTvi4Bpx4HkMYTB8zmIDeSzTq/ MpjJTxuB0mgjacJ7tPGyVWQhH+2t/oSQzLMtVcOkw+Q3jH8vxmkhhSltuZSnkJE8fZC/ MQe+q+kS5N0stlaSNeq4a4PhSx92B85LNaFC8Ysr2zgzBFXxJVSGSJWpTts4q7ohjGsh /s8AWnAuQ/f9y8+SwKML6HiljaS5YZvLIOwOZLrWSOgW1cdei9LQG6Y2g1If1muX/wyM 249Q== 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=FlE3US872YI8/i2H6VeByxNsQ6QYtJLVR7Uf45rkmgc3P5TAjS+BVrn5zBwf4+ORbg 1AvWI2ZxXu77ByBRlUCNm15vdiqtDdBxZ4UKNv2Xm1eK2YXcbhHCWNmS4fGu/XEffZTP 1spJbD5MnbKypF5Uhug3WvHz7NuHFbOdt7yu3rbTcg4iN//7jLbDwkLepMi828AAjgRC radlD7Cf+PbI7DbftySUFXTWc14iMCytaRLVYKk7aiDz++SjRzG8ucV0HM+zW2aysOMM U93MVohHFom0Th1CKLMBLZM3hOlZYpkaMcKUKTSe0AvgpcNiBF6aUu817KSKfFYcHkZH bvcg== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=U9IJEb4S; 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=J7wAei/Jv/qf9Dvn9nPpPw3dOkncFb1FtCqApA2ZNjZaYuyVzLllRzjkkoBAA3H4Fk trNH5y+MGxcLdPi6NnBukRAE1fcOWVVt7yD2BXZY71ZaFfBZBnGEgX1qN1yfGRiU0aVd e2uhBeYV4YscucUK8idvpwPVtk44LPnRwm4x4= 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=RDciHyXsq/8IzPi17Vf7GK2ChUTKrQqPSdygfl4Pgrnnb9zl4a3REdMOgMSldGx7uB HlyiFFvmEA2E1IOB1bG4DmQ8VvGz8Swda0NwHqq3czXl4NqTlaZbgUmEBTY7BTNH9hid dA3JC913LVOgoAnPJE+u3VBLxZ0rN/M4iR+65B/P03fDvG8pPd0nvcf3uqRoYM1LronD qIt7auSfVz/0KFY6SZPr+9eHNijmg3xH2+wdJY6poYH670amkY9rDPQMx9fEtSeya4KK syktu12endmGGx0d3YLOa24L0HtwHARl25ctTMuaJiZBTpj9cao9CuaPNIUYpOhJULrH rIDQ== X-Gm-Message-State: APjAAAV3PE8/ALz8UZKflx6MIl+riooDTN7WjR6EqexKWmv+gB6wC75T fNZ2QcV7/VMpAxItuPr/NFEHsrIY X-Google-Smtp-Source: APXvYqzTCqq2gB9yAMMo+VppO0DrjkDJu781wHBKZ2oV+YpUJRdTcvyxIbCt6X2h5EQoM7uRTlYqYw== X-Received: by 2002:a17:902:324:: with SMTP id 33mr40831850pld.246.1556365778481; Sat, 27 Apr 2019 04:49:38 -0700 (PDT) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a63:6b44:: with SMTP id g65ls5327704pgc.8.gmail; Sat, 27 Apr 2019 04:49:38 -0700 (PDT) X-Received: by 2002:a65:51c8:: with SMTP id i8mr48359767pgq.175.1556365778199; Sat, 27 Apr 2019 04:49:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1556365778; cv=none; d=google.com; s=arc-20160816; b=jm2ABMcX3M3lNlOjiUR9ufQvh2rYfWLSeO+lKd6k0F7msCtswLbE8R8l/MZ8zlUCf0 +5lTCGJGPAnmoTPmnPpVQ+dVDZtvdABpHSYTCCOMvIWeOJlpdo/+4FBIAK14oOb1lqJL 026b6oEDw92wx9Afk4ykv7HoNGT5ocGhyGsV8vcFmD/KE8IIFPfq4XobnNxsujBuAxeL veon/hkGrCPKKeanAf3cOQfHgJ74k+vMetL52n1ZLDfzE63I9DehxjueI4JhjeZQVNVF vlOr4ozwQ3WNt3gQ7aC51p33yzNc0iisI9Gg6vhrGqFSldPsxsJeBP3FKM/Kx8oZBlYM poqQ== 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=jCYvqehjDCduKeWZ2f6/Gdr1+sSXlq/5kspP5YstLpemT+gIgZyXqtZl8AeV7S8waP h8o/BJY4Ax6ceftn5Bg+12370YInC+rL2UhWx+p6QIh7IiP2ffzis+P4mfDi1PGKqjUr HBrL7872Ftj7LeqzjVnnYNO9zYJvNu3vl5KWyJKxoyww/xPE+iVUPvP/i7w6bNftG9mT YsbbdGxvykJUSszX0241jH/6U4e8TS6mJ1aZ4rP0UKF/C8mS7vUEe59KMZfVPsxS9mn0 xO7igc2WbDsSOfh8tiyH3EzMgAC1Eeu1J7m2PI27oflUiQ+RSFDUVW8xHTfDh5tjAMUr J0yw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=U9IJEb4S; 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 u12sor644481pgo.62.2019.04.27.04.49.38 for (Google Transport Security); Sat, 27 Apr 2019 04:49:38 -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:41c4:: with SMTP id o187mr47512502pga.73.1556365777914; Sat, 27 Apr 2019 04:49:37 -0700 (PDT) Received: from localhost.localdomain ([115.97.185.144]) by smtp.gmail.com with ESMTPSA id y3sm2368768pfe.9.2019.04.27.04.49.33 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 27 Apr 2019 04:49:37 -0700 (PDT) From: Jagan Teki To: Simon Glass , Philipp Tomsich , Kever Yang , Akash Gajjar , Tom Rini , Manivannan Sadhasivam Cc: Paul Kocialkowski , linux-rockchip@lists.infradead.org, linux-amarula@amarulasolutions.com, u-boot@lists.denx.de, Jagan Teki Subject: [PATCH v6 07/13] rockchip: dts: rk3399: nanopi4: Use CD pin as RK_FUNC_1 Date: Sat, 27 Apr 2019 17:18:50 +0530 Message-Id: <20190427114852.7608-8-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.18.0.321.gffc6fa0e3 In-Reply-To: <20190427114852.7608-1-jagan@amarulasolutions.com> References: <20190427114852.7608-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=U9IJEb4S; 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>; +};