Received: by 2002:a25:7ec1:0:0:0:0:0 with SMTP id z184csp133099ybc; Mon, 18 Nov 2019 21:53:58 -0800 (PST) X-Google-Smtp-Source: APXvYqwgCll8rqFpqplG7OYgF5Vldj0IC4r6QC2DYh2+3UPSPTAarl+B0xnCrqZpAltNTbjoaxz6 X-Received: by 2002:a17:906:d210:: with SMTP id w16mr32551954ejz.86.1574142838240; Mon, 18 Nov 2019 21:53:58 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1574142838; cv=none; d=google.com; s=arc-20160816; b=NnRg26yQTE0rZP6HQ4hGph1acf7/IEqJy8LRFp9O6qV7HLH6dPBVTIVHcrBZKJahaN SRZ3eyNHUsyA78W0PJjoYFgL3bJjKiYKaQcY4S66Pjb+Qq7uMNk/j0yazy6zdy3uZHH5 GZ89Xw5LSR8/A41LanZQ5mTF9rDBCmC4AjQq98M/MYZTwmigfEcRsJf3L2EnXQVN0Iup dmyV7br8wJhd/htpYUpS4jOvB0X290SC+kyf/NcOztpEXR88ozg4DklNvqOfbNlu0YEv Dz6HN4p58LW5BIzygdiexAkUZg4lZYHMj8bv0CUCbefvKIpjPKYDQbxXUSlAJebXJxzg WRUg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=7z11r6XZu3kjFNC9Fb8/Y9kuAUsojX33B20OL60yE/4=; b=w533YgPkhatGBS9cneSzY7Zcn2TbQNdeg/lYcEvugC6HPljCEftQY086ce7Qhi8p4K CRfh9DAXghO9GuxxKOTIeOAVu3ZG3en1bOtQtX0tpyJb8CORxDA2pKbPykhh8x4B0ION 1njKNfnwWsbMDKH7N9xB9VOAmgi/riWfH+AW6dPcXuleAcN5Bmny+ruk46mBmeeVYAAa InUtQWNX5HJKkXhxtYVmmhkJO038Bw1q99r2FSNdSSX1QqDXnXJ+li5oJuvetT7wOgvw GbfAS4XTlFfDaazfmEy3Gc0LXklXhN+NI3GJls8fz6EWEqjegnfUCW+UdeyjUnOh7Ixs zijg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=Yhz1ejHI; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f11si13036158ejk.336.2019.11.18.21.53.34; Mon, 18 Nov 2019 21:53:58 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=Yhz1ejHI; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731894AbfKSFwR (ORCPT + 99 others); Tue, 19 Nov 2019 00:52:17 -0500 Received: from mail.kernel.org ([198.145.29.99]:49892 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731886AbfKSFwN (ORCPT ); Tue, 19 Nov 2019 00:52:13 -0500 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id B671920862; Tue, 19 Nov 2019 05:52:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1574142732; bh=5DLZxx+XkJtsu61XyqZjuPUSFXnrVTk7JiK1SjKEoNE=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Yhz1ejHIJ/vQbJRlNqvn9hbIuMDx12BkUfP0qXbQqwlAlm85hluJfCCXiTcBhcJ3C YZ2TapXFGRyqkEYtSRT8HwWSVd0VjfWDosIvtjzKbcfM60Znnrgi5B75GNOZrCbOT+ pklBwQTgdu8mjh2g6JU3hmM9AJARzoKO/mnuBl94= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Heiko Stuebner , Sasha Levin Subject: [PATCH 4.14 182/239] ARM: dts: rockchip: explicitly set vcc_sd0 pin to gpio on rk3188-radxarock Date: Tue, 19 Nov 2019 06:19:42 +0100 Message-Id: <20191119051334.717488875@linuxfoundation.org> X-Mailer: git-send-email 2.24.0 In-Reply-To: <20191119051255.850204959@linuxfoundation.org> References: <20191119051255.850204959@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Heiko Stuebner [ Upstream commit a2df0984e73fd9e1dad5fc3f1c307ec3de395e30 ] It is good practice to make the setting of gpio-pinctrls explicitly in the devicetree, and in this case even necessary. Rockchip boards start with iomux settings set to gpio for most pins and while the linux pinctrl driver also implicitly sets the gpio function if a pin is requested as gpio that is not necessarily true for other drivers. The issue in question stems from uboot, where the sdmmc_pwr pin is set to function 1 (sdmmc-power) by the bootrom when reading the 1st-stage loader. The regulator controlled by the pin is active-low though, so when the dwmmc hw-block sets its enabled bit, it actually disables the regulator. By changing the pin back to gpio we fix that behaviour. Signed-off-by: Heiko Stuebner Signed-off-by: Sasha Levin --- arch/arm/boot/dts/rk3188-radxarock.dts | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/arch/arm/boot/dts/rk3188-radxarock.dts b/arch/arm/boot/dts/rk3188-radxarock.dts index 53d6fc2fdbce8..541a798d3d202 100644 --- a/arch/arm/boot/dts/rk3188-radxarock.dts +++ b/arch/arm/boot/dts/rk3188-radxarock.dts @@ -130,6 +130,8 @@ regulator-min-microvolt = <3300000>; regulator-max-microvolt = <3300000>; gpio = <&gpio3 RK_PA1 GPIO_ACTIVE_LOW>; + pinctrl-names = "default"; + pinctrl-0 = <&sdmmc_pwr>; startup-delay-us = <100000>; vin-supply = <&vcc_io>; }; @@ -348,6 +350,12 @@ }; }; + sd0 { + sdmmc_pwr: sdmmc-pwr { + rockchip,pins = ; + }; + }; + usb { host_vbus_drv: host-vbus-drv { rockchip,pins = <0 3 RK_FUNC_GPIO &pcfg_pull_none>; -- 2.20.1