From patchwork Wed Sep 4 11:16:24 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Caleb Connolly X-Patchwork-Id: 13790557 Received: from mail-ej1-f52.google.com (mail-ej1-f52.google.com [209.85.218.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 840E61CFEC1 for ; Wed, 4 Sep 2024 11:16:39 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.218.52 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1725448601; cv=none; b=aVRvMycuw9d8ksOBTspx0qaDMdcJc0D3NPzzRj90tWBAErY2soOrlJHxVheZF44rrfmoEP1xTGFGHdPDMHM4RlwKESFnBEymu2KleLVlUhoFzIxYSpOs5JZOVxZQqeBjsfUf+9wS18NFDaPVz+k1c079+AdjvPXnEjJLqRoO1pY= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1725448601; c=relaxed/simple; bh=uy2aOnLjQ2+G8PZE1lwvy23FpuYKEzMelgcbSLPR/e8=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=dE9+tnQ6TEipGZPSC9ud7F4yF28btieLizfytaMBCdvzT81FyThOGrNQ966mHgoHkz+pv8jLiy+uIAVR1lfWokOjhK8YROX6+HGCp5SyawMb33yMpIbAc0ue9ZMrDRTT1Q/WYqCVBmc4z6EsTAdD3iK4G/B+h1TPAdUQZOZuWno= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=Djr51pIV; arc=none smtp.client-ip=209.85.218.52 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="Djr51pIV" Received: by mail-ej1-f52.google.com with SMTP id a640c23a62f3a-a86a37208b2so766315266b.0 for ; Wed, 04 Sep 2024 04:16:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1725448598; x=1726053398; darn=vger.kernel.org; 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=VBd4o6Fs/+WR6gKfBUJAZ3gI+DtPok8STYaws7NRe20=; b=Djr51pIV7WwwmaBY2dSE7PrQBDXiwwq9J+KiRPyK4y4cNDFk9kDBZgfmL4ewnWrKEF Ptusumej0qZR9zsoOgtTzvpEwgEEB8T/cczpbXCXmSYiSfZMId+HLWPyZQpXAyc7NY62 YO/sQv/NY+LjUwiCx5elN7y5T3KKq3xP6jrlNnc23crQ/bMTxcvwCpD5nYIEzzWB6+ZA c1O6XZ+MRKJNm/HdS3UQ4kIyL1EK1ALQPcVFIaNVq2zdplOUea4D+hRfXPVhnLJPsYYF ttvUYEQJTUt1DEnxqC0nZEXFLD3PW3CleYF+M0auNS3+tmufAx/hIL+Eqn0MZlQwnT/p adHA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1725448598; x=1726053398; 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=VBd4o6Fs/+WR6gKfBUJAZ3gI+DtPok8STYaws7NRe20=; b=u9Fw+ZqLpwqdQbM0ZbI3kwobAvew6cuAql6ODX9GeY1H+rpKGh5OlXUwf46t+PPHtv Arr1V1fmTEjn08+QPu7bvS7zW+dn1c7UAeM7xI6n3rMIMzj+gSFKtOLkOdIeOfmjG0bu JcaSk2qycqITlKBhHmSnCh2w0wYUw58ROrmcB/RDcn3hzJVGVIHFtX3YLFSXaV53UQu5 tZ5Zj07/uaDGVhBxcZsaK3IkGArE32H8GOLToR1iLMlzX/4H1JlDXL6TcTfgF98AV70I uYBrXRBd5sshS1ebv8Ch/a0fHVYUCoBJwVrtN2PMOLD67EisKvfVBwWaURu4b/r4vRMU NNeg== X-Gm-Message-State: AOJu0YzhYabC0toSNQfkoY3ZAnRw24JLOkQwSAIZAYsISmCxqw/sMB8b GslB2ynFAvydDuL8yFo7VYf6Id9BUdUQLlC6qtFjzQ4b4iZvsYHU3GCE5u8HQ8dg6LIc856AOSQ N X-Google-Smtp-Source: AGHT+IEaUDRcmq3hFpgGLvAT0wRkoJ9UYPEA7OJVNw+XAZA0oup7t5wPyJeYX4X6GGdDipTNzld6DQ== X-Received: by 2002:a17:907:7ea1:b0:a88:f826:3792 with SMTP id a640c23a62f3a-a897fad2923mr1515355566b.56.1725448597487; Wed, 04 Sep 2024 04:16:37 -0700 (PDT) Received: from lion.localdomain ([2a02:8109:aa0d:be00::a253]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a8988fefc12sm793401966b.9.2024.09.04.04.16.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 04 Sep 2024 04:16:37 -0700 (PDT) From: Caleb Connolly Date: Wed, 04 Sep 2024 13:16:24 +0200 Subject: [PATCH 1/3] arm64: dts: qcom: sc7280: convert usb_2 to support multiple ports Precedence: bulk X-Mailing-List: linux-arm-msm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20240904-b4-rb3gen2-usb2-v1-1-b858e681195e@linaro.org> References: <20240904-b4-rb3gen2-usb2-v1-0-b858e681195e@linaro.org> In-Reply-To: <20240904-b4-rb3gen2-usb2-v1-0-b858e681195e@linaro.org> To: cros-qcom-dts-watchers@chromium.org, Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , Conor Dooley Cc: linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, Caleb Connolly X-Mailer: b4 0.14-dev X-Developer-Signature: v=1; a=openpgp-sha256; l=1038; i=caleb.connolly@linaro.org; h=from:subject:message-id; bh=uy2aOnLjQ2+G8PZE1lwvy23FpuYKEzMelgcbSLPR/e8=; b=owGbwMvMwCFYaeA6f6eBkTjjabUkhrQbjpP1zt/nq/l8JfbDDFmfPwemex8JuPJw2fMtoZZS0 11+6Me/6yhlYRDkYJAVU2QRP7HMsmntZXuN7QsuwMxhZQIZwsDFKQATuajJyND4upjBjWfWeTbv CY23gj72nt3QMW3ttml78uQECvdxdJxj+O8q9yHHnkeu0cdc0JD9u923+E8rK4yVY5rdTX9vP8P SmgkA X-Developer-Key: i=caleb.connolly@linaro.org; a=openpgp; fpr=83B24DA7FE145076BC38BB250CD904EB673A7C47 We might have more than one port, so use ports instead for the second USB controllers. Signed-off-by: Caleb Connolly --- arch/arm64/boot/dts/qcom/sc7280.dtsi | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) diff --git a/arch/arm64/boot/dts/qcom/sc7280.dtsi b/arch/arm64/boot/dts/qcom/sc7280.dtsi index 3d8410683402..06a74601c2d7 100644 --- a/arch/arm64/boot/dts/qcom/sc7280.dtsi +++ b/arch/arm64/boot/dts/qcom/sc7280.dtsi @@ -3712,11 +3712,23 @@ usb_2_dwc3: usb@8c00000 { phy-names = "usb2-phy"; maximum-speed = "high-speed"; usb-role-switch; - port { - usb2_role_switch: endpoint { - remote-endpoint = <&eud_ep>; + ports { + #address-cells = <1>; + #size-cells = <0>; + + port@0 { + reg = <0>; + usb_2_dwc3_hs: endpoint { + }; + }; + + + port@1 { + usb2_role_switch: endpoint { + remote-endpoint = <&eud_ep>; + }; }; }; }; }; From patchwork Wed Sep 4 11:16:25 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Caleb Connolly X-Patchwork-Id: 13790558 Received: from mail-ej1-f52.google.com (mail-ej1-f52.google.com [209.85.218.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 6D01E1CFED1 for ; Wed, 4 Sep 2024 11:16:40 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.218.52 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1725448602; cv=none; b=XT+vaDKBgfg/2L0yB575TCFgJKr3oZdFTqaYPMRaVtimMujCq6qlWCA5XSVy83QkeYrG6QX35jyEDu//FePoKc82zhp8/RmvaJiavwCA0WnPqh3sEBPHMhaPn6j5Fwb6qnLn9AMSM4Ckbol97AZ57pu60eI97hq6Tkk7GvhB6pA= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1725448602; c=relaxed/simple; bh=mzWAaTg1vbJM6BrkME05/UHf2UP8i7OlZSJJiQURPLw=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=Fve2fBO8w/7eoVkcqiOav2pX/7X6e7sNLPJkq91zuSe7Ioh+z77H6PWIkY7dW8PkdzYrsEcKSuEc4IHNv8+MAa5yyAx1u371Q3h40GJph+Rrzm9EmEghfwZ64iz/o4VruIh71672cHr7TXNslVKYp3EiUJk3bpG2U+ADWCn2+g0= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=YeZQcuwr; arc=none smtp.client-ip=209.85.218.52 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="YeZQcuwr" Received: by mail-ej1-f52.google.com with SMTP id a640c23a62f3a-a86984e035aso792946766b.2 for ; Wed, 04 Sep 2024 04:16:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1725448599; x=1726053399; darn=vger.kernel.org; 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=tjGT+JlKCba1g954gJtXN33KdKuouaatEcokaL5FlZk=; b=YeZQcuwriMvLJQqJEd1nbUoy/AATRBh7SuN6FFBN6JATqrrZzUuTaAwTvXPjEUWjtA FBPLSIDUaiIiTU4N7XEWeZoksDbPoG4h5zw7jdWy8/8Ai6jV6UvoQkbmVAUKMwOUq3oE 9YFgx6mm9EQF+cn6NKe4Yu0wUaMvVSSMtfXofCAP3GBEZLATnL5pTwMzXMAkTMK9h0oj zk1VCCuwiV5q5Ix+9qfQlRUG1BuwLfRnXtqXUb6wTmQeBwlgBy+SPL4t+4hYE+klt/CT FaZ4OH/OkjBoISYQCqhikYjMb2vUXQlQoVKgOBbc1Dawp86zH//rfkhUU6/bxCSzWN6K k8gQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1725448599; x=1726053399; 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=tjGT+JlKCba1g954gJtXN33KdKuouaatEcokaL5FlZk=; b=LnL1AiZZDyhdwIzcXUWJ9lrIVJ5PRLf02YxXlo86TuD0bgK+TTmmdHKP3bqRFe7TWe QUqBf9O4walkEE56Ih+WQOShV35aUaifqJDetmucfgyxaq3WmLldRw/qmG+OXCFm3Em5 0zJGhMAG3D3st0r6mNytjHGWXPgPA/bzvfEeDc6GwygZVvF3z63UJnklFuuB6G718gbJ CPivTgJ2D4pkF4x6ExVTVNa4QgvKAwD9+gQb0HsQ2yEmjHh43O7JCrZx2Iv8+elkrdF8 0/UXdQFLRJiS6+b5TrmxtjrfkcF2IoepiFvSRC3/nH46/ibQOu1c15HHPYFQyfJrVzHU INng== X-Gm-Message-State: AOJu0YwzlnAWI+D6GkAo50aFfOAiu2QbKSA3nm8ePwFGjc+LoK8wo8uY atuEVXaE/bM/5DYBJzupwGiBb6Ml1gCjS/PiWY5J1GXYcWdof0YF4S8lKN8pDewFkUQEj3MOOur P X-Google-Smtp-Source: AGHT+IGn+GQbP5fd7st3YxaACzT0RTH+AVxqaXHB+qabpc91J5Tjh9FmhddLqjOldCVgfMgOy82hHg== X-Received: by 2002:a17:907:e88:b0:a8a:3ece:d073 with SMTP id a640c23a62f3a-a8a3eced351mr177200866b.10.1725448598522; Wed, 04 Sep 2024 04:16:38 -0700 (PDT) Received: from lion.localdomain ([2a02:8109:aa0d:be00::a253]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a8988fefc12sm793401966b.9.2024.09.04.04.16.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 04 Sep 2024 04:16:37 -0700 (PDT) From: Caleb Connolly Date: Wed, 04 Sep 2024 13:16:25 +0200 Subject: [PATCH 2/3] arm64: dts: qcom: qcs6490-rb3gen2: make node names consistent Precedence: bulk X-Mailing-List: linux-arm-msm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20240904-b4-rb3gen2-usb2-v1-2-b858e681195e@linaro.org> References: <20240904-b4-rb3gen2-usb2-v1-0-b858e681195e@linaro.org> In-Reply-To: <20240904-b4-rb3gen2-usb2-v1-0-b858e681195e@linaro.org> To: cros-qcom-dts-watchers@chromium.org, Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , Conor Dooley Cc: linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, Caleb Connolly X-Mailer: b4 0.14-dev X-Developer-Signature: v=1; a=openpgp-sha256; l=1376; i=caleb.connolly@linaro.org; h=from:subject:message-id; bh=mzWAaTg1vbJM6BrkME05/UHf2UP8i7OlZSJJiQURPLw=; b=owGbwMvMwCFYaeA6f6eBkTjjabUkhrQbjpO/cs47+F1fJ+udeFWA+KYV+6VuvmO0PZExdSfvj vYp6zX3d5SyMAhyMMiKKbKIn1hm2bT2sr3G9gUXYOawMoEMYeDiFICJhMYz/Gbt6XaS/l8lk+r/ ceYaIdEkv5JGvgW2c3T2cpRZ+jEFhzIy7D0TYbX016zPzeYXM+bf33fX+/NX2x3LLc4/Spvo5r4 89CIA X-Developer-Key: i=caleb.connolly@linaro.org; a=openpgp; fpr=83B24DA7FE145076BC38BB250CD904EB673A7C47 We like to order node names alphabetically, to aid in this we should prefer naming nodes with the node type (connector, regulator, etc) at the start, so we can group similar types together. Adjust this on rb3gen2 so we can group connectors and regulators together. Signed-off-by: Caleb Connolly --- arch/arm64/boot/dts/qcom/qcs6490-rb3gen2.dts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/arch/arm64/boot/dts/qcom/qcs6490-rb3gen2.dts b/arch/arm64/boot/dts/qcom/qcs6490-rb3gen2.dts index 0d45662b8028..513d5265bb13 100644 --- a/arch/arm64/boot/dts/qcom/qcs6490-rb3gen2.dts +++ b/arch/arm64/boot/dts/qcom/qcs6490-rb3gen2.dts @@ -37,9 +37,9 @@ aliases { chosen { stdout-path = "serial0:115200n8"; }; - dp-connector { + connector-dp { compatible = "dp-connector"; label = "DP"; type = "mini"; @@ -51,9 +51,9 @@ dp_connector_in: endpoint { }; }; }; - hdmi-connector { + connector-hdmi { compatible = "hdmi-connector"; type = "a"; port { @@ -195,9 +195,9 @@ pmic_glink_sbu_in: endpoint { }; }; }; - vph_pwr: vph-pwr-regulator { + vph_pwr: regulator-vph-pwr { compatible = "regulator-fixed"; regulator-name = "vph_pwr"; regulator-min-microvolt = <3700000>; regulator-max-microvolt = <3700000>; From patchwork Wed Sep 4 11:16:26 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Caleb Connolly X-Patchwork-Id: 13790559 Received: from mail-ej1-f49.google.com (mail-ej1-f49.google.com [209.85.218.49]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id DBA0C1D1728 for ; Wed, 4 Sep 2024 11:16:41 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.218.49 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1725448603; cv=none; b=J9FSOwLK85ejD3SIUgvC0EUt1maaMBwDG4qPBRdqArd19ztly0Iok7EJiRSNTazjyg7GDethuFXptLDrjy+BfX8vQm6yG8MitsB+RcF8enDy72RPmjOAZh7UIUPwplsyajkUVa8cy7Zl6KbVm9ifzy9JvkqiLfQwxNM0CgfVTcw= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1725448603; c=relaxed/simple; bh=BHNkXdbuDeSyYWH9x4xrrrvKy2er25z0pDR6JsdyCW8=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=ExNu0X3Pwsu2TOb7GizdsCvOTVSzYvpRNgBQG0WrMn0WDDw5+SUUpaBA4unhQqlSMiQTn/cczWbDBzhnPUp3DK8sx9uEHfj+iRZDpOev3F5URXUYDUavM4yrwPPC2fCsW1DzPse9K8larLVzIDsYl0BtrLMb0YI2tqnoLjKs/pY= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=Z+4PkCEE; arc=none smtp.client-ip=209.85.218.49 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="Z+4PkCEE" Received: by mail-ej1-f49.google.com with SMTP id a640c23a62f3a-a86a37208b2so766319466b.0 for ; Wed, 04 Sep 2024 04:16:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1725448600; x=1726053400; darn=vger.kernel.org; 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=ipXOKg2vsty97f8SFqB8vFyC+yH7gTEtBFNF9Xo9UzI=; b=Z+4PkCEE/MvM6QRo7hpMoOmw1vC/HiPAwz+egy79I741SrOyn68UWl3orQHFAx+JwM OvKixKYpMwgwE3Dx1K6FsUjie+M/Jyrmnv2kSfCRG6faY4y7gYZQCUTIDxZhtoJZKZwS 9+1NdlbZGgrXRNdodeba7qEsPbRDHUZvct6LxLjMg88rR1nHVaRBAWxwNQpTnJvhAB8I /ISMAaDTJjNc76hy/7Xec+hjrCl5BDfz4TtT9VG36pgMT0zOm6p9bl6qkX3J3Ax/RF8t F5j+BkUmKQuCZKC/mpGJxSng9di2X72eOJSeDwWueiTnwJlt7Hjzbli9Ybddl64avCBt fKQw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1725448600; x=1726053400; 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=ipXOKg2vsty97f8SFqB8vFyC+yH7gTEtBFNF9Xo9UzI=; b=CAnbaHsf2toUO4dOoaFeg4MXGVo2+ch8nwsbxOCNswHr3bj3zFRAyrwsD2wb6/dHo6 x1jbUiq7mh6hPHlqDS6MsPfA3Q8U/BLt6qwdCYzEt+9YsHWpbPhmMtdQiS2ci0m7CEMl n01F3Hsp60AUrWYK7dUcKync0u9MaGLwcfuZESKLb/8IXEQ1WHmem8XLJNItsoFeJQg8 UeRd0jHyjwjj1Xy7prfyyEV+yK/JH7mJMg9Hvh0iX70LbjlsPoaist/wRnMmsOctI3MT gnjy8zrE0fbLU5AkLqFZISPdDF9X+iHi6DoNJ3XI+W1gq5o7PGznunAliuqJZERzVBEu CXSA== X-Gm-Message-State: AOJu0Yxv1VJu+QZoI5TvKBNG3pG5Z/0oXAvWZWIlCtloq2oEtQyvWIcd ZXCqUWtzHHUYYBli/vdC52hJrN4A//VV6iHlg2uOZ6iHctLTnh8CzLe0omt2XLem3tYCXagVJPY s X-Google-Smtp-Source: AGHT+IHwtdshFf0dfpckpv2T/Fj/yJtZic99KVbVLqK80IyhltpeU/Wy6QEyYVWtLtXPTuOX9y8Lcw== X-Received: by 2002:a17:907:7256:b0:a7a:a30b:7b93 with SMTP id a640c23a62f3a-a897f77eed8mr1684926766b.2.1725448599800; Wed, 04 Sep 2024 04:16:39 -0700 (PDT) Received: from lion.localdomain ([2a02:8109:aa0d:be00::a253]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a8988fefc12sm793401966b.9.2024.09.04.04.16.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 04 Sep 2024 04:16:38 -0700 (PDT) From: Caleb Connolly Date: Wed, 04 Sep 2024 13:16:26 +0200 Subject: [PATCH 3/3] arm64: dts: qcom: qcs6490-rb3gen2: describe secondary USB port Precedence: bulk X-Mailing-List: linux-arm-msm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20240904-b4-rb3gen2-usb2-v1-3-b858e681195e@linaro.org> References: <20240904-b4-rb3gen2-usb2-v1-0-b858e681195e@linaro.org> In-Reply-To: <20240904-b4-rb3gen2-usb2-v1-0-b858e681195e@linaro.org> To: cros-qcom-dts-watchers@chromium.org, Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , Conor Dooley Cc: linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, Caleb Connolly X-Mailer: b4 0.14-dev X-Developer-Signature: v=1; a=openpgp-sha256; l=3115; i=caleb.connolly@linaro.org; h=from:subject:message-id; bh=BHNkXdbuDeSyYWH9x4xrrrvKy2er25z0pDR6JsdyCW8=; b=owGbwMvMwCFYaeA6f6eBkTjjabUkhrQbjpO5gnT8HtjNO7NLM9DtyuRHWkV6uWZpD9uTnrDee 3RS/NWJjlIWBkEOBlkxRRbxE8ssm9ZettfYvuACzBxWJpAhDFycAjCRw0EM/wO+dkRr7fbRPqD3 pyZLeH6EItPj7o/eE985mP+euKKqqY+RYf3y1Pl2rRMW/nnb7yP09d3z00z6EzzUcpelS5bW2sW x8wAA X-Developer-Key: i=caleb.connolly@linaro.org; a=openpgp; fpr=83B24DA7FE145076BC38BB250CD904EB673A7C47 The secondary USB controller on the rb3gen2 is routed directly to a mico-USB port where it can be used for EUD debugging or in OTG mode. Configure the controller to prefer peripheral mode (as this is almost always more useful) and describe the connector, vbus supply, and ID pin. OTG/Host mode is untested as I don't have micro-USB OTG cables to hand. Signed-off-by: Caleb Connolly --- arch/arm64/boot/dts/qcom/qcs6490-rb3gen2.dts | 69 ++++++++++++++++++++++++++++ 1 file changed, 69 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/qcs6490-rb3gen2.dts b/arch/arm64/boot/dts/qcom/qcs6490-rb3gen2.dts index 513d5265bb13..fe66f589cb5b 100644 --- a/arch/arm64/boot/dts/qcom/qcs6490-rb3gen2.dts +++ b/arch/arm64/boot/dts/qcom/qcs6490-rb3gen2.dts @@ -62,8 +62,30 @@ hdmi_con: endpoint { }; }; }; + connector-usb2 { + compatible = "gpio-usb-b-connector"; + vbus-gpio = <&pm7325_gpios 9 GPIO_ACTIVE_HIGH>; + id-gpio = <&tlmm 61 GPIO_ACTIVE_HIGH>; + vbus-supply = <&vbus_usb2>; + + pinctrl-names = "default"; + pinctrl-0 = <&usb2_vbus_detect_pin>, + <&usb2_id_detect_pin>; + ports { + #address-cells = <1>; + #size-cells = <0>; + + port@0 { + reg = <0>; + usb2_port_connector: endpoint { + remote-endpoint = <&usb_2_dwc3_hs>; + }; + }; + }; + }; + lt9611_1v2: lt9611-vdd12-regulator { compatible = "regulator-fixed"; regulator-name = "LT9611_1V2"; @@ -195,8 +217,18 @@ pmic_glink_sbu_in: endpoint { }; }; }; + vbus_usb2: regulator-usb2-vbus { + compatible = "regulator-fixed"; + regulator-name = "vbus_supply"; + gpio = <&tlmm 63 GPIO_ACTIVE_HIGH>; + regulator-min-microvolt = <5000000>; + regulator-max-microvolt = <5000000>; + regulator-boot-on; + enable-active-high; + }; + vph_pwr: regulator-vph-pwr { compatible = "regulator-fixed"; regulator-name = "vph_pwr"; regulator-min-microvolt = <3700000>; @@ -683,8 +715,18 @@ &mdss_edp_out { &mdss_edp_phy { status = "okay"; }; +&pm7325_gpios { + usb2_vbus_detect_pin: usb2-vbus-detect-state { + pins = "gpio9"; + function = "normal"; + bias-pull-down; + input-enable; + power-source = <0>; + }; +}; + &pmk8350_rtc { status = "okay"; }; @@ -718,8 +760,15 @@ &remoteproc_wpss { &tlmm { gpio-reserved-ranges = <32 2>, /* ADSP */ <48 4>; /* NFC */ + + usb2_id_detect_pin: usb2-id-detect-state { + pins = "gpio61"; + function = "gpio"; + drive-strength = <2>; + bias-pull-up; + }; }; &uart5 { status = "okay"; @@ -758,8 +807,28 @@ &usb_1_qmpphy { status = "okay"; }; +&usb_2 { + status = "okay"; +}; + +&usb_2_dwc3 { + role-switch-default-mode = "peripheral"; +}; + +&usb_2_dwc3_hs { + remote-endpoint = <&usb2_port_connector>; +}; + +&usb_2_hsphy { + vdda-pll-supply = <&vreg_l10c_0p88>; + vdda18-supply = <&vreg_l1c_1p8>; + vdda33-supply = <&vreg_l2b_3p072>; + + status = "okay"; +}; + &usb_dp_qmpphy_out { remote-endpoint = <&redriver_phy_con_ss>; };