From patchwork Fri Oct 11 15:27:11 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jonathan Marek X-Patchwork-Id: 13832667 Received: from mail-qk1-f177.google.com (mail-qk1-f177.google.com [209.85.222.177]) (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 AD8688172A for ; Fri, 11 Oct 2024 15:31:06 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.222.177 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1728660668; cv=none; b=ieCUYlGganLAa6L5TBzkVlXAdIoyQptfJz/iyWfDI5V2zctZoLOnfTLjNxxHCLq7nSMiQbQcJbaWHq8+dUOPuzSVZ+0pr0VwDxGKER9zlOOVncWx+OqtizaVwdDcLv24Sfyh71ozC7wrg9qMZAHFCCUd/z921u9JiBEAhd7YLfM= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1728660668; c=relaxed/simple; bh=zsdPhLIVMFvAHfZz46sNbQq6eV1/GIUeuQonFruN8KQ=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=GRO6d5KvF8J9u6vItJzZwXlETKJP2YDpD04DSrWb7GAU01sJFb26HFKMf98sMs+YnyL/WJ3l6jUm51slVYbz4z7jAOVjSaefmwxG0/VC3qa05RXuXkJ1Lork2Tqhi+q60viLIsD6Pp/J+e73DACBCSb0FTXEVgBSFmGmoX/u01I= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=marek.ca; spf=pass smtp.mailfrom=marek.ca; dkim=pass (2048-bit key) header.d=marek.ca header.i=@marek.ca header.b=MdIBIvS/; arc=none smtp.client-ip=209.85.222.177 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=marek.ca Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=marek.ca Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=marek.ca header.i=@marek.ca header.b="MdIBIvS/" Received: by mail-qk1-f177.google.com with SMTP id af79cd13be357-7b02420b600so183825585a.0 for ; Fri, 11 Oct 2024 08:31:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=marek.ca; s=google; t=1728660665; x=1729265465; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=pKrcJiYut4ZlcvJ+rK0LHOlWG1ixpD8CA4mx8U0b5EI=; b=MdIBIvS/UhH/OVT8ml2WSIk7CgTtCyvRhcNUFTJT0ruXAr+VVnz2pNzWpnZfSw6u62 xcAFokuJa1w9KkyjkeP8Wbtz8kC6SxNi89QPQQdvlurTqCDlUU2jj5P6qwBxmkBz/pUu wSbtA8NX115Zf3Wgox+zTicc+JRcuVy9V3lgg9sexjE16AeXnPQTJUVrXkYHXRzQNRe/ SzL6yi6JOh+1PyEZ42V6REYbSfiY1p+FkbclrFPB/5k2+8Slze/Z2V8irg/s6CSC2lL4 dH9im/xUPCsaguZQA2J4MpX2bsG503JOVE34D6sw6zrAx5yyJ0ERiAnWJC2YzQXwPQ2f YOxQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1728660665; x=1729265465; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=pKrcJiYut4ZlcvJ+rK0LHOlWG1ixpD8CA4mx8U0b5EI=; b=amYeirCEMfjMbfbf8mHFFMqcNO8Shqoq02u+DELnJnET5UE3XVmKqYkIBBkQjcanQL Y9Du+goxlrMtFxh9/SsrcP6i3a1CO5pZLrwyMI4FrWI6ZAQd3v3aprRsFUjFzOmh4nXF 5MVubkHi66MJGFtwH7pclWCiiyCQtLuRsauWqcPDL4Nz8BLoqZpUKBaG4RU8bAadp0pZ 9ekqXnKiaIkCcvcr5k5xPTFoS/hvkhQcN7ZbirKDLwiPr1/Orp2KH67Yga+UP18+M5Fk WsVN7QXQpy0d6h2vE2+gctLK7cKkQit32mYnzRFbR/zkSrT0uwje5MaZ3rZ0rQvdlmKd /fwA== X-Gm-Message-State: AOJu0YwXr3vP5wwbf/ujwYLnclBThXDWMjchgzijCsVYMOyttUs187UN QTLccKVovJYqWGSaPebUHQBHGq20uzw03X7Dl+X16RjeSWCQRuoWmXKzJ4QjctgZL1PaDCYCWst ISMM= X-Google-Smtp-Source: AGHT+IH9yonfsSPQK7ryj38gl9MtqzNSqnaDaXVaaDFmnZ+fQ9xGaeiY6zFJQHQJ9GmvJeawHGFLYg== X-Received: by 2002:a05:620a:468a:b0:79e:f851:66ec with SMTP id af79cd13be357-7b11a3c1e9bmr447744785a.61.1728660665457; Fri, 11 Oct 2024 08:31:05 -0700 (PDT) Received: from localhost.localdomain (modemcable125.110-19-135.mc.videotron.ca. [135.19.110.125]) by smtp.gmail.com with ESMTPSA id af79cd13be357-7b1148d6a09sm141714785a.42.2024.10.11.08.31.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 11 Oct 2024 08:31:04 -0700 (PDT) From: Jonathan Marek To: linux-arm-msm@vger.kernel.org Cc: Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , Conor Dooley , devicetree@vger.kernel.org (open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS), linux-kernel@vger.kernel.org (open list) Subject: [PATCH 1/2] arm64: dts: qcom: x1e80100-crd: enable otg on usb ports Date: Fri, 11 Oct 2024 11:27:11 -0400 Message-ID: <20241011152712.31571-1-jonathan@marek.ca> X-Mailer: git-send-email 2.45.1 Precedence: bulk X-Mailing-List: linux-arm-msm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 The 3 USB ports on x1e80100-crd are OTG-capable, change dr_mode and add usb-role-switch flag to enable OTG. Signed-off-by: Jonathan Marek --- arch/arm64/boot/dts/qcom/x1e80100-crd.dts | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/arch/arm64/boot/dts/qcom/x1e80100-crd.dts b/arch/arm64/boot/dts/qcom/x1e80100-crd.dts index 6dfc85eda3540..53e76b3f0c831 100644 --- a/arch/arm64/boot/dts/qcom/x1e80100-crd.dts +++ b/arch/arm64/boot/dts/qcom/x1e80100-crd.dts @@ -1558,7 +1558,8 @@ &usb_1_ss0 { }; &usb_1_ss0_dwc3 { - dr_mode = "host"; + dr_mode = "otg"; + usb-role-switch; }; &usb_1_ss0_dwc3_hs { @@ -1590,7 +1591,8 @@ &usb_1_ss1 { }; &usb_1_ss1_dwc3 { - dr_mode = "host"; + dr_mode = "otg"; + usb-role-switch; }; &usb_1_ss1_dwc3_hs { @@ -1622,7 +1624,8 @@ &usb_1_ss2 { }; &usb_1_ss2_dwc3 { - dr_mode = "host"; + dr_mode = "otg"; + usb-role-switch; }; &usb_1_ss2_dwc3_hs {