Received: by 2002:a05:7412:3b8b:b0:fc:a2b0:25d7 with SMTP id nd11csp2644240rdb; Mon, 12 Feb 2024 11:17:38 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCXNlca3wgv0dvw5I/1Eq1q5G6ZhdG+mcmrPxFNIIhbJLzby6Q+Q75W5Qq25Fs5S2dW6dn8hGcvPGElXC1baDZQlJRsyvndnfTLQIVwA3w== X-Google-Smtp-Source: AGHT+IEHp/ZwVm7ls8QKmiHOewT89/0hsnit9b51NZv9ph8SXqN2DMrUH2tmMjuyaSPWtsqdQ1a9 X-Received: by 2002:ac8:67d0:0:b0:42c:6f1e:dff4 with SMTP id r16-20020ac867d0000000b0042c6f1edff4mr5662274qtp.7.1707765457849; Mon, 12 Feb 2024 11:17:37 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707765457; cv=pass; d=google.com; s=arc-20160816; b=ssQhmOmygcCRp+7dx3k+qoQB5sKpKl5MpGNY9AwqXHiTH86xQpQecbNXQOLr1jseuu TdFrpkRsVV0lhvwCss2QE80Mv+fFR2+PgbHX1IJ2o4DdCgHJ7nMNlLS0MDslHYbtP7IF c5Ux2K4vfB3SX2a/J1PtsfQmjLwHmZPaxFAyYeOzHLLtjcwdrCxj9XUggfW71GcKBhSM GEzFy0G4XO57qto9H5qWZX+dcQkXyYhybgBH+t7nov/0C73z8o1h0bNhe1hKw1Po573P KURPfDobXSzGBj/b7qHOoh6YQOBgVSKRRonl3TxSIfWtt8IM/sAHLLAVK38tIJq3Rc9Y LKzg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=WMLetVOi1Tf9hmTdZnCJzk/WpjTPZas7r5FuMe1bTCI=; fh=7GdDeGn5Ivze016soR44SqDtP8BooKI4BvZuLsdS2m4=; b=xLR72XDwPMNHgfRdXi0l6y5nctEwwUuUlGE+a5wxfrV+kTlf/XOf94zy9uM/c+wd2F uXJ8pgcHiybG7Ryc0N6OxV9T7uyDR2t1yR1UA2M1QXmElk5I8naWdkS1T8eCR9q2eMrZ 2R/AD9E70E5UeRfLur40R7hb8RHMejNGmW6Uj7LtXhzUj3CH9ESd+qWPtwpuGH3Fpgs4 giTXbO/BR4aFv7NDpLGlmY7WJN4lWNT966Ik8k8Qo40FJTGSB/xfd2UNsBI7Joq707Vs BEM1KOaQwYanURz+sGpeeFaBDtbyLtp2r8zmXyHdWyTE8KpUG2uI8OaLg5Ckor/iv7iP lobQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=Z5Ex1MWX; arc=pass (i=1 spf=pass spfdomain=redhat.com dkim=pass dkdomain=redhat.com dmarc=pass fromdomain=redhat.com); spf=pass (google.com: domain of linux-kernel+bounces-62267-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-62267-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com X-Forwarded-Encrypted: i=2; AJvYcCXhF8HbE7g/WCYkIlZ5qFkERD02XUZKR4Cj0d8l2M4IW0vyFHDgw3YmOlkg4+PQ0OjGsVNNgUSK9IWftLQXMq+iJvjUAdLGbrX+AErQkA== Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id u3-20020ac858c3000000b0042c66cea37dsi1183423qta.336.2024.02.12.11.17.37 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 12 Feb 2024 11:17:37 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-62267-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=Z5Ex1MWX; arc=pass (i=1 spf=pass spfdomain=redhat.com dkim=pass dkdomain=redhat.com dmarc=pass fromdomain=redhat.com); spf=pass (google.com: domain of linux-kernel+bounces-62267-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-62267-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com 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 7C90F1C20F31 for ; Mon, 12 Feb 2024 19:17:37 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 7400846B8B; Mon, 12 Feb 2024 19:17:25 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="Z5Ex1MWX" Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id E41B446546 for ; Mon, 12 Feb 2024 19:17:22 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=170.10.129.124 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707765444; cv=none; b=pSujE5KH2+9mnilNRMGE7v7/CqdPfoLDFljl070BwpbdpWMIumqCztiBoMu8O4N0bXJh3+h/SEiJ+7BAnxXnIajDLcV4mHXfiGYs5j1K6FKCrQJFYL2T5Gw8nFzHu0RtcKEDvpwyAWMyBHEx5rX8AA0qkDZZj6jxJNNXa23mWhw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707765444; c=relaxed/simple; bh=hCPIVz2rsHP449BdbfGe9x7zZLIk+rF9nrvXV0NjKjQ=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=Zkho7JEB8G7Q+8ECUXr1w+niF3Xfy0XLA5d+couH07/hRwI0IANF3GAlgfgxkE/izIvzlNgkheLSUrFqLJv8NSvdIXR1TKw6QoVFlmUkrlSqIWnzDtzfByap5t5gzBOXMAVXE42ma/aJyUXrHsLPYLwqMO0jGeeMwsnsnm2qGrU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=redhat.com; spf=pass smtp.mailfrom=redhat.com; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b=Z5Ex1MWX; arc=none smtp.client-ip=170.10.129.124 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=redhat.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=redhat.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1707765441; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=WMLetVOi1Tf9hmTdZnCJzk/WpjTPZas7r5FuMe1bTCI=; b=Z5Ex1MWX5kAt6rAkN9S2yZGlEHjVG54xHosLvWf1eRf3/+0vDIfmf/bndn7isg3kcuoU6D e4JTcV31p9TcayqzEp9hjC67kfYUYAZOQfvJkBMqkmdtjIXwUj7EYgTch668TdbIUUHYRT lzBAC6IyLBtPpcdbMOdwaVgNuDCRi/E= Received: from mail-qk1-f199.google.com (mail-qk1-f199.google.com [209.85.222.199]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-659-OK3ipWSyNQCoR-oRH_7Xcw-1; Mon, 12 Feb 2024 14:17:20 -0500 X-MC-Unique: OK3ipWSyNQCoR-oRH_7Xcw-1 Received: by mail-qk1-f199.google.com with SMTP id af79cd13be357-7859f5ae990so10087085a.1 for ; Mon, 12 Feb 2024 11:17:20 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1707765439; x=1708370239; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=WMLetVOi1Tf9hmTdZnCJzk/WpjTPZas7r5FuMe1bTCI=; b=qXWbzwjDtQ3dYuw13thHazWI+iSaENg+95Lh5//rmAJOKBGQ9XIr7cZDAL9ProVNUD 9H6fgnH6gFSlc02WXEr2HPPYB1dy5BcrtVbQKGYTFo/4rFB5QswrS3GeW3oNPC/TmHb7 flSdyykuuhHGjeXy4Y/zpmV0H+3LcXdp5hR7YhgsOZr83p78Gme9tQR5fIMWPTCvQc72 CAXHdXD521/AZ4exKM49EC3dW3qiRJomolrDTuZT8b6TNjji585EyiLtCoh1WPK/os6D 7DfcDbt2MNYlqupksUkaCRgdM2v8XWEMlgMStyuqfjXWsd3Iex51mNNXxbGuClrRTFzF 0pww== X-Forwarded-Encrypted: i=1; AJvYcCX4/6yf2PyYGfQ8zv1h232jhXKkT2kRplAtqszSzDMNxg4OQ1cfc5MiELN3d+gqHGxf2i6zbN6ozGanwU6G9P4rax3WzrK82bobGBa7 X-Gm-Message-State: AOJu0Yxk0RU6u/v/4ETBbv4MMmdIk8LfuVzdY6GC9sBUf5fAWD2NXybe 2JpKE4GMtG13i3jE1LbncvbfAZA12oRjIK2fb8dgZwaqLRC/QoRJ0Wb3e3jdj0EQnp/v7+sHviI /ViCx/EmPo3Xu9UPaFMGvAClnPbKT7wlTFk87/Vaz2yiPU/XLB1Ev/7qvT+6QJA== X-Received: by 2002:ae9:f710:0:b0:785:ca61:7ea3 with SMTP id s16-20020ae9f710000000b00785ca617ea3mr6779543qkg.75.1707765439714; Mon, 12 Feb 2024 11:17:19 -0800 (PST) X-Received: by 2002:ae9:f710:0:b0:785:ca61:7ea3 with SMTP id s16-20020ae9f710000000b00785ca617ea3mr6779524qkg.75.1707765439403; Mon, 12 Feb 2024 11:17:19 -0800 (PST) X-Forwarded-Encrypted: i=1; AJvYcCWHNd5mtEeuRGeiTxZmbrytYgOlMyUVp07tEqmXgWzzcSqfe5SNDj/Fud6qax6Zyc8BXlT+w1Ehg8Y5p3v4Yywo0ocVaoqwUQUGFW3DUSPzygLTWl54gswZ62IrenQX8B+GnWawcCEeB1phpQBGrOs8XeC/cTjFmJYe4RgzaIzG5MdDpq/BlMuoEh6an8W4aIz76LNaskj4Djhi9FCcN/iP5nFnQfJk83BIr+3djfrDH7lWQtm5A6x3pWGvRbqeNEd0agL2jZd9U+oGwxL3nIQMo/JKWGJ0TRgFc0Pc8XXDDI+spwJtwZwg3ZWLPCgLe7IzTogq7kXp332oU9VEyjeRnQXsGiaeZHOoH1n+2SfkrNWQlUeI1L2fyvEboVk91s3kV7sl3jeo1lLRR0zlEk3BEnvr0oRO67AGaRYqvyZnge/0cz0ltDzHZr6TEE7jHHU= Received: from fedora ([2600:1700:1ff0:d0e0::37]) by smtp.gmail.com with ESMTPSA id u2-20020ae9c002000000b0077f435ed844sm2280803qkk.112.2024.02.12.11.17.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 12 Feb 2024 11:17:19 -0800 (PST) Date: Mon, 12 Feb 2024 13:17:16 -0600 From: Andrew Halaney To: Krishna Kurapati PSSNV Cc: Dmitry Baryshkov , neil.armstrong@linaro.org, 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 Subject: Re: [PATCH 3/3] arm64: dts: qcom: sa8540-ride: Enable first port of tertiary usb controller Message-ID: References: <20240206114745.1388491-1-quic_kriskura@quicinc.com> <20240206114745.1388491-4-quic_kriskura@quicinc.com> <23824242-1b37-4544-ae9a-0a5a0582580e@linaro.org> <6q2ocvrujbli42rjddflyol74xianr7j47jwcgdnnmwjanv25d@uw2da7zulqqd> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: On Sat, Feb 10, 2024 at 04:13:51PM +0530, Krishna Kurapati PSSNV wrote: > > Krishna, when you make v2 can you update the wording about the USB 2.0 > > mux? Maybe something like "which by default on boot is selected to mux > > to the external port on the board (with the other option being a test > > point)." instead of the wording I originally had? That way the > > information Dmitry requested here is easily accessible in the future. > > > > > > > > > > > [...] > > > > > > > > }; > > > > > > > > > > > > Isn't gpio-hog the preferred way to describe that ? > > > > > > > > > > That depends. As this pinctrl describes board configuration, I'd agree > > > > > with Neil. > > > > > > > > I unfortunately don't have the experience with gpio-hog to weigh in > > > > here, but wouldn't be opposed to Krishna switching it if that's what's > > > > recommended for this type of thing. > > > > > > Quoting gpio.txt: > > > > > > The GPIO chip may contain GPIO hog definitions. GPIO hogging is a mechanism > > > providing automatic GPIO request and configuration as part of the > > > gpio-controller's driver probe function. > > > > > > See sdm845-pinctrl.yaml for an example of the gpio-hog node. > > > > Thanks, that seems like the way to go. Krishna please take note of this > > for v2! > > > > Hi Andrew, > > Can you help test the following patch. It is just an add-on to your > original one. I don't have a SA8540P Ride at the moment and getting one > might take time. Incase you can confirm this patch is working. I can push v2 > of this series. I just realized that unfortunately I no longer have access to a sa8540p-ride, and I'm not sure if I'll regain access. So I would not be opposed to dropping this patch altogether and someone dealing with sa8540p-ride when they can test it :/ Sorry, Andrew > > > diff --git > a/Documentation/devicetree/bindings/pinctrl/qcom,sc8280xp-tlmm.yaml > b/Documentation/devicetree/bindings/pinctrl/qcom,sc8280xp-tlmm.yaml > index ed344deaf8b9..aa42ac5a3197 100644 > --- a/Documentation/devicetree/bindings/pinctrl/qcom,sc8280xp-tlmm.yaml > +++ b/Documentation/devicetree/bindings/pinctrl/qcom,sc8280xp-tlmm.yaml > @@ -36,6 +36,10 @@ patternProperties: > $ref: "#/$defs/qcom-sc8280xp-tlmm-state" > additionalProperties: false > > + "-hog(-[0-9]+)?$": > + required: > + - gpio-hog > + > $defs: > qcom-sc8280xp-tlmm-state: > type: object > diff --git a/arch/arm64/boot/dts/qcom/sa8540p-ride.dts > b/arch/arm64/boot/dts/qcom/sa8540p-ride.dts > index b04f72ec097c..aa0cec0b4cc2 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_state>; > + 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,19 @@ wake-pins { > bias-pull-up; > }; > }; > + > + usb2-en-hog { > + gpio-hog; > + gpios = <24 GPIO_ACTIVE_LOW>; > + output-low; > + }; > + > + usb2_en_state: usb2-en-state { > + /* TS3USB221A USB2.0 mux select */ > + pins = "gpio24"; > + function = "gpio"; > + drive-strength = <2>; > + bias-disable; > + output-low; > + }; > > > Regards, > Krishna, >