From patchwork Mon Mar 27 10:44:59 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Konrad Dybcio X-Patchwork-Id: 667387 Delivered-To: patch@linaro.org Received: by 2002:a5d:4d08:0:0:0:0:0 with SMTP id z8csp1029130wrt; Mon, 27 Mar 2023 03:45:58 -0700 (PDT) X-Google-Smtp-Source: AKy350bayrc+rBoLhPbb9in+/iFbPG5gNSodQGy+sfJPUWiib+6XpxZI0VcRSSlNX2I5wK4d5Ryp X-Received: by 2002:a17:90a:ba08:b0:23d:5196:eca8 with SMTP id s8-20020a17090aba0800b0023d5196eca8mr11718627pjr.20.1679913957986; Mon, 27 Mar 2023 03:45:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1679913957; cv=none; d=google.com; s=arc-20160816; b=BwuMnwrvD5YulgWjL5VO+PcRAdGj3OXVU6JlRMoekC6U7d6DGxy7BW4FuZmAa4DuXF QP+1GhNQAtgpV72gvaKerWXTpwzGSQRHUQR7oBE4yUE0SQjAaJGw71paOGx9L9sWdlFK x8zpYgS2WXVhd6on8QFes+sq710+yA5PG+89iciC3dAqQaTkRfJvFOec7QOrwX9N3wlf mglTsTCCazeWFgbzzB248vXA+xj93ap2E5OpoWFEQNpwPR9niz+x8sog0Y49mEUbGHHL 9miJOWAjAtEbdPB9wldq30TV9aj7XmaJrlRThjT2f8uuiPc1dXpDIxZcnjLr28NSy9m+ 6lBw== 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=jG90NEnzPb7FO0f0NqGk1YOM03ffaZHJN+l1RWaf6BI=; b=cjN6eKRdCUnXOkXH77lstGI6f//wyuSRI3/X+yKOfcCHziTbLbhp5rVmcSbY0ZWTTx lIbufKtF3D1RrR+51njedGHEvddG/i6/37Hl+lDvfHO6I1KXLPEWWk8XPq6S7bpwzvqd Hr6Au+ypZUqFIyIPt6Yh5AhLwYDeWp6RwQC30sLb7NGan9O+TxEZROPhFelNLqfznQZn z1K4/pJwF6k1g2+2L3dLwYlFbpUNkZge8IoIet0KAWlktevcKUHm7gNbdjoYAeAfyWGe shZgz/6LSQSPB7iX1E+M3iN2MZIBWlZN5nrAqzrTmbhusoCNW/PsRabDMKII4+rHMSoR Gb2w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=wAfKuvVE; 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 q8-20020a17090a68c800b00233b583bf5fsi5849200pjj.74.2023.03.27.03.45.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 27 Mar 2023 03:45:57 -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=wAfKuvVE; 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 6C00086050; Mon, 27 Mar 2023 12:45:33 +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="wAfKuvVE"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id EA85C8608C; Mon, 27 Mar 2023 12:45:18 +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-x131.google.com (mail-lf1-x131.google.com [IPv6:2a00:1450:4864:20::131]) (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 2484485E88 for ; Mon, 27 Mar 2023 12:45: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=konrad.dybcio@linaro.org Received: by mail-lf1-x131.google.com with SMTP id h11so3818651lfu.8 for ; Mon, 27 Mar 2023 03:45:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1679913913; 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=jG90NEnzPb7FO0f0NqGk1YOM03ffaZHJN+l1RWaf6BI=; b=wAfKuvVEvFsR1oYS1e/tJ3qxszAv6fWPSGpKzElSU08iI15m4qVoi9jSW6jEvgPPps XtWNwKL0zexov4n6+CENrPtqEwpd9ihHk8ZmvcqsrVxBHXQYBtLBgfKwLqUhtfFdF9BP YTBTUAfiWwsdKU8GuHg1SdGe/B0St6nx5wqTXv9ul9T9IdtLPoa0d+/xcpikfjLS10yx LxKqV1zjK4ln8j52Rl1ctFfZYPXAjcBGUdpx4IR1bnYWpMvsnZckkq3JuALA6/bC7mdv hvxWj67RIubrxOy3mPoTGwmNCKHXottzyV/ss0B4g+/LJ8/12B8wvwyYPF7aHtH8+bmZ QHTQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1679913913; 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=jG90NEnzPb7FO0f0NqGk1YOM03ffaZHJN+l1RWaf6BI=; b=vhQ/q48pwiL9P+liPNxWNR9bh7NtK7C6KiZIGvVuC9Z/2Hxs8b+uCsD7T9dNdyqkSM ruppaBxwiL+ozxHF3cYDEVbWPmMDN6yQTs2A/dpL0QXnTb5dgJSBrW8GOrdnIFqjhxMS aszvFKIP7aRXydJizBZloYwuGH+WsnIL7vW8ngD3aBHRgxpcQ6FwTPMICyKRoirMXVzR 87SryS46MOvpS5W+uQ4NfZQbjkmJzyQY5V8YYDPoj5SL/qd8kZd6gn92bCRIMpypo824 PVsL1TmTciBP+BivBXlI//87DNz04L6tmnuBvehuu7fHSnG6c/ydUPk06lC94V4K52ca 6qUg== X-Gm-Message-State: AAQBX9cgWacWM/+p1N83ofzC+3QFnXUbQ8yOYdHtp5n4pqDkQXFJrFWR 7EruU1T8uoH4UhJVYbELP72zVg== X-Received: by 2002:ac2:5e87:0:b0:4db:1b30:e634 with SMTP id b7-20020ac25e87000000b004db1b30e634mr3112549lfq.65.1679913913439; Mon, 27 Mar 2023 03:45:13 -0700 (PDT) Received: from [192.168.1.101] (abxj225.neoplus.adsl.tpnet.pl. [83.9.3.225]) by smtp.gmail.com with ESMTPSA id y22-20020a2e95d6000000b0029bfcbeac09sm3715904ljh.41.2023.03.27.03.45.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 27 Mar 2023 03:45:13 -0700 (PDT) From: Konrad Dybcio Date: Mon, 27 Mar 2023 12:44:59 +0200 Subject: [PATCH v2 1/9] mmc: msm_sdhci: Match clocks through "clocks" property MIME-Version: 1.0 Message-Id: <20230327-qc_cleanups-v2-1-9a80cc563c76@linaro.org> References: <20230327-qc_cleanups-v2-0-9a80cc563c76@linaro.org> In-Reply-To: <20230327-qc_cleanups-v2-0-9a80cc563c76@linaro.org> To: Ramon Fried , Peng Fan , Jaehoon Chung , Mark Kettenis , Sumit Garg Cc: Bhupesh Sharma , Dzmitry Sankouski , Marijn Suijten , u-boot@lists.denx.de, Konrad Dybcio X-Mailer: b4 0.12.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1679913910; l=2436; i=konrad.dybcio@linaro.org; s=20230215; h=from:subject:message-id; bh=GIWqwqd+rertH8gv/+OAnVK2hzZf8pqDRAS3H9rWo9Q=; b=BJ+9VunYmOPNf1MAd0ptrBYqYm+7slHnE+4XvlUeVTim18b3ry2e7NYparfJnYECX9RzoyMPIq6u b6qahRxdAfxi80Z3YFnE8SbJay7GI2EVoKMz8HH8vDDlVuJD+mUi X-Developer-Key: i=konrad.dybcio@linaro.org; a=ed25519; pk=iclgkYvtl2w05SSXO5EjjSYlhFKsJ+5OSZBjOkQuEms= 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 "clocks" is the standard property used in Linux, "clock" seems to be an U-Boot invention. Use the one that's more standardized. Signed-off-by: Konrad Dybcio --- arch/arm/dts/dragonboard410c.dts | 4 ++-- arch/arm/dts/dragonboard820c.dts | 2 +- arch/arm/dts/qcs404-evb.dts | 4 ++-- drivers/mmc/msm_sdhci.c | 2 +- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/arch/arm/dts/dragonboard410c.dts b/arch/arm/dts/dragonboard410c.dts index 9230dd3fd96c..99391df13080 100644 --- a/arch/arm/dts/dragonboard410c.dts +++ b/arch/arm/dts/dragonboard410c.dts @@ -107,7 +107,7 @@ bus-width = <0x8>; index = <0x0>; non-removable; - clock = <&clkc 0>; + clocks = <&clkc 0>; clock-frequency = <100000000>; }; @@ -116,7 +116,7 @@ reg = <0x7864900 0x11c 0x7864000 0x800>; index = <0x1>; bus-width = <0x4>; - clock = <&clkc 1>; + clocks = <&clkc 1>; clock-frequency = <200000000>; cd-gpios = <&soc_gpios 38 GPIO_ACTIVE_LOW>; }; diff --git a/arch/arm/dts/dragonboard820c.dts b/arch/arm/dts/dragonboard820c.dts index ad201d48749c..9c234d81c1ee 100644 --- a/arch/arm/dts/dragonboard820c.dts +++ b/arch/arm/dts/dragonboard820c.dts @@ -88,7 +88,7 @@ reg = <0x74a4900 0x314>, <0x74a4000 0x800>; index = <0x0>; bus-width = <4>; - clock = <&gcc 0>; + clocks = <&gcc 0>; clock-frequency = <200000000>; }; diff --git a/arch/arm/dts/qcs404-evb.dts b/arch/arm/dts/qcs404-evb.dts index 8d7893c11695..d973aa13169c 100644 --- a/arch/arm/dts/qcs404-evb.dts +++ b/arch/arm/dts/qcs404-evb.dts @@ -229,8 +229,8 @@ sdhci@7804000 { compatible = "qcom,sdhci-msm-v5"; reg = <0x7804000 0x1000 0x7805000 0x1000>; - clock = <&gcc GCC_SDCC1_APPS_CLK>, - <&gcc GCC_SDCC1_AHB_CLK>; + clocks = <&gcc GCC_SDCC1_APPS_CLK>, + <&gcc GCC_SDCC1_AHB_CLK>; bus-width = <0x8>; index = <0x0>; non-removable; diff --git a/drivers/mmc/msm_sdhci.c b/drivers/mmc/msm_sdhci.c index 604f9c3ff99c..174435f01f68 100644 --- a/drivers/mmc/msm_sdhci.c +++ b/drivers/mmc/msm_sdhci.c @@ -63,7 +63,7 @@ static int msm_sdc_clk_init(struct udevice *dev) struct clk clk; int ret; - ret = fdtdec_get_int_array(gd->fdt_blob, node, "clock", clkd, 2); + ret = fdtdec_get_int_array(gd->fdt_blob, node, "clocks", clkd, 2); if (ret) return ret;