From patchwork Mon Feb 26 17:26:19 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Caleb Connolly X-Patchwork-Id: 775921 Delivered-To: patch@linaro.org Received: by 2002:ab3:621a:0:b0:258:3251:9e33 with SMTP id w26csp1493962lte; Mon, 26 Feb 2024 09:29:34 -0800 (PST) X-Forwarded-Encrypted: i=2; AJvYcCVH2+1a1cAxqpheLcatZaoMKhXSyQn9FnSEKfqgbzZHQY1pLweXYcLTgX3yPk71s0a603ybMhWrUEhIYitoch/3 X-Google-Smtp-Source: AGHT+IEqNUwH4PMBRrIo8gt5xWWtAu9Ui5QLz2uBET88nULsj9jUIqkbnYmjqZImC/Cx1SBm/Qgj X-Received: by 2002:adf:ea08:0:b0:33d:a010:5add with SMTP id q8-20020adfea08000000b0033da0105addmr5262180wrm.54.1708968574696; Mon, 26 Feb 2024 09:29:34 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1708968574; cv=none; d=google.com; s=arc-20160816; b=SNVgndmmUnnoVI00cN+Qtr2WIojVud/UXcrIvHLQEbdAcAbh4l7FQKwKdsidMxb1cb w1jpRYsrxICrPMbekZ9TVRFMj/RxDNjURiTj3mOIfV+3+sBf1M8I2F3h3uJpng9mPyO5 IY+fx5dH2BqiK8w3pp01bIjANzT9T6c5MUJXnfv6Bnmgt/hr2PiFN/0RVQ0YWSgTYPI+ OWsyv19ruVqpMKAmkVo9wFF73q0sAJsEV7QoBjF9GlnqZarAjdLQ/hxhmDPo2WhOC1ay PXcfKBcqkTaRxm1GJVH+cCXJijfk72lOk7Qsltb7t6+rGxveTx0ho/VOR8MCwolRe7A0 x50A== 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=0B3Pm1egxIpPDgXLN/1qgugTQ02Yeu9efC5KpFdqusQ=; fh=fylgECA0ZBjEhE3IBHjOUToZK5aPQV2adbBw5d/bZ+4=; b=ylCjVJq6omkCiE2vC+Z/W4RKvCbhME5/MaXMFOROGjYcxyfe9Vs00Y/6NT4pT+RJsx v6ovzWLXuAXPlQGESaSYwrNVxQ2eAR/3Gtd6JgpCBfxWfgsOozkq82cqk7k47cDy7VaX d2+SyiIpF1/gIMRBcDdGFWiheUnkKeCqlI3LDTLqLjElOwnxju+3qqqTEBPjF8FcacuO uwvW3sO8NPjiT5Cl2qDeR5MKlRq07iPdSFBbpdCCiXOC2u9vFfaFWJQ+FuqqZVZ5KZpA O8yDZjfGKuaV1sJMxqhuRzHXXYVnkPPeym9csSOgY37vZCTy6NRAKU2pdshH9ufVj/da IFTA==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=tkkwrQRt; 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 m6-20020adfe946000000b0033cdf5fd411si2761090wrn.932.2024.02.26.09.29.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 26 Feb 2024 09:29:34 -0800 (PST) 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=tkkwrQRt; 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 69E9487F36; Mon, 26 Feb 2024 18:26:51 +0100 (CET) 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="tkkwrQRt"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id CBDFC87F78; Mon, 26 Feb 2024 18:26:47 +0100 (CET) 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, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-wr1-x435.google.com (mail-wr1-x435.google.com [IPv6:2a00:1450:4864:20::435]) (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 4EC8087F47 for ; Mon, 26 Feb 2024 18:26:36 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=caleb.connolly@linaro.org Received: by mail-wr1-x435.google.com with SMTP id ffacd0b85a97d-33dd2f0a0c4so984757f8f.0 for ; Mon, 26 Feb 2024 09:26:36 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1708968396; x=1709573196; darn=lists.denx.de; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=0B3Pm1egxIpPDgXLN/1qgugTQ02Yeu9efC5KpFdqusQ=; b=tkkwrQRtmu+NAtPpFpzipy6wk64/v9At2uKlY7o0U2jQm941U3dOm09qCEKPEUY5r2 D3luCt1l4NJnvfN+CValeXYu7+yLkYkOqIselk5YS5A6fKmZegEuShZmZ4yoMkLYIfY+ a2Dj6p/PVdaJ2Fm4mMR4MGCtECV8fGYa1wMeq02ERyCzWaO5s4K1DvuIp9z/YiACMPvK YusQQ+PDC9ty/Vj9drNCxM1ehgA3A8CESWFhMTZCuyJ3tODVm7xq/gqFeS+A5rI/6uPh OOj0g8IVVo7tEP1T7Weh6Z6SDSuNspCRzRB6+4F8Mh26YUJTVM+00obXe00S71eL/HJn sqwA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1708968396; x=1709573196; 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=0B3Pm1egxIpPDgXLN/1qgugTQ02Yeu9efC5KpFdqusQ=; b=fmstoWtN/v2N0sn7WmGOTWPL9tF0vE1Zq+CV43iqHBYEqvfHrEFEUqcL0iwF5uckCB nrfjRRUnlN+gj4UOEntFmAQTuJUKqPplqSkJR+cTeRKRP6SAQVTO3e2ryu/F1DIHGMc5 Ac+NlQyusUi6ERL3gadcH14eBMbU0g5Mjy9LBpIG4lt146PkneZQc6UHrsPztJovqLhG /qAJO3CW5iLKXbAnRQtxDEU7hsq2k0PEy3AWuz6stdcI5vJhDjQacnPlg6ZTMBBFmYMX v9LV7yT8crB5mR0a5JgPW5IOyNjtjnV9Yhn05A2GA0tuAxC+38+75XSpvkG7vDx1i4YH OLtg== X-Forwarded-Encrypted: i=1; AJvYcCW1lEbNe7tRzAh1Q6ZOJdH97luv0V0hk85jGzaLNPGqTflM3zSiM/0/Kj8NgJ4HtdsZYaOOr2zQCOAxNu8PIyF3RNmKug== X-Gm-Message-State: AOJu0Yz6hPITpICMQB1US/uC13L+oKKoV1Bnph9qG8Oe/JWS0dm7Aqcr rUMeoNPuV2S9FdRTJuxtWXxNRF0oX3tvnm0jLdHaavdQnKqLZvgjmYZphconaig= X-Received: by 2002:adf:dd82:0:b0:33d:64a3:9bc8 with SMTP id x2-20020adfdd82000000b0033d64a39bc8mr4726779wrl.45.1708968395903; Mon, 26 Feb 2024 09:26:35 -0800 (PST) Received: from lion.localdomain (host-92-17-96-232.as13285.net. [92.17.96.232]) by smtp.gmail.com with ESMTPSA id bt1-20020a056000080100b0033d9c7eb63csm9142256wrb.84.2024.02.26.09.26.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 26 Feb 2024 09:26:35 -0800 (PST) From: Caleb Connolly Date: Mon, 26 Feb 2024 17:26:19 +0000 Subject: [PATCH v5 15/39] pinctrl: qcom: apq8016: init pre-reloaction MIME-Version: 1.0 Message-Id: <20240226-b4-qcom-common-target-v5-15-10c8e078befb@linaro.org> References: <20240226-b4-qcom-common-target-v5-0-10c8e078befb@linaro.org> In-Reply-To: <20240226-b4-qcom-common-target-v5-0-10c8e078befb@linaro.org> To: Neil Armstrong , Sumit Garg , Ramon Fried , Dzmitry Sankouski , Caleb Connolly , Peng Fan , Jaehoon Chung , Rayagonda Kokatanur , Lukasz Majewski , Sean Anderson , Jorge Ramirez-Ortiz , Stephan Gerhold Cc: Marek Vasut , u-boot@lists.denx.de X-Mailer: b4 0.13-dev-4bd13 X-Developer-Signature: v=1; a=openpgp-sha256; l=1132; i=caleb.connolly@linaro.org; h=from:subject:message-id; bh=HKoQTxKtBqw7jI3iylSvuagOiihXVhg/tcAQ9jNpm64=; b=owGbwMvMwCFYaeA6f6eBkTjjabUkhtQ7J3cducfGJfMos/aX2M6aX1r7XNtarb222a6csXKi/ ucfvbesO0pZGAQ5GGTFFFnETyyzbFp72V5j+4ILMHNYmUCGMHBxCsBEjlxi+Gf559j5Se7W3Ieu tq076cy/iUduC3MSh+bxZ/zTJvAUzl3G8E+/uPnBRZl804/a7kfz27/kJmzN8p/3br/NBZ/WqWp z9p8HAA== X-Developer-Key: i=caleb.connolly@linaro.org; a=openpgp; fpr=83B24DA7FE145076BC38BB250CD904EB673A7C47 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.8 at phobos.denx.de X-Virus-Status: Clean On the DB410c we support running as a first stage bootloader. This requires initialising the GPIOs which are muxed to UART before they can be used. Add DM_FLAG_PRE_RELOC to the apq8016 pinctrl driver to ensure that we do this early enough. This is required to prevent the first few lines of UART log from being dropped. Reported-by: Sumit Garg Reviewed-by: Neil Armstrong Reviewed-by: Sumit Garg Tested-by: Sumit Garg #qcs404 Signed-off-by: Caleb Connolly --- drivers/pinctrl/qcom/pinctrl-apq8016.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/pinctrl/qcom/pinctrl-apq8016.c b/drivers/pinctrl/qcom/pinctrl-apq8016.c index 796c4b49d578..eb9bf87b6c2e 100644 --- a/drivers/pinctrl/qcom/pinctrl-apq8016.c +++ b/drivers/pinctrl/qcom/pinctrl-apq8016.c @@ -75,5 +75,6 @@ U_BOOT_DRIVER(pinctrl_apq8016) = { .id = UCLASS_NOP, .of_match = msm_pinctrl_ids, .ops = &msm_pinctrl_ops, .bind = msm_pinctrl_bind, + .flags = DM_FLAG_PRE_RELOC, };