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; From patchwork Mon Mar 27 10:45:00 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Konrad Dybcio X-Patchwork-Id: 667391 Delivered-To: patch@linaro.org Received: by 2002:a5d:4d08:0:0:0:0:0 with SMTP id z8csp1029550wrt; Mon, 27 Mar 2023 03:47:02 -0700 (PDT) X-Google-Smtp-Source: AKy350ahWhaPQ0CqsfKrqDhjdWDDWnTozTT8MyrWa3jzZ3wG4JhFpCjxdY5gF5NJrtEehBURSSAS X-Received: by 2002:aa7:991e:0:b0:625:d9ec:51c8 with SMTP id z30-20020aa7991e000000b00625d9ec51c8mr10778304pff.22.1679914022480; Mon, 27 Mar 2023 03:47:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1679914022; cv=none; d=google.com; s=arc-20160816; b=H/96SXjpJXEoIAtMCgU+IV9PkvAGTHgSp1owIcEa7GOeTtRKeATsrIiYQJARodmYFo 0dmx2JX6zldKIs5rpNqiaYMO89IVjJm5YAjaR0xyUADQGLgRchv3lQaYJ90dgmizBhzv mtt5+af/IxFNPSWusdHh4ZD2zxjw16N7bbyB8XPg3zIsYjKVHleSakI7+YSWYZmd/eKV T7tGU1aVToAtb7YbB2WeQ+ardrnegwtr6g+bLLs6EHDjEskyEaXAtypV86OQVTTXZrTu qZj+WEIsJsj5HuX/FEhnfTyGaL6b8ngeNROrKwVOC9Tqy+/7M6U4CmAD1+KB3jZtsbeo QgVQ== 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=J48hs/2WXs9gzuHwVT9+GFVsNO24xLj5sH4bMJBzsgQ=; b=h3OSm4cmfoNSJujjadGiSZNxYaTOdZhKigFU2KnILYLZOugH9qcwhr/IKQP8Kt/g97 uUQLqRMvFdUba4iPTDtrAaLnI8sqG+k1rrh9K0jbeJV2xXuKlXkAxIvAmQkAOKazsYlZ GKpyp/YOnQjHqyNDKYcYJ2gD5/Dc3v7nlpDNOFnOWX8tfVYN39tMHqZdbskZ3+ZjqRHv 1+B+a9Xrd2fggdLFeiSJ68SkDLJirlL/EkGeIbQfS3nQYiiTiatjlUPS8i1B67NUHzpB sgiRAcKy8uHjPwDXkRfFfTY31MqP6Q6UuCl//YC7dY32Q4GvSqQ/OMF7HrsGxeQxK0gp msTA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=fiO5050+; 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 j6-20020a056a00174600b005e1cabb612fsi28129920pfc.67.2023.03.27.03.47.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 27 Mar 2023 03:47:02 -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=fiO5050+; 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 789C0860AC; Mon, 27 Mar 2023 12:46:29 +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="fiO5050+"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 699F485C5F; Mon, 27 Mar 2023 12:45:26 +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-x135.google.com (mail-lf1-x135.google.com [IPv6:2a00:1450:4864:20::135]) (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 2C06986070 for ; Mon, 27 Mar 2023 12:45: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=konrad.dybcio@linaro.org Received: by mail-lf1-x135.google.com with SMTP id c9so358298lfb.1 for ; Mon, 27 Mar 2023 03:45:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1679913914; 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=J48hs/2WXs9gzuHwVT9+GFVsNO24xLj5sH4bMJBzsgQ=; b=fiO5050+mSil09u/mdByJlB/6Fe5dxVClPO39mZKhD9qisxKDmm88vTM2hLgNBWzCI PBh6O/+RF3i8s+u+gncw3bszozV37u5BvrxFZV46zLKB2G6vC0cgj9xU4R57xDbOEcJr VFm2odA27jePhF3b+4NnzRd5PWDTm0ouOJOFNP3MBujnaYVp1Zs21kX5t7VVZ1P3ea36 m6vjZeBQ/qCrTpvKTyH6aO+pc6ZU7whkouv4LVV1YMPjbMUItV1Ge+qk8/aavsE/Cp0f ZGt92bTDfgBW9HFlJP/zhwQjnRxJ3Jxn6UB2pPua8pm/N9ERNTx8hEmgYDQXAmobiLaY K/sA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1679913914; 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=J48hs/2WXs9gzuHwVT9+GFVsNO24xLj5sH4bMJBzsgQ=; b=yyoK759B+4PoZGjJN3g2a4lAwegu60qJCEUQtTzNtX0HbLwOEkvSvr2sfRRlPUYr0I fN2C4EUE2KpE9zBxlhYw977IQ8ToLz7T8SZToVDCmKgoGtuw7ZbCXWvepLSdEoeaahzr hqfzCV7RlaGRgnc8AQxsu2bHv8EDf9j+QN2BSqfA7Cqcg/i+zoIpTz++nG8EnaW58zBG ey9o3VNDcGu81ihJrRrPDno/lwG2ZKbADuMROacjBDnyL5h+0mGMCoanzhe14fijwW11 Q7xCL9vzoEEgJr8fqj6tbW2rCeLMlifl/9yLQMDvN1Yz/sRxkk5Mjd/Q7oijFcQH4xDi KWEA== X-Gm-Message-State: AAQBX9eA6W3navZZ/5ET7KQM+s07E330ssiYS4EcRRlVRwlymi+ZzYJ9 RLw99c+HtrBrpfh9T1FJbVoYE7bxB62zUBlgqF4= X-Received: by 2002:ac2:538f:0:b0:4b0:1305:6e02 with SMTP id g15-20020ac2538f000000b004b013056e02mr3561037lfh.8.1679913914504; Mon, 27 Mar 2023 03:45:14 -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.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 27 Mar 2023 03:45:14 -0700 (PDT) From: Konrad Dybcio Date: Mon, 27 Mar 2023 12:45:00 +0200 Subject: [PATCH v2 2/9] serial: msm: Match clocks through "clocks" property MIME-Version: 1.0 Message-Id: <20230327-qc_cleanups-v2-2-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=2926; i=konrad.dybcio@linaro.org; s=20230215; h=from:subject:message-id; bh=WKpfJwWSBQi5UyjCtsZfsuMX/GhSTtA/tz1MIjY9ZYQ=; b=s01aiOx5WRhC2ddPZHSWrKksVK6bBNIeIaGyAbtpL0k7g7xZ2md2xhiIJ0seC0ADj/LmYPOB78mY WQnPc9XECET/Ph02DCfbDR8/NW9LqGQwDq9LdFRvwguHaqBHR22w 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 | 2 +- arch/arm/dts/dragonboard820c.dts | 2 +- arch/arm/dts/qcom-ipq4019.dtsi | 2 +- arch/arm/dts/qcs404-evb.dts | 4 ++-- drivers/serial/serial_msm.c | 3 +-- 5 files changed, 6 insertions(+), 7 deletions(-) diff --git a/arch/arm/dts/dragonboard410c.dts b/arch/arm/dts/dragonboard410c.dts index 99391df13080..7ef2e779661a 100644 --- a/arch/arm/dts/dragonboard410c.dts +++ b/arch/arm/dts/dragonboard410c.dts @@ -84,7 +84,7 @@ serial@78b0000 { compatible = "qcom,msm-uartdm-v1.4"; reg = <0x78b0000 0x200>; - clock = <&clkc 4>; + clocks = <&clkc 4>; pinctrl-names = "uart"; pinctrl-0 = <&blsp1_uart>; }; diff --git a/arch/arm/dts/dragonboard820c.dts b/arch/arm/dts/dragonboard820c.dts index 9c234d81c1ee..d381d7fb9fdf 100644 --- a/arch/arm/dts/dragonboard820c.dts +++ b/arch/arm/dts/dragonboard820c.dts @@ -78,7 +78,7 @@ blsp2_uart2: serial@75b0000 { compatible = "qcom,msm-uartdm-v1.4", "qcom,msm-uartdm"; reg = <0x75b0000 0x1000>; - clock = <&gcc 4>; + clocks = <&gcc 4>; pinctrl-names = "uart"; pinctrl-0 = <&blsp8_uart>; }; diff --git a/arch/arm/dts/qcom-ipq4019.dtsi b/arch/arm/dts/qcom-ipq4019.dtsi index 6edc69da6747..dee3159e5893 100644 --- a/arch/arm/dts/qcom-ipq4019.dtsi +++ b/arch/arm/dts/qcom-ipq4019.dtsi @@ -87,7 +87,7 @@ blsp1_uart1: serial@78af000 { compatible = "qcom,msm-uartdm-v1.4", "qcom,msm-uartdm"; reg = <0x78af000 0x200>; - clock = <&gcc GCC_BLSP1_UART1_APPS_CLK>; + clocks = <&gcc GCC_BLSP1_UART1_APPS_CLK>; bit-rate = <0xFF>; status = "disabled"; u-boot,dm-pre-reloc; diff --git a/arch/arm/dts/qcs404-evb.dts b/arch/arm/dts/qcs404-evb.dts index d973aa13169c..5ed147415661 100644 --- a/arch/arm/dts/qcs404-evb.dts +++ b/arch/arm/dts/qcs404-evb.dts @@ -219,8 +219,8 @@ debug_uart: serial@78b1000 { compatible = "qcom,msm-uartdm-v1.4"; reg = <0x78b1000 0x200>; - clock = <&gcc GCC_BLSP1_UART2_APPS_CLK>, - <&gcc GCC_BLSP1_AHB_CLK>; + clocks = <&gcc GCC_BLSP1_UART2_APPS_CLK>, + <&gcc GCC_BLSP1_AHB_CLK>; bit-rate = <0xFF>; pinctrl-names = "uart"; pinctrl-0 = <&blsp1_uart2>; diff --git a/drivers/serial/serial_msm.c b/drivers/serial/serial_msm.c index a22623c316ed..9c370cac323f 100644 --- a/drivers/serial/serial_msm.c +++ b/drivers/serial/serial_msm.c @@ -166,8 +166,7 @@ static int msm_uart_clk_init(struct udevice *dev) struct clk clk; int ret; - ret = fdtdec_get_int_array(gd->fdt_blob, dev_of_offset(dev), "clock", - clkd, 2); + ret = fdtdec_get_int_array(gd->fdt_blob, dev_of_offset(dev), "clocks", clkd, 2); if (ret) return ret; From patchwork Mon Mar 27 10:45:01 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Konrad Dybcio X-Patchwork-Id: 667388 Delivered-To: patch@linaro.org Received: by 2002:a5d:4d08:0:0:0:0:0 with SMTP id z8csp1029276wrt; Mon, 27 Mar 2023 03:46:19 -0700 (PDT) X-Google-Smtp-Source: AKy350azBkDdddt8OB4MEbWlzmOWcO2dmLyQcapD1WKnhT+3K1doS5n+rAzEJwvRCfAofDHW6t6c X-Received: by 2002:a17:903:22cb:b0:19e:2eb5:712d with SMTP id y11-20020a17090322cb00b0019e2eb5712dmr12438497plg.25.1679913979282; Mon, 27 Mar 2023 03:46:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1679913979; cv=none; d=google.com; s=arc-20160816; b=lys3mSuoQcmxTwVgsoaJXCo0piVe1PSkAcxwhH9yCd22wz9NR2KyNF8754r7TmWPNQ s1fFcIeFs9C/XNJuQv451jN2yUS43mHQDVvrBgA61TZLfpdmywIircTNAy2edIsbGc7Z w0mqBh6MiYwZ5zKQN58VOwQ+bL6kcMW+nD56zB3tIQk66gFxfw7EV04KWWZma+P4lIBo VBiwUHOxQ/oSO2bj2cc6BmXw47upCF+7NasfOMVGhKhqdcs7NWi6soGfUZssnSrnX2ky bsQ0F3hRQpFrcZ6joD1tuVfYDvwTgjFq/rc/B0XoUlYu+CYGZIJv4SQO6dBqCVnI/80V fB4g== 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=hHG8ySL9CCliEjTYQlIuuuDt8hzTvXI9Alf4E3CVEAQ=; b=e7pFNL9YyyI4tXRvZyLDLryTSDFMLl3J8ZLMSNRTu44vYAXe8l9IyDxmOG70H1QcJE rlCEtTjptgrV2V5wVpOMrmLCpeOjelUBjhWYcmU772cPDJcna85gdCUfWPwLngmqauHl Jzu6lpC5IPkRl0W2JPHrIF+T26uAqW8c+zH6iqHJxbc7vNjDg5ge4f9/ZeX5IbgE1Ste USFV0/N0sLhCIEs0x/UwbU9u0Qum0/cP57O2g2rMDwt/Ugh+O1b8Ct0IiLFOLkpgUW7b 9Tznm5UIF3C7Hp4eyEr9cOBuWq1JKuK9G0Els+mHt7iIWGhrmUxPXS3/vFYv4L+wKCI4 /VqQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=RtNjEc29; 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 n9-20020a170902e54900b001a04b42c4bcsi27957194plf.412.2023.03.27.03.46.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 27 Mar 2023 03:46:19 -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=RtNjEc29; 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 1D3A885D13; Mon, 27 Mar 2023 12:46: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="RtNjEc29"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id D807B86075; Mon, 27 Mar 2023 12:45:28 +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-lj1-x235.google.com (mail-lj1-x235.google.com [IPv6:2a00:1450:4864:20::235]) (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 293A486081 for ; Mon, 27 Mar 2023 12:45: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=konrad.dybcio@linaro.org Received: by mail-lj1-x235.google.com with SMTP id s20so8472740ljp.1 for ; Mon, 27 Mar 2023 03:45:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1679913915; 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=hHG8ySL9CCliEjTYQlIuuuDt8hzTvXI9Alf4E3CVEAQ=; b=RtNjEc29sPi8fQwAiTJXUTXiEQMVzog5XH456+tIY1i9DTnZ7RiAdgQ4JsuDwX6/dG zDhFg3fVYTfwsiBsyp8U6+pJyEt3FeyhrObShmvPgaZG8YNk06qheNKTYgOiay4V/EXk pUwsHFO3INxFKyTgTZv06d7rlO0qGHJCIMfwgCaBIH0pTxBmjd14cWkwo39zV7ou8kbX plLs9wf3Tv352zNXRDwcWLUMUglJRe+1ZjjdSq4X500PSvofek5xAJZB8mhdXgLOGq4y bY9LKyQM2Hafp6+Dv2xSq+RkNRwrzZHZ3kEsSCSQWtId27TGQ8o7EJHh+Ke2KMGSQiDu 8J3A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1679913915; 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=hHG8ySL9CCliEjTYQlIuuuDt8hzTvXI9Alf4E3CVEAQ=; b=wmSoJ0W/4P/aBui9aKZJ8/usar08e0GLyS4TIp6ZFMMakZVMzN1DE/8KAY5cahXBTI cgXN6RdlKOWGlW7o4UX860R/9ki8Q9jH1RbbYlzyq7UXmFikYJiwstX7TNkNg2gUO2m2 ZswBqiJl2YEDHCOpi3Jgxmbd4Ay3ioIk/yhpaPfUYmkPwATRIdhP6ZoSktEspcPP9Bq2 sC6EcumWn9QnUeKQSsgZmwvMgyb9xcoG7ADe+S7wngj4M7URlcktsxLXogxOk5hvih5N HK4k3pkP9TjyDvO0YnhamUVorhElxDLw4o7u2/AzFLP3CZrUdfrmTN8oIZjMjK8JCeWs Yp5w== X-Gm-Message-State: AAQBX9corcxB+g1nVphkMIdtx56rFa+DHD1zqoQcyLtXYzdXXwB+AKRh c6DTwGcslrUr1WegH0CZKS1MaA== X-Received: by 2002:a2e:9254:0:b0:2a2:3bd6:bc83 with SMTP id v20-20020a2e9254000000b002a23bd6bc83mr3320973ljg.23.1679913915585; Mon, 27 Mar 2023 03:45:15 -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.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 27 Mar 2023 03:45:15 -0700 (PDT) From: Konrad Dybcio Date: Mon, 27 Mar 2023 12:45:01 +0200 Subject: [PATCH v2 3/9] serial: msm_geni: Use upstream Linux bindings MIME-Version: 1.0 Message-Id: <20230327-qc_cleanups-v2-3-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=2338; i=konrad.dybcio@linaro.org; s=20230215; h=from:subject:message-id; bh=g2mQT8MbgTIw021nCuPsTS0yEpYG+wadWPnYAD/q+bE=; b=Himt8RIITf4T75U54sZriDLuXaN+aM7eZZcI3icoX6yigboy/b687GNvHmmzK0NY7RJl2Y2PdCAq L2fLOd9XB70JPick5HupenQBMxhSyNva3d8g/sL7IyIGOBURamZ+ 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 The name "se" is used in upstream Linux device trees and has been for ages, long before this U-Boot-ism was introduced. Same goes for the existing compatible. Get rid of that. Signed-off-by: Konrad Dybcio --- arch/arm/dts/sdm845.dtsi | 4 ++-- doc/device-tree-bindings/serial/msm-geni-serial.txt | 2 +- drivers/serial/serial_msm_geni.c | 6 ++++-- 3 files changed, 7 insertions(+), 5 deletions(-) diff --git a/arch/arm/dts/sdm845.dtsi b/arch/arm/dts/sdm845.dtsi index 607af277f8be..92bdc82177d6 100644 --- a/arch/arm/dts/sdm845.dtsi +++ b/arch/arm/dts/sdm845.dtsi @@ -52,10 +52,10 @@ }; debug_uart: serial@a84000 { - compatible = "qcom,msm-geni-uart"; + compatible = "qcom,geni-debug-uart"; reg = <0xa84000 0x4000>; reg-names = "se_phys"; - clock-names = "se-clk"; + clock-names = "se"; clocks = <&gcc GCC_QUPV3_WRAP1_S1_CLK>; pinctrl-names = "default"; pinctrl-0 = <&qup_uart9>; diff --git a/doc/device-tree-bindings/serial/msm-geni-serial.txt b/doc/device-tree-bindings/serial/msm-geni-serial.txt index 9eadc2561b4b..eaa39c949b10 100644 --- a/doc/device-tree-bindings/serial/msm-geni-serial.txt +++ b/doc/device-tree-bindings/serial/msm-geni-serial.txt @@ -1,6 +1,6 @@ Qualcomm GENI UART Required properties: -- compatible: must be "qcom,msm-geni-uart" +- compatible: must be "qcom,geni-debug-uart" - reg: start address and size of the registers - clock: interface clock (must accept baudrate as a frequency) diff --git a/drivers/serial/serial_msm_geni.c b/drivers/serial/serial_msm_geni.c index 3943ca43e49e..6c9371c4e69d 100644 --- a/drivers/serial/serial_msm_geni.c +++ b/drivers/serial/serial_msm_geni.c @@ -189,7 +189,7 @@ static int geni_serial_set_clock_rate(struct udevice *dev, u64 rate) struct clk *clk; int ret; - clk = devm_clk_get(dev, "se-clk"); + clk = devm_clk_get(dev, "se"); if (!clk) return -EINVAL; @@ -554,7 +554,9 @@ static int msm_serial_ofdata_to_platdata(struct udevice *dev) } static const struct udevice_id msm_serial_ids[] = { - {.compatible = "qcom,msm-geni-uart"}, {}}; + { .compatible = "qcom,geni-debug-uart" }, + { } +}; U_BOOT_DRIVER(serial_msm_geni) = { .name = "serial_msm_geni", From patchwork Mon Mar 27 10:45:02 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Konrad Dybcio X-Patchwork-Id: 667390 Delivered-To: patch@linaro.org Received: by 2002:a5d:4d08:0:0:0:0:0 with SMTP id z8csp1029459wrt; Mon, 27 Mar 2023 03:46:47 -0700 (PDT) X-Google-Smtp-Source: AKy350ZpVUW556hHzSOKqdxeu5YpzDg+uH12civ44P7mPIFLt33gwnAJD6A9UX3mha0uQxQFv6vF X-Received: by 2002:a17:90b:3811:b0:23b:3d6e:1ed with SMTP id mq17-20020a17090b381100b0023b3d6e01edmr12204727pjb.13.1679914006942; Mon, 27 Mar 2023 03:46:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1679914006; cv=none; d=google.com; s=arc-20160816; b=EkUHv3eEH8EjvX2jeXTJAfuUbJh5M0OTAZ0i1ntG9vvaTD6FrhUGYS+5jU/L3ehGtI gNVHXgrISv8lHfdaXZ1wLBwq+bsJErrMPVIBztS8K9ZRb5gRtqIvUsIC3xJAVRDXNt9I EGQFFrTvRBrK8aXCKhSZLOdmw7/Ac5bWkWnSj6IoV7+3iD0eisJaE/+b24r5qgsc+5f+ NTrPVBpOhrk1ZVgyHQicPoYKEwv+YvxG+YHv3psfwasWJzDicdla8oj37+fUnrCgAUaw ttjL9NfAFJ/UOGhDsg7XpCpKAN1RAuFJeixtYRRSG3QgiuYWBeaTlB+DJyaTURZLkc1T jXog== 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=RE0FC311Lm2Zwc7xEcl9XdC0NuIZ6SKksPuka8pTMnA=; b=HAxQ7gEhy9XVjzwempdbUtn2UE8agUKoS6rKmfNXSMmd7Uy8TdE/xoejAIHUP0ZVGK bYKt3efTUCybEBcmzOYd6IH99+hMjif4IA9YC+52RMp6Vl4joZh6Q+ptzDuNZTiLkc0p t3CdFXV1oLFmlqYhd2ZcoRwMdJlgGRFnQLYysfBri5dcJiPiVWLZLE8lknflNoESa4HG rfUSGCd5Sgg+D5QgAKCgx4gdZQZwjjc3X7jBfCclDNrycr6HaX6Mgs6hlAO5Foft7x22 hZHrmZok0V3IQVN7xPkuqpuyCmQ+RHEqwp6MkUuAqxSMufNIlbqsK8tNIC9O7N/hKEQ2 P66g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=B9CD7ZTP; 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 fy7-20020a17090b020700b0023cfda36390si5652614pjb.121.2023.03.27.03.46.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 27 Mar 2023 03:46:46 -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=B9CD7ZTP; 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 3A9638609C; Mon, 27 Mar 2023 12:46:25 +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="B9CD7ZTP"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id DA3E785D3A; Mon, 27 Mar 2023 12:45:25 +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-lj1-x236.google.com (mail-lj1-x236.google.com [IPv6:2a00:1450:4864:20::236]) (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 358908545E for ; Mon, 27 Mar 2023 12:45: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=konrad.dybcio@linaro.org Received: by mail-lj1-x236.google.com with SMTP id by8so8433263ljb.12 for ; Mon, 27 Mar 2023 03:45:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1679913916; 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=RE0FC311Lm2Zwc7xEcl9XdC0NuIZ6SKksPuka8pTMnA=; b=B9CD7ZTP+m/g2CmZuVnY0+BonD5QGhcClP6ZLkshYToEgvV0KX194GBgBEwYKTZzpG PEaQypUh1EOBgWCwzdMPB15X0cnPN6OIl+Ww18zOh5AsnJ1Kxos2tEusIvKmMyw4AkTT BA0YPeJewWPZNSkkx5urcK/5XLfWrxZRyG+CJZdI57O/4lXUJDaFO40XjxeVNygn9yd2 j2RHDCtphiTqKhvGdE5dgvzgMbVKgbRCsjcT1AUesoVqp2NzcbGL0tVY3Z9fq98fSNvn PImKkIrC5V13Utde7M7y2Yh/y8HO/gQP+sEQeWpYHW/h1sYD/9y2J8TRzyW1niEroKkH 4iZA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1679913916; 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=RE0FC311Lm2Zwc7xEcl9XdC0NuIZ6SKksPuka8pTMnA=; b=HBbLqY35uB7bal9OuQ6Y61WLOSsiGSyzCL0gCauCzzR1/u/tyUYJPNmxhOQW/nCSnX wUZWUNS5PJ7TdS6OilDonxMespAfVx4yujPnsMCk1fdRe5yZSNvCPSOY86D+UrLVw1b5 epkX4T7RMgvL9wUySxrIGQEDN0cC1AacFi+yxWU8+yd33I8zZVZDC3yuTSkoipyqmIwM f5KEqyWdYdOKESoiQ+SKHRi6POSE/MEciAhsL9gsq6kr8b0kFWoawDRakj0KQRDoyWSc k2qEepGqgZnUejU+TXxDoTz9XMhgVwD4/rXQ4159ThT4kj/Qle45+lKM7cgvNqqz1YBX yDRg== X-Gm-Message-State: AAQBX9fu6MyLRdAo0YXG4I/A2ioYnlLPWklu9xYWNs4I74NiOjUQUU1s tstgzoNITlmULaPbIIXVjuu23w== X-Received: by 2002:a2e:740d:0:b0:2a1:17f8:e904 with SMTP id p13-20020a2e740d000000b002a117f8e904mr3236225ljc.4.1679913916622; Mon, 27 Mar 2023 03:45:16 -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.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 27 Mar 2023 03:45:16 -0700 (PDT) From: Konrad Dybcio Date: Mon, 27 Mar 2023 12:45:02 +0200 Subject: [PATCH v2 4/9] serial: msm: Always bind before relocation MIME-Version: 1.0 Message-Id: <20230327-qc_cleanups-v2-4-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=2378; i=konrad.dybcio@linaro.org; s=20230215; h=from:subject:message-id; bh=DfbgKPOWGNfctqQzsRqbt+D5q9CD7UHooPa53Ca7hKc=; b=apBSKCQdMpujte/z6LTptnD3JpZdtGpmsylk2rtbox6ZTmkCWLHd0yer194Uadf6sYS2+Z9urunf XKQVQMM2DcoOmtWRnVOa16OlfSMB/Xb9qsvpuiDU+akvJ13BNGWP 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 In preparation for supporting upstream Linux device trees on Qualcomm platforms, make this the default behavior. Signed-off-by: Konrad Dybcio --- arch/arm/dts/dragonboard410c-uboot.dtsi | 4 ---- arch/arm/dts/dragonboard820c-uboot.dtsi | 4 ---- arch/arm/dts/qcom-ipq4019.dtsi | 1 - arch/arm/dts/qcs404-evb-uboot.dtsi | 4 ---- drivers/serial/serial_msm.c | 1 + 5 files changed, 1 insertion(+), 13 deletions(-) diff --git a/arch/arm/dts/dragonboard410c-uboot.dtsi b/arch/arm/dts/dragonboard410c-uboot.dtsi index e4fecaa19e64..1d7b31d7e267 100644 --- a/arch/arm/dts/dragonboard410c-uboot.dtsi +++ b/arch/arm/dts/dragonboard410c-uboot.dtsi @@ -25,10 +25,6 @@ qcom,gcc@1800000 { u-boot,dm-pre-reloc; }; - - serial@78b0000 { - u-boot,dm-pre-reloc; - }; }; }; diff --git a/arch/arm/dts/dragonboard820c-uboot.dtsi b/arch/arm/dts/dragonboard820c-uboot.dtsi index 2270ac73bfca..5db30b5fb076 100644 --- a/arch/arm/dts/dragonboard820c-uboot.dtsi +++ b/arch/arm/dts/dragonboard820c-uboot.dtsi @@ -24,10 +24,6 @@ clock-controller@300000 { u-boot,dm-pre-reloc; }; - - serial@75b0000 { - u-boot,dm-pre-reloc; - }; }; }; diff --git a/arch/arm/dts/qcom-ipq4019.dtsi b/arch/arm/dts/qcom-ipq4019.dtsi index dee3159e5893..22a4e059f057 100644 --- a/arch/arm/dts/qcom-ipq4019.dtsi +++ b/arch/arm/dts/qcom-ipq4019.dtsi @@ -90,7 +90,6 @@ clocks = <&gcc GCC_BLSP1_UART1_APPS_CLK>; bit-rate = <0xFF>; status = "disabled"; - u-boot,dm-pre-reloc; }; blsp1_spi1: spi@78b5000 { diff --git a/arch/arm/dts/qcs404-evb-uboot.dtsi b/arch/arm/dts/qcs404-evb-uboot.dtsi index c73d71e8c7c1..d77ae0fa930e 100644 --- a/arch/arm/dts/qcs404-evb-uboot.dtsi +++ b/arch/arm/dts/qcs404-evb-uboot.dtsi @@ -16,10 +16,6 @@ clock-controller@1800000 { u-boot,dm-pre-reloc; }; - - serial@78b1000 { - u-boot,dm-pre-reloc; - }; }; }; diff --git a/drivers/serial/serial_msm.c b/drivers/serial/serial_msm.c index 9c370cac323f..59a2cf27aaf1 100644 --- a/drivers/serial/serial_msm.c +++ b/drivers/serial/serial_msm.c @@ -251,4 +251,5 @@ U_BOOT_DRIVER(serial_msm) = { .priv_auto = sizeof(struct msm_serial_data), .probe = msm_serial_probe, .ops = &msm_serial_ops, + .flags = DM_FLAG_PRE_RELOC, }; From patchwork Mon Mar 27 10:45:03 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Konrad Dybcio X-Patchwork-Id: 667394 Delivered-To: patch@linaro.org Received: by 2002:a5d:4d08:0:0:0:0:0 with SMTP id z8csp1029762wrt; Mon, 27 Mar 2023 03:47:42 -0700 (PDT) X-Google-Smtp-Source: AK7set+rU2+BfU+e6nECOfqdYnQyBKIIkKHYniQQyGFbzSFSUVH3U2As86Jf0sbxEoefUHNSwq+2 X-Received: by 2002:a05:6a20:65a9:b0:da:a6ef:5344 with SMTP id p41-20020a056a2065a900b000daa6ef5344mr9931027pzh.21.1679914061913; Mon, 27 Mar 2023 03:47:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1679914061; cv=none; d=google.com; s=arc-20160816; b=fVwbpVC/FaRvBoFTWIrg0ACTBUZYGfWyK9Y0ZxgrV4Urr8io7Lmi4hT59dDnsc/qDR muUQYQevohwOBu+WYnXqvrcmmbuLcEI/T6RqkrDSQw3vy4rJqagIzlubeCRcQubEl33V EiqJTS3awlCbRXibC+pqLWjtMdBYa1tGm3FPuTIkJfDPVezPOe81fPFIYjxw2uHjA6D7 7P/QO7JehrP5QZH1Cdm8jd/MkRhP/fZMdvzeEGZ58PNTmz4im4R2C9kjj14hJ6l1nzTT lESf5WGfO43cN2dzf5v+O9va/jGVX9kJeSRJR9nL2n5pQ+SrUI5g/Qpq1Gto3NQUw/oC 2SNg== 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=UY8UIUt8uxJZPV6DkpYBNagOjdskPf6dNTPwmhzDaSw=; b=H+IQ+kLM65gh6ddTQMlRTX7DCo4MtYiaqsMXgCfCkPtRygLUAG0t42uE9Il3yGtDze iwy0oOrRvh8YDS2hyebNx40NVzWEokUZ421Vb4yfoMRWwGW5BMol6FRd9B6HpKR9+XbG h6GxD6T6+ht7GE32IG/dQ2G78pvisk/PhVoXh/tHTMtTg++mWM3RT19M6SwAUyIEAQTd gQ5khKL229kGij+BBVtcMeWBA2KyoEpmRMxYyluVR14aJPSYr8Z2rS78A5AU8/0HRcoj BesDSdnZh1qXlLIrisOhXZ12r7k8QPcvhIGVoa5XhlksxxgmbCzsL5sq1CEN3N0Zy+vR uOUQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=FmGnRnls; 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 n11-20020a63e04b000000b0050beec2c6cdsi26439831pgj.238.2023.03.27.03.47.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 27 Mar 2023 03:47:41 -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=FmGnRnls; 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 81AE9860B5; Mon, 27 Mar 2023 12:46:44 +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="FmGnRnls"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 8082085D3A; Mon, 27 Mar 2023 12:45:29 +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-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 57A5B85E88 for ; Mon, 27 Mar 2023 12:45:19 +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-lj1-x234.google.com with SMTP id a21so1288758ljq.10 for ; Mon, 27 Mar 2023 03:45:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1679913918; 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=UY8UIUt8uxJZPV6DkpYBNagOjdskPf6dNTPwmhzDaSw=; b=FmGnRnlsxYalyRyho6eu8QISheQRYuKsn5xjukMriUuPZ+5CQo5uavICr2K7KiuMLb vabUJIbNZua5OfMfZwc2+qBrpfxxlFe2zJsO9dTxE07NLHfUfnAAiRd8HykRfSpFlIQs vl75SZ398rHmfSx+SUsrT4zDzOi6ne1MPG+mkShN3W8/fbIetvw2sE+X0wojQlmdyHPu i86JUBLCP0cxw2kNW8bdQgWABL7I9t6IZj9m6Ad+gKXglKj9AuMCcDA/TSvE4J4dB5HV 3uojpy25K1HsY4JvzS8trfy5F+dIrcNX6+iMNcHXNCDn7R6vQ8zcwT+2FgeOljaemSMJ 4IBg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1679913918; 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=UY8UIUt8uxJZPV6DkpYBNagOjdskPf6dNTPwmhzDaSw=; b=UOYM2i5PhidLeUCrFvbii0lnzDiQrKHApc6n5JPM8iN4cX2gV18FYIMQy3PIozkgU3 +cjLZEhf8e4rUybMVhuRU8TDdIgAGsgWBQ35adxU2T8Jp/+3HRvqMlzHDoMCb2SyuSO8 thzdH0iMo2jedPuGY8JbuEPjSF4gTnLkyroYlkC5fcFXiLrMWidcpJjE7CDfCJLLsUnh tjh9xZrP6RNevY0Z+kZNTjsQixzxZ8aDZuTvFDXcNjowryn6jLPv5fiZQiwmgJweZZai KqeXo74Iv+TA+eqyKmfDTjCDr0Jk58aGGmLSt1dliQqNKMKRofn5tzEUgv2TvQDOd+2j yl3w== X-Gm-Message-State: AAQBX9ehtK+C7o96svuOwS3ytQRmpaJDwqkr/ilszlA33CSX2JQ+6fmy Q+TryA3kqrPKgoiNenc9steTjQ== X-Received: by 2002:a2e:9254:0:b0:2a2:3bd6:bc83 with SMTP id v20-20020a2e9254000000b002a23bd6bc83mr3321002ljg.23.1679913918013; Mon, 27 Mar 2023 03:45:18 -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.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 27 Mar 2023 03:45:17 -0700 (PDT) From: Konrad Dybcio Date: Mon, 27 Mar 2023 12:45:03 +0200 Subject: [PATCH v2 5/9] arch: snapdragon: clock: Always bind before relocation MIME-Version: 1.0 Message-Id: <20230327-qc_cleanups-v2-5-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=3342; i=konrad.dybcio@linaro.org; s=20230215; h=from:subject:message-id; bh=JzKEaC4thaqVL7SgB5E59e+BGZmU4aZbdjbPHUb1NAE=; b=y+E6w1kTot9csywmCHWfb4dYflo7NY6X6ZB2ME4hjgwrqNBc2nvIALBCT6jrqIiqnknLr9dW+dtR MXMjFQbKA5b7LEIqwcqlqBRiI0Lagtx6QJcZ2Zc44EBmy7o6PLs8 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 In preparation for supporting upstream Linux device trees on Qualcomm platforms, make this the default behavior. Signed-off-by: Konrad Dybcio --- arch/arm/dts/dragonboard410c-uboot.dtsi | 4 ---- arch/arm/dts/dragonboard820c-uboot.dtsi | 4 ---- arch/arm/dts/dragonboard845c-uboot.dtsi | 4 ---- arch/arm/dts/qcom-ipq4019.dtsi | 1 - arch/arm/dts/qcs404-evb-uboot.dtsi | 4 ---- arch/arm/dts/starqltechn-uboot.dtsi | 3 --- arch/arm/mach-snapdragon/clock-snapdragon.c | 1 + 7 files changed, 1 insertion(+), 20 deletions(-) diff --git a/arch/arm/dts/dragonboard410c-uboot.dtsi b/arch/arm/dts/dragonboard410c-uboot.dtsi index 1d7b31d7e267..1a7c25c704d4 100644 --- a/arch/arm/dts/dragonboard410c-uboot.dtsi +++ b/arch/arm/dts/dragonboard410c-uboot.dtsi @@ -21,10 +21,6 @@ u-boot,dm-pre-reloc; }; }; - - qcom,gcc@1800000 { - u-boot,dm-pre-reloc; - }; }; }; diff --git a/arch/arm/dts/dragonboard820c-uboot.dtsi b/arch/arm/dts/dragonboard820c-uboot.dtsi index 5db30b5fb076..7daee3789f96 100644 --- a/arch/arm/dts/dragonboard820c-uboot.dtsi +++ b/arch/arm/dts/dragonboard820c-uboot.dtsi @@ -20,10 +20,6 @@ u-boot,dm-pre-reloc; }; }; - - clock-controller@300000 { - u-boot,dm-pre-reloc; - }; }; }; diff --git a/arch/arm/dts/dragonboard845c-uboot.dtsi b/arch/arm/dts/dragonboard845c-uboot.dtsi index 8b5a7ee573b3..60adcca00b5c 100644 --- a/arch/arm/dts/dragonboard845c-uboot.dtsi +++ b/arch/arm/dts/dragonboard845c-uboot.dtsi @@ -15,10 +15,6 @@ u-boot,dm-pre-reloc; }; - clock-controller@100000 { - u-boot,dm-pre-reloc; - }; - pinctrl_north@3900000 { u-boot,dm-pre-reloc; }; diff --git a/arch/arm/dts/qcom-ipq4019.dtsi b/arch/arm/dts/qcom-ipq4019.dtsi index 22a4e059f057..2fcab5412147 100644 --- a/arch/arm/dts/qcom-ipq4019.dtsi +++ b/arch/arm/dts/qcom-ipq4019.dtsi @@ -56,7 +56,6 @@ reg = <0x1800000 0x60000>; #clock-cells = <1>; #reset-cells = <1>; - u-boot,dm-pre-reloc; }; rng: rng@22000 { diff --git a/arch/arm/dts/qcs404-evb-uboot.dtsi b/arch/arm/dts/qcs404-evb-uboot.dtsi index d77ae0fa930e..afa711ad979c 100644 --- a/arch/arm/dts/qcs404-evb-uboot.dtsi +++ b/arch/arm/dts/qcs404-evb-uboot.dtsi @@ -12,10 +12,6 @@ pinctrl_north@1300000 { u-boot,dm-pre-reloc; }; - - clock-controller@1800000 { - u-boot,dm-pre-reloc; - }; }; }; diff --git a/arch/arm/dts/starqltechn-uboot.dtsi b/arch/arm/dts/starqltechn-uboot.dtsi index 8d5d09c3a509..8e3cf3829421 100644 --- a/arch/arm/dts/starqltechn-uboot.dtsi +++ b/arch/arm/dts/starqltechn-uboot.dtsi @@ -16,9 +16,6 @@ serial@a84000 { u-boot,dm-pre-reloc; }; - clock-controller@100000 { - u-boot,dm-pre-reloc; - }; gpio_north@3900000 { u-boot,dm-pre-reloc; }; diff --git a/arch/arm/mach-snapdragon/clock-snapdragon.c b/arch/arm/mach-snapdragon/clock-snapdragon.c index 0ac45dce9a92..d1af5d1fec7d 100644 --- a/arch/arm/mach-snapdragon/clock-snapdragon.c +++ b/arch/arm/mach-snapdragon/clock-snapdragon.c @@ -178,4 +178,5 @@ U_BOOT_DRIVER(clk_msm) = { .ops = &msm_clk_ops, .priv_auto = sizeof(struct msm_clk_priv), .probe = msm_clk_probe, + .flags = DM_FLAG_PRE_RELOC, }; From patchwork Mon Mar 27 10:45:04 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Konrad Dybcio X-Patchwork-Id: 667392 Delivered-To: patch@linaro.org Received: by 2002:a5d:4d08:0:0:0:0:0 with SMTP id z8csp1029626wrt; Mon, 27 Mar 2023 03:47:16 -0700 (PDT) X-Google-Smtp-Source: AKy350bSbWAqGXfFUjAMfTkG5PAo/KeujS172EOR/pj53uYP7vgxMfQqxAoMoC7Jc7PYYcWbllfJ X-Received: by 2002:a17:90a:8042:b0:23a:6d16:8e36 with SMTP id e2-20020a17090a804200b0023a6d168e36mr17027214pjw.12.1679914036240; Mon, 27 Mar 2023 03:47:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1679914036; cv=none; d=google.com; s=arc-20160816; b=lfVnAA0X2oKoOUno81fHs014hNp4YahOyDr+aRTE9ryKtCybFrD+p/FCHRf5OgqxaZ SFG2TggTyx0DA8qb8h2pnuwxHA7RwpEOYPjlTFRi93Y1OhX8RKxFygE4vXEIlp1dnYUb 9e6bYwY7IX/9qz+9DV2EPFyn40zMKhhlUS07qY8QUag3WRy1zAcTonUNl0Hqt/pvEVcv 8kuCLKA4By77xav986wtEqO2i82ihPOUq9vieOwF1EWg/Y8FRyM6pL4dqDUqZJM8Ftq9 j58w/fNbMr0pELN0Q01VgzcPjMTaOf9ROdiAqOLKuUlOuyFi0opzpeWpT9ItPMkpccKZ 9nQg== 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=T58QMO9IC/AK/QFILm4a0iDtiRwVl6ovpDa4bTyguMQ=; b=NJBY7S+xbLhtnFq/rTSBCIuX1WbHrC0mTBl99K/sVn+EeGFyrNAtXKsZfkMq6bRWiH WCi23neVboFcmYv/LN1paOHF+LHCiz83JQb6UPiiWR4Dm2qoNIEPVuY1Ce16GV8ay79K /0b+mtLf2jytMKT4rplzYVwfwkgX7pIZ4iRvwPRAlqtJRSVIzDLmKwoaykofSjxXx7zZ FCCHWJcCs6xcNMbAIaFyZKXlFB9of9wgp3aolorwVGRQFsatVNhM6foOj1nbl1vBLmDg P5G7LCsVxr3591C8DnWGTXtQsPbh9jKfu3NPsDm+x2QSfVN5HVPETm6GYkn6naANyDfY 2R2A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=ok1i5pJ6; 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 lg15-20020a170902fb8f00b0019c3ce49a13si23132156plb.372.2023.03.27.03.47.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 27 Mar 2023 03:47:16 -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=ok1i5pJ6; 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 1DBE48609D; Mon, 27 Mar 2023 12:46:37 +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="ok1i5pJ6"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 1E96C85E88; Mon, 27 Mar 2023 12:45:30 +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-lj1-x22b.google.com (mail-lj1-x22b.google.com [IPv6:2a00:1450:4864:20::22b]) (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 127EF86049 for ; Mon, 27 Mar 2023 12:45:20 +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-lj1-x22b.google.com with SMTP id o20so5543391ljp.3 for ; Mon, 27 Mar 2023 03:45:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1679913919; 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=T58QMO9IC/AK/QFILm4a0iDtiRwVl6ovpDa4bTyguMQ=; b=ok1i5pJ6dsqrIBWRX9QzUCQ7Q0dE8UIBaHgJ5cRoyoGHjTPR0R2lXoZEKjoUl8zvsB 0r8QH6NmfHvg2rC8cYJ+6l2X9pHpxssEoJ3x9n6HidfaTxO3Nn14bGkTQyPkpeNp/4IN rjSRr727TdqnPMJVMssAeaQZ90fKfq9Vz5t7u2PTlPD2/wmbGPrNwFQxVqQ3RFzUZNxt mElFbc4Z1UvBq6aSGl39aC0sbg/80SfrWMvYNYaOG+RCxQbMqMP7wJFmoeDHsYrVUs6p eWrIBe1bZ6GzZFBXqovXrYg/IgwrgsCIT/p1ImS47s62Jolh3pqycN77vooM9HcjlnrE TwHg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1679913919; 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=T58QMO9IC/AK/QFILm4a0iDtiRwVl6ovpDa4bTyguMQ=; b=nzuOWZxQQwF2iMKGvbHMO5KnGtMo+q0wCZkxHPg3XZ+QFOI/qSqzpZKpGre/zlH9w8 gO5pbXlV8HvUxxExAjHPgl/tBJHSjMvjLRtljT4mZHD8cc6gY7/nH/2DhXtbaINLaJHe ZZRNQ1qxYNPtQhat3Ix2PbR2zhVZHlDRCjJs6Li+ErVgyWqL3CO/ke1RR+hFKZaz9S8Z jvKCvfMpV9DGnvw2wwP59JiFppIvFM7+wyQmr35+diZt7bWc5pXs2B8v3oBXAAweCa5A VIoXKEAVLOagW5iRs3J7MpF9mr73Ynafw2Q3p7fiIkr9h+Nc0SsZEx6HDasK6aA/hyF/ j0PA== X-Gm-Message-State: AAQBX9eOk47EB6McODdLrHd/sFZgSVpsnvqkAr5Ps7kb/uyfZxpTcgYi i/inla98MbacA4NPhNnlxvnjzg== X-Received: by 2002:a2e:b0c6:0:b0:2a2:ada:d70a with SMTP id g6-20020a2eb0c6000000b002a20adad70amr3636306ljl.7.1679913919143; Mon, 27 Mar 2023 03:45:19 -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.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 27 Mar 2023 03:45:18 -0700 (PDT) From: Konrad Dybcio Date: Mon, 27 Mar 2023 12:45:04 +0200 Subject: [PATCH v2 6/9] arm: snapdragon: pinctrl: Always bind before relocation MIME-Version: 1.0 Message-Id: <20230327-qc_cleanups-v2-6-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=3421; i=konrad.dybcio@linaro.org; s=20230215; h=from:subject:message-id; bh=Us8o8aupoUZ7yGvs2h0Fqu8dmqq40JRkL3uI8nTJ/1E=; b=PDp5qiWWzeCBAyEDxnifQwiUjXOK901wSFOLZpfOcHnBLR94ZV/upnORproYQt6Ato7QA+c+7gfH zkBwIZUuBjahSayttKqbKEfDpLwg5PvaYXuSVi8djrOuwQCjBoOt 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 In preparation for supporting upstream Linux device trees on Qualcomm platforms, make this the default behavior. Signed-off-by: Konrad Dybcio --- arch/arm/dts/dragonboard410c-uboot.dtsi | 8 -------- arch/arm/dts/dragonboard820c-uboot.dtsi | 8 -------- arch/arm/dts/dragonboard845c-uboot.dtsi | 4 ---- arch/arm/dts/qcom-ipq4019.dtsi | 1 - arch/arm/dts/qcs404-evb-uboot.dtsi | 4 ---- arch/arm/dts/starqltechn-uboot.dtsi | 6 ------ arch/arm/mach-snapdragon/pinctrl-snapdragon.c | 1 + 7 files changed, 1 insertion(+), 31 deletions(-) diff --git a/arch/arm/dts/dragonboard410c-uboot.dtsi b/arch/arm/dts/dragonboard410c-uboot.dtsi index 1a7c25c704d4..ca00b49bc844 100644 --- a/arch/arm/dts/dragonboard410c-uboot.dtsi +++ b/arch/arm/dts/dragonboard410c-uboot.dtsi @@ -13,14 +13,6 @@ soc { u-boot,dm-pre-reloc; - - pinctrl@1000000 { - u-boot,dm-pre-reloc; - - uart { - u-boot,dm-pre-reloc; - }; - }; }; }; diff --git a/arch/arm/dts/dragonboard820c-uboot.dtsi b/arch/arm/dts/dragonboard820c-uboot.dtsi index 7daee3789f96..0670a9478290 100644 --- a/arch/arm/dts/dragonboard820c-uboot.dtsi +++ b/arch/arm/dts/dragonboard820c-uboot.dtsi @@ -12,14 +12,6 @@ soc { u-boot,dm-pre-reloc; - - pinctrl@1010000 { - u-boot,dm-pre-reloc; - - uart { - u-boot,dm-pre-reloc; - }; - }; }; }; diff --git a/arch/arm/dts/dragonboard845c-uboot.dtsi b/arch/arm/dts/dragonboard845c-uboot.dtsi index 60adcca00b5c..9071eb9d8d55 100644 --- a/arch/arm/dts/dragonboard845c-uboot.dtsi +++ b/arch/arm/dts/dragonboard845c-uboot.dtsi @@ -14,10 +14,6 @@ serial@a84000 { u-boot,dm-pre-reloc; }; - - pinctrl_north@3900000 { - u-boot,dm-pre-reloc; - }; }; }; diff --git a/arch/arm/dts/qcom-ipq4019.dtsi b/arch/arm/dts/qcom-ipq4019.dtsi index 2fcab5412147..a92090057b37 100644 --- a/arch/arm/dts/qcom-ipq4019.dtsi +++ b/arch/arm/dts/qcom-ipq4019.dtsi @@ -80,7 +80,6 @@ gpio-count = <100>; gpio-bank-name="soc"; #gpio-cells = <2>; - u-boot,dm-pre-reloc; }; blsp1_uart1: serial@78af000 { diff --git a/arch/arm/dts/qcs404-evb-uboot.dtsi b/arch/arm/dts/qcs404-evb-uboot.dtsi index afa711ad979c..80d7d4c25856 100644 --- a/arch/arm/dts/qcs404-evb-uboot.dtsi +++ b/arch/arm/dts/qcs404-evb-uboot.dtsi @@ -8,10 +8,6 @@ / { soc { u-boot,dm-pre-reloc; - - pinctrl_north@1300000 { - u-boot,dm-pre-reloc; - }; }; }; diff --git a/arch/arm/dts/starqltechn-uboot.dtsi b/arch/arm/dts/starqltechn-uboot.dtsi index 8e3cf3829421..0e82fe45ff0f 100644 --- a/arch/arm/dts/starqltechn-uboot.dtsi +++ b/arch/arm/dts/starqltechn-uboot.dtsi @@ -16,12 +16,6 @@ serial@a84000 { u-boot,dm-pre-reloc; }; - gpio_north@3900000 { - u-boot,dm-pre-reloc; - }; - pinctrl_north@3900000 { - u-boot,dm-pre-reloc; - }; }; }; diff --git a/arch/arm/mach-snapdragon/pinctrl-snapdragon.c b/arch/arm/mach-snapdragon/pinctrl-snapdragon.c index 826dc5148661..9f261d70e4d3 100644 --- a/arch/arm/mach-snapdragon/pinctrl-snapdragon.c +++ b/arch/arm/mach-snapdragon/pinctrl-snapdragon.c @@ -163,4 +163,5 @@ U_BOOT_DRIVER(pinctrl_snapdraon) = { .ops = &msm_pinctrl_ops, .probe = msm_pinctrl_probe, .bind = msm_pinctrl_bind, + .flags = DM_FLAG_PRE_RELOC, }; From patchwork Mon Mar 27 10:45:05 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Konrad Dybcio X-Patchwork-Id: 667393 Delivered-To: patch@linaro.org Received: by 2002:a5d:4d08:0:0:0:0:0 with SMTP id z8csp1029703wrt; Mon, 27 Mar 2023 03:47:29 -0700 (PDT) X-Google-Smtp-Source: AKy350bja6dtHt8v+gRRNHVn7B4yzUmcygBEAuX1COPwT3IJpbD3LdDAF/u2DuCxO4sKNDDmWGAk X-Received: by 2002:a17:903:2347:b0:1a1:e14f:3750 with SMTP id c7-20020a170903234700b001a1e14f3750mr13612455plh.1.1679914048921; Mon, 27 Mar 2023 03:47:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1679914048; cv=none; d=google.com; s=arc-20160816; b=rAVic5i73Los0xuplQdzoJmx2DO01HtwklgykJezN2Nm01doR4CoOkmsysxLHKYfa2 A85lzGmAk5cqKBTWkxPatucwocEyrgTHpRAGomrhE+qpYIbU4zdtcSwwqn7QWOMsr8L1 DKi04SQInHgBZAQbeSqjwUj0mZnrQQFombflOyWnMjv+qEXgle/iCz27MQj2MSpwSPP2 m7p9Qt29vSeU4WwbnlGdIuqWNwmVog7uAemM8P7BskMK5hZiNGxcnQFo7qGa9lhWmlxs NaR9cVzxdXMAoxlmj8BhL1oISDZ8b6w4cmNVMsRbqXcfTub/iUH9+qjdN0ivK3IIn+KG oDlQ== 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=rzf2+Jr6Rl/YmMhM5p1QPkVGbkvJyk6V/k9yUzitsG4=; b=VLiPQ+wnFU3nnXjpEpQdhanY7/eCKchb+zP98xOySBkmfReKZp+On/45ZMFfvCuu6Z n0NBJSPUWAayLXib2juHGUqQAQcalx1gBuZzGpFlTzxmf4LQHGcLpC71YX7c6mKgGll5 mMPRULH0jB6Q7l82cMGe58Ds1+UsavFFBfYv6W4zYwtVRKPgQpE6JmLVLbyJOq8zGAHm HIgLwjTiGwFHT4RLv5j2carjNSbjn2mm6QBzk4CzsMsD1A4Zu4KNZrXWUNwxdIE0/Zm1 SIV7rApGqMvN79mqF4ul55wQ3xFSmkxFUOFMjwJ/y9aEc7KtdQ2PKICazHjAKEkT3txr fXRQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=gtSl8GjP; 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 iz21-20020a170902ef9500b0019316d9e4c8si27162354plb.373.2023.03.27.03.47.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 27 Mar 2023 03:47:28 -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=gtSl8GjP; 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 CF91C860BC; Mon, 27 Mar 2023 12:46:40 +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="gtSl8GjP"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 95BB586049; Mon, 27 Mar 2023 12:45:31 +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-x132.google.com (mail-lf1-x132.google.com [IPv6:2a00:1450:4864:20::132]) (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 6B5E386095 for ; Mon, 27 Mar 2023 12:45: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=konrad.dybcio@linaro.org Received: by mail-lf1-x132.google.com with SMTP id c29so10803390lfv.3 for ; Mon, 27 Mar 2023 03:45:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1679913920; 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=rzf2+Jr6Rl/YmMhM5p1QPkVGbkvJyk6V/k9yUzitsG4=; b=gtSl8GjPnxBppa9gGuNRMIgWIBgG6bKUe743CU+SUZ7r00PE/Y8pZmIlyVBWp6us6w klYob6n5LGFpmcyqItLluEQ8D3C9qjQRUVK5auofYrBZMGJoy4MOICyVcO2girXlebke 9B82mHp1fLvYfTQ1j6EYy2S6w3UAM1gLsGceW3Jkq5qEMbU4okY06q5r8+pWh9Qnv+Jq OwL7FVCaZvi1XmNBUcR1QfIcKfSGQ5oQaQgUkiHz8LnJU+nptdaq7YzZMQ9AAa1ojsY1 CEpB+kGebmCTc/aDHpg5woHTk5XAgEuhdNj4jlAIEPUm05C1+z62l/UWqNcNredDdEVO XxGQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1679913920; 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=rzf2+Jr6Rl/YmMhM5p1QPkVGbkvJyk6V/k9yUzitsG4=; b=pa82ixUWfr7jOidihc8YWP0DXSrcjMO3XtfTBvy+NWlpqH6pv1Ni3G7QIMuC2dqUtI 7nA0Xxm5kaK3z9R9dKFB0/qr3vJxKNGm1eFIxOPUyejWlqbcCaksQZnMfogE+qSP5plA vXf4Vf+MPAoVY0NVOoU9l6oa5wCfO4Qkimvuv0D1treYRq+juOdaZG5HVq3HmFTIdhpu Ozif6KC+eeRDxm2WlLiGN3LG9tssCUZlzyZjn38TFwKgrZprayR/xwR/n3PvezqI/2oo wUyhp4kkQZDIuV5ura+9QldwSPXAS9bqMclZLFz59EeZlc02NaPHyYAIEvznGjmTR32h jiqg== X-Gm-Message-State: AAQBX9d3nDoCvTTdNVEaWmrfyuUB7wQrcTgiTbpzcInI7ANW2tPgGRGa Om6DXUKgmq690wMXPyKnWxA3OQ== X-Received: by 2002:ac2:4287:0:b0:4ea:c730:aabe with SMTP id m7-20020ac24287000000b004eac730aabemr2761526lfh.20.1679913920255; Mon, 27 Mar 2023 03:45:20 -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.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 27 Mar 2023 03:45:19 -0700 (PDT) From: Konrad Dybcio Date: Mon, 27 Mar 2023 12:45:05 +0200 Subject: [PATCH v2 7/9] serial: msm_geni: Always bind before relocation MIME-Version: 1.0 Message-Id: <20230327-qc_cleanups-v2-7-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=1535; i=konrad.dybcio@linaro.org; s=20230215; h=from:subject:message-id; bh=DmKzDRnmn4Oo3fA+HvV67VKF+kC54vHKlHt01JybGRQ=; b=IzumGVpQ3qi+omRXagYW8+cClICxrNiscK0zh08bqmMtOyf1o54sGoVAsil8P0YfK8qV+EZ1jIuG VqaraGjZCKBvzTiJZwKHFmSMsR+4GASvSfxJ1tNt4yzRve+IPUqg 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 In preparation for supporting upstream Linux device trees on Qualcomm platforms, make this the default behavior. Signed-off-by: Konrad Dybcio --- arch/arm/dts/dragonboard845c-uboot.dtsi | 4 ---- arch/arm/dts/starqltechn-uboot.dtsi | 3 --- drivers/serial/serial_msm_geni.c | 1 + 3 files changed, 1 insertion(+), 7 deletions(-) diff --git a/arch/arm/dts/dragonboard845c-uboot.dtsi b/arch/arm/dts/dragonboard845c-uboot.dtsi index 9071eb9d8d55..d48df2b90b4a 100644 --- a/arch/arm/dts/dragonboard845c-uboot.dtsi +++ b/arch/arm/dts/dragonboard845c-uboot.dtsi @@ -10,10 +10,6 @@ { soc { u-boot,dm-pre-reloc; - - serial@a84000 { - u-boot,dm-pre-reloc; - }; }; }; diff --git a/arch/arm/dts/starqltechn-uboot.dtsi b/arch/arm/dts/starqltechn-uboot.dtsi index 0e82fe45ff0f..ee726e0283bf 100644 --- a/arch/arm/dts/starqltechn-uboot.dtsi +++ b/arch/arm/dts/starqltechn-uboot.dtsi @@ -13,9 +13,6 @@ }; soc { u-boot,dm-pre-reloc; - serial@a84000 { - u-boot,dm-pre-reloc; - }; }; }; diff --git a/drivers/serial/serial_msm_geni.c b/drivers/serial/serial_msm_geni.c index 6c9371c4e69d..08906ad56918 100644 --- a/drivers/serial/serial_msm_geni.c +++ b/drivers/serial/serial_msm_geni.c @@ -566,6 +566,7 @@ U_BOOT_DRIVER(serial_msm_geni) = { .priv_auto = sizeof(struct msm_serial_data), .probe = msm_serial_probe, .ops = &msm_serial_ops, + .flags = DM_FLAG_PRE_RELOC, }; #ifdef CONFIG_DEBUG_UART_MSM_GENI From patchwork Mon Mar 27 10:45:06 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Konrad Dybcio X-Patchwork-Id: 667389 Delivered-To: patch@linaro.org Received: by 2002:a5d:4d08:0:0:0:0:0 with SMTP id z8csp1029374wrt; Mon, 27 Mar 2023 03:46:32 -0700 (PDT) X-Google-Smtp-Source: AKy350YWs3S+Q43rXOnbSwXhaaThebaf+gvS3zEPjP9TypwjsP/uiao8vAHclAigVtG5YBaxrOC7 X-Received: by 2002:a17:902:d4cb:b0:19b:dbf7:f9ca with SMTP id o11-20020a170902d4cb00b0019bdbf7f9camr13906433plg.0.1679913992467; Mon, 27 Mar 2023 03:46:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1679913992; cv=none; d=google.com; s=arc-20160816; b=AID+Io7TVd3e1ubSr08Xg/8T/TNzAm7mXfkpdEeGSmTe6J6xxwTIjx/g14NhYe1yI/ x0R1KWn6tWjIjFuR4cbQy/x3geaKatfFiPOSX95BrZDICz1uT8rKdK4WlNlSNPPif90T Ai9lCeqgzE6A3X0wT9RWSEb0p8ulDwCAGDdKCOoiWEuGVCILAvJZLKfH6c5xnoUxYrE7 lSXMNPj3eUdDw136KVL2yNqc4+NgI3EPVVnTBb4IWgBo1CbQ5ZTJZeNwEiF/nzq4IuWB LrSfVSiJubiWfLi2JOrcnpyjbDnSMUq1mn64n2kqBXh4LvzsX0Cm+XALiOQrH5NpGJqZ 0YpA== 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=Gh7zg2gaxzyH4G2/10oKv6tbVvR5qYJ9Jwx8RtZ9uIQ=; b=Xfixfh4S+r49yOWktQs8DvNprXSCtELLiqqEIjiX9Jucm21fgBlWJZOIH0v7CFNx/w 8ZnQHlI4cfi7um419vJnSy7DH3bTOnXl5CMlbxGveLFJfNPm2/JOMsOAq5nVhaLpT1gn dqr2sgxWzvEyEM1EZ6fjBAwmDXlkap4Pc/0VZ8yBeMnL2UTvge/6aF0+ZD9SkO2+Wocs Yh4TY2x/lkRxvzmx6rOnd5Ib6eINqS2Ppf7PLIFwJyWFoKmDDModYHLq498gyf0E/A8N 0K0xD0JSKE9Nuk/NDTEi8zpGlODijBrVNoj9N+C+46ezOTp1BZWS5v4laTaaQhkBTvoy 2prQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=NSEAwWaa; 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 d2-20020a170902b70200b0019f28eff6f9si26346919pls.502.2023.03.27.03.46.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 27 Mar 2023 03:46:32 -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=NSEAwWaa; 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 925AE86090; Mon, 27 Mar 2023 12:46:19 +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="NSEAwWaa"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id EA2BC86092; Mon, 27 Mar 2023 12:45:32 +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-lj1-x236.google.com (mail-lj1-x236.google.com [IPv6:2a00:1450:4864:20::236]) (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 8EB138609C for ; Mon, 27 Mar 2023 12:45: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=konrad.dybcio@linaro.org Received: by mail-lj1-x236.google.com with SMTP id by8so8433523ljb.12 for ; Mon, 27 Mar 2023 03:45:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1679913921; 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=Gh7zg2gaxzyH4G2/10oKv6tbVvR5qYJ9Jwx8RtZ9uIQ=; b=NSEAwWaacpGQDZWjdW6hUOrD2CShAhYKyPwjekx4CpUOREZthBFbob5sBY/dMXyBe1 K0LH+4I/FGGNEXM/66b4EwevNJH0mh6J0kMJ+jd3hADUTmBwgVSQZu2SlTsAmhRn8Mf5 ZNqfSnjeQ09VxtseEc0Gb3UtOedufWHQq4uEsbU0q5pw1Lcvl2NfjfU6H+MMRm7IWqJ3 Qit2BZGN4+sgw8rwun6Mg9grwzkC4rpptOfs7Kix9lgK/RFUcSG7guz1pNltNU99YtXZ hFyIwaqwQjzrMxdef9Cl31t8czNE8q0dtdQq+C4cTL2Yss+OqWW0KtynUKMeUCNJZ53P pclg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1679913921; 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=Gh7zg2gaxzyH4G2/10oKv6tbVvR5qYJ9Jwx8RtZ9uIQ=; b=0T4l9N0+flkI151E8GXF8MjY9z9Nfm0wu7XqQSuatXkO3wdaW/lqlVrMP5KGrzYp7q GaW6tNniBOG56SeukIz1kg2H1rJ/8t/hCT7mRFm0nH/3SLcfQsfX11JJjp1oqVYPt8EE 2izdPyvTHcrl4MjnismEtTU8RI8c6UQTuEcvKjJ5qwJSE6N4mfv6Gwa8eSlWdw89eQZ9 9H9Kws3FYmzm4oBL/LlDwBmzCkAABvQFAn9R++tebed0xCykrP3jtje4ZpXP+HFcMSdO KRVOBRviMv1vRLYxlTZ09zxTmE+Dncoi4ignn5B4Nz4uUR/cyF+6nS+1E73v0z+AveEw 7Jqw== X-Gm-Message-State: AAQBX9cDhWQTh/Dk4MAItPcQKzoQz9PoSNng+a8v2nXLXBkmFtAWWp98 tZ2N+gpmIiGtOD+zQW/DVtCf/A== X-Received: by 2002:a2e:a178:0:b0:2a2:47a8:728b with SMTP id u24-20020a2ea178000000b002a247a8728bmr3790631ljl.13.1679913921325; Mon, 27 Mar 2023 03:45:21 -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.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 27 Mar 2023 03:45:21 -0700 (PDT) From: Konrad Dybcio Date: Mon, 27 Mar 2023 12:45:06 +0200 Subject: [PATCH v2 8/9] arm: dts: qcom*: Don't specify u-boot,dm-pre-reloc redundantly MIME-Version: 1.0 Message-Id: <20230327-qc_cleanups-v2-8-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=2428; i=konrad.dybcio@linaro.org; s=20230215; h=from:subject:message-id; bh=R1wnQZ7IISO2sfx/o+/ErHMClUP6FuM0M5P6evx28g0=; b=W2faqITswUYAgR9pUzylnu1p1k0LwzzjDXHQc1iqaOrhdjyILeJp9/9dMrii93c53sPXwVWDw8Mf efAiqOUoBuMVaJMinTPPPxvHAGekLXrKfda5TXCIn4HIKB+0Jy+N 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 The simple-bus driver assigns the pre-reloc flag, which means it's not necessary to do it again in the device tree. Clean it up. Signed-off-by: Konrad Dybcio --- arch/arm/dts/dragonboard410c-uboot.dtsi | 4 ---- arch/arm/dts/dragonboard820c-uboot.dtsi | 4 ---- arch/arm/dts/dragonboard845c-uboot.dtsi | 7 ------- arch/arm/dts/qcs404-evb-uboot.dtsi | 6 ------ arch/arm/dts/starqltechn-uboot.dtsi | 3 --- 5 files changed, 24 deletions(-) diff --git a/arch/arm/dts/dragonboard410c-uboot.dtsi b/arch/arm/dts/dragonboard410c-uboot.dtsi index ca00b49bc844..d4dd0d29c7f8 100644 --- a/arch/arm/dts/dragonboard410c-uboot.dtsi +++ b/arch/arm/dts/dragonboard410c-uboot.dtsi @@ -10,10 +10,6 @@ smem { u-boot,dm-pre-reloc; }; - - soc { - u-boot,dm-pre-reloc; - }; }; diff --git a/arch/arm/dts/dragonboard820c-uboot.dtsi b/arch/arm/dts/dragonboard820c-uboot.dtsi index 0670a9478290..dcdb63ea6e01 100644 --- a/arch/arm/dts/dragonboard820c-uboot.dtsi +++ b/arch/arm/dts/dragonboard820c-uboot.dtsi @@ -9,10 +9,6 @@ smem { u-boot,dm-pre-reloc; }; - - soc { - u-boot,dm-pre-reloc; - }; }; &pm8994_pon { diff --git a/arch/arm/dts/dragonboard845c-uboot.dtsi b/arch/arm/dts/dragonboard845c-uboot.dtsi index d48df2b90b4a..b7e570351587 100644 --- a/arch/arm/dts/dragonboard845c-uboot.dtsi +++ b/arch/arm/dts/dragonboard845c-uboot.dtsi @@ -6,13 +6,6 @@ * (C) Copyright 2022 Sumit Garg */ -/ -{ - soc { - u-boot,dm-pre-reloc; - }; -}; - &pm8998_pon { key_vol_down { gpios = <&pm8998_pon 1 0>; diff --git a/arch/arm/dts/qcs404-evb-uboot.dtsi b/arch/arm/dts/qcs404-evb-uboot.dtsi index 80d7d4c25856..b27a18e03e84 100644 --- a/arch/arm/dts/qcs404-evb-uboot.dtsi +++ b/arch/arm/dts/qcs404-evb-uboot.dtsi @@ -5,12 +5,6 @@ * (C) Copyright 2022 Sumit Garg */ -/ { - soc { - u-boot,dm-pre-reloc; - }; -}; - &pms405_gpios { usb_vbus_boost_pin { gpios = <&pms405_gpios 2 0>; diff --git a/arch/arm/dts/starqltechn-uboot.dtsi b/arch/arm/dts/starqltechn-uboot.dtsi index ee726e0283bf..128eb19d7047 100644 --- a/arch/arm/dts/starqltechn-uboot.dtsi +++ b/arch/arm/dts/starqltechn-uboot.dtsi @@ -11,9 +11,6 @@ framebuffer@9D400000 { u-boot,dm-pre-reloc; }; - soc { - u-boot,dm-pre-reloc; - }; }; &pm8998_pon { From patchwork Mon Mar 27 10:45:07 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Konrad Dybcio X-Patchwork-Id: 667395 Delivered-To: patch@linaro.org Received: by 2002:a5d:4d08:0:0:0:0:0 with SMTP id z8csp1029834wrt; Mon, 27 Mar 2023 03:47:55 -0700 (PDT) X-Google-Smtp-Source: AK7set8wpjo8QWPs91Ow1yWAPQSS1RC4dz/PbbHeZW9WnYlcFwaZvpL7nUFQAqOgPQ4KKYLR+oci X-Received: by 2002:a05:6a20:3396:b0:d9:3937:43a7 with SMTP id f22-20020a056a20339600b000d9393743a7mr9099908pzd.55.1679914074977; Mon, 27 Mar 2023 03:47:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1679914074; cv=none; d=google.com; s=arc-20160816; b=CaQ5/dhcKVeWHJQMtML6Dcr38IxPJL9iFP3ThBbzbpdhjjwrd1b/xRqErhZWdaJq4T TaErkPuxReCSAg58BBkhhn+PjnZKRhifRgUvzSSPLLkOO7OG5uYN4uLwewjzxAUWFmgJ +j9LkwGp+XsZZPdD8jZt55/ESv3IExE4+eeJaVQpBxvarvOwlbZ7sQW3D2AxkBOIyeAV XgrM/b3dm5QQeOvg44qLtLYostV4dVL9sCIKW5xVp5fYyrVNPJ2N1i6DnrRiEvdXInCA sjDfyVoEwbN0HsBp2D6MTiGsiX1PFL2SCb5txhP8X50Wv3JOLcXL/n7ESdNod1GyHALP 5Clg== 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=mmLql0diC28QWAHpPa7Fcb7VnI+99FGaMYo5cHGlw2s=; b=Kqiwidr3nI/pu0W9GlY7+3sFTf+RLOwuvE+4PNXrnYlkv+oUQpRAoCKMF25F0te2kT mPX2PT1ESI+EV/ht63iPUbu9/gO2w6K3CnahQMyqoMSEEW3cOtTHn7La4bLcTx52tnzP G8eMDlaCYmiGFrsIdSTZ+Rby+3vI68BdhM/jsUt+l9gZITA3J89Z0Wsu3az83/huzTat KeH4Hl/Aoj4YneZVtZi2U+ME2PAxTOLMiu9UpsXUnMh95bMKGlfgWkPNFB6TmHnRU/96 RzJI9YZeiFlmmjX4kOVi7QwlNcwV2MBx5rXFuFKwqwyHiKAzor1GHOd7jmrQ9cC4fGfm 2jow== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=UBIIirty; 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 e65-20020a636944000000b0050f7c2037bfsi9563544pgc.605.2023.03.27.03.47.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 27 Mar 2023 03:47: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=UBIIirty; 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 34021860BF; Mon, 27 Mar 2023 12:46:51 +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="UBIIirty"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id C8ACC85C5F; Mon, 27 Mar 2023 12:45:40 +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-x129.google.com (mail-lf1-x129.google.com [IPv6:2a00:1450:4864:20::129]) (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 348AB85D13 for ; Mon, 27 Mar 2023 12:45:23 +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-x129.google.com with SMTP id i13so10772714lfe.9 for ; Mon, 27 Mar 2023 03:45:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1679913922; 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=mmLql0diC28QWAHpPa7Fcb7VnI+99FGaMYo5cHGlw2s=; b=UBIIirtyeGPkOeJS3EEApdl6s+5vcWvuNGHAvxEj/0jwwkr/ER0xc4Zd2ZAKq81gjS II0L/AH0R7qfaRZod8K5b2//56cgcko4+JhHpWhlH+ygEkwinKjsBlkrx7oHXPvvHORc 6KMh570HoB5A6s26eLOGEj1FbQ07/7Jw2ZFrGBYlOeDbKXzvQG096agUdRSs4XM83bSC GW5ELGpOTKDWT60wcj/ryX88qPysWnDA/BYtD3USDcDMPf++CwCyLgoliWUSGco9n2w2 Zp0Y3RqSrDaVMHzrSgLeEkRi4B6hJO0tcFHqwZ0AARMt+akMGYTPetmL+7b4oBiTFcI3 8e9Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1679913922; 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=mmLql0diC28QWAHpPa7Fcb7VnI+99FGaMYo5cHGlw2s=; b=yMClG2au08Rt+sLWhDbpTSjjSeWEjxGIqhGwHmIXxEeqpJVGUUUoNPRPrAiQ9LVRBP qfFtUk7Nkf0n5UrPfGw9oip9zRUdLFF3JSK1MHk/QNaw9ullhCdRSeCNz7ax8yt3DsLz qOC+VZCILsScYgVfrwR0VPQSqrtj4mZWjudyJ+ZOakLnVmyrnc0kwQ/PalZzeycp8Ja7 6eUxOzvYraGIgVS7uotm02zTTi+k8IVsmT4mxRXfiv3DWZVTRYhuHRzhsWQn0cZLFQf0 lLd3M59lErhHkPZlHYLRwdLJHo1fK9kNOhhnBEYN6qldLbkZAwF8YGVL1ZsuaHk+Bsa8 qmng== X-Gm-Message-State: AAQBX9fp15o+8BApnZJ67g1llM1b1TSgeMkeOk+dBQLJbDKGbN6k31hx 4W17/o6gUwT9T+3N0548nWKFVA== X-Received: by 2002:ac2:4358:0:b0:4ea:fafd:e679 with SMTP id o24-20020ac24358000000b004eafafde679mr3829202lfl.36.1679913922515; Mon, 27 Mar 2023 03:45:22 -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.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 27 Mar 2023 03:45:22 -0700 (PDT) From: Konrad Dybcio Date: Mon, 27 Mar 2023 12:45:07 +0200 Subject: [PATCH v2 9/9] arm: Migrate Apple M1 to save_prev_bl_data MIME-Version: 1.0 Message-Id: <20230327-qc_cleanups-v2-9-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=3715; i=konrad.dybcio@linaro.org; s=20230215; h=from:subject:message-id; bh=1YsCuelIjf40GyBsMn5ST4vFAakSp/+W/I83S2e69zs=; b=0/2kfUDPEuz78PKwo9pQpyu/0ZUuvoox+lfAffJzMm0GKygOTLOXO6Y/aO56Mos0p50MyKsBAAjb ul36+FswBI9UuRkZnJoQxSG5CsX1PSRGdSAhyM6lOa0IwSBAx1/B 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 Mark's and Dzmitry's approaches come down to the same thing.. Let's unify them by first removing the static keyword from the common file to allow the variable to be reused, then renaming "reg0" to the more sensible fw_dtb_pointer coming from the Apple file and finally remove the mach-apple implementation of this very thing and enable the common approach in the respective defconfig. Only build-tested. Signed-off-by: Konrad Dybcio --- arch/arm/lib/save_prev_bl_data.c | 14 +++++++------- arch/arm/mach-apple/Makefile | 1 - arch/arm/mach-apple/lowlevel_init.S | 17 ----------------- configs/apple_m1_defconfig | 1 + 4 files changed, 8 insertions(+), 25 deletions(-) diff --git a/arch/arm/lib/save_prev_bl_data.c b/arch/arm/lib/save_prev_bl_data.c index f7b23faf0d66..a127fec1f149 100644 --- a/arch/arm/lib/save_prev_bl_data.c +++ b/arch/arm/lib/save_prev_bl_data.c @@ -15,7 +15,7 @@ #include #include -static ulong reg0 __section(".data"); +ulong fw_dtb_pointer __section(".data"); /** * Save x0 register value, assuming previous bootloader set it to @@ -23,7 +23,7 @@ static ulong reg0 __section(".data"); */ void save_boot_params(ulong r0) { - reg0 = r0; + fw_dtb_pointer = r0; save_boot_params_ret(); } @@ -51,24 +51,24 @@ int save_prev_bl_data(void) int node; u64 initrd_start_prop; - if (!is_addr_accessible((phys_addr_t)reg0)) + if (!is_addr_accessible((phys_addr_t)fw_dtb_pointer)) return -ENODATA; - fdt_blob = (struct fdt_header *)reg0; + fdt_blob = (struct fdt_header *)fw_dtb_pointer; if (!fdt_valid(&fdt_blob)) { - pr_warn("%s: address 0x%lx is not a valid fdt\n", __func__, reg0); + pr_warn("%s: address 0x%lx is not a valid fdt\n", __func__, fw_dtb_pointer); return -ENODATA; } if (IS_ENABLED(CONFIG_SAVE_PREV_BL_FDT_ADDR)) - env_set_addr("prevbl_fdt_addr", (void *)reg0); + env_set_addr("prevbl_fdt_addr", (void *)fw_dtb_pointer); if (!IS_ENABLED(CONFIG_SAVE_PREV_BL_INITRAMFS_START_ADDR)) return 0; node = fdt_path_offset(fdt_blob, "/chosen"); if (!node) { pr_warn("%s: chosen node not found in device tree at addr: 0x%lx\n", - __func__, reg0); + __func__, fw_dtb_pointer); return -ENODATA; } /* diff --git a/arch/arm/mach-apple/Makefile b/arch/arm/mach-apple/Makefile index 50b465b9473f..a775d8866ad4 100644 --- a/arch/arm/mach-apple/Makefile +++ b/arch/arm/mach-apple/Makefile @@ -1,6 +1,5 @@ # SPDX-License-Identifier: GPL-2.0+ obj-y += board.o -obj-y += lowlevel_init.o obj-y += rtkit.o obj-$(CONFIG_NVME_APPLE) += sart.o diff --git a/arch/arm/mach-apple/lowlevel_init.S b/arch/arm/mach-apple/lowlevel_init.S deleted file mode 100644 index e1c0d91cef2c..000000000000 --- a/arch/arm/mach-apple/lowlevel_init.S +++ /dev/null @@ -1,17 +0,0 @@ -/* SPDX-License-Identifier: GPL-2.0+ */ -/* - * (C) Copyright 2021 Mark Kettenis - */ - -.align 8 -.global fw_dtb_pointer -fw_dtb_pointer: - .quad 0 - -.global save_boot_params -save_boot_params: - /* Stash DTB pointer passed by m1n1 */ - adr x1, fw_dtb_pointer - str x0, [x1] - - b save_boot_params_ret diff --git a/configs/apple_m1_defconfig b/configs/apple_m1_defconfig index b4ecf73cbc78..eb0addb741c5 100644 --- a/configs/apple_m1_defconfig +++ b/configs/apple_m1_defconfig @@ -3,6 +3,7 @@ CONFIG_ARCH_APPLE=y CONFIG_DEFAULT_DEVICE_TREE="t8103-j274" CONFIG_SYS_LOAD_ADDR=0x0 CONFIG_USE_PREBOOT=y +CONFIG_SAVE_PREV_BL_FDT_ADDR=y # CONFIG_DISPLAY_CPUINFO is not set CONFIG_DISPLAY_BOARDINFO_LATE=y CONFIG_BOARD_LATE_INIT=y