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