From patchwork Thu Feb 15 20:52:33 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Caleb Connolly X-Patchwork-Id: 773018 Delivered-To: patch@linaro.org Received: by 2002:adf:9dc2:0:b0:33b:4db1:f5b3 with SMTP id q2csp1035973wre; Thu, 15 Feb 2024 12:57:00 -0800 (PST) X-Forwarded-Encrypted: i=2; AJvYcCVY1VbiB0T5paYbSv0AEi+gWoNqiM8kMaGeP/7hiSgKvaUmdYAmjMyUEw6Ozewy2A7iMZjSqLvxzJmcChyGG2sq X-Google-Smtp-Source: AGHT+IE4g1+oYl1bc/pW09D6qFU75ZaNj+RSv5e485NtmiJvbI7tyve4fGBR2qS4IseAZDts1yU7 X-Received: by 2002:ac2:46ee:0:b0:511:9579:1be7 with SMTP id q14-20020ac246ee000000b0051195791be7mr2220762lfo.43.1708030620287; Thu, 15 Feb 2024 12:57:00 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1708030620; cv=none; d=google.com; s=arc-20160816; b=pLFUcuCDXWDi/8RHJf6y1+2maS5pmWpEZrlTG+8qvtgTU2OgT93RWEMKZbOfSiFrgL nLJcrTHTaaDLCW/SkQCtspcx9HN9p+X7UJaDWKc2P+m7Ony1MKSH5BxJH8rEFUK+2eHz fEmpIQztucqFR2cLInpDVgWC9LhNYUEOSShnBOkzQ9MkC/w7ZNvTL8XdtMXTGrE3frMe t/fMYrodK/wUcByP2nxQcABXkOs6Pz+x9l6A5CtNBPtUB4iLQAFvKLeHCAhDgbdJ3ZTL tfFKs8pQJO8pHt+oWyBY2yLIPzub3qVACb85lEwO9w/iN7ms30hmQ6IrXFHffWyVZ/YO cX7Q== 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=NKasSF8OfZq+DEY4uBwsa0q3Q/WOr5tzMGKZL1xqImg=; fh=TLhfs8FavsxQ1Ij+0F8WcvJw+4mq9P4CdVFyIvBHU1k=; b=TivI6+8aDsRQ6mrKQL79wfY2Dq82KnfQ6SKVvI9m/AzYyhD/Sb0bfw/gEz8CqkYbu/ iAILF+glk8Uh1qPDBoApQVmj2P9p592U0/7JHqSazFCkWiFOl0bPRHK5WzrogXtn8w0I 0s8PSOheH6msMg2xRl0pPmVnxKNkb3r7hpZIKUR10uNKLfgoOfhGZ2bTcj4mpT5vlUO5 08VIdXkLCwAR6Kuq+LVM46kI/vXP/Aj6sCFbK50PYGxNFjD30u4YArMlkNSk5OEloS0g u05n0O/CXGCD/xN40AE3y99PEiwJ35wZieYzJ8Phe5TuVJqnQhG7bM4yoUd/9Dl1+HEY T6Kw==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=ArKpYqxp; 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 u26-20020a170906409a00b00a3d0282f5fcsi936989ejj.1049.2024.02.15.12.56.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 15 Feb 2024 12:57:00 -0800 (PST) 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=ArKpYqxp; 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 528D187F5E; Thu, 15 Feb 2024 21:53:40 +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="ArKpYqxp"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id EF5FC87E62; Thu, 15 Feb 2024 21:53:27 +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=unavailable autolearn_force=no version=3.4.2 Received: from mail-wr1-x42c.google.com (mail-wr1-x42c.google.com [IPv6:2a00:1450:4864:20::42c]) (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 8087F87EDE for ; Thu, 15 Feb 2024 21:52:40 +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-x42c.google.com with SMTP id ffacd0b85a97d-33d01faf711so60126f8f.1 for ; Thu, 15 Feb 2024 12:52:40 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1708030359; x=1708635159; 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=NKasSF8OfZq+DEY4uBwsa0q3Q/WOr5tzMGKZL1xqImg=; b=ArKpYqxprB3qoguew0m6Sakr7yEMO5D58nkO85Tc2cb/iNRPt+9Xr8Yvqby4u3M6Xk jCU57sJZIP0MGPTz15GYGqQ6XLnRE89eb5oT9Ob5yLXAlf46z5zB5Fv5Kecv3eoBfYRu HzMdMMJK7PoO06QHduJjD+XubBCiMosBiUcq4D11DiWGhROoV++69+pKY+WNzuBhmltl /C1Yh4pMhbINajd2QnD500X/nrHHMb4KxgwJutIn6+k3IQb6hqXdHG+1KZex4oKSADA3 9ltEh/r0vuWqp+WWZ2NQdyo09FKl7JDXqy7/68c3HAYnG5pyWFkHnJ+bmKiET1uCb0DX 85Mw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1708030359; x=1708635159; 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=NKasSF8OfZq+DEY4uBwsa0q3Q/WOr5tzMGKZL1xqImg=; b=DiJ6YlbpJiB2vyUMthRp3o8GK3POR3MEdPDhe2PPU3cjfG5QcrjCqwr2gZGCnKsY20 nf/yBf6I+UDKOpBKip4rI8oewunYUcAWZ4IV3aKuRjux5lGuvCjwrp4Qyljpv7+ezNRk cgng/846zJqmDi5XobBF2V25udvpcmuNT32esyv72y7bReELYN2tts5mYpVEujoWlyqv daiVIHFza2Wpa6pXf3bY+ZvZRUvrH4OZg/u6boWNajEIEUbHHuQiMLdwKN1VC1m9r6Ur /Vxp0ZQBXBgt7gPa6zUKxG6nzReIdt9NRmzPfto2pgfZsBF2KLiexFTCiKFb3ZSmk4tK Sugw== X-Forwarded-Encrypted: i=1; AJvYcCW+GoX2YRBtngwbkpVrvSB6sRYwuQrP7HxOr7Z+aqyNSLSBByHfA4pGg1aBQKSxaJoVctO6TbYbKh/OfPh1f/qVyd1UtA== X-Gm-Message-State: AOJu0Yz/sVMpXr/mkxY0wgZAibuo2pFucfaax913kYiEqy56hKBv8h5g KfeJj0eq5nPOoZo1sgLAcfFwR8rp2iB4r/7gCOwAM1e9aoDf3OE7cv/UhlO+5IDhovLFcLfNX8O 0 X-Received: by 2002:a5d:58cf:0:b0:33b:3b86:b845 with SMTP id o15-20020a5d58cf000000b0033b3b86b845mr1739666wrf.58.1708030359751; Thu, 15 Feb 2024 12:52:39 -0800 (PST) Received: from lion.localdomain (host-92-17-96-232.as13285.net. [92.17.96.232]) by smtp.gmail.com with ESMTPSA id e4-20020adfe384000000b0033cfa00e497sm194025wrm.64.2024.02.15.12.52.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 15 Feb 2024 12:52:39 -0800 (PST) From: Caleb Connolly Date: Thu, 15 Feb 2024 20:52:33 +0000 Subject: [PATCH v4 15/39] pinctrl: qcom: apq8016: init pre-reloaction MIME-Version: 1.0 Message-Id: <20240215-b4-qcom-common-target-v4-15-ed06355c634a@linaro.org> References: <20240215-b4-qcom-common-target-v4-0-ed06355c634a@linaro.org> In-Reply-To: <20240215-b4-qcom-common-target-v4-0-ed06355c634a@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=949; i=caleb.connolly@linaro.org; h=from:subject:message-id; bh=GAaiqNbWVYur2JUrdOHiHlFIXvgQ05KnAxYmIZN9LvM=; b=owGbwMvMwCFYaeA6f6eBkTjjabUkhtRzla3bDwe/PWgdYekdddnj574jb40XbFnkp6BrY8zux CVmmvG9o5SFQZCDQVZMkUX8xDLLprWX7TW2L7gAM4eVCWQIAxenAExkSxXDX7m+oOotPcys0UE/ 2q5/lTmqJhiVt8H6lD/nUxfjsuz/Mxn+h/5QnBtxtr605ILn2Y7+ZpHuMNnUd4xvZhyeFB4vJrB 5PQA= 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 Signed-off-by: Caleb Connolly Reviewed-by: Neil Armstrong Reviewed-by: Sumit Garg --- 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 10796710ba7a..df5bd1c19f6e 100644 --- a/drivers/pinctrl/qcom/pinctrl-apq8016.c +++ b/drivers/pinctrl/qcom/pinctrl-apq8016.c @@ -73,4 +73,5 @@ U_BOOT_DRIVER(pinctrl_apq8016) = { .of_match = msm_pinctrl_ids, .ops = &msm_pinctrl_ops, .bind = msm_pinctrl_bind, + .flags = DM_FLAG_PRE_RELOC, };