Received: by 2002:a05:7412:bbc7:b0:fc:a2b0:25d7 with SMTP id kh7csp3034369rdb; Tue, 6 Feb 2024 05:31:06 -0800 (PST) X-Google-Smtp-Source: AGHT+IHSQfh0Js9vB9VZyuAweFaemGFxavHgJp98AsOxsMk+s/ukAGOixKPRcd1r33cQI/mFssFH X-Received: by 2002:a05:620a:7ee:b0:785:6fea:906c with SMTP id k14-20020a05620a07ee00b007856fea906cmr2281815qkk.16.1707226266216; Tue, 06 Feb 2024 05:31:06 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707226266; cv=pass; d=google.com; s=arc-20160816; b=kKlqjNNsgZTpGSwQDiiHtqm9nT7px2kGA4WkJ+26iwl+bcNyWMGj16BBXcucPtjh0Q g5aeJcku/YH72/FzkdwxBarl/nVE6hCZLiQfAQa6qTq5KupbxwZ3UJibcQWznLemWtO7 UFmZ8JHJ9Ss4IPT5GnxHRpvwLz3By+eyZ6NbdJV1QEdyv8iGNfCw0rLBFLg26R4WTJXG WtFiq0MbDa0GyX7r5nHL1tI4DnGb4vrPQdFZyzGgrkZwGrZHapbuAuHdSREM/4vXghix yi81zd8r7eMLuODiERRHitytDV6K3K53aZWQquRObyq93ULmOgvAsXEpKxm1Ng2B7Ohh cTOg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :dkim-signature; bh=syfT8eZHmDCYmUwPnVQwDnxlPKhwhANY4vE7QqK4U6k=; fh=ZBMJHZ40/O7Hno9eZu2zuZd6H8Y41y622uFc/Fzd+BQ=; b=GSY3aZN4OLw69KL2TLHEgrk7lP2PPWNoH9dSSu8LLhaVFyLgTGunJDr9WfP7HSlG8g Mr3rgsFopDDMfCu5FZmDBbJhoJOZ8bXJzKTHw6JHVJgP5zp5dfOZ34YQiw3pA93RWIu+ 92DWmT91S1PZXFRmlnqjxkOALyku32msTYSOPgRn/rrQLI5o7r88ud5SyIK/dWPB0IR6 QQbpxGgeiHNIBdeRbHjww4uPwrpVlU0Ju+ZnMzQuE+h4gCcVT1MaK6IbIMv0BOEnZtBZ poOlfTYNcHfmSZd+DgPVv2iqudUkA6tJxet10kk8eqlJnzFwivEX+WRIUZf8qG9szqp1 e2kQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=IPBgApog; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-55020-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-55020-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org X-Forwarded-Encrypted: i=1; AJvYcCXhOem+BVoo2glzzrcbxlXaPeh+EOQgQpD8QDhmorSwKy+7k5iruoEW5PT+NmKmMOQw/txS+etNXibEIkyrrcmXOjauRpfowNlmEONfDA== Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id t13-20020a05620a0b0d00b00783448147c8si2233550qkg.292.2024.02.06.05.31.06 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 06 Feb 2024 05:31:06 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-55020-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=IPBgApog; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-55020-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-55020-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id CE36E1C2401E for ; Tue, 6 Feb 2024 13:31:05 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 14798131742; Tue, 6 Feb 2024 13:30:47 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="IPBgApog" Received: from mail-yw1-f175.google.com (mail-yw1-f175.google.com [209.85.128.175]) (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 9BEB2130E54 for ; Tue, 6 Feb 2024 13:30:44 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.175 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707226246; cv=none; b=HXJVCWvYlTegL2tXjt5JyFh7W/YXAPV/Mdp3kUzujO8e4OYtlv0B63L7vltjcXnlLGAYut1efv00HKDc3167aD/nHCp6YAXvhpaAK/pZx5d+KGDKQr8NK2cNG2z86g8D/eK0FMh9r7OOo2h4V4T9SvSWvHILbQKLsLBRj2BdZp8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707226246; c=relaxed/simple; bh=6VbChb8VlwrzRgsUUaCn3bmmMTjtrFKEcChykrRRa7I=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=AJVgCJI1pyEwmOJTDD9K41iOaFxK6IDbPzvpwqcL2186LE1Yhn1/BmPcjVu67odipSvxFN54aC25j2F9c4x7l5dbm43HrwgCM2iRN9TSs0YsaDlEzomxoFGwGpVbNflVjJ0a/i1vV42UXm3jGnHTfB/1C7LcWFylw7pRbP3z18w= 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=IPBgApog; arc=none smtp.client-ip=209.85.128.175 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 Received: by mail-yw1-f175.google.com with SMTP id 00721157ae682-6047a616bfeso6007927b3.3 for ; Tue, 06 Feb 2024 05:30:44 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1707226243; x=1707831043; darn=vger.kernel.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=syfT8eZHmDCYmUwPnVQwDnxlPKhwhANY4vE7QqK4U6k=; b=IPBgApogxKt23uKUqzYjJ8luOCVRwvnK7NNr5xG1vV+1yKc+JNv8uaj7F4y3eFdYYR 6WvMtuXWsBPO1jYEX1/7KReRT2C8+BTtsDxYLyMJLO3mG1tdMujPKMXcvORnI+OLGm+u kUNlOMOfRhsu4DF/nlvq29GrbsXZAQ9STpXyBLYj+uBViGIUaMITj76+rRrEfFa3Wu9i /WISxRLgOA6xElvpGBPLDWF6bix0cPYvSxSpkgJNR3hwzWf+W3lit+tUO2g8YG+KStXt w9Cg/vKOlcZCcu9GxisAy36S07jrbDC6afC8p5tHUS11T8c2gaNrpwKXSPLUYcm0jBso XmsA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1707226243; x=1707831043; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=syfT8eZHmDCYmUwPnVQwDnxlPKhwhANY4vE7QqK4U6k=; b=msZWqbTEtO8IXo6Vfx5pw/qx2If1vk7a91AMz8xFYTIVDrdtKS/wokgYrsrZYLtsWn /e/jSxktO75ehpTWnK3A6ny8k1lw60thFBtD16BWmxN6NrAwdy7cRNNBy3On7cM8MwbI ZmJeHShW3/lpzRWss/7yRnV/uv41/nkwS5ydFCdx/icdY2BRIEfyAG5ZbbjFoxUM/z1n La2DuHYXj0Dhf7qoVOfqZLopvM8bB5KrSfVsPHl6rPL1miV70tjgi6SSVoMVWlfe5nNK G9tseiT8MdDB1osGt4DQ70/4hjZ98MfUcpS1UUBWgUgjcCk+ML/h2jYwXG9gV0rHrUJ3 tn4A== X-Gm-Message-State: AOJu0YxQ9EoZilrLnd78TCvMZ0cz+c5GVNiwy1qbm7kzMUlgEHNzj0yg GQfXj2rQK92+G1RSMnJ37WHBbERp3rneYd2lENCN1KjOQ7sk8+A/THX1EQKdCyqiIW5Mau3G9vT nYOEN5VajcE6webmqKCe54OKn2KuEcYCNMX8weA== X-Received: by 2002:a81:b349:0:b0:604:2c8:e49f with SMTP id r70-20020a81b349000000b0060402c8e49fmr1309737ywh.50.1707226243569; Tue, 06 Feb 2024 05:30:43 -0800 (PST) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20240206114745.1388491-1-quic_kriskura@quicinc.com> <20240206114745.1388491-4-quic_kriskura@quicinc.com> <23824242-1b37-4544-ae9a-0a5a0582580e@linaro.org> In-Reply-To: <23824242-1b37-4544-ae9a-0a5a0582580e@linaro.org> From: Dmitry Baryshkov Date: Tue, 6 Feb 2024 15:30:32 +0200 Message-ID: Subject: Re: [PATCH 3/3] arm64: dts: qcom: sa8540-ride: Enable first port of tertiary usb controller To: neil.armstrong@linaro.org Cc: Krishna Kurapati , Krzysztof Kozlowski , Rob Herring , Bjorn Andersson , Konrad Dybcio , Conor Dooley , linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, quic_ppratap@quicinc.com, quic_jackp@quicinc.com, Andrew Halaney Content-Type: text/plain; charset="UTF-8" On Tue, 6 Feb 2024 at 15:28, wrote: > > On 06/02/2024 12:47, Krishna Kurapati wrote: > > From: Andrew Halaney > > > > There is now support for the multiport USB controller this uses so > > enable it. > > > > The board only has a single port hooked up (despite it being wired up to > > the multiport IP on the SoC). There's also a USB 2.0 mux hooked up, > > which by default on boot is selected to mux properly. Grab the gpio > > controlling that and ensure it stays in the right position so USB 2.0 > > continues to be routed from the external port to the SoC. What is connected to the other port of the MUX? > > > > Signed-off-by: Andrew Halaney > > Co-developed-by: Krishna Kurapati > > Signed-off-by: Krishna Kurapati > > --- > > arch/arm64/boot/dts/qcom/sa8540p-ride.dts | 21 +++++++++++++++++++++ > > 1 file changed, 21 insertions(+) > > > > diff --git a/arch/arm64/boot/dts/qcom/sa8540p-ride.dts b/arch/arm64/boot/dts/qcom/sa8540p-ride.dts > > index b04f72ec097c..eed1ddc29bc1 100644 > > --- a/arch/arm64/boot/dts/qcom/sa8540p-ride.dts > > +++ b/arch/arm64/boot/dts/qcom/sa8540p-ride.dts > > @@ -503,6 +503,18 @@ &usb_2_qmpphy0 { > > status = "okay"; > > }; > > > > +&usb_2 { > > + pinctrl-0 = <&usb2_en>; > > + pinctrl-names = "default"; > > + > > + status = "okay"; > > +}; > > + > > +&usb_2_dwc3 { > > + phy-names = "usb2-port0", "usb3-port0"; > > + phys = <&usb_2_hsphy0>, <&usb_2_qmpphy0>; > > +}; > > + > > &xo_board_clk { > > clock-frequency = <38400000>; > > }; > > @@ -655,4 +667,13 @@ wake-pins { > > bias-pull-up; > > }; > > }; > > + > > + usb2_en: usb2-en-state { > > + /* TS3USB221A USB2.0 mux select */ > > + pins = "gpio24"; > > + function = "gpio"; > > + drive-strength = <2>; > > + bias-disable; > > + output-low; > > + }; > > }; > > Isn't gpio-hog the preferred way to describe that ? That depends. As this pinctrl describes board configuration, I'd agree with Neil. -- With best wishes Dmitry