From patchwork Wed Mar 20 14:57:15 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Caleb Connolly X-Patchwork-Id: 781372 Delivered-To: patch@linaro.org Received: by 2002:adf:cf01:0:b0:33e:7753:30bd with SMTP id o1csp346958wrj; Wed, 20 Mar 2024 07:59:17 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCXEJ1SNUep+LjpPw42r79O7PYpS+PMKlc1//C1wN2cjZ6eJni+0SL9LFxBPx1wyEsX7IYcICXMBaY/AJQMnvyZZ X-Google-Smtp-Source: AGHT+IHYNr+LupkpI+jteR1+KJuGOQShLqs3nrl1fJg18Co2Z3mTC/ev1+D++J+IWj6PbAn9dkpu X-Received: by 2002:a5d:534a:0:b0:33e:aea4:fdab with SMTP id t10-20020a5d534a000000b0033eaea4fdabmr11507700wrv.68.1710946757146; Wed, 20 Mar 2024 07:59:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1710946757; cv=none; d=google.com; s=arc-20160816; b=mfWacxwurvES4+F9xyZPuEwOiAkExgyzdri+Zf+UVBbC1aoQ2ii+0cAYg4MB/zyWkF FkXs8AsSJQ7AYhyIQxTZKM7NuubBZcl7m40sGagimxkmsaRjgQDamC/JetLPfElhuGZF cLg8WBetKlZzoh9Itme7vak9GFeve/k3izOEzLHDN6nDNENkn/uSWJuPWMkQZviwxeAQ JD73tBiKiUvhlP4IrCh8hrZDq1ECvW3P8+gXGPRfeNoCP3JCM0Ry8hxC/skHyFDdVWxk M17RrWVMyZo2xjm9bwdelQAV69Owk8ghUmYLU/EAk/xepWgMBqOL2wDzrplvUSa1d0/P g3Pg== 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=kEz13nWXRuHlZEXkiuEN7qJaHiUYR80xCnoZj/IeT7g=; fh=gSVpyLKtvZ+QePPYgVwr0OwBuSQ/slJGUurC/y9msiw=; b=j5KVhWTTsJGywFfW3I5ZrrC3W+/J39i7q7Z9CgV7Rk3igk/2JOo8rGe902/u1i1DHk zvFHXvCoo+tAMNwkmXfecvHfARenJI/UvhUTW1PrusfCRNxkl6cuDU2r59atcyFpg+1p ildTbK2vShUNk2TbLzkceriwVlk+aHshWOMTd/ylhBwOMoguYsYyniSImp2OToxiwAph ZfXthTQRcRCIR6NMerkVRcjV4fcUQ8yE8+eu394EL05TcpO6DhnxAFV1NZzT+3i/r2Vb CNxgcoeutXzGfcxZLkCGS5pjWG0tiv+QDMwnmTDvGrjkuwekjVGg/F3nxeJMFfhDceah St1w==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=AsI7Uahu; 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 w17-20020adfcd11000000b0033eb31fb36csi7200268wrm.177.2024.03.20.07.59.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 20 Mar 2024 07:59:17 -0700 (PDT) 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=AsI7Uahu; 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 10C0887DF8; Wed, 20 Mar 2024 15:57:27 +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="AsI7Uahu"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 0DB708811E; Wed, 20 Mar 2024 15:57:26 +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-wm1-x32d.google.com (mail-wm1-x32d.google.com [IPv6:2a00:1450:4864:20::32d]) (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 629DA880C5 for ; Wed, 20 Mar 2024 15:57:23 +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-wm1-x32d.google.com with SMTP id 5b1f17b1804b1-4140aadfe2eso29488975e9.1 for ; Wed, 20 Mar 2024 07:57:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1710946643; x=1711551443; 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=kEz13nWXRuHlZEXkiuEN7qJaHiUYR80xCnoZj/IeT7g=; b=AsI7UahuB1Q8SFF73KTZFI7GPPu7FvEI10S7nMBcvJfYMfs+1R6q/hxCqKktFmjY6K qJg7af+cEGBuK0u4UDplf2Y4Hlgsv+XWIheVfgxsxE69hD0w0suSE7vlC79EGMQ2AjHO KVBlkiBRaGZW8hPouDAFwDGRLoXbbPJewCL+j92ClwV1M8nnrhh//PRbiRJMa30JV7c2 uK1jM0SznU87O80Skx8fOd3+ihnoGDDDGQnCuXnVBkBRgSkwoMKK2Npq8pO8UZ/xEyao LLqdcH+S+P3lhwfrYS93QkPX8T6sW8pr900iCr9Jg1gatg1VDjA+PypstEvgKnI4MwOP Pzvw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1710946643; x=1711551443; 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=kEz13nWXRuHlZEXkiuEN7qJaHiUYR80xCnoZj/IeT7g=; b=O6rD3/JWitjTvEAAe+U1zg863azTZKxMZzlkDrVqQ+77ozhkY+HTA5hf1OMNl6NDyq eDI/bxqVHwyna3NH9mnnz2mzDbyzVS891lpuBO4J8G9Q8qi1ZqFZa9Ym9HJqvB9Dmpa0 h7YqggAzjlJrAcx68O8RNU0bfnW2gHmX02cVs/sZLe8s9P7OCtZ8OFZ5n5tJ8dFL4XUG O54AwvqovchXYmJVC62WFePBzIxdkMT8ZGVIQNWBXZfIkBVF3gS/pgs6HUmNKDM9aOkc 3fW+8TzDLf/3/eSkN7A+DHyhnSClEqD7m83xE8jzp+CKWEHHsw0t5IpRi76UMN0Klshv 3jWQ== X-Gm-Message-State: AOJu0YyxTWp2DNcRjSX7ZFxut4tsGDVri9iCom8fYST4eutIirEu0c3L xN4co6GypiDUWhEMZhNdvuBtBhDWkunMDhgDXj6eP1+XAIzirboSCEPAcjmJxhU= X-Received: by 2002:a05:600c:1d09:b0:414:48f:a7ab with SMTP id l9-20020a05600c1d0900b00414048fa7abmr10467040wms.30.1710946642962; Wed, 20 Mar 2024 07:57:22 -0700 (PDT) Received: from lion.localdomain (host-92-17-96-232.as13285.net. [92.17.96.232]) by smtp.gmail.com with ESMTPSA id bi16-20020a05600c3d9000b0041468f79fd5sm2461268wmb.16.2024.03.20.07.57.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 20 Mar 2024 07:57:22 -0700 (PDT) From: Caleb Connolly Date: Wed, 20 Mar 2024 14:57:15 +0000 Subject: [PATCH v4 12/14] dts: sdm845-db845c: add u-boot fixups MIME-Version: 1.0 Message-Id: <20240320-b4-qcom-livetree-v4-12-d867ab1f06c2@linaro.org> References: <20240320-b4-qcom-livetree-v4-0-d867ab1f06c2@linaro.org> In-Reply-To: <20240320-b4-qcom-livetree-v4-0-d867ab1f06c2@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=1140; i=caleb.connolly@linaro.org; h=from:subject:message-id; bh=P3zFJf/5CUKVArcFXgOYqOHgvkPJ6VcbL2V/992pzjo=; b=owGbwMvMwCFYaeA6f6eBkTjjabUkhtRfP50+Vv7lsTmvvLXmRoRPiXlltX1/7vq/ApXMRw9PW as+95FNRykLgyAHg6yYIov4iWWWTWsv22tsX3ABZg4rE8gQBi5OAZjIub+MDI08O9lm89q5LOH9 cuzPx8VG4rf6X1068PExv1mYJzfr4m6G32wTe7Yvftm9dXZZuv+W73vaNRVlt6eLvZguKKHvZ7h t7n8A 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. Add a U-Boot specific dtsi snippet so that this supply will get enabled when initialising USB. Signed-off-by: Caleb Connolly --- arch/arm/dts/sdm845-db845c-u-boot.dtsi | 16 ++++++++++++++++ 1 file changed, 16 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..8d55d5dd7632 --- /dev/null +++ b/arch/arm/dts/sdm845-db845c-u-boot.dtsi @@ -0,0 +1,16 @@ +// 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; +}; + +/* This GPIO must be turned on to enable the 5v VBUS + * supply on the USB port. + */ +&usb_2_dwc3 { + vbus-supply = <&pcie0_3p3v_dual>; +};