Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp288712rwr; Tue, 2 May 2023 21:04:17 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ56gn/JodgTUGBuflT5B/MTr19CvPkh19KYdC6HXkrO9K7myEaPKCuugFaf/U2s2BAlLVRs X-Received: by 2002:a17:902:ecc8:b0:1a6:4127:857 with SMTP id a8-20020a170902ecc800b001a641270857mr1037113plh.5.1683086657405; Tue, 02 May 2023 21:04:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1683086657; cv=none; d=google.com; s=arc-20160816; b=LDpf1KGsIyXcjJP0EOvaQVw9aTQuUPiBHkEWLaQXxPaIUXgC9q2TY8oZ4ufV1LQpox tAcy97d4EsGmyzRriSiHUIW9BCM891JzoaTJ0osM+sv/fsOfkJ2muzXGl2wXoZQKAWDb tr9XrrdtozwoqAGmH00hF/QVoBFFmnSZuG2pMBrgQ9MXlqMaEjSQbGri21j3D2BAozEZ FvNmCMGiUL6Ov4b2xc9kvMO8WhLdX32OHpT2PlTU7zuHMLLauHyRU9++O0WB5y6NdnHf ZxzBPsByOoddlJmSrwpru8AoJyo7wKU+uqWFdEBkKMTO24TGGC2FRvcXxr2ZLhP49YXq u7fA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=OsWgzpu5/2JLIObVKc1qDH/DqW/O0qt5XMWvByGhzrM=; b=q40m2UWWMIILh2Ea9JhSkjRFfecwENrqbKxiuaSqSH+cQ7LT9p13A2vw1NuowWD+pt K4DXtSgPaps48KwIkaJ1eRJ5xeFlOkgbKglIpl//X0MZr0dik5kdCEqgKdNGOufvHonk OuxjsAqI2Jgc/r97wzfnMfU92oWogu/DLH+D9veKNbKSwaRUbjRr6uBObqp03EGRMrgO dzV7jLGy3KHF8960/+vWvF+wwL87GvnIpVMSIzAtha1RNG+FesjSptooPVqh7SKHr3SS YHVxZ2LrghkqJJ4lSh7e2oCITvWIkUW/GJ6DtNgSWQ3SdEyp6dErmna41x1pb3fCpxuT 3e9g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=FS0IM8Ef; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id p2-20020a1709027ec200b001a534447059si30687742plb.216.2023.05.02.21.04.03; Tue, 02 May 2023 21:04:17 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=FS0IM8Ef; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229619AbjECDzb (ORCPT + 99 others); Tue, 2 May 2023 23:55:31 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37316 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229487AbjECDz3 (ORCPT ); Tue, 2 May 2023 23:55:29 -0400 Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com [205.220.168.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DA622C5; Tue, 2 May 2023 20:55:27 -0700 (PDT) Received: from pps.filterd (m0279865.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 3433PpsC007770; Wed, 3 May 2023 03:55:17 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=OsWgzpu5/2JLIObVKc1qDH/DqW/O0qt5XMWvByGhzrM=; b=FS0IM8EfhfAvyux4OTrlROUZY8xm8LldNF1GNA6LSpmoohZNwWp0Jun/pXCMVugDeTY2 9bBEkTUV9SZfJOsQ8PvY4P2VR2CywYRltPvJNGZBb3QDLV/DMuGy/IwO7e202Kj3MwBf xueHTWil7MR/d52dXuQByhjHPv4yViLNcn893v3SQ43y6wIolG3tKs7BNfHYsmb8Y0oS hj8oOl/mgVYldroRre55iNGV5bmJ+OKYD9+WePzxv5OANtfDUEp5HKUmBCwGW4CIkzh2 8kxja7pz6KSw2kkJ/CjT5DxdWCiJ0bdV2GPFpFFkbsv7Fuyc/ZFcl4etCwzxsMSMjyeQ /w== Received: from nalasppmta01.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3qawak2gdj-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 03 May 2023 03:55:17 +0000 Received: from nalasex01a.na.qualcomm.com (nalasex01a.na.qualcomm.com [10.47.209.196]) by NALASPPMTA01.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 3433tHnh009110 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 3 May 2023 03:55:17 GMT Received: from [10.217.216.230] (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.986.42; Tue, 2 May 2023 20:55:10 -0700 Message-ID: Date: Wed, 3 May 2023 09:25:07 +0530 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.9.1 Subject: Re: [PATCH v7 8/9] arm64: dts: qcom: sa8295p: Enable tertiary controller and its 4 USB ports Content-Language: en-US To: Konrad Dybcio , Thinh Nguyen , Greg Kroah-Hartman , Philipp Zabel , Andy Gross , "Bjorn Andersson" , Rob Herring , "Krzysztof Kozlowski" , Felipe Balbi , Wesley Cheng CC: , , , , , , , , , References: <20230501143445.3851-1-quic_kriskura@quicinc.com> <20230501143445.3851-9-quic_kriskura@quicinc.com> <8c8a7c25-9eae-7ded-61ce-2ce22b7b76dc@linaro.org> From: Krishna Kurapati PSSNV In-Reply-To: <8c8a7c25-9eae-7ded-61ce-2ce22b7b76dc@linaro.org> Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 7bit X-Originating-IP: [10.80.80.8] 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-GUID: SXahuwUfH36mxgHgwaAMnR33Icza60Sa X-Proofpoint-ORIG-GUID: SXahuwUfH36mxgHgwaAMnR33Icza60Sa X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.254,Aquarius:18.0.942,Hydra:6.0.573,FMLib:17.11.170.22 definitions=2023-05-03_01,2023-04-27_01,2023-02-09_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 mlxscore=0 bulkscore=0 suspectscore=0 lowpriorityscore=0 clxscore=1015 malwarescore=0 priorityscore=1501 impostorscore=0 mlxlogscore=860 phishscore=0 spamscore=0 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2303200000 definitions=main-2305030031 X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_LOW, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 5/2/2023 4:36 PM, Konrad Dybcio wrote: > > > On 1.05.2023 16:34, Krishna Kurapati wrote: >> Enable tertiary controller for SA8295P (based on SC8280XP). >> Add pinctrl support for usb ports to provide VBUS to connected peripherals. >> >> Signed-off-by: Krishna Kurapati >> --- >> arch/arm64/boot/dts/qcom/sa8295p-adp.dts | 47 ++++++++++++++++++++++++ >> 1 file changed, 47 insertions(+) >> >> diff --git a/arch/arm64/boot/dts/qcom/sa8295p-adp.dts b/arch/arm64/boot/dts/qcom/sa8295p-adp.dts >> index fd253942e5e5..7e6061c43835 100644 >> --- a/arch/arm64/boot/dts/qcom/sa8295p-adp.dts >> +++ b/arch/arm64/boot/dts/qcom/sa8295p-adp.dts >> @@ -584,6 +584,19 @@ &usb_1_qmpphy { >> status = "okay"; >> }; >> >> +&usb_2 { >> + pinctrl-names = "default"; >> + pinctrl-0 = <&usb2_en_state>, >> + <&usb3_en_state>, >> + <&usb4_en_state>, >> + <&usb5_en_state>; > This is misaligned. Also, please do property-n before property-names. > >> + status = "okay"; >> +}; >> + >> +&usb_2_dwc3 { >> + dr_mode = "host"; >> +}; >> + >> &usb_2_hsphy0 { >> vdda-pll-supply = <&vreg_l5a>; >> vdda18-supply = <&vreg_l7g>; >> @@ -729,3 +742,37 @@ wake-n-pins { >> }; >> }; >> }; >> + >> +&pmm8540c_gpios { >> + usb2_en_state: usb2-en-state { >> + pins = "gpio9"; >> + function = "normal"; >> + output-high; >> + power-source = <0>; > No drive-strength values? > > Konrad Hi Konrad, TBH, I didn't add the drive strength values as things worked out of the box with the current changes (may be the default value of drive strength is sufficient for us). Let me know if it is mandatory, I will add it up in the next version. Regards, Krishna, >> + }; >> +}; >> + >> +&pmm8540e_gpios { >> + usb3_en_state: usb3-en-state { >> + pins = "gpio5"; >> + function = "normal"; >> + output-high; >> + power-source = <0>; >> + }; >> +}; >> + >> +&pmm8540g_gpios { >> + usb4_en_state: usb4-en-state { >> + pins = "gpio5"; >> + function = "normal"; >> + output-high; >> + power-source = <0>; >> + }; >> + >> + usb5_en_state: usb5-en-state { >> + pins = "gpio9"; >> + function = "normal"; >> + output-high; >> + power-source = <0>; >> + }; >> +};