From patchwork Tue Mar 5 14:32:18 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jose Ignacio Tornos Martinez X-Patchwork-Id: 13582505 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 5BD7DC54E41 for ; Tue, 5 Mar 2024 14:35:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-ID:Date:Subject:Cc :To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=bUoZW46ufFAF7IpnsAY9vWgfCu4MyoIQFkuyutpK7rA=; b=ZYT1Dhs2Q/9V1a gT2yLl1tLgRTDuzoDxp37Rhuoyt02DC1+T2rp59E3dUeJqI8fzrXHlL0oyY3CKflmZG3hdMcKgHhD Gx1BHsW5+SF+YQPcW8xE6YXc0nhutVyIjFmORQ7vfu2DN6xn2ABnUO2yi4Hge6G9Qni0TAQCn1Npd VuhpRqiPrsSDqoLGManzLTb0ZaZnn36TwOy00SZFSIRAnEDwJ4oE23SHM/Nj4341L+sMIhSSRCdSD 9sAjAWqIknn2ul+C+YRZElFNBiFQsGmkMXcVL+dUzDA51FoaEcE8MXu308MOw8gzPTMdO+7fgnMSM /MtWAFusC+mHdJZiyxyw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1rhVsn-0000000E2qe-2DSQ; Tue, 05 Mar 2024 14:35:05 +0000 Received: from us-smtp-delivery-124.mimecast.com ([170.10.133.124]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1rhVsk-0000000E2pX-0FM5 for linux-arm-kernel@lists.infradead.org; Tue, 05 Mar 2024 14:35:03 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1709649300; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=JBzs20izmKSa/w0xJo132WZv3DDpsSKC3qmblEUsN0Q=; b=KTRj9aEB2QpIq87czHoqVhQv/wDXsZryx1f5kKpEaB0Vd6TdTyycnsE/GkLt85Sn5Epzol IJXaANsIe45GB4Apj5D3EC6frIF5jNW9VBcmnhY3hL+2eULMrU/itC3+ndp44po4l0b4i0 F7bC2wRiYgQLaywm19tbb4Gx365227I= Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-37-QgkDEyOIP6iJvdrHKJfo7w-1; Tue, 05 Mar 2024 09:32:29 -0500 X-MC-Unique: QgkDEyOIP6iJvdrHKJfo7w-1 Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.rdu2.redhat.com [10.11.54.5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 6CDD01800442; Tue, 5 Mar 2024 14:32:28 +0000 (UTC) Received: from fedora.redhat.com (unknown [10.39.192.113]) by smtp.corp.redhat.com (Postfix) with ESMTP id A4EB817A8E; Tue, 5 Mar 2024 14:32:25 +0000 (UTC) From: Jose Ignacio Tornos Martinez To: robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org, heiko@sntech.de, david@ixit.cz, cristian.ciocaltea@collabora.com, angelogioacchino.delregno@collabora.com, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org, linux-kernel@vger.kernel.org Cc: Jose Ignacio Tornos Martinez Subject: [PATCH] arm64: dts: rockchip: regulator for sd needs to be always on for BPI-R2Pro Date: Tue, 5 Mar 2024 15:32:18 +0100 Message-ID: <20240305143222.189413-1-jtornosm@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.4.1 on 10.11.54.5 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240305_063502_264135_001069A9 X-CRM114-Status: GOOD ( 10.66 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org With default dts configuration for BPI-R2Pro, the regulator for sd card is powered off when reboot is commanded, and the only solution to detect the sd card again, and therefore, allow rebooting from there, is to do a hardware reset. Configure the regulator for sd to be always on for BPI-R2Pro in order to avoid this issue. Signed-off-by: Jose Ignacio Tornos Martinez --- arch/arm64/boot/dts/rockchip/rk3568-bpi-r2-pro.dts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm64/boot/dts/rockchip/rk3568-bpi-r2-pro.dts b/arch/arm64/boot/dts/rockchip/rk3568-bpi-r2-pro.dts index f9127ddfbb7d..b3ea54b6ba37 100644 --- a/arch/arm64/boot/dts/rockchip/rk3568-bpi-r2-pro.dts +++ b/arch/arm64/boot/dts/rockchip/rk3568-bpi-r2-pro.dts @@ -416,6 +416,8 @@ regulator-state-mem { vccio_sd: LDO_REG5 { regulator-name = "vccio_sd"; + regulator-always-on; + regulator-boot-on; regulator-min-microvolt = <1800000>; regulator-max-microvolt = <3300000>;