From patchwork Sun Oct 30 07:32:23 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marijn Suijten X-Patchwork-Id: 12937 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:6687:0:0:0:0:0 with SMTP id l7csp1682090wru; Sun, 30 Oct 2022 00:33:50 -0700 (PDT) X-Google-Smtp-Source: AMsMyM7kJTcV2FJXPtAXtbreZbuSJ3JCyHKGe0UVgGgByeQMUGWA/X8QG94dmtNhXZDlcniCjLY/ X-Received: by 2002:a17:90b:4b0b:b0:213:227d:149e with SMTP id lx11-20020a17090b4b0b00b00213227d149emr25294620pjb.145.1667115229815; Sun, 30 Oct 2022 00:33:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1667115229; cv=none; d=google.com; s=arc-20160816; b=Qz3EYg4tBONFuuM0m8TRRC5Sd4UMoLIiJBhKhXxSo0I/IyJvL/aQeC8wVSaCq8hVPY YeQaW4PSt1JdzNMeIJ97oFasvlDojkM0wvSTifQpFQVLDKtjl62v2peNOw5JDNg91OzQ +tSGbxLmHTQSSw3QeWAzDfL4KqZJTE23UT2CtfA6CDtyT9xLhqsD5fPacL4StKyEsHW4 OE3jLpYZ60t5OuvD93o2o+m+pZ+BLHsjxnDwdBtDhbEpBl7iGnlZcDYXfhUgwSOVQO78 HqKNh3SVSOMkmNNoMcTuo0w1AtZe0ObIRSeQzlcI1bU8kMzCvLayaacjDQ8AkF/L3dyP 0pGA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=XghxjIu37G0QdslXOBzmfOXdpqR7HlcYw6n/7d5tT/8=; b=lgaul4HdqQQiujd+i2RM4r4h8XzbNM7OPklW1lVmSH/XETO3OSkq2wMynmYCwwkrzR m7rVD81R4H8U1/aSQ1emPq70M7lvQrgC6Vx/BfeU0pKVOEJqo0lwYqDrbE6CYZL2pDee JoeqRnC6AWaCXXs/Sq3vqbeitNiHeA2MjjosMo8/AQXKOpcfL1QD+NiHkvcmVW5O+fIh foK3Fi0OoO5zyIRC9aiNmp8Zr5fcu76VBXgEDhjf5+P4I1s/DYe1WPUVogo0lMy6FS/A Zmaoifv10IHPUXM/IJ1vPnmtQoGJY8FmRjELR0Y/rkoM5a2fjRPdjS5w6sX203hBkZJU AMvg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id n6-20020a170902d2c600b00186e21234f2si5128865plc.177.2022.10.30.00.33.37; Sun, 30 Oct 2022 00:33:49 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230003AbiJ3Hcy (ORCPT + 99 others); Sun, 30 Oct 2022 03:32:54 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58218 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229728AbiJ3Hcs (ORCPT ); Sun, 30 Oct 2022 03:32:48 -0400 Received: from relay04.th.seeweb.it (relay04.th.seeweb.it [IPv6:2001:4b7a:2000:18::165]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2583F301; Sun, 30 Oct 2022 00:32:44 -0700 (PDT) Received: from localhost.localdomain (94-209-172-39.cable.dynamic.v4.ziggo.nl [94.209.172.39]) (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 m-r1.th.seeweb.it (Postfix) with ESMTPSA id 240B41F948; Sun, 30 Oct 2022 08:32:42 +0100 (CET) From: Marijn Suijten To: phone-devel@vger.kernel.org Cc: ~postmarketos/upstreaming@lists.sr.ht, AngeloGioacchino Del Regno , Konrad Dybcio , Martin Botka , Jami Kettunen , Marijn Suijten , Andy Gross , Bjorn Andersson , Rob Herring , Krzysztof Kozlowski , Luca Weiss , linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 01/10] arm64: dts: qcom: sm6350: Add resets for SDHCI 1/2 Date: Sun, 30 Oct 2022 08:32:23 +0100 Message-Id: <20221030073232.22726-2-marijn.suijten@somainline.org> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20221030073232.22726-1-marijn.suijten@somainline.org> References: <20221030073232.22726-1-marijn.suijten@somainline.org> MIME-Version: 1.0 X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_NONE, SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1748097019294225498?= X-GMAIL-MSGID: =?utf-8?q?1748097019294225498?= Make sure the SDHCI hardware is properly reset before interacting with it, to protect against any possibly indeterminate state left by the bootloader. Suggested-by: Konrad Dybcio Signed-off-by: Marijn Suijten Reviewed-by: Luca Weiss Tested-by: Luca Weiss # sm7225-fairphone-fp4 Reviewed-by: Konrad Dybcio --- arch/arm64/boot/dts/qcom/sm6350.dtsi | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sm6350.dtsi b/arch/arm64/boot/dts/qcom/sm6350.dtsi index c39de7d3ace0..a3ae765d9781 100644 --- a/arch/arm64/boot/dts/qcom/sm6350.dtsi +++ b/arch/arm64/boot/dts/qcom/sm6350.dtsi @@ -490,6 +490,7 @@ sdhc_1: mmc@7c4000 { <&gcc GCC_SDCC1_APPS_CLK>, <&rpmhcc RPMH_CXO_CLK>; clock-names = "iface", "core", "xo"; + resets = <&gcc GCC_SDCC1_BCR>; qcom,dll-config = <0x000f642c>; qcom,ddr-config = <0x80040868>; power-domains = <&rpmhpd SM6350_CX>; @@ -1068,6 +1069,7 @@ sdhc_2: mmc@8804000 { <&gcc GCC_SDCC2_APPS_CLK>, <&rpmhcc RPMH_CXO_CLK>; clock-names = "iface", "core", "xo"; + resets = <&gcc GCC_SDCC2_BCR>; interconnects = <&aggre2_noc MASTER_SDCC_2 0 &clk_virt SLAVE_EBI_CH0 0>, <&gem_noc MASTER_AMPSS_M0 0 &config_noc SLAVE_SDCC_2 0>; interconnect-names = "sdhc-ddr", "cpu-sdhc";