Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp236549iob; Mon, 2 May 2022 18:05:46 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwwWimBcoc+VmOEnl89Tvv/opeAnYOpZBKclheCZxErgAoFy6E+H03mZVHaI67ZgsNpg6A4 X-Received: by 2002:a17:90b:e14:b0:1d9:5122:be75 with SMTP id ge20-20020a17090b0e1400b001d95122be75mr2054799pjb.178.1651539946745; Mon, 02 May 2022 18:05:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1651539946; cv=none; d=google.com; s=arc-20160816; b=HO4K9emKRS1T7dRkB7DksIXVWuncSEhC7n0rhctWMWULgWI39NjbieacJA51jZhwsO Yx86UdE+qYYdk30ZBWQa7XcYEdUCq35VlxDlnkF9MNxvChARDX/fetdXRAA8/CTXmNlY wjNQy2AAbNWdd24QouCN1q7eINeSPdy8EBmhnGBTL2mzzIZQjzVkyYOOg5f6R35nu5LY bxPLQd4OL/Rid8jsh/Wa9xjmmgnuFjM4fdHs1pDk5ij7R3Qv+vzf/wJHdj6wzN0KaYqw j9rjfehZcBtMSle27N2mCnympGB1n4e7PrHTeL/iOjveoGHXANQlBdXjZSz5F5sWK895 lOaA== 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 :message-id:date:subject:cc:to:from; bh=cOltBiq7Frt3rGx4Y5gWCMt1DG8FgjOfUGI2CdxoSEg=; b=JKN+TpwTa/x/fqKEWUWW8B5t4tGpK+MO0mAe12RS5cgd6mkjVu4JznE6cV6Z60LLEd jWGRQXhhBKzoBrKEXrEdQCp/YwO82bWoLfEhwXs6mb+S3TR1IQ1laTvJgQ9kh6XAe/1x bvNTYHlgR+fpbPpT00SBsQUQFo97yLPV+4ZbgUmgVJ0D6JohMWV0/ze58yUjaylUXT85 J92+BfaXK5z9EEpgrfEGZ6re8voF3HhLnrKgy+EIh6xs7z1WF5ws2UvRfqkGuk3gS+TO rpVbYEA/FaQBcIZDvMDDK60K1Bl5PoWN+o8k8FeodIQP/SW1CEpwuB97czkjqkMULkhY +3Tw== 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:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id c9-20020a17090ab28900b001d26c2084eesi786116pjr.30.2022.05.02.18.05.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 02 May 2022 18:05:46 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (out1.vger.email [IPv6:2620:137:e000::1:20]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 68C8945060; Mon, 2 May 2022 17:49:04 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1383031AbiD3QaS (ORCPT + 99 others); Sat, 30 Apr 2022 12:30:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43360 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1379413AbiD3QaN (ORCPT ); Sat, 30 Apr 2022 12:30:13 -0400 Received: from relay08.th.seeweb.it (relay08.th.seeweb.it [IPv6:2001:4b7a:2000:18::169]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7A20665418 for ; Sat, 30 Apr 2022 09:26:51 -0700 (PDT) Received: from localhost.localdomain (abxh26.neoplus.adsl.tpnet.pl [83.9.1.26]) by m-r2.th.seeweb.it (Postfix) with ESMTPA id 0DFBC3F6AE; Sat, 30 Apr 2022 18:26:49 +0200 (CEST) From: Konrad Dybcio To: ~postmarketos/upstreaming@lists.sr.ht Cc: martin.botka@somainline.org, angelogioacchino.delregno@somainline.org, marijn.suijten@somainline.org, jamipkettunen@somainline.org, Konrad Dybcio , Andy Gross , Bjorn Andersson , Rob Herring , Krzysztof Kozlowski , linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] arm64: dts: qcom: msm8996: Add SDHCI resets Date: Sat, 30 Apr 2022 18:26:42 +0200 Message-Id: <20220430162642.608106-1-konrad.dybcio@somainline.org> X-Mailer: git-send-email 2.35.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RDNS_NONE, SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no 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 On MSM8996, the default bootloader configuration leaves the hosts in some weird state that never allows them to function properly under Linux. Add the hardware resets so that we can start clean and get them actually working. Signed-off-by: Konrad Dybcio --- Depends on [1], fixes eMMC on at least SONY Tone. [1] https://patchwork.kernel.org/project/linux-mmc/patch/1650816153-23797-1-git-send-email-quic_c_sbhanu@quicinc.com/ arch/arm64/boot/dts/qcom/msm8996.dtsi | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/msm8996.dtsi b/arch/arm64/boot/dts/qcom/msm8996.dtsi index b9a48cfd760f..dc56830f9e00 100644 --- a/arch/arm64/boot/dts/qcom/msm8996.dtsi +++ b/arch/arm64/boot/dts/qcom/msm8996.dtsi @@ -2707,6 +2707,7 @@ sdhc1: sdhci@7464900 { clocks = <&gcc GCC_SDCC1_AHB_CLK>, <&gcc GCC_SDCC1_APPS_CLK>, <&rpmcc RPM_SMD_BB_CLK1>; + resets = <&gcc GCC_SDCC1_BCR>; pinctrl-names = "default", "sleep"; pinctrl-0 = <&sdc1_state_on>; @@ -2730,6 +2731,7 @@ sdhc2: sdhci@74a4900 { clocks = <&gcc GCC_SDCC2_AHB_CLK>, <&gcc GCC_SDCC2_APPS_CLK>, <&rpmcc RPM_SMD_BB_CLK1>; + resets = <&gcc GCC_SDCC2_BCR>; pinctrl-names = "default", "sleep"; pinctrl-0 = <&sdc2_state_on>; -- 2.35.2