Received: by 2002:a05:7412:1e0b:b0:fc:a2b0:25d7 with SMTP id kr11csp203004rdb; Wed, 14 Feb 2024 18:42:05 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCV4eSyZj44yBNJwPpNl63o/asuzA2hGIxHKAP/T72SCLGmpWENQcqFBjUukGCjw8gNkypDMI5I3ZSLFpNTQ9xpBx1nvxXKGk2dWQ0hung== X-Google-Smtp-Source: AGHT+IHlOVuK6hOujJQYmjIgq7HzuYEIuK77kZfQKkbduD14Wg7lutIYFIRkTygtPcnrvDUPua/w X-Received: by 2002:a17:90a:17c4:b0:293:bdef:ce72 with SMTP id q62-20020a17090a17c400b00293bdefce72mr583861pja.9.1707964925464; Wed, 14 Feb 2024 18:42:05 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707964925; cv=pass; d=google.com; s=arc-20160816; b=RpvqawuC6LCvogWp3YFs4CzrkdLCFDjij9uJfv0fJb5PTOFq66seOW8Crm7IeFgfVi pEIC9ipgWbZiHBo57UsOVKPLSyGdk6CuIenhZBUS46gtA6XdlsN1qC8P3mPIfDYi0pMT pRtdgjj980RMkVZdSo8p+7uj1kgGRWHMTeyB4wq8XSkosLGnTS2q24HuLZAHTa6y2hKv 3bP2JX0uEEIGdCNpDqKeb6JCjxuXYL3tVpKsIkPYQnwlsjQp66qsbR6hPXv76GcnpZTY RINN0UODbsUCAZ7MVZk70eyWNXyE9oXgguNWdsjT4DGYgtpQalTD/9sNVsmfDaR5yeTk v4Ig== 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=kB5F2GW2RCTNQ5OZGSEOdoDwSNsqxYS/IqD7wi8Nl54=; fh=nDm0j5UBHvp52j+tc0txJ6KbYV98BSLjLln3oaAFP/Q=; b=eUFatrzVeZ7SQpSQaDJSNRq8LR9PdPjWc/O+5xXvmOajGYsyt+Obq0s7dJbEl0SmJ8 gsXDVB0Ji1M+pRzg0vZIjRuI3rKv7mSsZP6Txdci5vHuHMhU+WIRBwQ8vP9v6e9dOdmn vG2EkLGD5r83tkfKpwNUKuCGnyKSHGRe05hnP4yj4ypBZYmgbTH4061IjkGapNPG3n9J nlplP+utjJYZKcccBHIBYEIhdmdxVUCFjVX0tn+LjW5rsjFndoulriIqZ2gvgDMbmnTb +r0YcHyE+qq6oPQbkdAGJU7xCqZAkA1/CIagbMcNrzacNj1oTL1vfHoga3y/xlNelCSc VR7Q==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=B9K6T7Ft; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-66242-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-66242-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id lw18-20020a17090b181200b0029793f98303si367728pjb.100.2024.02.14.18.42.05 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 14 Feb 2024 18:42:05 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-66242-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=B9K6T7Ft; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-66242-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-66242-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 8902A28A67E for ; Thu, 15 Feb 2024 02:41:49 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 75913469E; Thu, 15 Feb 2024 02:41:41 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="B9K6T7Ft" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 83CEE3FC7; Thu, 15 Feb 2024 02:41:40 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707964900; cv=none; b=glftnda6vuXXBv6rHPVet7B3kSnlkdOiigmcfNjzmCgpvuqukStorwOTRYl5eZI5pwPqIhzscCKVjpUOrAzVsPX6LVjJUuOx9uWIrmY7vFj1p4tLl84uzqBE/i16JljabpNDtKVMAufaqd+Dl3yYzgnFArgAFBnhygG/HCtkDKY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707964900; c=relaxed/simple; bh=gfoCUu9D/q3M+PGkJekBGFp/SGs/cma2Lv5kzV3+/EU=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=BLxplk5rx70kVLNr/RyjlRElKa4ZCvqYx6UGtsu+JCUBsR+YBivmxh9Lo5wy2dSFnnPj9YiXDdqVEi5hWKnhF1y3gctdZngC6zOEVreRT7f//yVl7j0nPB4OltZMJLbkkY/xeparADp1j0EXteiUh6OPQAfkcGspYuUI3GIkz7c= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=B9K6T7Ft; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 351F1C433C7; Thu, 15 Feb 2024 02:41:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1707964899; bh=gfoCUu9D/q3M+PGkJekBGFp/SGs/cma2Lv5kzV3+/EU=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=B9K6T7FtMDbM1caYDERATDW5et7A+dPRbzRygNys6yjkAEmQtUMGBr0OWsDT6jECZ MMQmUjQT13EdKjfcKIk4MbrDKaoxlNBB/u+jVfeD5MsJ47K+AeWu+U8J05BB7jPros FSgbZa/Hr9c56TkLPve6/bG5heYFbN6+l4esLw6sIKYCBz818odcip+Zn0AwPV6Ksp wd5jwVMMF1v9wO7dHMhhSaXBx39abf9jNJq1YtLzpO6LTpuCJuGna6BwYUmmSnUujJ UXUvsDMCFhLuJt7930ei9DcIsY+83GjXeC6WR3PdtdZJpt3NErUm90eGO3Gl5trpFg SIu9sYZb5HV4Q== Date: Wed, 14 Feb 2024 20:41:37 -0600 From: Bjorn Andersson To: Krzysztof Kozlowski Cc: Krishna Kurapati , Krzysztof Kozlowski , Rob Herring , Konrad Dybcio , Conor Dooley , devicetree@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, quic_ppratap@quicinc.com, quic_jackp@quicinc.com Subject: Re: [PATCH v2 2/2] arm64: dts: qcom: sa8295p: Enable tertiary controller and its 4 USB ports Message-ID: References: <20240213082724.1789096-1-quic_kriskura@quicinc.com> <20240213082724.1789096-3-quic_kriskura@quicinc.com> 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 Tue, Feb 13, 2024 at 09:39:51AM +0100, Krzysztof Kozlowski wrote: > On 13/02/2024 09:27, Krishna Kurapati wrote: > > Multiport USB controller (host-only) of SA8295 ADP has 4 Type-A ports > > exposed for connecting peripherals. The VBUS to these peripherals is > > provided by TPS2559QWDRCTQ1 regulators connected to these ports. Each > > regulator has an enable pin controlled by PMM8540. Since these regulators > > are GPIO controlled regulators, model them as fixed regulators and keep > > them Always-On at boot since we are wakeup capable and we don't need to > > turn them off on suspend. Also since we don't enter device mode, these > > regulators can be kept on. > > > > Signed-off-by: Krishna Kurapati > > --- > > arch/arm64/boot/dts/qcom/sa8295p-adp.dts | 83 ++++++++++++++++++++++++ > > 1 file changed, 83 insertions(+) > > > > diff --git a/arch/arm64/boot/dts/qcom/sa8295p-adp.dts b/arch/arm64/boot/dts/qcom/sa8295p-adp.dts > > index fd253942e5e5..49418843c214 100644 > > --- a/arch/arm64/boot/dts/qcom/sa8295p-adp.dts > > +++ b/arch/arm64/boot/dts/qcom/sa8295p-adp.dts > > @@ -9,6 +9,7 @@ > > #include > > #include > > #include > > +#include > > > > #include "sa8540p.dtsi" > > #include "sa8540p-pmics.dtsi" > > @@ -108,6 +109,46 @@ edp3_connector_in: endpoint { > > }; > > }; > > }; > > + > > + regulator-usb2-vbus { > > + compatible = "regulator-fixed"; > > + regulator-name = "USB2_VBUS"; > > + gpio = <&pmm8540c_gpios 9 GPIO_ACTIVE_HIGH>; > > + pinctrl-0 = <&usb2_en>; > > + pinctrl-names = "default"; > > + enable-active-high; > > + regulator-always-on; > > + }; > > + > > + regulator-usb3-vbus { > > + compatible = "regulator-fixed"; > > + regulator-name = "USB3_VBUS"; > > + gpio = <&pmm8540e_gpios 5 GPIO_ACTIVE_HIGH>; > > + pinctrl-0 = <&usb3_en>; > > + pinctrl-names = "default"; > > + enable-active-high; > > + regulator-always-on; > > + }; > > + > > + regulator-usb4-vbus { > > + compatible = "regulator-fixed"; > > + regulator-name = "USB4_VBUS"; > > + gpio = <&pmm8540g_gpios 5 GPIO_ACTIVE_HIGH>; > > + pinctrl-0 = <&usb4_en>; > > + pinctrl-names = "default"; > > + enable-active-high; > > + regulator-always-on; > > + }; > > + > > + regulator-usb5-vbus { > > + compatible = "regulator-fixed"; > > + regulator-name = "USB5_VBUS"; > > + gpio = <&pmm8540g_gpios 9 GPIO_ACTIVE_HIGH>; > > + pinctrl-0 = <&usb5_en>; > > + pinctrl-names = "default"; > > + enable-active-high; > > + regulator-always-on; > > Why all these regulators are always on? If USB controller does not probe > for any reason, why keeping them enabled? These must not be always-on, > but instead used by connector as VBUS supply (or by whatever you have > there for USB). > I'm not too concerned about keeping the lights on in this scenario, but if we can describe this properly let's do so (and let's do so on other boards with connectors as well). We'd have a set of usb-a-connector nodes, that we can tie to the nodes in the USB/phy, and the supply. But so far we've associated a connector with a port manager, here we don't have one of those, so where would the node reside and who should acquire and drive the vbus-supply? Regards, Bjorn > Best regards, > Krzysztof >