Received: by 2002:a05:7412:bbc7:b0:fc:a2b0:25d7 with SMTP id kh7csp3003645rdb; Tue, 6 Feb 2024 04:34:36 -0800 (PST) X-Google-Smtp-Source: AGHT+IG876Nmjk1hN5+QApqcSer0V9j0WepMKVll8+jgWAPEsivoESQgllhSVH70MHFADK78Dusy X-Received: by 2002:a17:906:3b89:b0:a38:2f94:eec4 with SMTP id u9-20020a1709063b8900b00a382f94eec4mr905362ejf.23.1707222876800; Tue, 06 Feb 2024 04:34:36 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707222876; cv=pass; d=google.com; s=arc-20160816; b=NNEMSX4ZDwhUeMyCBOcX5f8kKRU53mY4SJnsk54pCDaXBTf9QfwTZMHNbDYpP2K+GG WQm3OghXv74BDAAXAWjtj6Axd5MyuMvThOfTFViA42/+RM4+X4kMa/xAgf2N2CeQRayZ xNOBTcmE5a6SFcipyZn1OLJq8tfi6wvQRZ7z/FAOO9mK3QvS1qTf9Fae6BOoxjKAzMht R71QSln5QP+MwtSTltK+EgN1pf5Seh8rgXftOhj42gYnsHZOjcPczDW6kkfUeNtYXokq x1If26iWkTXmpkFh/2aC3pdZSBemX584lSc6CfUJ6wq1/t/hV2MTxvm1ij1XOdllDe8I Nf1g== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature; bh=/PPwmVW37d4csbKfWKzToS6ZXkyr+LGxcudMnsG90xs=; fh=Tf1nTERKAZUGUkXrGs1CzMarID9v2b7S4O/AoElI6eU=; b=d2gozBYyVXUrrgAGsnP9fsvdk802BP87DtHQ9/NKKamx0Qe0ExPj2Tf0TjZLEqmggq EPnh0AcTYWoUuKd5FtRqBdrMzfiIAdQf+LcPh3W315RxmZIHxtJpiuQNZ2+ckgSQV+gE /ReTLEZdaLCQKLS+Wy2zkiBB8bATrW2/6Gfl3YPt0xetrU/ugpJTbPkYE9OoHRbBdah4 0kDAb2OwAbrekYNs19UhsSMJ/VIc34briYUWLKLdUxSLgu0stCO2NOFFf4qM6MzckxrE 6QvlBh3Z8S0T+omhlShMTQlA/HrHU0ybiiaj+JhVumUoqnhRffbqbvPSqmVsHGm9sriG dlnQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=OxSz+EmG; arc=pass (i=1 spf=pass spfdomain=quicinc.com dkim=pass dkdomain=quicinc.com dmarc=pass fromdomain=quicinc.com); spf=pass (google.com: domain of linux-kernel+bounces-54949-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-54949-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com X-Forwarded-Encrypted: i=1; AJvYcCVjP5hf0HG04C0WamUJqDUUdaTw/RhU3Os46Uz5l2HOAdohzfqoogeSSkYcg+kVu3Gq2cPvuFMtTvP/jx12+71tzD49LKPMiIyc2udXtQ== Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id v1-20020a17090606c100b00a38100b177fsi894815ejb.1018.2024.02.06.04.34.36 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 06 Feb 2024 04:34:36 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-54949-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=OxSz+EmG; arc=pass (i=1 spf=pass spfdomain=quicinc.com dkim=pass dkdomain=quicinc.com dmarc=pass fromdomain=quicinc.com); spf=pass (google.com: domain of linux-kernel+bounces-54949-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-54949-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.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 5E7D31F26386 for ; Tue, 6 Feb 2024 12:34:36 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 0D6D7134CD4; Tue, 6 Feb 2024 12:28:57 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=quicinc.com header.i=@quicinc.com header.b="OxSz+EmG" Received: from mx0b-0031df01.pphosted.com (mx0b-0031df01.pphosted.com [205.220.180.131]) (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 90A0A134CC0; Tue, 6 Feb 2024 12:28:54 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=205.220.180.131 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707222536; cv=none; b=RyLJGvVfWs4jLTFeZnqn4E4S60kGTliV1EotPLWoPRNqZ+NmekvNG/tZyH2u0E5RnO6QPyK+EmRQXZYO1iY+wp3O/xZ6/CNLQmkhsLPpo4AouBLvPp9aHfKUYv26E7CZ4vwf+frldTouZgMKohFPGQvUkJVL8b3deutLWxZwGXM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707222536; c=relaxed/simple; bh=gXljQFI0I8iiLMgCyBE2xW7OD3QUmvcs+XTuIaUYAgI=; h=Message-ID:Date:MIME-Version:Subject:To:CC:References:From: In-Reply-To:Content-Type; b=cj+ZQCdQu2ixkG35pDorfX2aFcugtyQr0LHjhaaQZvYVtIiT08wJp9niWTZib/hhIWnYL4NZz169yPa/rpeZupWCZnOTTN3/vmwQPZm1HcpjsStYy9LdkDZMAiMig0LC57nzmacdWqx+wmD8ic+GwukHyBeQwyUn5C5sHdbhZ4Q= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=quicinc.com; spf=pass smtp.mailfrom=quicinc.com; dkim=pass (2048-bit key) header.d=quicinc.com header.i=@quicinc.com header.b=OxSz+EmG; arc=none smtp.client-ip=205.220.180.131 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=quicinc.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=quicinc.com Received: from pps.filterd (m0279872.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.24/8.17.1.24) with ESMTP id 41692XOv025683; Tue, 6 Feb 2024 12:28:50 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h= message-id:date:mime-version:subject:to:cc:references:from :in-reply-to:content-type:content-transfer-encoding; s= qcppdkim1; bh=/PPwmVW37d4csbKfWKzToS6ZXkyr+LGxcudMnsG90xs=; b=Ox Sz+EmGM813c2sp3oQpOnFv4G/v8NgKUDgVc2W4j2te0xwFbLsSFqhDHBcmOSgXdW nsDemccOjx60L8V/d4rjEhpz4gjbjVwXq8X0WPMbTMHsgFzlHAKvFsa4+hFUMNKP iZPW5wuZqIF2M3MTFHCaZU17wQ8va50TcmfVQo29egyJHlRUl+7mvZHEC/JkWWVk jIMvU5ZnjbnOG9q3koNGFAGbXDiYcWqJBW/gKqtYrZeTH8BGohZHSVASyRXnM2YE Mo2VtAYrE6G1poN5mAOZBEFtrLO9+qjKH+ZdyQjDk1I7REi/2ufnjiMZqvxRcGmg ugtDLJ3UOmWmFrT2cfiQ== Received: from nalasppmta04.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3w3hsercjy-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 06 Feb 2024 12:28:50 +0000 (GMT) Received: from nalasex01a.na.qualcomm.com (nalasex01a.na.qualcomm.com [10.47.209.196]) by NALASPPMTA04.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 416CSn4d030834 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 6 Feb 2024 12:28:49 GMT Received: from [10.216.27.68] (10.80.80.8) by nalasex01a.na.qualcomm.com (10.47.209.196) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1118.40; Tue, 6 Feb 2024 04:28:45 -0800 Message-ID: <0470a930-d629-4467-b619-58d3e76f59a7@quicinc.com> Date: Tue, 6 Feb 2024 17:58:42 +0530 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH 2/3] arm64: dts: qcom: sa8295p: Enable tertiary controller and its 4 USB ports To: Dmitry Baryshkov , Konrad Dybcio CC: Krzysztof Kozlowski , Rob Herring , Bjorn Andersson , Conor Dooley , , , , , References: <20240206114745.1388491-1-quic_kriskura@quicinc.com> <20240206114745.1388491-3-quic_kriskura@quicinc.com> Content-Language: en-US From: Krishna Kurapati PSSNV In-Reply-To: Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 7bit X-ClientProxiedBy: nasanex01a.na.qualcomm.com (10.52.223.231) To nalasex01a.na.qualcomm.com (10.47.209.196) X-QCInternal: smtphost X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=5800 signatures=585085 X-Proofpoint-ORIG-GUID: UuyQdtT6YBsbHLNGYOR3QtMBfTyjAqf9 X-Proofpoint-GUID: UuyQdtT6YBsbHLNGYOR3QtMBfTyjAqf9 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.272,Aquarius:18.0.1011,Hydra:6.0.619,FMLib:17.11.176.26 definitions=2024-02-06_06,2024-01-31_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 adultscore=0 lowpriorityscore=0 mlxlogscore=893 mlxscore=0 impostorscore=0 bulkscore=0 phishscore=0 clxscore=1015 spamscore=0 priorityscore=1501 malwarescore=0 suspectscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.19.0-2401310000 definitions=main-2402060087 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. [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 >> >> > >