From patchwork Fri Aug 9 00:48:46 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Caleb Connolly X-Patchwork-Id: 818092 Delivered-To: patch@linaro.org Received: by 2002:a5d:5711:0:b0:367:895a:4699 with SMTP id a17csp87930wrv; Thu, 8 Aug 2024 17:49:26 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCX02VJX2CLEz4Tw4G7pKd8eNXFa9NU+SZQX7GFs2Oxly3ytszO5DAH1CeaMRBJEWNyM/bMi87YyczzKzbZXDmMz X-Google-Smtp-Source: AGHT+IGePPpeByF7j361jKMNSo0SyhHGxHkOhByQA6q3/+UdDEv/1QDtRqQvUDE2icTu8LuBxpAv X-Received: by 2002:a17:906:7309:b0:a7a:a212:be48 with SMTP id a640c23a62f3a-a8090eb4695mr253335566b.56.1723164566271; Thu, 08 Aug 2024 17:49:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1723164566; cv=none; d=google.com; s=arc-20160816; b=IIbmpeBC5HEWRcpBaR6I+w1wJ5wU2YomacQfPlGkQ3RveilWLUXCQRUqIhG+fpQV07 dIhGSfmE/P9X3s5oWHnkGyUDchqgzrsj4my0/JkzlM1G8ThBpT85p105lmy8S/5coBiW CgewGh7t9b2/znps8dwLOkfnJHJi4TPGex36viisVnfqjxO6brNMZ/SE3zJJ2uYGGoGQ t7xzod2Oz+/FRqjRvmZ4VPlaDULexCxV3S2+EqevwEfoZ0llUsxllH7d6gzlCohoofeU WTLMhHoweG19P0O6uOp1if1nAWJszXB2/fItsCE7AGv9UR2ckoDmq7kZAANYmaOsxzOO q3Aw== 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=zLolcdfhpnv2Sr4+jU2o0ZvxpFWa2r7z1o+vmKY3kNM=; fh=Ro0cnTVooG9MaZDVXOehdeJMAZn3oMxKdBjF/qqrBN0=; b=NiP7eU1BMi96nMGOuyZGEIaq+AuWXVHiCbINfyEx6J106rMaj5S/l+BIeOq4FZ8GPE 70bodvFMmE+BE0oe/zAqsOwGN5B6bUAruS5TyV1HNhGU37B55VNrIchOjgnau0Lz/idn h15AvD2JaIgtK/3sjq1KUOlefzkSriTnuCw1P1xkNdBmXMpUY+oq4Shn0HA8LN9uvBV8 D7uiNKqttC8LJ4JrmA2KKNIE5fIB1RzDC/Fb46KgbnA07fS9wpyzPxBn5IY7/JtsCPCz oDKpinYmRj81WiFEPcBmmuHxVRVJNv5hajowFzX4HoYaUFs4uqIWoTLVcLkBWDH65G/y TN1A==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=ARsy6zkP; 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; dara=neutral header.i=@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 a640c23a62f3a-a7dc9f5ff5dsi866078266b.954.2024.08.08.17.49.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 08 Aug 2024 17:49:26 -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=ARsy6zkP; 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; dara=neutral header.i=@linaro.org Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id DDC8088B8D; Fri, 9 Aug 2024 02:48:57 +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="ARsy6zkP"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id ACAA788BBD; Fri, 9 Aug 2024 02:48:56 +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=unavailable autolearn_force=no version=3.4.2 Received: from mail-ej1-x62f.google.com (mail-ej1-x62f.google.com [IPv6:2a00:1450:4864:20::62f]) (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 B1AA4888E4 for ; Fri, 9 Aug 2024 02:48:53 +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=caleb.connolly@linaro.org Received: by mail-ej1-x62f.google.com with SMTP id a640c23a62f3a-a6265d3ba8fso132630166b.0 for ; Thu, 08 Aug 2024 17:48:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1723164533; x=1723769333; 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=zLolcdfhpnv2Sr4+jU2o0ZvxpFWa2r7z1o+vmKY3kNM=; b=ARsy6zkPbTZdXdo6STL6wGnhKGAB8UzOUpaMiULwWRhqOhtXxTI0y3m0wAbg285EqR w3swIlMrSeNa1aVS7q395tm49S2fKYuuqTR699RqtvhCXo083YXXqSOmFSWRGnr/F4x1 blY8BJGoU+trgxBCYKs/vaeIFuFq2j6Cm7ChmglIXu4c0ckq9vJ0f1odjmTzLO/0rz4f LT5p1By0BblqmTH4CmwD31Wp8SjeMkXMjU+WLVk1u4Z4ESw+w98mfl2+uHgpbYh80dyg sbgiO/PyTxuiwfS6+kEhSvqA2uf1N9Vs99Jmp8+fkiyS7Y7EbQcTiP9ST4WRHchfDkdH zr3w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1723164533; x=1723769333; 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=zLolcdfhpnv2Sr4+jU2o0ZvxpFWa2r7z1o+vmKY3kNM=; b=Cc4N+IrbSqrp/khwen3wsx/LQMBzPKj98qob8oY4PizIa6to++61jSvB/vN/8TRvmm OrKWxm9H3B0Pn4SQ9QCW5dfOrhyA44OrYaV2o/N0/TkwzqY3Ol0sOiFXH8NaW5AanRFk 4ObGQ0Ky4wiYgSNzzjzAQIzxp/3RMAZPOMIe2aL/uiAMQV4+FWTYndv8S1fPPq78IWrS GjPg5j7zdBd9m2KYl5cnNdNKfR/Kr0dlsk1ygjVH/E5swKY7ie/DOW3ZelEfD3GnJi/d Q0vKxeVBaP9y+RuCaze0miOPGrShicLRdqHpEJ+yn2RLTY1S4yuYH6zbrEQbyiJIrzgj mSwQ== X-Gm-Message-State: AOJu0YxuAY7+NJqFr2moQK9g0uixi8EoOUgSSqy9qj81JWBDVxKZSCE+ BPOK7kf4fC0ar+KFqZ2LIbCjnDdabnMCyjkzgJ7dLnqM2Bt71QB4KurOZ2uDXVtIsdm5TDOziVB x X-Received: by 2002:a17:906:7309:b0:a7a:a212:be48 with SMTP id a640c23a62f3a-a8090eb4695mr253262466b.56.1723164533154; Thu, 08 Aug 2024 17:48:53 -0700 (PDT) Received: from [192.168.0.113] ([2a02:8109:aa0d:be00::7424]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a7dc9c0c9f5sm789811466b.50.2024.08.08.17.48.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 08 Aug 2024 17:48:52 -0700 (PDT) From: Caleb Connolly Date: Fri, 09 Aug 2024 02:48:46 +0200 Subject: [PATCH 3/7] dts: qcs6490-rb3gen2-u-boot: USB host mode MIME-Version: 1.0 Message-Id: <20240809-b4-rb3gen2-v1-3-7c73fe05b37a@linaro.org> References: <20240809-b4-rb3gen2-v1-0-7c73fe05b37a@linaro.org> In-Reply-To: <20240809-b4-rb3gen2-v1-0-7c73fe05b37a@linaro.org> To: Tom Rini , Lukasz Majewski , Sean Anderson , Caleb Connolly , Neil Armstrong , Sumit Garg Cc: u-boot@lists.denx.de, u-boot-qcom@groups.io X-Mailer: b4 0.14-dev X-Developer-Signature: v=1; a=openpgp-sha256; l=955; i=caleb.connolly@linaro.org; h=from:subject:message-id; bh=HTbXxsrMd17GClJdrUxqmv1t42K8cKHfbuWdCzpCB0M=; b=owEBbQKS/ZANAwAIAQWDMSsZX2S2AcsmYgBmtWdwnEjec3t3LI1dtrNsf/bUwYFwQJo1xwokL HYePacwZJSJAjMEAAEIAB0WIQS2UaFGPGq+0GkMVc0FgzErGV9ktgUCZrVncAAKCRAFgzErGV9k tuB/D/0dbLtAsAFTjuohGNQEWl+scj5Z8noyV1+OTl7y8m2Vmel35e5eU7DkUhfzW4cIFcre7Ax tHF/FgdLxbnxbWLBj1TVjje7ABcfrQamrh8lbcGgsaqUw30wdN8Z99+ElJcc/fH3XK1YqLc7oUJ KDLURyJYoUWwbj7lOPClpdcWop/m5v7R7DU2gu9U6qASUe+0vu/iWDksG6gfAvkLbmIWb/VNhLU t4AWEqN4IHtDVYOHNj+yyRoM/edg8op4BSXkvG4xfTpUyONxcLsYekfTmuo11Ux1YaLBx4gWYSy kTCC7w/GA+TdS5XV1fFMHcTnBAa84wh4+I6igJspiqbPdtZywXb2QhUV3kSelP9KUlmJRhSuYJJ PIQj1MwEReNCwE+h6xAnErKV/K4SIeFSYaVjeoUYpEatws8ObfADfOvuPJAk2YVIp/4l/oyjqSZ pdpOenjc2L7JtQXW4uS3Ww+/ddZhT3Pb/WmOWwkVLeJ+51yfwqK3FkZD3xqU1AHLcma9ZFa1Dvt 4nPYbzrlN/iJUTtKA1NraLBkLW4ASZXEvrHAdCxqPeeDdwgvQXBGWO1TPoQnHjoNfzvX4AFRTLK kovno8l/RpjVsctqTf3ITzDSyBbAwgJ7EQZMyphT+lZh4z4tDWXoirSerYNi+9W76vTIhbgxIoK mzzDm9S14aWV1/g== 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 Adjust DTS so USB runs in host mode. The type-c port is the only supported port (since the others need PCIe). Booting from USB is possible with a powered type-c dock. Signed-off-by: Caleb Connolly --- arch/arm/dts/qcs6490-rb3gen2-u-boot.dtsi | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/arch/arm/dts/qcs6490-rb3gen2-u-boot.dtsi b/arch/arm/dts/qcs6490-rb3gen2-u-boot.dtsi index c3ec4a317f7c..fbe72595f5ac 100644 --- a/arch/arm/dts/qcs6490-rb3gen2-u-boot.dtsi +++ b/arch/arm/dts/qcs6490-rb3gen2-u-boot.dtsi @@ -16,8 +16,13 @@ <1 0x00000000 1 0x00000000>; }; }; +&usb_1_dwc3 { + dr_mode = "host"; + /delete-property/ usb-role-switch; +}; + // RAM Entry 0 : Base 0x0080000000 Size 0x003A800000 // RAM Entry 1 : Base 0x00C0000000 Size 0x0001800000 // RAM Entry 2 : Base 0x00C3400000 Size 0x003CC00000 // RAM Entry 3 : Base 0x0100000000 Size 0x0100000000