From patchwork Thu Mar 28 17:59: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: 783631 Delivered-To: patch@linaro.org Received: by 2002:a5d:4e01:0:b0:33e:7753:30bd with SMTP id p1csp2861135wrt; Thu, 28 Mar 2024 11:02:23 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCVmm2OmP6+ObUluLMDxECDkmMEE2wk2N/UvOR5QmzR5AdpQTGL8Hwnc24Uaen5oN/9zO0kpmqX2kg3qBF7HqxdA X-Google-Smtp-Source: AGHT+IEvzJuRDG03W+9xEP2+olhlfDuVZX9XbuijfvzXae5uRsHy73nbevynlUxaPtzaRHJwfTic X-Received: by 2002:a5d:6b87:0:b0:33e:7402:f4d3 with SMTP id n7-20020a5d6b87000000b0033e7402f4d3mr2881159wrx.33.1711648942713; Thu, 28 Mar 2024 11:02:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1711648942; cv=none; d=google.com; s=arc-20160816; b=m6gfUv0BX0X9f/5ejAQgrY1NyPYUw/YJGEo7hP/57oJY39NRgj55n6R/8bPydP2uZZ MH6OdQdrWwpa3Q/BDGwrUh7RMrhKUuaA01FQcYWhg90GVi6uRkriCX1cIQzA4i7XLmWF nenH6fjRLsCq8U9pMhyV07EdSkwSg58zI0gBCTy+LVhv7NQ+m7gwj1q9ntAMLw5IRPBf 56XTsBNGvcGk8ygSb+gYpPjArrTKsMv61FEW8YGTmjY3jk5ztTWjC1EIQp8LO6CEmlvb O4JC+hZPoiMRBFU0DlNdIa9A2VP/nPIeFmWQt1lcALdbi+kRukIHI9UhZZY2SdCkrPSV NaHQ== 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=O6Q4iPHqNBQ1Q20gSfmWBGk3J7Uofd34Sexw0LNLNLk=; fh=gSVpyLKtvZ+QePPYgVwr0OwBuSQ/slJGUurC/y9msiw=; b=dBQ5acEYfAEWrpXYmVb8RCjiLXCsRAPdZiJRsMtvvRAhZoXEdQ/AuvlxsNHwVcc1vm OLaKMN08wiw1esYXw2wxpVZwS91mkJT6RXAGxBWEF3jxHIo4TmCwXbzGHnsfU3Qy5egJ muQGspwiAEpwUY1tkq39WzdVwIAK6h/h4m8e8JyfjO33EfwoFEdumBP+pnkv88k87Ngd bfhLZ+Viwica2qtDE4gcF9C+BEXVB0q8xk+RlMljezvzMk6sGr/Mcu4SNbcVH4IMh1xU 5NOKTUMd7bVtNZpzdLxjpXid3xvjSX5yOa3k57YUCWHBcjnidSt/8vWLvXMmX+SUnRRk EGfw==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=gjBWhshw; 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 m12-20020a5d64ac000000b0034330005648si947173wrp.935.2024.03.28.11.02.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 28 Mar 2024 11:02:22 -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=gjBWhshw; 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 61ECC881CE; Thu, 28 Mar 2024 19:00:00 +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="gjBWhshw"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 15F7988158; Thu, 28 Mar 2024 18:59:59 +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 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 D7284881EE for ; Thu, 28 Mar 2024 18:59:54 +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-341808b6217so756258f8f.3 for ; Thu, 28 Mar 2024 10:59:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1711648794; x=1712253594; 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=O6Q4iPHqNBQ1Q20gSfmWBGk3J7Uofd34Sexw0LNLNLk=; b=gjBWhshwAMWS5Rzk0y0BSU9Foz0oVNOqFc0cGei0dn6gdhgrn4/+c0SeRW3325eK8Y 1Mre7IT3JVAesDI9KbasfWD9EyJ/CDjdq7+a2iNz97RlJoZoSpjYc45Zhe9tVhNDnRin tgSXB29ibiZ0riAWt7XzcZHq6PvXvTO6ZgTyzsYtVyvW2xw4qRaeJVPsjSHiGvmzgO5m 259pKQO53w76iamcPuPQPkGd1TYAaxGxxMo9woEc/vo2T0kVGiLuNfTnmMztUAhvzdOF fZ3YExRFzXX9W9eqN3gMYAGe5h4FHbJZAdEr6X3R+ANmBHpldSfd6ZmLIsQ3LdzIr37u RjXw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1711648794; x=1712253594; 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=O6Q4iPHqNBQ1Q20gSfmWBGk3J7Uofd34Sexw0LNLNLk=; b=gBrVu2Idw32oYbtxg/QOO7nT+4PxyG0dIMy36KLDb3Ab+YgglbdEDzAa29AE3GGYWf UQzVj/0432qzMa2krpmTyMzgmsYEeHDeJ32wwDkkBdTPXzQjSIpURhcw5IECNTd7sFyu WtdOMXS6Q2kJ+qgwPO0JQZl+00tVbXEp6gmxuNwo9klLIgYp56BVy8Lvoa/2J8BlJT/G k1F0WUSC0OMp9L6NvRukQFnLBkL7MpaRbyrIZPA0M/xZKy8Pj+cL699rGhZYCOPY/UGO b8YZkv3dUhp48ULE3vzq52XhJYFwk5DdjMSZ3nq8hbttndAVePdJNWyQ7skvxPPkADbj 2MaQ== X-Gm-Message-State: AOJu0YwNI8Qd/J7gHyfXiKSfH/5sowsna/t6MEXNt8fDI+i/EgR3kbg9 jtu3MHC/Lfoji6zPf00h3fFQk3Wxp9Y7wkv2xKScE2paS+cQIYwpiR+w0dFWY8+m5NgXoStBT9c H X-Received: by 2002:a05:6000:1c5:b0:341:b5d5:a1d6 with SMTP id t5-20020a05600001c500b00341b5d5a1d6mr2619100wrx.50.1711648794446; Thu, 28 Mar 2024 10:59:54 -0700 (PDT) Received: from lion.localdomain (host-92-17-96-232.as13285.net. [92.17.96.232]) by smtp.gmail.com with ESMTPSA id y13-20020a5d4acd000000b00341e5f487casm2292237wrs.46.2024.03.28.10.59.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 28 Mar 2024 10:59:53 -0700 (PDT) From: Caleb Connolly Date: Thu, 28 Mar 2024 17:59:19 +0000 Subject: [PATCH v5 13/16] dts: sdm845-db845c: add u-boot fixups MIME-Version: 1.0 Message-Id: <20240328-b4-qcom-livetree-v5-13-4e98228b3d03@linaro.org> References: <20240328-b4-qcom-livetree-v5-0-4e98228b3d03@linaro.org> In-Reply-To: <20240328-b4-qcom-livetree-v5-0-4e98228b3d03@linaro.org> To: Tom Rini , Caleb Connolly , Neil Armstrong , Sumit Garg , Lukasz Majewski , Sean Anderson Cc: u-boot@lists.denx.de X-Mailer: b4 0.14-dev X-Developer-Signature: v=1; a=openpgp-sha256; l=1063; i=caleb.connolly@linaro.org; h=from:subject:message-id; bh=JWwpm6PYEfZfiLMJYt/BfVr0y0ivgV4Se6+WvKM3mNY=; b=owGbwMvMwCFYaeA6f6eBkTjjabUkhjTWDVwfjk3+tyFodb9WW/p+j+lRH+aev9T6YOGbhX5nk tZ6Lu5g6ihlYRDkYJAVU2QRP7HMsmntZXuN7QsuwMxhZQIZwsDFKQAT2WHIyNDK2PndZR2zWWaV jHc196Pu2tNHJmvu/6oXMq1/Z57DRgeGv4JnfUNeJN8Q3V6Y0qF0L0+r42LENebzVU1ijQEbap9 EXQcA 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 The USB VBUS supply for the type-A port is enabled via a GPIO regulator. This is incorrectly modelled in Linux where only the PCIe dependency is expressed. The correct way to handle this will be through a usb-connector node, but for now we'll just mark the regulator as always-on so that it will be enabled automatically during boot. Signed-off-by: Caleb Connolly Reviewed-by: Sumit Garg Reviewed-by: Neil Armstrong --- arch/arm/dts/sdm845-db845c-u-boot.dtsi | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/arch/arm/dts/sdm845-db845c-u-boot.dtsi b/arch/arm/dts/sdm845-db845c-u-boot.dtsi new file mode 100644 index 000000000000..906f9faa5451 --- /dev/null +++ b/arch/arm/dts/sdm845-db845c-u-boot.dtsi @@ -0,0 +1,9 @@ +// SPDX-License-Identifier: GPL-2.0 + +/* Needed for Linux to boot from USB, otherwise if PCIe driver is not in initramfs + * the VBUS supply will never get turned on. + * https://lore.kernel.org/linux-arm-msm/20240320122515.3243711-1-caleb.connolly@linaro.org/ + */ +&pcie0_3p3v_dual { + regulator-always-on; +};