Received: by 2002:a05:7412:3b8b:b0:fc:a2b0:25d7 with SMTP id nd11csp410710rdb; Thu, 8 Feb 2024 09:15:13 -0800 (PST) X-Google-Smtp-Source: AGHT+IHYxDVWnDL++OOjRVg43S1kYLytUjMvqpQuBZvo19RAjnBwQRix3ANyqF8peW8k3eXjfGEg X-Received: by 2002:a17:906:3559:b0:a37:b8fb:50e0 with SMTP id s25-20020a170906355900b00a37b8fb50e0mr3926419eja.52.1707412512970; Thu, 08 Feb 2024 09:15:12 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707412512; cv=pass; d=google.com; s=arc-20160816; b=YCU0FVSxoNtJALJefW2NHPwUkFju9OUWErKjMpTogCOrQYn8rsg3IZBDhy57tIGHS5 QkZuJxJu5bgNMBo6eN5D72aLHWK7ob2F3u3+s7z/CMt2duR7iuqx8vnZvnLfWZpsSEuq Jgh877VzXlJD0XkrN16l8pypkPZwapV2BDWNko8nBxTZ21kenrP8s3QIp7rbIHs2n5fM BCgMbUh+73Mrd1tM2beUeWoN1eDj0/WETBbv5D2rNTKn2AOmw6ftXDzhfEKVYaZoAUOG xPBvEKZLGkjrCfd+9fOlqG75CRgIp8OPwuEXaGAZMJOrCyJ9vCHqJ9J/Heo2N/nMkdt1 Ndcw== 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=xR4RHbfkwYwkWKAZQm9GK8FwvPGu1EB/xVzVABSRZsI=; fh=5ETuG1ozBNcyxS5ecvjxsCBZKjqG5xpGPxE9qgBmObc=; b=hAKykLUEELd4or5gnw6bsd3yNwmT1UtubidGKMraDNx/cH2/pRRw2ZsUUP6Qm3b8fM Jwp1GNbk5GDDEJVWNdlqJxb9RvdvNJgBxJ1Y160rMUcQvtOt4fq6t74Y7Ut+DKBkXHPa B+QYgTXJQqwOxo1m0nVXJI0ue31wpc8t8HUp9s8ubYcjnKNW6bXHDzBpd2AdrJZQgO5B Y5s39WI9Fq5YNBR3VTCTldXi8hiaz1j9mxmSb5DOywiuUHilGDX9wjSKNf7dpLnJ29WF kp0Zp2yPwB2FL3EMvZVpXHCU4B8ULe//sUeGKdt/1o21TFGkKHVi/J2dJQz8PjN5L5yW 13bg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=K1Y+ZDZr; 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-58430-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-58430-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; AJvYcCUMDOVtZrr1opTv0mdrpXSHNOYHfQrp+szKxsbsDYsqqQW53p7JAr4Xrm0A2Gq59hLOBceiSxFOzptsU8Vi1upJ2iTARWiiIR8F7DO3nw== Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id mc15-20020a170906eb4f00b00a39c3569359si227244ejb.16.2024.02.08.09.15.12 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 08 Feb 2024 09:15:12 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-58430-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=K1Y+ZDZr; 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-58430-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-58430-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 am.mirrors.kernel.org (Postfix) with ESMTPS id 8D3AB1F28BD7 for ; Thu, 8 Feb 2024 17:15:12 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 94A4A7640C; Thu, 8 Feb 2024 17:14:59 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="K1Y+ZDZr" Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.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 EF53C7C0AA for ; Thu, 8 Feb 2024 17:14:56 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=170.10.133.124 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707412498; cv=none; b=tar5YgUStEwL9SjyLox7LsrK1lZh486Q3PINs26uEPYkQcIjoxhjhUIUKO7TRscnoFYLeo2oqPeUiYgFElzvv5GoxfZm3kLOWFki1+/fhekU+DJpyOn+09foW2QWNYBnvlLQxH3VwbKGm4PBFf5TYC2iWOnz1F+P/zNJIy8ZXOw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707412498; c=relaxed/simple; bh=Y0r4zejSC9VWwc8OnukUl3cp4kpBgPxtHcTOZAILMWY=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=jzShFq0gwAyyzlxTioYiR2pCDsjS1EyM03DmKPXEbBrr9UrfjGYLHPIvIJV1bMTGW00mjJW4v+v8Lw6h6YhMGd2hoJCPlDuv8zqVlL+iI4Klb5Rzbk0fmpIA8q+ztmkz7+CmVuI+wuJpWODh9BNGzBbVWlrkHAWYOQoA31zfmr8= 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=K1Y+ZDZr; arc=none smtp.client-ip=170.10.133.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=1707412496; 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=xR4RHbfkwYwkWKAZQm9GK8FwvPGu1EB/xVzVABSRZsI=; b=K1Y+ZDZrXwp0Xcp3L51IpqKSn9EP+r2CuBbPGiaHWxVESRHVqhelq5L7Xdh+9PNsElRP6V BKJ0xPRCZ5Ea1MPdXaZHcTBsbZSCxJW+f5M+YyUG4D0SQHEG7ptFB1AW5dlBPxiwk7VM3t arcew2E6w5mFatS2Uk3ar50rzaLH20Y= Received: from mail-qv1-f70.google.com (mail-qv1-f70.google.com [209.85.219.70]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-520-p0VCTRwNP3i9r1DVNpoROQ-1; Thu, 08 Feb 2024 12:14:54 -0500 X-MC-Unique: p0VCTRwNP3i9r1DVNpoROQ-1 Received: by mail-qv1-f70.google.com with SMTP id 6a1803df08f44-68cbfe09cb6so345456d6.2 for ; Thu, 08 Feb 2024 09:14:54 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1707412494; x=1708017294; 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=xR4RHbfkwYwkWKAZQm9GK8FwvPGu1EB/xVzVABSRZsI=; b=Q5YXMYL/UdtRdQqQZTL2d5JypLet8HiTSLDQzYA0k1RXUcb8kLEU4jc5tPxHfi9GYa ODW9pQYurSG7O+A8NocXzj9HULLS0xp/ZC41cssuJOsChtuoXl+hS/w0ETa9SRJ1Y/Fd BqtfUvc7Pu6hEsN8gkpJqZmGAKIuug2qPigs5MZVdT9rVOLFH11S1RblHmfqv9Ux306H 4jDWIjd2FB//RMm2ACvqKsm3tciWX/eBFHc+1P1BLeBhFJxJvpWQMTVnzwdqXE8bwd2S owkprXEL8ijIJxxkcduUC9QaDODp/gGiGs1sNv4jdLLXyayrpXonOHT1fBIg36VRQfwk TxEA== X-Gm-Message-State: AOJu0YwZxwAknl9C3GBZjc8mPCUo0pKyH0U3g4oa/s9f06J4ZyFhF/SW RB4hZ/oIYihaS0ICMq2vVFAcMebyn24xzY8drUVSrKTW5XGCoOqXK0gjhBIiLAzueBSJWd6Cxcu 0hsREjviRwCPnZ5wO8uSUJ2BlnotZkuItrlZj/7mBhduQArB+V+Ppbs6lWCb4jg== X-Received: by 2002:a05:6214:500a:b0:68c:ae6d:2959 with SMTP id jo10-20020a056214500a00b0068cae6d2959mr11937107qvb.26.1707412493938; Thu, 08 Feb 2024 09:14:53 -0800 (PST) X-Received: by 2002:a05:6214:500a:b0:68c:ae6d:2959 with SMTP id jo10-20020a056214500a00b0068cae6d2959mr11937077qvb.26.1707412493654; Thu, 08 Feb 2024 09:14:53 -0800 (PST) X-Forwarded-Encrypted: i=1; AJvYcCXW7BwTvO0LbHhIp+FRYAMN4I1CMQF/dqmLhHe7tOe54hdTsWbldG7uky9/bU9LCt1W82/+dMh5+gRXTTqdxrEDBJQSbajdk9cUrtCVRRyNqAWQ8M2cJyA+4RA1OqgKOgHonSrfWg0qz+WugtkkqaF85XXcF4A/7wT2FUVjBYE4Mq3yphlZkq19xh1rc9BIvRDqlsAxWOzkLGaTcMXB3gFx+JN9atuoB4ZzFoxTHM80OZOltLKZjQ7oQ8JQ3O/oaDB1Wcxu7Bjr2N7njyZXGDK/vrou9bJ+59FHxVCbciOpAsLKoemgggI0AwntEP1A/dEB5yj96hCqZ0GCtaksVg5sLCcsqB3DjzCvnvNZ4OhnYKYddoHyY5HXsT8jJlq5HNqE9qQqMmYTk1/p8J/3R3kcr3D/+Pv5UHuDOsA4us6a1YbC1hmTTyHhmAVCMSNSlps= Received: from fedora ([2600:1700:1ff0:d0e0::37]) by smtp.gmail.com with ESMTPSA id ly6-20020a0562145c0600b0068caacd861fsm176128qvb.25.2024.02.08.09.14.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 08 Feb 2024 09:14:53 -0800 (PST) Date: Thu, 8 Feb 2024 11:14:51 -0600 From: Andrew Halaney To: Dmitry Baryshkov Cc: neil.armstrong@linaro.org, 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 Subject: Re: 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 Wed, Feb 07, 2024 at 03:32:03AM +0200, Dmitry Baryshkov wrote: > On Wed, 7 Feb 2024 at 02:10, Andrew Halaney wrote: > > > > On Tue, Feb 06, 2024 at 03:30:32PM +0200, Dmitry Baryshkov wrote: > > > 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? > > > > /me blows off the dust on the schematic > > > > It's a 1:2 mux, and one option is the out the board, the other > > is a test point I believe if I'm reading things right, although its not > > labeled so I'm not sure anyone would actually find it on the board. > > Ack, this definitely looks like a static configuration. 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. > > > > > > > > > > > > > > > > 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. > > > > 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! > > > > > > > > > > > > -- > > > With best wishes > > > Dmitry > > > > > > > > -- > With best wishes > Dmitry >