From patchwork Tue Apr 9 18:03:00 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Caleb Connolly X-Patchwork-Id: 787225 Delivered-To: patch@linaro.org Received: by 2002:adf:fdd2:0:b0:346:15ad:a2a with SMTP id i18csp348098wrs; Tue, 9 Apr 2024 11:03:24 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCX1LXYnNBlpgVzMqc5BcDo617Or5yYL7Rcqw3JzeeV4pJqz2rVdXHIfW8SedIWGobuq/83u2vTyF2XZOMu/JFLF X-Google-Smtp-Source: AGHT+IHc5K1GRxbRtw0SNI93aoB2A9qoEirBHJDOsVA7Ov7e3FntERjp5gb+AxTQH8aBVndIuKYi X-Received: by 2002:a50:d6c1:0:b0:56e:2a12:e9ca with SMTP id l1-20020a50d6c1000000b0056e2a12e9camr145881edj.41.1712685804411; Tue, 09 Apr 2024 11:03:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1712685804; cv=none; d=google.com; s=arc-20160816; b=buMQkgz3bcTCIj5ewbaShe4HueO+8nCKskmWvO3dLi3iA+jGWgiR0r7jQibyjAv2Jw d2boGINxTa9GkDYWpiOrmxDm67RVBPs/TcWk+jqOBnIp72w5Cqu/7A/EGqOvuYOfje3L X4wWl2YKZUX+XdwD+H5KHVQbXKEKUnwgbpY5z6AZxk8RI1bayo77EU17Ne4uhlhIhBa6 1PHb4aF1X6GZ5eyHjnogmKxRuU1rtytsO2+R2R6pnKlmerLlV12Pl2Bw9a1uXCPH3Uyl C4n+AC7UfHyDADXXjVYK2gzNXWMWS1f8f5FZVzMicNXduwdhKgLqEvlJr6Uyj4mU5UGv Xjjw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:cc:to:in-reply-to:references :message-id:content-transfer-encoding:mime-version:subject:date:from :dkim-signature; bh=C5CkDixJhnhclQPO5wn6o1M4pgnGxZljaormasly8Ho=; fh=l1dqhLO5z0XlFWHhIhA7jn7sD9Gz0XDjE1yUiD1hdKE=; b=ZUAUPu7XXZ+oMZUZ2lmycbgXGGlhfkOinocbOyViWdyXftQV7FHfGpikTPR29C/e4d tY7JR1q8TkMb/yuKDHLxxrZVMCHtZL5uoDTVERhciVBdL3AO0mHZ/PkxLCv40TuYU45R HVUVaHW3dbQdKtCOcVRX7C62vQXyAlpYnROFpaLHdogo5ZaDAoSrCDIDseWWdK9KJH3g aIMF0XWpV2aEWfOJO/f1jiYDAPrUT7jH2DDN/jJ2CRJU1szwid6eggYi93YI4WKn8PSB 94VJ+y9MkeHK821XajDAAkOzUI9ZTW2Fe4i7CF9xfFOy4AMOoCvCxEcauSqZsm+zKSt8 HonQ==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=pqhAE7iY; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 85.214.62.61 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from phobos.denx.de (phobos.denx.de. [85.214.62.61]) by mx.google.com with ESMTPS id o26-20020a509b1a000000b0056e0a0ef4c3si4829693edi.682.2024.04.09.11.03.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 09 Apr 2024 11:03:24 -0700 (PDT) Received-SPF: pass (google.com: domain of u-boot-bounces@lists.denx.de designates 85.214.62.61 as permitted sender) client-ip=85.214.62.61; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=pqhAE7iY; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 85.214.62.61 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 493DE8815D; Tue, 9 Apr 2024 20:03:12 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=linaro.org header.i=@linaro.org header.b="pqhAE7iY"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 5538C88155; Tue, 9 Apr 2024 20:03:11 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-ed1-x533.google.com (mail-ed1-x533.google.com [IPv6:2a00:1450:4864:20::533]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id B6DC687F24 for ; Tue, 9 Apr 2024 20:03:08 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=caleb.connolly@linaro.org Received: by mail-ed1-x533.google.com with SMTP id 4fb4d7f45d1cf-56e509baddaso2771040a12.1 for ; Tue, 09 Apr 2024 11:03:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1712685788; x=1713290588; darn=lists.denx.de; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=C5CkDixJhnhclQPO5wn6o1M4pgnGxZljaormasly8Ho=; b=pqhAE7iYw5qd2NbefyxFHRYCDvbnzFuRPA0KgNbD3hiOfMEyHV8dxsIWujEMQH1Q4q 2epgXBEvao4ys3xZfjudK93sTIWUTg7x1AbivIk9KhuKCtYvbPoGq9/E1x9nZILRkSP8 nWIDgsgXM9puBRfb8EDg42ahgqFKGFn/p5xMMMZ4ClZ4CDI6cRKhmtu1dCA8XN96Wogf Aj2zZFCsdomUFPve1IAQPXGy61HCGwCTn6l8+kwdD4kL4wsaf9c02C0jLqi11qzzorZt fB7OWoor7/vBA9N92C2R2D9tiEw90F55REWEdpi5J7+lEZU+EHfvc1WUfsZVQmb5rVHi IC7A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1712685788; x=1713290588; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=C5CkDixJhnhclQPO5wn6o1M4pgnGxZljaormasly8Ho=; b=ZtOdqkqgR0k2H/Z6suYdYebU+7bSd5fjTbhgnBoGDVB2uk3eRsrkpOFtdGeJ1oiLHw Sl93IBnVZB59sWreJ7g1IuMvaeWc4jlYpXp0g0UX9MCDIJqqOybUoZ9FLu9y5izIuNg3 +LH6iWH+GZsW5HhjEHnu27J9d4X2jbd/dYhBjj/2siS64bnSjXvrCtmdM6AIuI5h7Jcc 7bmXmVoQDFZUoCWSCQQ4kxMa8QIQgA69x7Ss81Q9dr20fMvdkry5Q6yPY1pp2e1jhftu kOblO2cn2LfKaXca7xVEYhv+tkJxo8+R5rVdlxO3uD79b2Pe/FYQnKrC+VhFjalNKDzS pERQ== X-Gm-Message-State: AOJu0YwDJtUlOsSUNbnVm5c1GUZQ4VOb3Bj0wdfkt4ul8JoL1GnfOzgh g7BZOfpqIDX8HkfDMCvODFCznC3c3SrbGQ1WtO25LZH7ITj+BJtgPHFRziwGtrMf1qRSoxlcXgZ x X-Received: by 2002:a17:906:b217:b0:a51:ddd3:6a4c with SMTP id p23-20020a170906b21700b00a51ddd36a4cmr117992ejz.42.1712685788027; Tue, 09 Apr 2024 11:03:08 -0700 (PDT) Received: from [192.168.0.113] ([2a02:8109:aa0d:be00::570d]) by smtp.gmail.com with ESMTPSA id d4-20020a170907272400b00a4e5866448bsm5928783ejl.155.2024.04.09.11.03.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 09 Apr 2024 11:03:07 -0700 (PDT) From: Caleb Connolly Date: Tue, 09 Apr 2024 20:03:00 +0200 Subject: [PATCH 1/7] mmc: msm_sdhci: correct vendor_spec_cap0 register for v5 MIME-Version: 1.0 Message-Id: <20240409-b4-qcom-mmc-fixes-v1-1-5039164ecbf7@linaro.org> References: <20240409-b4-qcom-mmc-fixes-v1-0-5039164ecbf7@linaro.org> In-Reply-To: <20240409-b4-qcom-mmc-fixes-v1-0-5039164ecbf7@linaro.org> To: Caleb Connolly , Neil Armstrong , Sumit Garg , Peng Fan , Jaehoon Chung , Tom Rini , Ramon Fried , Lukasz Majewski , Sean Anderson Cc: u-boot@lists.denx.de X-Mailer: b4 0.14-dev X-Developer-Signature: v=1; a=openpgp-sha256; l=2019; i=caleb.connolly@linaro.org; h=from:subject:message-id; bh=AgjHOoN/b4LUHuNMtAk2CVrQKJAGbzZ6iPs8yXn+1YM=; b=owEBbQKS/ZANAwAIAQWDMSsZX2S2AcsmYgBmFYLYB23/QV7K050FxHeUD2gsUY3Vtbpl2S7e8 qc0kbTAfOeJAjMEAAEIAB0WIQS2UaFGPGq+0GkMVc0FgzErGV9ktgUCZhWC2AAKCRAFgzErGV9k tn6rD/4xPodaCXhWKeT+ag1pRcz/YFIMcQXrwKVvMYNMfSlgh/wMamblr/kUjuVsTaoftnVduKf Z7Ikezhu+HBlEAkN9JFVk9abf8AOxFD5gX/iTKFB04a3Gy1dv5Uv6Tp7cruGy64TuIfmFBXAsjJ XYdauG/FP07VlS6msJP5itSV21pkTlkKfoOsGYdh8IMBgfnOeZh1fhoHeenhQAXs5uuM0CM97I1 gVwVyqCpg9nhNPZhpQCVbmXf96z8zqYDWETY4SOkBPNxH+a7DVI54Ve1dcbsRHBZtM7qHoTGTLp 50VA+t4QqOBgs6RDeCCN7ryR5+KuolYnyB9024oLWScr4ZuaHuxUH5lP4+2QVjqYPw5unzff7vq qqugJxo2eqdj5CZ7YC+2zQSr/7YsCWH69TTbbqWxmIWoDKs5onUHcuKa4p4SLPtEMDLwMxp59kP IFSnc7Xn54j6mAXvdCHdhjL1fzBEVC8F2Cyjk1tEnvoEnjGmJWvsSlQDxzxF11QFWsCO+e1kDsp Z9NCOjTM1H+qxlfnaQIsWrwaLc4B1sZYNGwe57XxuiAeTFk0bfE1WKlkHLz+3spouKtM9s45hlz OIY7ueFILBKQtGSZVXQBQNCF1ZuW5GggErJgbm7RAIqJlyX6LGEeXmcr7ySaZLW4nqa2WiaPc5E snyZ+p7Ma6+TcXg== X-Developer-Key: i=caleb.connolly@linaro.org; a=openpgp; fpr=83B24DA7FE145076BC38BB250CD904EB673A7C47 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.8 at phobos.denx.de X-Virus-Status: Clean The V4 and V5 controllers have quite varied register layouts. Inherit the register offsets and naming from the Linux driver. More version specific offsets can be inherited from Linux as needed. Fixes: 364c22a ("mmc: msm_sdhci: Add SDCC version 5.0.0 support") Signed-off-by: Caleb Connolly Reviewed-by: Neil Armstrong --- drivers/mmc/msm_sdhci.c | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/drivers/mmc/msm_sdhci.c b/drivers/mmc/msm_sdhci.c index 059cb3da77c5..f23d425144ef 100644 --- a/drivers/mmc/msm_sdhci.c +++ b/drivers/mmc/msm_sdhci.c @@ -32,11 +32,8 @@ #define SDCC_MCI_STATUS2 0x6C #define SDCC_MCI_STATUS2_MCI_ACT 0x1 #define SDCC_MCI_HC_MODE 0x78 -/* Non standard (?) SDHCI register */ -#define SDHCI_VENDOR_SPEC_CAPABILITIES0 0x11c - struct msm_sdhc_plat { struct mmc_config cfg; struct mmc mmc; }; @@ -48,8 +45,10 @@ struct msm_sdhc { }; struct msm_sdhc_variant_info { bool mci_removed; + + u32 core_vendor_spec_capabilities0; }; DECLARE_GLOBAL_DATA_PTR; @@ -180,9 +179,9 @@ static int msm_sdc_probe(struct udevice *dev) */ if (core_major >= 1 && core_minor != 0x11 && core_minor != 0x12) { caps = readl(host->ioaddr + SDHCI_CAPABILITIES); caps |= SDHCI_CAN_VDD_300 | SDHCI_CAN_DO_8BIT; - writel(caps, host->ioaddr + SDHCI_VENDOR_SPEC_CAPABILITIES0); + writel(caps, host->ioaddr + var_info->core_vendor_spec_capabilities0); } ret = mmc_of_parse(dev, &plat->cfg); if (ret) @@ -243,12 +242,16 @@ static int msm_sdc_bind(struct udevice *dev) } static const struct msm_sdhc_variant_info msm_sdhc_mci_var = { .mci_removed = false, + + .core_vendor_spec_capabilities0 = 0x21c, }; static const struct msm_sdhc_variant_info msm_sdhc_v5_var = { .mci_removed = true, + + .core_vendor_spec_capabilities0 = 0x11c, }; static const struct udevice_id msm_mmc_ids[] = { { .compatible = "qcom,sdhci-msm-v4", .data = (ulong)&msm_sdhc_mci_var }, From patchwork Tue Apr 9 18:03:01 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Caleb Connolly X-Patchwork-Id: 787226 Delivered-To: patch@linaro.org Received: by 2002:adf:fdd2:0:b0:346:15ad:a2a with SMTP id i18csp348223wrs; Tue, 9 Apr 2024 11:03:36 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCUiwlV27jdGRIUWuTRGmXRNDu21eqCqjFFFOvofR+AKvQ4pYfZD17GJXGOzMgmHWGRmy2BwFfM7pnLLGAUfra0D X-Google-Smtp-Source: AGHT+IFT0m4D8V5ezk7vuynLKTA68UJFs2ba28HLyymS3pS9GuPepAratEbG1rEwlIMPnoXXgUGL X-Received: by 2002:a17:906:a40a:b0:a51:b0e1:863b with SMTP id l10-20020a170906a40a00b00a51b0e1863bmr158250ejz.1.1712685816204; Tue, 09 Apr 2024 11:03:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1712685816; cv=none; d=google.com; s=arc-20160816; b=Ajwli1K38H2r2x+bKuuxDLZTfUo1W9mLStjtojOMlRGQ/yz+82IXl8jKSmslby9fAn CEAeDxyobgF/lmNbQA3QTue2j0ErYfJDG6FB0Tdx8avtezZCVPwG0ducAZ2mn5sdx3UI Ac3VqAYX3GcRXP9rAN3N03fKqlTbNvwMG5l0eD7R5wi2PfNmFQ4ZJZJ7TB6sCKXcZ6Rg 10KVEy4pogqM0ka0fuFRbobbbK8zIxhqnEyMvmAf4oPmOgUnF6l/rUdLvfFC7r4PvrdK DRzn3U9LbXQnB4GB6u0bgESx7ViEHPv+HWAAet2F9mtTGbdnDqUlGq2UITq6PRtCzU6L 106Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:cc:to:in-reply-to:references :message-id:content-transfer-encoding:mime-version:subject:date:from :dkim-signature; bh=ar+GLkq8olXtXCFZ6gNxbEZsIwgSsM7ajECkSqXCbvU=; fh=l1dqhLO5z0XlFWHhIhA7jn7sD9Gz0XDjE1yUiD1hdKE=; b=0qIRppUdTgKuujzDoTOMGcycR8KO9LHMbOoaj+YJ2X0S7hqGy9BIuoMu1kMGwkswrF fkq4sOGdBuSpMZe7vcYQd6y5+Qur9pwKfmCvlOV70N/X3mqhyLyToQse5qZxw9WKVm4E sDjHVOW1rqAjDiCYiljvqSYxzakEI7CDuztC3CpiDcPBeMXoSF4ZsB58WaNcXgvTZW4y 2sWqBSykQmPGWcxQaJ/iSCUux2kjau7pTf7RitoWHGzPUoT2Vp2SrCSBEiOMfKBwtDIg T+jPoNadHqN/biJnr52ORh49nXYAE8qyuDiLVHMgB7IBwxB7o7nacO+/e9E4ObV7g/x9 7fpQ==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=rQDlAFiu; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 85.214.62.61 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from phobos.denx.de (phobos.denx.de. [85.214.62.61]) by mx.google.com with ESMTPS id le3-20020a170906ae0300b00a51930774a4si5113485ejb.615.2024.04.09.11.03.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 09 Apr 2024 11:03:36 -0700 (PDT) Received-SPF: pass (google.com: domain of u-boot-bounces@lists.denx.de designates 85.214.62.61 as permitted sender) client-ip=85.214.62.61; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=rQDlAFiu; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 85.214.62.61 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id AF61787F24; Tue, 9 Apr 2024 20:03:13 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=linaro.org header.i=@linaro.org header.b="rQDlAFiu"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 5E2298815E; Tue, 9 Apr 2024 20:03:12 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-lf1-x12b.google.com (mail-lf1-x12b.google.com [IPv6:2a00:1450:4864:20::12b]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 6726687E06 for ; Tue, 9 Apr 2024 20:03:10 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=caleb.connolly@linaro.org Received: by mail-lf1-x12b.google.com with SMTP id 2adb3069b0e04-516d3776334so6133460e87.1 for ; Tue, 09 Apr 2024 11:03:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1712685790; x=1713290590; darn=lists.denx.de; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=ar+GLkq8olXtXCFZ6gNxbEZsIwgSsM7ajECkSqXCbvU=; b=rQDlAFiucTNy7ku3nZNOF89rRfYA5qFIjS9whbJrvvSQ7krqHHdT9YebB84JA8SIUU SKkFSpnpjtnmZyD0ZXFJ7IEsbhPHJyAju+6ukDIA4R47J1WkjMAXjlX8jKxzd7GWASc4 rzHAP2eQYCXhvF1oKGogEKyFaCzsvw/temTYb1kis7kRxstupvDl4BNVRGlbdM3ZJEkj tzELMo5sKRv/UEkN/r85PDgC7TY/JM4fI+sCCINWIZOVvleGFVO5JMbSLdHwyssNLaIs pi4xcpm8sRaRvpQm39r2GCnOX/yT8Tjc7ee80Mit+3Yx6RUR9YgglsnygmNejy6sBa0F o+wg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1712685790; x=1713290590; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=ar+GLkq8olXtXCFZ6gNxbEZsIwgSsM7ajECkSqXCbvU=; b=d+YLEtu6KbHl0mLrbj+Nbfza5+RgBqtBvGSUnRDyisVXAsS8I2nont7pOxDvkLCusm DdScP9D0abXY6Ukm+FQqTmeJ4ZWBn7GjWCgS6s9e84JvMhpA3UEzm7Y3hlaNQWVPIgXa d2GFF3E5RarstOOvBFuTuUWdpV01LnENCM1E+hCLn2aGlVRG0rDFN51RS9L12ON2/lJO FOe0etwvBRxCNZlfBtibVbZ9N08qO7/3c6BPSZWL7jYUVmvRxzb8pfd4Xk0JbpvkEj3L FvaXdIG4MksWXIEUq298qK9KX2+Y3SXfjEPG4XwVCIUdAO/L7aDlmn6wNty3HBMKL49f Cl+Q== X-Gm-Message-State: AOJu0Ywdc+DxBmuiZuc4IeM4iOfL9NwXCPMIV528PtJuLUZhj352Al+e DVlucVaHh+VyfjyRjijapUe6wzqUD56a7I6CsAMFFL9HP4GVk3nHBtKv6J7/7QE= X-Received: by 2002:a05:6512:471:b0:516:cd83:a967 with SMTP id x17-20020a056512047100b00516cd83a967mr115188lfd.39.1712685789585; Tue, 09 Apr 2024 11:03:09 -0700 (PDT) Received: from [192.168.0.113] ([2a02:8109:aa0d:be00::570d]) by smtp.gmail.com with ESMTPSA id d4-20020a170907272400b00a4e5866448bsm5928783ejl.155.2024.04.09.11.03.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 09 Apr 2024 11:03:08 -0700 (PDT) From: Caleb Connolly Date: Tue, 09 Apr 2024 20:03:01 +0200 Subject: [PATCH 2/7] mmc: msm_sdhci: use modern DT handling MIME-Version: 1.0 Message-Id: <20240409-b4-qcom-mmc-fixes-v1-2-5039164ecbf7@linaro.org> References: <20240409-b4-qcom-mmc-fixes-v1-0-5039164ecbf7@linaro.org> In-Reply-To: <20240409-b4-qcom-mmc-fixes-v1-0-5039164ecbf7@linaro.org> To: Caleb Connolly , Neil Armstrong , Sumit Garg , Peng Fan , Jaehoon Chung , Tom Rini , Ramon Fried , Lukasz Majewski , Sean Anderson Cc: u-boot@lists.denx.de X-Mailer: b4 0.14-dev X-Developer-Signature: v=1; a=openpgp-sha256; l=2155; i=caleb.connolly@linaro.org; h=from:subject:message-id; bh=GNkT+VoVVSHYWOeeCeepO0GYTFZwgAuMqkw0qhSSg8I=; b=owEBbQKS/ZANAwAIAQWDMSsZX2S2AcsmYgBmFYLYpDY2H860LTRSC0PYBg1Tki71CFX/6j3Fe AKMDQYudLeJAjMEAAEIAB0WIQS2UaFGPGq+0GkMVc0FgzErGV9ktgUCZhWC2AAKCRAFgzErGV9k tkaAEACSYQavKHBDJWC0X9y/ZhoR/i3dgRrhBgyRkrehUJJ+DLMnMqPMfGwEH+2LUGM7X32JKP5 Bqs8Wx6DhcDMTnkkqPsPulg1oJNHsyEWhLHHW0lS0HZ2tdGv2Xf2gItmlAZ9nUiFr9djsFPuJX8 2+CUhvqiammCdr9CJ1IB4+3D/9iGMRsUhuTuWii1VEQpXu3D+LIJ+4jJ8FO4Cp6q1GZPiFcUPWN TXB7GtXMPipaj1aMLX1ZRJWCHmIvE71TRCgRquIpexqJoLfjPmTfQhHz7cdN8yE79iS+bSMU3Hj /spcexaFDS7D6GWQpEvkpzNrSB/N5cFZnQc/2/ez3y5PFKsr97G+X+fYAdB2CcR8IZ6qAUrR1ac 2pk+WNAMQ7Wy+8nr2TJuH8PGB6Ie/SxBC7ill/RRcHP79jYMyKheLgV00QvMmsNjGVZndnfXGTx vJveU++hds/X1+1vS+xcjd0IdZbvG2hXox8a4uMSrJoMEGnZW8P0H2pENtrgZmkKYFxZvIYw/7b lKfJa88iFb8RZqGpkw7JwFawcEfElr8ygyX+tUHhc9TYHiIrwNdZ1uTEa4Ntjalz5e+Nz37bb6l 9C9kDuMiMgR/bE5xqOz3k1i9emVN5PIipUtzX+3taRqHT3s1O3xAAaSPJHd7JeNsagbaf+WHhvv d5orHiJ/YiqweuA== X-Developer-Key: i=caleb.connolly@linaro.org; a=openpgp; fpr=83B24DA7FE145076BC38BB250CD904EB673A7C47 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.8 at phobos.denx.de X-Virus-Status: Clean using fdtdec_* functions is incompatible with OF_LIVE and generally offers a less friendly interface. Update to use dev_read_* functions instead. Signed-off-by: Caleb Connolly Reviewed-by: Neil Armstrong --- drivers/mmc/msm_sdhci.c | 28 +++++++++++++++++++--------- 1 file changed, 19 insertions(+), 9 deletions(-) diff --git a/drivers/mmc/msm_sdhci.c b/drivers/mmc/msm_sdhci.c index f23d425144ef..5689b4765122 100644 --- a/drivers/mmc/msm_sdhci.c +++ b/drivers/mmc/msm_sdhci.c @@ -205,9 +205,9 @@ static int msm_sdc_remove(struct udevice *dev) var_info = (void *)dev_get_driver_data(dev); /* Disable host-controller mode */ - if (!var_info->mci_removed) + if (!var_info->mci_removed && priv->base) writel(0, priv->base + SDCC_MCI_HC_MODE); clk_release_bulk(&priv->clks); @@ -215,23 +215,33 @@ static int msm_sdc_remove(struct udevice *dev) } static int msm_of_to_plat(struct udevice *dev) { - struct udevice *parent = dev->parent; struct msm_sdhc *priv = dev_get_priv(dev); + const struct msm_sdhc_variant_info *var_info; struct sdhci_host *host = &priv->host; - int node = dev_of_offset(dev); + int ret; + + var_info = (void*)dev_get_driver_data(dev); host->name = strdup(dev->name); host->ioaddr = dev_read_addr_ptr(dev); - host->bus_width = fdtdec_get_int(gd->fdt_blob, node, "bus-width", 4); - host->index = fdtdec_get_uint(gd->fdt_blob, node, "index", 0); - priv->base = (void *)fdtdec_get_addr_size_auto_parent(gd->fdt_blob, - dev_of_offset(parent), node, "reg", 1, NULL, false); - if (priv->base == (void *)FDT_ADDR_T_NONE || - host->ioaddr == (void *)FDT_ADDR_T_NONE) + ret = dev_read_u32(dev, "bus-width", &host->bus_width); + if (ret) + host->bus_width = 4; + ret = dev_read_u32(dev, "index", &host->index); + if (ret) + host->index = 0; + priv->base = dev_read_addr_index_ptr(dev, 1); + + if (!host->ioaddr) return -EINVAL; + if (!var_info->mci_removed && !priv->base) { + printf("msm_sdhci: MCI base address not found\n"); + return -EINVAL; + } + return 0; } static int msm_sdc_bind(struct udevice *dev) From patchwork Tue Apr 9 18:03:02 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Caleb Connolly X-Patchwork-Id: 787227 Delivered-To: patch@linaro.org Received: by 2002:adf:fdd2:0:b0:346:15ad:a2a with SMTP id i18csp348419wrs; Tue, 9 Apr 2024 11:03:55 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCVmE21r3dPxO4rukWuVkKEqsIyYQJo7N9XDGgT6WFJjjahd0Doo/UUIitmva115raQaQYESwbdg38K2y4fYHCQl X-Google-Smtp-Source: AGHT+IH4Am6lT/QMef3MRyOZMz/NriDP3F3fBEDpVc1PtVQ/LPHeJBoOdL3h6f+DGgkWoVKzV49J X-Received: by 2002:a17:906:b1d7:b0:a4e:5c23:f776 with SMTP id bv23-20020a170906b1d700b00a4e5c23f776mr163424ejb.37.1712685834866; Tue, 09 Apr 2024 11:03:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1712685834; cv=none; d=google.com; s=arc-20160816; b=dBUA0pEG812STomeQG8qHzMQLOVJUGXjF8Se3Yuos2KD94nIGWgGAo/hrNgDij+Px2 J76A2wOP7TjcMj4jnGSzSJufmJ/gny9BkiNxnMTFspMjdMX7DJyN5kk8pcS4tdXmYSTr NzCm6y0CDOKGtP+XyhZqIS4OSPTZkK2WOsHAtakFAXsnARhk89BemMBHqqUIb2BjpFhH glXltAtCzbgx2/5+m6ynvo7uT3SXebqY+zC6NSkwMz/bXBcYDN+KZPKLDwcOOTBBMZ7u 6K8P57S0GmEphiuUwuqGFvs7g9FaCPV/n4CP/ItAqDKWFsYJM4Ap15wwgjRH1T22pxVO 9p9w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:cc:to:in-reply-to:references :message-id:content-transfer-encoding:mime-version:subject:date:from :dkim-signature; bh=ZgEG3rmw2m86fm+snm16flsW59XHaQ+wiKwyMIxO4Oo=; fh=l1dqhLO5z0XlFWHhIhA7jn7sD9Gz0XDjE1yUiD1hdKE=; b=rycUdN4rnUPoaujhIPpe9hmtucfzW49EggeEcPvqizpBcHlu81b7bmG//rwGeZhqAz /+HnCF9XXDFc+AtieyjQGRa7kL7Lx0IV9Z+q1B6wB6vd4uUxaid/umJX9/ShiVoWrfgJ yCigDIte/o4oQPx9tBM/ldkQmoZImksAUu375YSVBQn+nH3NdvDr8orTWrZ8NA3J10FS TKIIRDfeBx2WCCFpzwZRAUJXzHvPJMBN0vP2h9ofVH6OFdZg2/9a8jQyfGi7LlVRzism sRQywMQGK46IJ4pCbqwT9jYGNkQARn87WXN+qhtnA1hgrCvWrU7EUNdk5ankiguzd0T/ a1Jg==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=QNa6ALX3; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 2a01:238:438b:c500:173d:9f52:ddab:ee01 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from phobos.denx.de (phobos.denx.de. [2a01:238:438b:c500:173d:9f52:ddab:ee01]) by mx.google.com with ESMTPS id nc13-20020a1709071c0d00b00a51c9790350si2957477ejc.976.2024.04.09.11.03.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 09 Apr 2024 11:03:54 -0700 (PDT) Received-SPF: pass (google.com: domain of u-boot-bounces@lists.denx.de designates 2a01:238:438b:c500:173d:9f52:ddab:ee01 as permitted sender) client-ip=2a01:238:438b:c500:173d:9f52:ddab:ee01; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=QNa6ALX3; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 2a01:238:438b:c500:173d:9f52:ddab:ee01 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 15A658817B; Tue, 9 Apr 2024 20:03:14 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=linaro.org header.i=@linaro.org header.b="QNa6ALX3"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 6C48B88172; Tue, 9 Apr 2024 20:03:13 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-ed1-x535.google.com (mail-ed1-x535.google.com [IPv6:2a00:1450:4864:20::535]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 8FD4187F24 for ; Tue, 9 Apr 2024 20:03:11 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=caleb.connolly@linaro.org Received: by mail-ed1-x535.google.com with SMTP id 4fb4d7f45d1cf-56e69888a36so2976795a12.3 for ; Tue, 09 Apr 2024 11:03:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1712685791; x=1713290591; darn=lists.denx.de; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=ZgEG3rmw2m86fm+snm16flsW59XHaQ+wiKwyMIxO4Oo=; b=QNa6ALX3seQCPLf2+fWRHGYYqbCsKqt78z53IqXo24QPZ/ISr2gV5y45OXZYgKdSdx 6ocQ6i+ouXgSSuIJQeibUrzMmSBQKByv5Uip6yfpGJu/nTwUYVJgLEu8MWeUuYn7A5MI gtN3Nci3D+SZEjFfGY69vJfFCicepWmnrcIG/M57TSN7F6VpT9clpOGhrLY7CjrPLoZn tJvSpp3S7WkZ8ykbDdTJMVHxdoLQIqQ7CZ1ttVl1O01zFI5C1APtDUmMwb1S94/L5gm2 gPVA/dztX6SHgmwVh9oZ80QYyjozBCD3pUg0iMXK9Mbzd8mdGOiUmOMzBXMI+G4r6E8W LT/w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1712685791; x=1713290591; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=ZgEG3rmw2m86fm+snm16flsW59XHaQ+wiKwyMIxO4Oo=; b=FJfBdaPBZxunBkZcggPA7DB/AnUbZGkcB/a7/sKdcNLHoUIx6dp28feW7SawFUIygT Ysu5uiK1Wjo1Kd2Em6cBXj0MZwa9ifKd1zE4N8kpOba40QWfO5MiBq7YpOYtG5AQvFq+ 1huDWDVzQ4M5sUaZBSAPCtTf1eofbvE2qTfVIpq6KdvJkGatfAGnFEXjyoZC8uJPLFx7 VXv7A9wM9u3L8W60JXxL2TdBNtqq3Zq5azr61Do9IgDfUCbqxam0jEexbR7kgLfkI/ZK D9hqiZpr+PIj1tjqi2MeAa2L7ZZBn7WzbSv9y8ib5eotxz4qaRx+3Mgck7BZtcZAqSsr knpg== X-Gm-Message-State: AOJu0YyGX+5772IM2WkC/A9+ue5BUBU+Zi1L9i0PGD2DhPXXkv3w+wqp EE5aKc5Fr9PRnO0idmsQw5GUQ6Q2a5nj0NkLmyD2BvlOTSwAz0MVQUSvPZfDDDM= X-Received: by 2002:a17:906:f28f:b0:a51:7b1c:bee9 with SMTP id gu15-20020a170906f28f00b00a517b1cbee9mr113460ejb.25.1712685791169; Tue, 09 Apr 2024 11:03:11 -0700 (PDT) Received: from [192.168.0.113] ([2a02:8109:aa0d:be00::570d]) by smtp.gmail.com with ESMTPSA id d4-20020a170907272400b00a4e5866448bsm5928783ejl.155.2024.04.09.11.03.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 09 Apr 2024 11:03:10 -0700 (PDT) From: Caleb Connolly Date: Tue, 09 Apr 2024 20:03:02 +0200 Subject: [PATCH 3/7] mmc: msm_sdhci: print core version MIME-Version: 1.0 Message-Id: <20240409-b4-qcom-mmc-fixes-v1-3-5039164ecbf7@linaro.org> References: <20240409-b4-qcom-mmc-fixes-v1-0-5039164ecbf7@linaro.org> In-Reply-To: <20240409-b4-qcom-mmc-fixes-v1-0-5039164ecbf7@linaro.org> To: Caleb Connolly , Neil Armstrong , Sumit Garg , Peng Fan , Jaehoon Chung , Tom Rini , Ramon Fried , Lukasz Majewski , Sean Anderson Cc: u-boot@lists.denx.de X-Mailer: b4 0.14-dev X-Developer-Signature: v=1; a=openpgp-sha256; l=721; i=caleb.connolly@linaro.org; h=from:subject:message-id; bh=sDXDePlQ5M1HOT4v1jH1rXmnlYmrOwy5I5iKM2kamzk=; b=owEBbQKS/ZANAwAIAQWDMSsZX2S2AcsmYgBmFYLY6DkWzkeQsDVIUh8fQK1f4IxoB/s7BkAeb ajP/UwbyLWJAjMEAAEIAB0WIQS2UaFGPGq+0GkMVc0FgzErGV9ktgUCZhWC2AAKCRAFgzErGV9k tv2JD/9S5szF6MUP6V3wUnJg4pE42iifFmnLmWtw+1pIz6IyAavJkeZ9Q6BNSoy+MXnAkC2bwPQ OAIwYtYw+NJbJnIONH10k5VYW/FxIx+VPNFN1y0zLbUZfXk5/xVNrX7csAYGRX2wELeUfF29LL9 n3SWaPQYhCwaDrIJftH3hKfCrBHLT8pct6xvRxXWxqCSk1UUrvGZulHJPudvI9rTHreAnZc4cob zMFML7vCcAbgAH0EZ4KgzS2hrt5JGoUY9WPzv5xf4hK2FqoiYW76moq1RD2dPVVA2ZUE+v5ilEF RDibNu7uRKWb/+osoEHNA3zM2TWBeZ1dm4h3ZkaD+nJMxXfrot3IRZ4aeBroXl2Mkj3gubu9B49 kWxdt3uRflJck9xQPtzuv2Lbi3Mh6k4FJlkcMohMYU5Snbuc1Cnx+oum5E3bghCUasAvI1W9JS9 r7bh8LTLUnmMh062U0RQ+MmLCgSbjYpxkTsFpoaxYVPz/AA+CNgt37NiLjUuQkV4StL8otTsiNq UinbFR4e4LdzCxYwT+5svTRYuZVzwAkFLwVh/sQkhPrqfwFN+KboOJQayiZtidCAoaRB3sIJK5T mgK6QOhduZLpgxgmpRXUuXv0mgynBME4TXqdPRP2ihXBHDPJmGZy7F0IOvaJ5ENTbNrjhMZsf38 VkPBynUZ6zHz15g== X-Developer-Key: i=caleb.connolly@linaro.org; a=openpgp; fpr=83B24DA7FE145076BC38BB250CD904EB673A7C47 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.8 at phobos.denx.de X-Virus-Status: Clean This is useful for debugging. Signed-off-by: Caleb Connolly Reviewed-by: Neil Armstrong --- drivers/mmc/msm_sdhci.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/mmc/msm_sdhci.c b/drivers/mmc/msm_sdhci.c index 5689b4765122..ea5d6b4cbbee 100644 --- a/drivers/mmc/msm_sdhci.c +++ b/drivers/mmc/msm_sdhci.c @@ -172,8 +172,10 @@ static int msm_sdc_probe(struct udevice *dev) core_major >>= SDCC_VERSION_MAJOR_SHIFT; core_minor = core_version & SDCC_VERSION_MINOR_MASK; + log_debug("SDCC version %d.%d\n", core_major, core_minor); + /* * Support for some capabilities is not advertised by newer * controller versions and must be explicitly enabled. */ From patchwork Tue Apr 9 18:03:03 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Caleb Connolly X-Patchwork-Id: 787229 Delivered-To: patch@linaro.org Received: by 2002:adf:fdd2:0:b0:346:15ad:a2a with SMTP id i18csp348610wrs; Tue, 9 Apr 2024 11:04:17 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCVueA9sdyxl2uNy6SwkFjL2SItxjMYtYInGwSehrwsnlB5lDLDKt/LF4FLshBYeJftwheQ1rwTEqERb4oT5pzj9 X-Google-Smtp-Source: AGHT+IFojhdPePp4081sBcZyC4O6Iyj3bwrl8fCcmjpwzy5dQ1XIuVTZX2UZNZDl8rGRw3xFypNy X-Received: by 2002:a17:906:4ec6:b0:a52:2a5:b670 with SMTP id i6-20020a1709064ec600b00a5202a5b670mr153782ejv.48.1712685857030; Tue, 09 Apr 2024 11:04:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1712685857; cv=none; d=google.com; s=arc-20160816; b=iBn6qgKs9HGbw5b+r3HdqOkqSXrEIbt1+M/Ea+/+ndqA3ashzoy3c3h2j0FNdSg1wg SCb+u4qhHAk2R03vjFRT5v9JSQoLa+dlvFFnzrgiBYibL1HW7jeQVSM2ceVgHy3BnewQ NhNnkIxE/4xi1GfTRrNFl/depL6QDmNDSVJT95438iYvVLtE8//G0yY90COENqO8yAFR 4quCxUq9L8LPYZbQ3E3klddTQkuBQ9GbOoDxB3W69HUsVh4+9GWJjc+JTUxBQSlWVBVZ rXjhrzDF3jo1C23grJfda8egMAGeM7cwP2No/U6mI1ZlEzz3fTrolqoq9LJtV1hjMjTP 2Cqg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:cc:to:in-reply-to:references :message-id:content-transfer-encoding:mime-version:subject:date:from :dkim-signature; bh=COZBImoxll+oAM1n1Wapod0ocBZ+XrwdpBWvp9I07do=; fh=l1dqhLO5z0XlFWHhIhA7jn7sD9Gz0XDjE1yUiD1hdKE=; b=wOPjR0lb5QNwIL6PmASCrtx4djyiFNufKtLc9ALgs9humX9JYd/FcXlujxj/h0MObk O3Uqnn9fXeUNtx5jCWmbsCuOfpDOsZ57cbqubCtBm2JX1QMdpttnROOasHhw53RhB2cQ MHlo74FdnxJHd0ygk6BORLo1YMKDagIV8SntcKZJDt2afq1xK+eF12hITDuqKrHCPuYt P+cw5hcx9ZGwyrvAIfvFvZpVQBRcSdOS/h5OKsdbLe5ByXargVMTxSjIQ6wxfJxDl4WZ FSmk9lNOWbwcTma+2NZ4SV6233VVfy5mB2XbrH6NhND87mhMYl9wKuqbSy16CneJjfPl 7EtQ==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=xhBZnacg; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 85.214.62.61 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from phobos.denx.de (phobos.denx.de. [85.214.62.61]) by mx.google.com with ESMTPS id nb39-20020a1709071ca700b00a51cba07d76si3089485ejc.528.2024.04.09.11.03.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 09 Apr 2024 11:04:17 -0700 (PDT) Received-SPF: pass (google.com: domain of u-boot-bounces@lists.denx.de designates 85.214.62.61 as permitted sender) client-ip=85.214.62.61; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=xhBZnacg; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 85.214.62.61 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 7D7E5881A0; Tue, 9 Apr 2024 20:03:16 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=linaro.org header.i=@linaro.org header.b="xhBZnacg"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 1AC3A87DCA; Tue, 9 Apr 2024 20:03:15 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.2 Received: from mail-lj1-x234.google.com (mail-lj1-x234.google.com [IPv6:2a00:1450:4864:20::234]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 3D5C48810D for ; Tue, 9 Apr 2024 20:03:13 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=caleb.connolly@linaro.org Received: by mail-lj1-x234.google.com with SMTP id 38308e7fff4ca-2d8a2cbe1baso13875001fa.0 for ; Tue, 09 Apr 2024 11:03:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1712685792; x=1713290592; darn=lists.denx.de; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=COZBImoxll+oAM1n1Wapod0ocBZ+XrwdpBWvp9I07do=; b=xhBZnacgIwXLZSmQvrNGzElR7fDabf9UUcfn7ZhplTr7uZch3k14gOE41OzqTsZX58 ybfrHyzUkF5O1+1RYfzzms1nwzWrdx5lHOVyqy6N+6pj1s7G7jZzRX5TiY0DRg+bi+OB W/NlOYlBUnnKOXchkJRU+a9mlw/Dfw+lsFrRv+K5Ph6344WoBNskyIqzNAYhgb6oCFX2 DeF6uIV9zLeuYYrUegeb2TccV3dx7rhQ07vG83LfGKQNYTtTh+LYZ9HVzj8kTF8lgdJN P874HO43fCAK/BZIiJIsgbvFvktRd7nO8IkWXbPHteW+KmF4MAOGy4dWqN1K5F+0EkRD 08Pw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1712685792; x=1713290592; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=COZBImoxll+oAM1n1Wapod0ocBZ+XrwdpBWvp9I07do=; b=YyeFm6aY3U9+sLBXVg3QXAJW7q3fIXLLR4VCkdkld+K+CO6LzdsAmqL8O3lJuzmuo8 k5OMUHjh/U8cXPRwCO1mr4ODdzZTRCkvjSw8RLvLRpu6Qw5zK7ysxPH5jBj8aly4RR1c 3tKVoguvk+H1eYACiDTKXvF3OQs1wDHjx/FfFXYUZ08cKXUL6t0zucTW8vc1A80RTcf1 SQYP9VKqvrcThlExc0KxGjQBi5eTaCRd6eWxaD0dS/q9BpHbHUxo9ZfJzgQwCcvBmwXc JTGA4Elt8E2UFrdWh6bvH7AU8ir7yKJhL5xgdjLVavbIyrEkYxjHi/go9rtk5wNqhCwA drgg== X-Gm-Message-State: AOJu0Yy0Se8y5qfOoMwvajpYnve05fz0oare10cj+/ike43SYqREua9S 2gj60smT1Ykz7rQKAURMTgoJN90M6f9gB5V4PwJDdh49a9I2UJFTRgMI8KzmvqU= X-Received: by 2002:ac2:5bc8:0:b0:516:c3ee:5c7c with SMTP id u8-20020ac25bc8000000b00516c3ee5c7cmr128130lfn.4.1712685792506; Tue, 09 Apr 2024 11:03:12 -0700 (PDT) Received: from [192.168.0.113] ([2a02:8109:aa0d:be00::570d]) by smtp.gmail.com with ESMTPSA id d4-20020a170907272400b00a4e5866448bsm5928783ejl.155.2024.04.09.11.03.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 09 Apr 2024 11:03:11 -0700 (PDT) From: Caleb Connolly Date: Tue, 09 Apr 2024 20:03:03 +0200 Subject: [PATCH 4/7] mmc: msm_sdhci: use a more sensible default clock rate MIME-Version: 1.0 Message-Id: <20240409-b4-qcom-mmc-fixes-v1-4-5039164ecbf7@linaro.org> References: <20240409-b4-qcom-mmc-fixes-v1-0-5039164ecbf7@linaro.org> In-Reply-To: <20240409-b4-qcom-mmc-fixes-v1-0-5039164ecbf7@linaro.org> To: Caleb Connolly , Neil Armstrong , Sumit Garg , Peng Fan , Jaehoon Chung , Tom Rini , Ramon Fried , Lukasz Majewski , Sean Anderson Cc: u-boot@lists.denx.de X-Mailer: b4 0.14-dev X-Developer-Signature: v=1; a=openpgp-sha256; l=844; i=caleb.connolly@linaro.org; h=from:subject:message-id; bh=b7ukOh81BnIglY63qkvOvISFqDbdcJ+fCYYkTyYzjF8=; b=owEBbQKS/ZANAwAIAQWDMSsZX2S2AcsmYgBmFYLYuGOmjIpGlcYiDSdNWQx0ILo5xeNIbcKHw 1Fp/1A/nfuJAjMEAAEIAB0WIQS2UaFGPGq+0GkMVc0FgzErGV9ktgUCZhWC2AAKCRAFgzErGV9k tnXeEACckNQ2EuQfyGNPEMQZDAy7hduXEsxls5ihyKBJl0Ph3ePhBzQhcIVkz8AjOHiLQSq63BN kKz5oM78ScBS75AWk8AQkrXE0/aEpJFpgHJ8sdtRlcrOpSPFxokV38HGCRp0qzCYnOmG/hiYtDU 3XTUYpWeMu1zzcxazHtrx7ni28WuuZ0xjjNviARSb/FtBYhwkXbLj0GbRw1PPUKZ5U2j3lEU7oO ZxuyA9W5cdCn0JkbPOtwbINx1QA0VG0QXPrxdqULcnjRTkgSogKzG4h+DkaE0VnaXs4D7KGR1TA +QO4HDkn9WtZ0d55DFtoaaBhNuW72eo7yvTtTmq1C9SA+qoJtCZELjFw4tAHWrMg7ttZReU95FG S+/sjFNhMHycr0pQ0UIlhLxSa5ABkRHRVkoN1XPfiSlAw0eahcTUaUffWphYm9wOk5V4DNn3/Hp BIMLSbsWy/bV1d1GI1nmWl+jCe/VNq+wPbkxvd4Nxr1cs/egRip8/nFZhaLmcLqhbTgoaJn71hX CIePe71+42vNekOVs5mdLlzYNrcMxKPHTH8JlD2LbK1qjhGRNDePqh9cJMTaelxgBSDcfBKdWVG XjF8qRjAGj0lgLQ/k9wlc7Xc1ahzaesoZ5FqZNiiiilLVB2IYqqT+l27nOG6X5xpLYPxyQ2ohTW W6LD3uqHanswpJg== X-Developer-Key: i=caleb.connolly@linaro.org; a=openpgp; fpr=83B24DA7FE145076BC38BB250CD904EB673A7C47 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.8 at phobos.denx.de X-Virus-Status: Clean We currently default to the lowest rate but this actually doesn't work on most platforms. Default to the HS400 speed instead which is most common on Qualcomm platforms. Signed-off-by: Caleb Connolly --- drivers/mmc/msm_sdhci.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/mmc/msm_sdhci.c b/drivers/mmc/msm_sdhci.c index ea5d6b4cbbee..2144772ac325 100644 --- a/drivers/mmc/msm_sdhci.c +++ b/drivers/mmc/msm_sdhci.c @@ -61,9 +61,9 @@ static int msm_sdc_clk_init(struct udevice *dev) const char *clk_name; ret = ofnode_read_u32(node, "clock-frequency", (uint *)(&clk_rate)); if (ret) - clk_rate = 400000; + clk_rate = 201500000; ret = clk_get_bulk(dev, &prv->clks); if (ret) { log_warning("Couldn't get mmc clocks: %d\n", ret); From patchwork Tue Apr 9 18:03:04 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Caleb Connolly X-Patchwork-Id: 787228 Delivered-To: patch@linaro.org Received: by 2002:adf:fdd2:0:b0:346:15ad:a2a with SMTP id i18csp348554wrs; Tue, 9 Apr 2024 11:04:11 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCWSu7yvrLjwsnULAk+rp1FVIuUjw2MTujyR7lDckQQAhCsu4YXhilP1Un8mO3orYa41srwG4D8eRHSTZEtTsJqX X-Google-Smtp-Source: AGHT+IELxAHUDCwqoW6OY49dwYAdk6di1hGVFzs8kGcDNOZVR6Jy3vJSfx9eNyqKbRMGP46LoGa8 X-Received: by 2002:a17:907:31c9:b0:a51:d056:d08b with SMTP id xf9-20020a17090731c900b00a51d056d08bmr455822ejb.0.1712685850875; Tue, 09 Apr 2024 11:04:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1712685850; cv=none; d=google.com; s=arc-20160816; b=ofJ14PulxiYcJ/Ynv1kEPS1HCd/7S/A9RIFASdVIAKDmblM0bNX48LhO/fifjLHO4K 4PXgZd4PfvwGHLl9i3wetV5rR+tL4GLkAohRm41E0as0DxfJ9PogPfJGMyt7tJrnccC5 u5x+bSjWEd13TJqpXIceJ9gx9OIH0/MckY983oyY8B79ItIe5wBlZIYfXONzuSv2o9J+ xppC2jBJg3cSEBSvLNMVBNwXpPuRKQFIvAzhag3HJ5s+gXTtOUb7IY3Nw52BWXuHi6nG YVNAGk0DwkKTcDvAFLssZvhh8KxQ6arI/ssc27IQGLPDbhkjafMAHynjdOCNUcQG2Ddj k2LA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:cc:to:in-reply-to:references :message-id:content-transfer-encoding:mime-version:subject:date:from :dkim-signature; bh=qG8QW672E0qOVkoIEEJNxqc76r9IS55XX4LLV2UPi/I=; fh=l1dqhLO5z0XlFWHhIhA7jn7sD9Gz0XDjE1yUiD1hdKE=; b=weXMnluUKz8v0dM98WvMnWhz8pDniwQRN9RSYOSP6kR3SiuvKJPRRS7pGW39hNsaK5 j8a5nW7b7It1DLq5clvGyFthmM9GPofiW2QaM5bhdCRuTaqOUd9pCR8NKuldqggZEEPF G8blOWu+eEt1CbKKU22Q6GDfa2iX07huze7P7DrljC7gTbSgT0Ih6C/YdeUHELf46iEs ftjw9pQCbUgQrLVyKJuJGaxh1FwCjKgbGWBQBWWq94gvsqkY8idWNsN2t454goGw2NTm TLgy4sBiTnP3RGTkkvmVkCo2wyY9LgTwg2xU9BselvPehPq5wanV4EvYtt2Ljbe/iTjM Hndw==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=lbSQxL6G; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 2a01:238:438b:c500:173d:9f52:ddab:ee01 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from phobos.denx.de (phobos.denx.de. [2a01:238:438b:c500:173d:9f52:ddab:ee01]) by mx.google.com with ESMTPS id hd19-20020a170907969300b00a51c1a2340csi3605024ejc.603.2024.04.09.11.04.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 09 Apr 2024 11:04:10 -0700 (PDT) Received-SPF: pass (google.com: domain of u-boot-bounces@lists.denx.de designates 2a01:238:438b:c500:173d:9f52:ddab:ee01 as permitted sender) client-ip=2a01:238:438b:c500:173d:9f52:ddab:ee01; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=lbSQxL6G; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 2a01:238:438b:c500:173d:9f52:ddab:ee01 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id E0BA3880D6; Tue, 9 Apr 2024 20:03:17 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=linaro.org header.i=@linaro.org header.b="lbSQxL6G"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 48C1C8818F; Tue, 9 Apr 2024 20:03:16 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-ej1-x636.google.com (mail-ej1-x636.google.com [IPv6:2a00:1450:4864:20::636]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 6A1D788197 for ; Tue, 9 Apr 2024 20:03:14 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=caleb.connolly@linaro.org Received: by mail-ej1-x636.google.com with SMTP id a640c23a62f3a-a47385a4379so1280708166b.0 for ; Tue, 09 Apr 2024 11:03:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1712685794; x=1713290594; darn=lists.denx.de; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=qG8QW672E0qOVkoIEEJNxqc76r9IS55XX4LLV2UPi/I=; b=lbSQxL6GWOdwty2NmnNvmfMLtnN5TB3EPonVDX0/bfqFlA3d006F+apLxd50VnGC9g qrZMzN/wz5KHjgwMtOz4HwE8htr93Z2boxK7Zh48+DRr/aHY9DY3r5KQSNeghpeaqc28 DeW1tz6I8f04M+0g2qFksm95bmGtDkBXv37Bdof7QTNToaweZl+hyNj4po6E0mA73dJF nNbV8JdHzi7omQErApXmKwTOGVXs1WpfSA3+rfWec3ZBFBFrMuzM6rttEGVUAQBicco+ ws0qdQsKOlLf1orG2fb0r3nTxAqrN4cdoMhhVfFXb022XLi910j7AvLTNnaGaFS2O6Nz K9WQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1712685794; x=1713290594; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=qG8QW672E0qOVkoIEEJNxqc76r9IS55XX4LLV2UPi/I=; b=wVBGzE1zN67S8J7uOmBAfruEFw9sOhNHCiZRq+4qEafZrzZ6c0zY7pmcvaq6pwXmbF HlqaXhziw7PqhjChLlkU7cBSqtpU0C1FpC+NgJ0v1aXl7dlyqoxbqP2RxJelD9DXOSvv OCWXonVwxQpmWuzW09wF2OPCVAZI7SVa+ngBOSIpMs9RqZ6f8GQ04IDveYvebsabeGCr SEpuQeH+6UVm05RZU+ePKt/r+q2Whblpz+cytT8X3b5XwAVlaNhUwwy260bgvhZS4MUY PNQcklMZ6QwzqdplAI8h8PomEEtzxA25s82aH8C8HZezE9sgi5UMDzVpsZg42KpVKbP9 pZyA== X-Gm-Message-State: AOJu0YwWdEuGKZ/5nfwsFqGXmcYSBddkvKau03eRMX2HYFmj7mu3PmHw GLw2iAk/NK/1XhaHEtCMx8sm/ovToOOME3+RrOI4XfXcodFxZijGTutTS/Kuo6A= X-Received: by 2002:a17:906:30da:b0:a51:9e23:dc44 with SMTP id b26-20020a17090630da00b00a519e23dc44mr324356ejb.31.1712685793897; Tue, 09 Apr 2024 11:03:13 -0700 (PDT) Received: from [192.168.0.113] ([2a02:8109:aa0d:be00::570d]) by smtp.gmail.com with ESMTPSA id d4-20020a170907272400b00a4e5866448bsm5928783ejl.155.2024.04.09.11.03.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 09 Apr 2024 11:03:13 -0700 (PDT) From: Caleb Connolly Date: Tue, 09 Apr 2024 20:03:04 +0200 Subject: [PATCH 5/7] clk/qcom: sdm845: enable SDCC2 core clock MIME-Version: 1.0 Message-Id: <20240409-b4-qcom-mmc-fixes-v1-5-5039164ecbf7@linaro.org> References: <20240409-b4-qcom-mmc-fixes-v1-0-5039164ecbf7@linaro.org> In-Reply-To: <20240409-b4-qcom-mmc-fixes-v1-0-5039164ecbf7@linaro.org> To: Caleb Connolly , Neil Armstrong , Sumit Garg , Peng Fan , Jaehoon Chung , Tom Rini , Ramon Fried , Lukasz Majewski , Sean Anderson Cc: u-boot@lists.denx.de X-Mailer: b4 0.14-dev X-Developer-Signature: v=1; a=openpgp-sha256; l=2686; i=caleb.connolly@linaro.org; h=from:subject:message-id; bh=0V4x2W6N+8jfI8icaL5U6rr4j4Ai8OIHFh8munzyrRI=; b=owEBbQKS/ZANAwAIAQWDMSsZX2S2AcsmYgBmFYLYmsLvJXnBEPCCP1V/+B2UdqoqgWEzsjjfO HqiVKMzUPaJAjMEAAEIAB0WIQS2UaFGPGq+0GkMVc0FgzErGV9ktgUCZhWC2AAKCRAFgzErGV9k tvkjD/wJc+OVwum5FM3HGa98GoFrQxxhkQkBLA3KzuSWA38M5XUrJ+0FSUDp5C01QFbyMN1k/Fx fwZhdMtrhLmoUHNlRjiPDOSm86Yzy/xMdddcMwKNVoeaXCQaPFu2L6ijXaIbqYTF+o9ZSsf07uh S4SASmc1+pzC4jCqPbaz4iR6Etg5qUT06MdHxxKBfjEdV+a+SfO8jfCVV/H6QPI6xxuXhLEQUp3 rojj1/XlytK4dvnpjSMdiqQZRWlTYlDAH/ZFZB1ey5aRWS6+FLQM0SdofjdeZm4ShCGVApgF5vN /DrzmdEq0PTD/Qqxepdi54MAC9hU+QQL2gmNKyz3zD11obrp/4QdPh7WCNLXPEg0jiQa2xA3MQK 2kfiklPflK/dy8cecOAjKIRS1SdQ0p022ef0mbYBd/1UKRTakoQpm4P6uB2OM9nH4VFxNN7Olog zSD4CDnt3TOHTsuXrGxZo93HPrTWgwLefUN15lnwqwGw4DipbSxzzxneLRrgLIaDKM98s4yLr82 LqCvln1swjTGSF8KNJJa+rcIOB1aM4wn7clmii/W2frBkY6AZOik22wB7pVb6K8fAvKkrYpO2DO QzCh+qFGIh+SCuSziATofVYnoC4lBBUAv1UQAJ+ISqnIOakpEcm7PBCoOlGV8kCnt0gIpGod6n1 NisWYHhGZcKyABg== X-Developer-Key: i=caleb.connolly@linaro.org; a=openpgp; fpr=83B24DA7FE145076BC38BB250CD904EB673A7C47 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.8 at phobos.denx.de X-Virus-Status: Clean Allow setting the clock rate for the SD card core clock. This is required for SD card support on SDM845 devices. Signed-off-by: Caleb Connolly --- drivers/clk/qcom/clock-qcom.h | 1 + drivers/clk/qcom/clock-sdm845.c | 17 +++++++++++++++++ 2 files changed, 18 insertions(+) diff --git a/drivers/clk/qcom/clock-qcom.h b/drivers/clk/qcom/clock-qcom.h index cc170d8e3f9e..f6445c8f566f 100644 --- a/drivers/clk/qcom/clock-qcom.h +++ b/drivers/clk/qcom/clock-qcom.h @@ -12,8 +12,9 @@ #define CFG_CLK_SRC_GPLL0_AUX2 (2 << 8) #define CFG_CLK_SRC_GPLL9 (2 << 8) #define CFG_CLK_SRC_GPLL6 (4 << 8) #define CFG_CLK_SRC_GPLL7 (3 << 8) +#define CFG_CLK_SRC_GPLL4 (5 << 8) #define CFG_CLK_SRC_GPLL0_EVEN (6 << 8) #define CFG_CLK_SRC_MASK (7 << 8) #define RCG_CFG_REG 0x4 diff --git a/drivers/clk/qcom/clock-sdm845.c b/drivers/clk/qcom/clock-sdm845.c index e9c61eb480de..782df7da8444 100644 --- a/drivers/clk/qcom/clock-sdm845.c +++ b/drivers/clk/qcom/clock-sdm845.c @@ -23,8 +23,9 @@ #define USB30_PRIM_MASTER_CLK_CMD_RCGR 0xf018 #define USB30_PRIM_MOCK_UTMI_CLK_CMD_RCGR 0xf030 #define USB3_PRIM_PHY_AUX_CMD_RCGR 0xf05c +#define SDCC2_APPS_CLK_CMD_RCGR 0x1400c static const struct freq_tbl ftbl_gcc_qupv3_wrap0_s0_clk_src[] = { F(7372800, CFG_CLK_SRC_GPLL0_EVEN, 1, 384, 15625), F(14745600, CFG_CLK_SRC_GPLL0_EVEN, 1, 768, 15625), @@ -43,8 +44,19 @@ static const struct freq_tbl ftbl_gcc_qupv3_wrap0_s0_clk_src[] = { F(128000000, CFG_CLK_SRC_GPLL0, 1, 16, 75), { } }; +static const struct freq_tbl ftbl_gcc_sdcc2_apps_clk_src[] = { + F(400000, CFG_CLK_SRC_CXO, 12, 1, 4), + F(9600000, CFG_CLK_SRC_CXO, 2, 0, 0), + F(19200000, CFG_CLK_SRC_CXO, 1, 0, 0), + F(25000000, CFG_CLK_SRC_GPLL0_EVEN, 12, 0, 0), + F(50000000, CFG_CLK_SRC_GPLL0_EVEN, 6, 0, 0), + F(100000000, CFG_CLK_SRC_GPLL0, 6, 0, 0), + F(201500000, CFG_CLK_SRC_GPLL4, 4, 0, 0), + { } +}; + static ulong sdm845_clk_set_rate(struct clk *clk, ulong rate) { struct msm_clk_priv *priv = dev_get_priv(clk->dev); const struct freq_tbl *freq; @@ -54,8 +66,13 @@ static ulong sdm845_clk_set_rate(struct clk *clk, ulong rate) freq = qcom_find_freq(ftbl_gcc_qupv3_wrap0_s0_clk_src, rate); clk_rcg_set_rate_mnd(priv->base, SE9_UART_APPS_CMD_RCGR, freq->pre_div, freq->m, freq->n, freq->src, 16); return freq->freq; + case GCC_SDCC2_APPS_CLK: + freq = qcom_find_freq(ftbl_gcc_sdcc2_apps_clk_src, rate); + clk_rcg_set_rate_mnd(priv->base, SDCC2_APPS_CLK_CMD_RCGR, + freq->pre_div, freq->m, freq->n, freq->src, 8); + return freq->freq; default: return 0; } } From patchwork Tue Apr 9 18:03:05 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Caleb Connolly X-Patchwork-Id: 787230 Delivered-To: patch@linaro.org Received: by 2002:adf:fdd2:0:b0:346:15ad:a2a with SMTP id i18csp348850wrs; Tue, 9 Apr 2024 11:04:45 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCVFVME6hOU5e2sK7Cg55fkzaWGXJGk3U6z6Rkg+enaO1ZEx01cFSfsYGMZi1ozFGSYXRaIQEFguzDOhnmHuokhU X-Google-Smtp-Source: AGHT+IFyRsmPOJVaIjspbdeyh7MkuT/O6tpdO6xAm/TztF4YjlA95Mf7wgvQMhzjfaXshpeg/NxP X-Received: by 2002:a17:906:370c:b0:a51:e42f:a4a7 with SMTP id d12-20020a170906370c00b00a51e42fa4a7mr134378ejc.24.1712685885017; Tue, 09 Apr 2024 11:04:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1712685885; cv=none; d=google.com; s=arc-20160816; b=Rz+c7NO9SUyewdZ2gnCwv3IqpdkZr/bFAgW4Ssk6OacHieagvMKfLbA/T7+QBbCRIo 94aCfVaBSi7n9UQbeGwraT12QA105J9QDRYiwrHwo2PrzKKozSibH9uzGqGx8CDOtzrg /N2diKaBnXV60/KbA9rQNiSLfekl/GMPVqaElH40xf9zZtN20WzdixBenEzJ//A9tYt6 zXhfzb4NLEo4wnip5fe8Wf/Q/LIJg3SGpI6IPQVC8KCpb7UIbiyK63K0u5B9plEdROav FXoaZ47dA14y03hqBBzpst43gaNikgO4SaD112pt5uUCyEDosDKhBaGds/BBYtXrvXKw R95w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:cc:to:in-reply-to:references :message-id:content-transfer-encoding:mime-version:subject:date:from :dkim-signature; bh=R0pR7USvI+Ih/FdJ1dMA4BzTcYnSBcRZgZ9bLcEt9nA=; fh=l1dqhLO5z0XlFWHhIhA7jn7sD9Gz0XDjE1yUiD1hdKE=; b=nfVDOph1EiwVDaSVyoYSuO4B1316JpcWLK9Zbm8VZX7lcAgxQk1ENl9vy14Sgclz47 +n6QtkP3mcZA0piTldmQMI2y5kX2fitUXCblJKWyiQ5PFS84Ps450z2i+iZfT4+OPH8Z szoAWW+0soOmQZ9q/o8oQPlmZyUz/XOdxznFxJURrsyY5KjWKgwLXiSvGLtA6opKQtAq OrC3c8JtEvH8zpuS95Uxj/+Vfy8c8hxVGp+CMWAfikwVlac2lNA1kvuOgZ4HVrv4rgdl D5B7PH0w7oOMtukJV767aKRYQd1af9PXmhtoaCC0yEk0g9PpCmn0NdldCZh1eBg7DDSV O0Qw==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=I2MnXh24; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 85.214.62.61 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from phobos.denx.de (phobos.denx.de. [85.214.62.61]) by mx.google.com with ESMTPS id kj26-20020a170907765a00b00a3f6ba0165dsi4710458ejc.261.2024.04.09.11.04.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 09 Apr 2024 11:04:44 -0700 (PDT) Received-SPF: pass (google.com: domain of u-boot-bounces@lists.denx.de designates 85.214.62.61 as permitted sender) client-ip=85.214.62.61; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=I2MnXh24; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 85.214.62.61 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 58B5888196; Tue, 9 Apr 2024 20:03:18 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=linaro.org header.i=@linaro.org header.b="I2MnXh24"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 8E7FD87F01; Tue, 9 Apr 2024 20:03:17 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.2 Received: from mail-ej1-x62d.google.com (mail-ej1-x62d.google.com [IPv6:2a00:1450:4864:20::62d]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id AF94E880D6 for ; Tue, 9 Apr 2024 20:03:15 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=caleb.connolly@linaro.org Received: by mail-ej1-x62d.google.com with SMTP id a640c23a62f3a-a51a1c8d931so546023166b.0 for ; Tue, 09 Apr 2024 11:03:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1712685795; x=1713290595; darn=lists.denx.de; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=R0pR7USvI+Ih/FdJ1dMA4BzTcYnSBcRZgZ9bLcEt9nA=; b=I2MnXh24vDVbLzOb9Drwnhcw/oUWbMrFQGRqZQSUxo1iNLRcx+OEai8k8EkgI1scjF 85w1xgHSSAQUXUpFiD2DXG3BVC+YGO5FDFwpfGvwZopdT593dGlU90oqv8RqME2RZrSX GcuJ6xDXAW49ByQMjjnX3ai4dJt84L7UQCVv4K3MJt9kw32FWMJhW/sDcG80yfFzW2vY pxIjkwS2+Gg5cCNIB6QR/62soIgh+TW+T1ad28Lc9j34Sa2KNZ3Sysu3D+XWmqkTm006 AUbUvRkqHREpZcKE4LLyVF/Io88s7GIoez7qDgSXlVMc/onnj3FduGdXuwW7vFuy50S3 4DYw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1712685795; x=1713290595; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=R0pR7USvI+Ih/FdJ1dMA4BzTcYnSBcRZgZ9bLcEt9nA=; b=j/Y0oPfmjbcZ6/lkTP0BgEgTCe8fE5MgynHHAMg3e6n1EOicO0xqktZQpSEBxy1CWV jsmbFdJ8xXH/TGl0iShLprkIienAPJjqh7aBzwu77uDMnsURxpUoxZKSQST6f79oNKP7 +mociLG10egkJXdBzufFetPs3klM1meuKNXKFad8L5Yf8jYymN3O0bdIJNHAdpAVrXaz dhtNP3ZSOzUDuYxfs40q0APVnMPBZeKSnRbG2XDBLkeRjVQKM+FB380CJK4y/AI5YhFK W6Qfk+KouxzYFlXkf9FrEyvuxZGcN5Er2O+6OQmO98kPLF9l+xA4Tl3mA22/WsV9x+Zc OPJQ== X-Gm-Message-State: AOJu0YzrSzF/hW7HWX4cbivH+GDAEbTWKgE+93P2r61P7geuniLuHRI0 Jr/95Sucl/U7OdK8ys037sdZnviT/AeXr5pMq0oFCxyi9cEtY6aobMwjR3F4SBQ= X-Received: by 2002:a17:906:3492:b0:a51:b931:59c2 with SMTP id g18-20020a170906349200b00a51b93159c2mr146451ejb.73.1712685795284; Tue, 09 Apr 2024 11:03:15 -0700 (PDT) Received: from [192.168.0.113] ([2a02:8109:aa0d:be00::570d]) by smtp.gmail.com with ESMTPSA id d4-20020a170907272400b00a4e5866448bsm5928783ejl.155.2024.04.09.11.03.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 09 Apr 2024 11:03:14 -0700 (PDT) From: Caleb Connolly Date: Tue, 09 Apr 2024 20:03:05 +0200 Subject: [PATCH 6/7] pinctrl: qcom: sdm845: add special pin names MIME-Version: 1.0 Message-Id: <20240409-b4-qcom-mmc-fixes-v1-6-5039164ecbf7@linaro.org> References: <20240409-b4-qcom-mmc-fixes-v1-0-5039164ecbf7@linaro.org> In-Reply-To: <20240409-b4-qcom-mmc-fixes-v1-0-5039164ecbf7@linaro.org> To: Caleb Connolly , Neil Armstrong , Sumit Garg , Peng Fan , Jaehoon Chung , Tom Rini , Ramon Fried , Lukasz Majewski , Sean Anderson Cc: u-boot@lists.denx.de X-Mailer: b4 0.14-dev X-Developer-Signature: v=1; a=openpgp-sha256; l=1218; i=caleb.connolly@linaro.org; h=from:subject:message-id; bh=kvJA2hpDrvXL5Le9dVlPd02xqhweuffSPTKkrxeYBNo=; b=owEBbQKS/ZANAwAIAQWDMSsZX2S2AcsmYgBmFYLY2jKbBZWPPDKbWgwMi5egMc6k4+UAoMEDM LiuclyMnQOJAjMEAAEIAB0WIQS2UaFGPGq+0GkMVc0FgzErGV9ktgUCZhWC2AAKCRAFgzErGV9k ts/VD/wIVwIsYAsl4ZJEe+Wl3x9b/5kKfmPqgbHLcaV4V9BL4VcA+JQmnkbpb6PKIdHIIFDI5Gg iIGxITozvsLJREZplFmmIRKe9rq02M3UW0sML9ST0IuLv2gmu/pXboYaG/LdjeqWsHs1bIxdFr8 /5cG8VJfrSqyPp8BqgeyALcxD8E/m4Qg8tcX3Gpo7sUjSPmXG9eUSx8IQP3J+roGGEahUcn/ErP 3URw8mDuBGZHBxVdS3M7Xotk2V36XANcPDokRBBa47tn9EQdFX9W02KHqogPRYjKRtpF4t/Xp1d P8To2o1uRveyEVmI7jaDFnkPmvk58HstsVq5wuvRGz6lufeG1hhas7OmwnpRDxzUcqz5DdtS8ww IwKJnol1PRVxuKf3dZDw4zUjC5vcahhC7hNCL195pZlS/fMxJ4lJ6VI9HvNbPPgU94EbV3Mq1+h +QsrTBGea5tDtH1n732Pt0L1jQujpChoPkTddj6NdwkG27rYeoASMsqOFzWXuMRrwDStxbX10Tn 5GEgqMDWstjMET5Utz5lbaVdVa3KNHFVvXtzPPZ33IKsDOCC9UcxcrfPSQDTOqhp1WEsNxQ4I7f AgokHlQIMKvMZcRqXaDQ4djfpoeBw9OQDyk/1Qju/WPQpxgPxJKjACU/mTAElU+VwbJdKYLskcI 5Avbzl5cYrkhEmw== X-Developer-Key: i=caleb.connolly@linaro.org; a=openpgp; fpr=83B24DA7FE145076BC38BB250CD904EB673A7C47 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.8 at phobos.denx.de X-Virus-Status: Clean Adjust sdm845_get_pin_name() to return the correct names for the special pins. This fixes a non-fatal -ENOSYS error when probing MMC. Signed-off-by: Caleb Connolly Reviewed-by: Neil Armstrong --- drivers/pinctrl/qcom/pinctrl-sdm845.c | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/drivers/pinctrl/qcom/pinctrl-sdm845.c b/drivers/pinctrl/qcom/pinctrl-sdm845.c index 459a4329ec80..c1e5cc01fded 100644 --- a/drivers/pinctrl/qcom/pinctrl-sdm845.c +++ b/drivers/pinctrl/qcom/pinctrl-sdm845.c @@ -65,9 +65,20 @@ static const char *sdm845_get_function_name(struct udevice *dev, static const char *sdm845_get_pin_name(struct udevice *dev, unsigned int selector) { - snprintf(pin_name, MAX_PIN_NAME_LEN, "gpio%u", selector); + static const char *special_pins_names[] = { + "ufs_reset", + "sdc2_clk", + "sdc2_cmd", + "sdc2_data", + }; + + if (selector >= 150 && selector <= 154) + snprintf(pin_name, MAX_PIN_NAME_LEN, special_pins_names[selector - 150]); + else + snprintf(pin_name, MAX_PIN_NAME_LEN, "gpio%u", selector); + return pin_name; } static unsigned int sdm845_get_function_mux(__maybe_unused unsigned int pin, From patchwork Tue Apr 9 18:03:06 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Caleb Connolly X-Patchwork-Id: 787231 Delivered-To: patch@linaro.org Received: by 2002:adf:fdd2:0:b0:346:15ad:a2a with SMTP id i18csp348966wrs; Tue, 9 Apr 2024 11:04:56 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCV//n8/7kUd9oHKiux/ErFOflixmIA+hehASawgBhaSc/5MSFRoprEIcheFPBYTkb0gZzRQrjzkUhtJ6oZ8T153 X-Google-Smtp-Source: AGHT+IFlM82VdvgV6LMqjnTI3pdbIS9j23GcReFtfm1KfjudvwmiuVfxzJvpyUSh6FkDSd0+hg84 X-Received: by 2002:ac2:4356:0:b0:516:cd36:17d3 with SMTP id o22-20020ac24356000000b00516cd3617d3mr113516lfl.44.1712685896367; Tue, 09 Apr 2024 11:04:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1712685896; cv=none; d=google.com; s=arc-20160816; b=olyn3v5V7NS2NDo0pc/zLbsnO9Y2p9O3AuoZmqDVsJ6HuQtEt1tgruJN9jbZUGrMQW CmFBLZ4x7FQmu9SWUcpXWS50jP8Ni8ChMv7ZpmxdH1uKfOSlsziEu6uLgR8ioTCdEhCk FkpgW3hfP20XcwpJEQsbxEwDQdoPtRIj7utrh8Go0VEdFt3CrqgtlAo5SQMAxyyLOWPj vuafiNeyMb6JmH/tk8daHGyXP7ipPfJjfzAxNlu+SaNG282q83Lspdz4Bj+y3CzFJOcV KrsH/glk9xCepls0YB95uBHiTpce2mJmg6DfSfU1u9i/Tai3SwBOqLY6XeA2A2KjaISx /ZDQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:cc:to:in-reply-to:references :message-id:content-transfer-encoding:mime-version:subject:date:from :dkim-signature; bh=fZ0Qlh1Opm2kOOa7cUT1mrSTjeJPcggoDsoX+RHEsXs=; fh=l1dqhLO5z0XlFWHhIhA7jn7sD9Gz0XDjE1yUiD1hdKE=; b=FTh6gLR3f+Pfsnn5wc1BBJcRt5ir/87FOFGagyQbfouF1ocqxER9ymomYdrZF/5YeM nQ8dQdl+RPNJ/IX9aQxu6QMtIoliiF0cR7MHqmDsXOYf7BqCo8OSsnUGjFcZuOA1Zwtc 4Vla+I5OaWveZk0NK9kTd13SlfHp9/aGW8SX85vDf6cJrjhztKp8hA/kjM2VV8j2x0NK Ztevxow1UH7xxUy7pUjIOvRaEWR8aue4hme+SdXP/AUhaRhfqp9dLkcNxqDuU15o/r1Z 5JcRe1zPv0L0mwXRJ1rF6zZVL6xNGUv497p+GDoO6Rzd4zlsUk/KaDQi+ODFRSzKDLea Dikg==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=v2kzf1sa; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 2a01:238:438b:c500:173d:9f52:ddab:ee01 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from phobos.denx.de (phobos.denx.de. [2a01:238:438b:c500:173d:9f52:ddab:ee01]) by mx.google.com with ESMTPS id t16-20020a508d50000000b0056e310e663asi4948058edt.640.2024.04.09.11.04.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 09 Apr 2024 11:04:56 -0700 (PDT) Received-SPF: pass (google.com: domain of u-boot-bounces@lists.denx.de designates 2a01:238:438b:c500:173d:9f52:ddab:ee01 as permitted sender) client-ip=2a01:238:438b:c500:173d:9f52:ddab:ee01; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=v2kzf1sa; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 2a01:238:438b:c500:173d:9f52:ddab:ee01 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id BFD8F87F01; Tue, 9 Apr 2024 20:03:21 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=linaro.org header.i=@linaro.org header.b="v2kzf1sa"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 7081487DCA; Tue, 9 Apr 2024 20:03:20 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-ej1-x635.google.com (mail-ej1-x635.google.com [IPv6:2a00:1450:4864:20::635]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 1FC2B88198 for ; Tue, 9 Apr 2024 20:03:17 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=caleb.connolly@linaro.org Received: by mail-ej1-x635.google.com with SMTP id a640c23a62f3a-a51addddbd4so479014166b.0 for ; Tue, 09 Apr 2024 11:03:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1712685796; x=1713290596; darn=lists.denx.de; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=fZ0Qlh1Opm2kOOa7cUT1mrSTjeJPcggoDsoX+RHEsXs=; b=v2kzf1sad34wKXK/L/RiuBt5XDE9jHV7k/d36m2yQLB38BCvd0OBP0OSr2mG27mxwl m3784li5Qcb87ycJm/hkfaZqcGrW1qFu6H/juaQe9/rHXSloDHT8wGgOXkgonjAj2nSx oJNexpZyXvA5TxX3XsHbbAWgJJN+onfiuOH1C3SHvpPukj3IM9jGsKbbLH234iofN0Zh L6NHLIm2BUKmpZPb2OraiRSWZ6VF8/WvE8Vm49A+kBCN+mEgz3gyhH3yd1j89neAa4ai kwFGgQfT/FbmJQx26/MHTLlaqXAgsYZ5ijDu+vFEOAouQkbHZckFPvIK7mG5qjsvwqNS UFzQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1712685796; x=1713290596; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=fZ0Qlh1Opm2kOOa7cUT1mrSTjeJPcggoDsoX+RHEsXs=; b=kT7N6CCiJv9s/wGyxPOR0hAqis0dEXJvm/GPEcWf/ciCiCTJ70egkZrM9ksbGbqonW Lbqtqf4d29O/Xg4OhaHDXsI8pT9uCnwPw20izcfsN1ID3MuqHva1gjch5c5M/xhdSnXb yca3LaFAQII876o25R7xE3wZxsTnRbLWwCa6J1wzaAl68lnlRAep6sqB1rudyTuspHxL 8FshAGrr+8Lfj4F6oUpW2kmaAC7Yo1SPt7uhc/j+ztMyLQQ0aBMBUhKBIKsXs+B9dz3T PQ18hwDbuITxEpI7abo9hzZ65EmzImV3wP/5HcoIOGautoKrxmWV7KTKVNd1u721wKOq LM4w== X-Gm-Message-State: AOJu0YxOn7/7YCZ8KGulB/bFCjntfb5QSKhQ9YIL7oJFB0l47hBmKWWY 2soBEioBNv5GlJY/n9LcjfU5yhD5RXoHCHtc7O6G/8Ufqj4arT87zCJN6gX/BZo= X-Received: by 2002:a17:907:968b:b0:a51:d1f6:3938 with SMTP id hd11-20020a170907968b00b00a51d1f63938mr166603ejc.42.1712685796674; Tue, 09 Apr 2024 11:03:16 -0700 (PDT) Received: from [192.168.0.113] ([2a02:8109:aa0d:be00::570d]) by smtp.gmail.com with ESMTPSA id d4-20020a170907272400b00a4e5866448bsm5928783ejl.155.2024.04.09.11.03.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 09 Apr 2024 11:03:15 -0700 (PDT) From: Caleb Connolly Date: Tue, 09 Apr 2024 20:03:06 +0200 Subject: [PATCH 7/7] dts: sdm845-db845c-u-boot: adjust MMC clocks MIME-Version: 1.0 Message-Id: <20240409-b4-qcom-mmc-fixes-v1-7-5039164ecbf7@linaro.org> References: <20240409-b4-qcom-mmc-fixes-v1-0-5039164ecbf7@linaro.org> In-Reply-To: <20240409-b4-qcom-mmc-fixes-v1-0-5039164ecbf7@linaro.org> To: Caleb Connolly , Neil Armstrong , Sumit Garg , Peng Fan , Jaehoon Chung , Tom Rini , Ramon Fried , Lukasz Majewski , Sean Anderson Cc: u-boot@lists.denx.de X-Mailer: b4 0.14-dev X-Developer-Signature: v=1; a=openpgp-sha256; l=784; i=caleb.connolly@linaro.org; h=from:subject:message-id; bh=SvaptCVs6q8sz0/p15Ii66d2UrAbTXUC6dXIwR0+daY=; b=owEBbQKS/ZANAwAIAQWDMSsZX2S2AcsmYgBmFYLYDj4JPK9t5f5YjCjTOm/b8ewsIb0hfJ4pU IlHsvkhGpiJAjMEAAEIAB0WIQS2UaFGPGq+0GkMVc0FgzErGV9ktgUCZhWC2AAKCRAFgzErGV9k tkJtD/9Wik1GfDq6hwS/r6fi+xnhfUzHID75m6nq9tVFXqYSyeqMh71pszCTvrZ5NIMmG1IiWo/ ZUoozBtT3D6zNyn3zQvg/vpvgkJ3/weZ/vpeoTxziGjzkz8MXn1gpn0HjP+qqW24L7RXPyqLTH/ eRFFX0MSSr6NJhO+f6rG1hdzjTZDCtWIY2P4pQ2bOA1jZohsjufMLxNmp1lUEAUaGF1Bky4NR/h 9OniuPB/ow7ReVMID4JiPXANzxQSS+jVyuY+zcxSL1wxAnfYkPOSQZ4bq92IjI4PUwhGxU2Niyj CyKkAM1uaGH6eGl/4rC1NLRMjeqlOffReqi9a4R4UGcgpvdaJ/SWndlyaPnGdY7wLKHKMQlvaK2 7XD3mnCC/HwPBbPb+dcETRJSN8SNGqbZ61havOAhslwHKipCPyxSEP9Pr7PzrSCOIjUmcvNZ4JQ 3Gov8tq3uvPQzQVmI/aQbVx9RJ04UQctgrocja6E3cgruKdejrhBTHt3IrrEl4LXXR0GO3vZgXb C9/H+OwWg2bne6G1bL7dnEcI3pw0SKm2ta0qK8z3z4aeRDs3JY8EhMwHKkajPcirnqHfdPnwjkJ UYrBFCZ8qJ/RDECgY3KKqGA3fP9viI7uRGs58fsEJ3RtSl7tZAj/4bIYecpXFLdvnVg5VYi+be4 hKCwTFst7qmlRhg== X-Developer-Key: i=caleb.connolly@linaro.org; a=openpgp; fpr=83B24DA7FE145076BC38BB250CD904EB673A7C47 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.8 at phobos.denx.de X-Virus-Status: Clean Remove the reference to the xo clock which is on the unsupported rpmhcc clock controller. It isn't needed for MMC functionality. Signed-off-by: Caleb Connolly --- arch/arm/dts/sdm845-db845c-u-boot.dtsi | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/arch/arm/dts/sdm845-db845c-u-boot.dtsi b/arch/arm/dts/sdm845-db845c-u-boot.dtsi index 906f9faa5451..9e4533e603c5 100644 --- a/arch/arm/dts/sdm845-db845c-u-boot.dtsi +++ b/arch/arm/dts/sdm845-db845c-u-boot.dtsi @@ -6,4 +6,11 @@ */ &pcie0_3p3v_dual { regulator-always-on; }; + +&sdhc_2 { + /* Remove the unsupported rpmhcc xo clock reference */ + clocks = <&gcc GCC_SDCC2_AHB_CLK>, + <&gcc GCC_SDCC2_APPS_CLK>; + clock-names = "iface", "core"; +};