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, };