Received: by 2002:a05:7412:bbc7:b0:fc:a2b0:25d7 with SMTP id kh7csp3031512rdb; Tue, 6 Feb 2024 05:25:47 -0800 (PST) X-Google-Smtp-Source: AGHT+IHrk4NMCBNvKbUG5uKGPeV+WmNPdr1iqetJ9gWGbHjvHaFY80MA7PlGn4vQWvOtE/vM3ivG X-Received: by 2002:a17:903:32cb:b0:1d9:bdbc:388a with SMTP id i11-20020a17090332cb00b001d9bdbc388amr1763129plr.20.1707225947652; Tue, 06 Feb 2024 05:25:47 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707225947; cv=pass; d=google.com; s=arc-20160816; b=NBxc3rcroPIyWfYA4v1WLX10vUtwgCan++/2xJBM8h3tg10tWOILQ9D+N34AhREBNu 9QQmS49upXRPT2W9bZCKjdNYeiCEEsLA7PFc+hWW7cxCNWTa73AiEqE7056Yrz91ewgc nQVrJUpDJA7gotIYN5sd/7kuoKnYj+dzP8DPxo61UsIw/wkKvoDYqYBZI239/jYMgXQa Tt+nimm8a+vCyjwJ2GLpn4Ccs5FkKgMGw4zNCYKf71nt9QjJDgxqGxYGM75ljnsx157/ zqVJlW1WNCdQWTI9jBV4PKNCFU3ZTL3606jlE2PY+h3xK6FCp8YjEFIYJHaj/bv8/KE6 hkXw== 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=bNYfeRHplSwy9onZWV3mvxR3r7VxC5IicrOwRsKxWIk=; fh=JT3qRfbnCeGDfY2TUveH73A0WJe/jq24rKDMZdvAL7k=; b=eNoH6nejj2bjF5/aYDWlytZGM3C3Lt5ZKJ/kC0AkvoIKFPMLk2/17+CStbytVqWCsI epkr3GMLWS9DwOinKuSAKsiHTOJ0LY7F+LCprp80u1KuZge63w38SATquyoXoUWpoIES 42cCWJmM7AT40J8ubLEdrxfirIQSiqvtnyEYkKG4MqoP5jJe/X5lu4nH5ezCO64luv1M aI08gX46o5aTNf32slUdU+Lc+7gZifTux/PiHVC9gG1dJe6Ia1RfUumcmvUaMNe/zr++ 4ah2zhRvrZzU/10qjzDwQsSmPOd8+7weipf13vzsTcKQ89qZSkJFxDzmxAupeVaKeH2k WRig==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=OKomjMaa; 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-55014-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-55014-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org X-Forwarded-Encrypted: i=2; AJvYcCWWS+jPWJch+MAlM/oZFvm66NXeuHmtwzBwFk0RY21HNgUtGu1fuK8fW+0NBQPleuv3vkVkuiPnC/U2pwh/ca1J2m9oe6XPQm2m9xHNjw== Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id ku12-20020a17090b218c00b0029654218b03si1117610pjb.46.2024.02.06.05.25.47 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 06 Feb 2024 05:25:47 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-55014-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=@linaro.org header.s=google header.b=OKomjMaa; 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-55014-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-55014-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 5B8C728967B for ; Tue, 6 Feb 2024 13:25:09 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id A0330130E3B; Tue, 6 Feb 2024 13:24:59 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="OKomjMaa" 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 251F5128826 for ; Tue, 6 Feb 2024 13:24:57 +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=1707225898; cv=none; b=tHqp+3PKynS32+nW2osFikllxzzigD2uOFeNbXGcfdCZof4QwR1Z0x1JA8ijoYm5x6ZA9qJX49sF3vNEvgQsmzuBrn8t8KoBCdkPDWDjnfJV61uQERKItjb0KJ4gUMBEkajbkoRnbCBE9oe1ggl5VL1simF5G8BQss2rYKGo5U8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707225898; c=relaxed/simple; bh=0ODBZ0bKH/+4Qy9gatNTHZmyTBY0YATZdj+RldTZHyU=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=aEd96K2x0WH5Pn4k47pY1Mmuca3gesGLKiBwVWsa2kDnBpHJ0bWHIgAfxy2keXdR/6zIP+o/6IpBXtMLO4Qta1AO8Z/hNSuPIkUcr2inGxfc7v1vv2N4eyEuoaZ0D1dpgjhQABWly07ot+VJo9RKS1hGtAGPL8VOs+woFrHBazc= 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=OKomjMaa; 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-5ffdf06e009so49450627b3.3 for ; Tue, 06 Feb 2024 05:24:57 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1707225896; x=1707830696; 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=bNYfeRHplSwy9onZWV3mvxR3r7VxC5IicrOwRsKxWIk=; b=OKomjMaaf+cX3n72ippMsSkhpG2sCFYgF+9V+cmevhmO4pVqJ5OljqpauSEr3Pnsos yw560KNo8pjtOQetVX87XNcHFn2iFDnOUS80CyK7jivlnTE+m07YutJH24EJvnytK9rv lZc/YKjy3FClmozo+GPWTTK4jIJ9xroNSjE4s9dr3UVELSDUMiVAhVdwHASxqVJOfZb1 /yv6/qFdcSiXJfADA23N1Sw4nKsY+jv96gQsBxPK/sTMFK/lGGXOB3etUZrtptOsC2xa jnhQi7aFNBmti8JDU9k3BTkaTJyhWx0uP6KuCwrT5URbqQVt8B5Ga3cdC6ovxALugXNL tOaA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1707225896; x=1707830696; 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=bNYfeRHplSwy9onZWV3mvxR3r7VxC5IicrOwRsKxWIk=; b=d66145CHBALKwdmLDUo9un29WfD5+5WTRZ3kb6r5vi4H/zznGajtZOUfP7FjPL/Zn2 ZYk7uN0Hx4M9P0grnOs3jVopzMUuBdQIhlbCSzJDWU33pkZckTz1gQDj6izlKW9c93QH nCApXENbsrZzFwaR6J0krcltn4vvhc9M2JstEOtUUhh9+cRyOUVWEk03P9y5tU2iZkAJ Xds3bvWGUSnEpIWl60T1GR9GjQYvigKig7nSvjmIYKuSCihpXqXRvFZyIItPqqZsmiuK DaslpWQC46m3FsgO4lPnLPSrwPKCrUlZ8+klR+luuAnvqANuV5qOaaxUwwFRiB3PceqW kkBg== X-Gm-Message-State: AOJu0Yx4eVpdIUCqnkf37nIdl/ddjDbbSfdistNYVeX7LcfZy5g9JnFr evcPKH99Qk8/q+CWsuZQh3c25yDDfVP8cO+puVSqt1VRLkOsOcNJLw+zVAUey8xCtBQxbtTH+xI +6VSMnNe9y5tosbraym6hGxKNd2hUARj79XDnoQ== X-Received: by 2002:a81:ed0c:0:b0:5ff:6319:6b0e with SMTP id k12-20020a81ed0c000000b005ff63196b0emr1590646ywm.21.1707225896133; Tue, 06 Feb 2024 05:24:56 -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-3-quic_kriskura@quicinc.com> <0470a930-d629-4467-b619-58d3e76f59a7@quicinc.com> In-Reply-To: <0470a930-d629-4467-b619-58d3e76f59a7@quicinc.com> From: Dmitry Baryshkov Date: Tue, 6 Feb 2024 15:24:45 +0200 Message-ID: Subject: Re: [PATCH 2/3] arm64: dts: qcom: sa8295p: Enable tertiary controller and its 4 USB ports To: Krishna Kurapati PSSNV Cc: Konrad Dybcio , Krzysztof Kozlowski , Rob Herring , Bjorn Andersson , 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 Content-Type: text/plain; charset="UTF-8" On Tue, 6 Feb 2024 at 14:28, Krishna Kurapati PSSNV wrote: > > > > On 2/6/2024 5:43 PM, Dmitry Baryshkov wrote: > > On Tue, 6 Feb 2024 at 14:03, Krishna Kurapati wrote: > >> > >> Enable tertiary controller for SA8295P (based on SC8280XP). > >> Add pinctrl support for usb ports to provide VBUS to connected peripherals. > > > > These are not just pinctrl entries. They hide VBUS regulators. Please > > implement them properly as corresponding vbus regulators. > > > > Hi Dmitry. Apologies, can you elaborate on your comment. I thought this > implementation was fine as Konrad reviewed it in v13 [1]. I removed his > RB tag as I made one change of dropping "_state" in labels. My comment is pretty simple: if I'm not mistaken, your DT doesn't reflect your hardware design. You have actual VBUS regulators driven by these GPIO pins. Is this correct? If so, you should describe them properly in the device tree rather than describing them just as USB host's pinctrl state. > > [1]: > https://lore.kernel.org/all/7141c2dd-9dcd-4186-ba83-829fe925e464@linaro.org/ > > Regards, > Krishna, > > >> > >> Signed-off-by: Krishna Kurapati > >> --- > >> arch/arm64/boot/dts/qcom/sa8295p-adp.dts | 49 ++++++++++++++++++++++++ > >> 1 file changed, 49 insertions(+) > >> > >> diff --git a/arch/arm64/boot/dts/qcom/sa8295p-adp.dts b/arch/arm64/boot/dts/qcom/sa8295p-adp.dts > >> index fd253942e5e5..6da444042f82 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" > >> @@ -584,6 +585,16 @@ &usb_1_qmpphy { > >> status = "okay"; > >> }; > >> > >> +&usb_2 { > >> + pinctrl-0 = <&usb2_en>, > >> + <&usb3_en>, > >> + <&usb4_en>, > >> + <&usb5_en>; > >> + pinctrl-names = "default"; > >> + > >> + status = "okay"; > >> +}; > >> + > >> &usb_2_hsphy0 { > >> vdda-pll-supply = <&vreg_l5a>; > >> vdda18-supply = <&vreg_l7g>; > >> @@ -636,6 +647,44 @@ &xo_board_clk { > >> > >> /* PINCTRL */ > >> > >> +&pmm8540c_gpios { > >> + usb2_en: usb2-en-state { > >> + pins = "gpio9"; > >> + function = "normal"; > >> + qcom,drive-strength = ; > >> + output-high; > >> + power-source = <0>; > >> + }; > >> +}; > >> + > >> +&pmm8540e_gpios { > >> + usb3_en: usb3-en-state { > >> + pins = "gpio5"; > >> + function = "normal"; > >> + qcom,drive-strength = ; > >> + output-high; > >> + power-source = <0>; > >> + }; > >> +}; > >> + > >> +&pmm8540g_gpios { > >> + usb4_en: usb4-en-state { > >> + pins = "gpio5"; > >> + function = "normal"; > >> + qcom,drive-strength = ; > >> + output-high; > >> + power-source = <0>; > >> + }; > >> + > >> + usb5_en: usb5-en-state { > >> + pins = "gpio9"; > >> + function = "normal"; > >> + qcom,drive-strength = ; > >> + output-high; > >> + power-source = <0>; > >> + }; > >> +}; > >> + > >> &tlmm { > >> pcie2a_default: pcie2a-default-state { > >> clkreq-n-pins { > >> -- > >> 2.34.1 > >> > >> > > > > -- With best wishes Dmitry