Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp462484rwd; Sat, 13 May 2023 23:40:30 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5nlQ78hojZBseCGZcdhFSAHrGhgPUl+dQ7Zq2EmKorQqmG9XcQcXi5zUYdZ6ZCx9VNYrCt X-Received: by 2002:a05:6a20:6a0d:b0:104:1f67:1157 with SMTP id p13-20020a056a206a0d00b001041f671157mr12374772pzk.26.1684046429851; Sat, 13 May 2023 23:40:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684046429; cv=none; d=google.com; s=arc-20160816; b=ZwzTaHxOvEMmIkJqZtimrQCks8VI+8RvSHnUYwYR3W+7P88OKS7iba4GxKfPSaqI3T EiSIneFS4tdRVSR9/EgO2m8b3GjyNNMMRbPWOBAv4/2CNmIua79JPOKiOxDAwmH+SeFq B9t9TW3lxd+xNBppx8qlrYjW9aovY4AngSqspo4JQ5U8wbo2Eg2lA969T6ZxAX17cIDc PIbOp0GM53miHLOWp07lXSxPhnG+SFtQMc5BWZ3wfmRzvliRSpWKaqV7QHmSKXfrXovy eLo9HEuQeiLj6dYVxtG63ay3IPBYow8DJCSHK4udmoVgKznFwCwR/CnzQoDP6/UOKbD0 U4Lw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=bnRJaA9ULGK9N8NDINIWxgL+9CADAwiQYtpDPUqYkNg=; b=pTpy/oXGSoEspNpY63f73zTUtFzJ7RGfGkoclm7eLqtPYlAtDF88KFGHfUhrj34OeA OX+RvMmNhS4OmlD0L6Ym5BDtehYcicuznJwWP8h9lejNkNf7GUYhMrpAV8mFZkoBxwYT YztgtkKsP7Ntx3O9IbUnMeKtdvFphscvxFCXRp7Rejgcdr/QHjSgUPYhM/hjCmwbQ5rV D3crrAquS6DaVzXcuJGZuke3s40rulghD8hIv7lRzgQo3y9S1qFiGhX/osOv7QpXMPwA H7/qFzWUkQCqr+cC+zJkj5M+iFUcqC4k8l1BaKajeO0vqHpYvGCMT/1lsyNHcgf/7/oD dERw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=cPOEXtKr; 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 y187-20020a638ac4000000b004fd10490f3dsi14098967pgd.251.2023.05.13.23.40.15; Sat, 13 May 2023 23:40:29 -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=cPOEXtKr; 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 S237312AbjENFvf (ORCPT + 99 others); Sun, 14 May 2023 01:51:35 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36336 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233239AbjENFuy (ORCPT ); Sun, 14 May 2023 01:50:54 -0400 Received: from mx0b-0031df01.pphosted.com (mx0b-0031df01.pphosted.com [205.220.180.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 91D0B3A92; Sat, 13 May 2023 22:50:32 -0700 (PDT) Received: from pps.filterd (m0279873.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 34E5oOb3027586; Sun, 14 May 2023 05:50:24 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h=from : to : cc : subject : date : message-id : in-reply-to : references : mime-version : content-transfer-encoding : content-type; s=qcppdkim1; bh=bnRJaA9ULGK9N8NDINIWxgL+9CADAwiQYtpDPUqYkNg=; b=cPOEXtKrDKmRTfD1h7bpYxS4izN/dVJ8YyarpPaWOAnmFQsyWf1kk1Yjk3l4259cDLaX we0YCcfkXMkqKQUutzsN2rPupW9E7bu3jmpiofxtSgQZzAUwdFju0kgu22KKVDk+2sml eYt/ai4YujZvjBx+DL+9ONMIui8r8RTx6x7xpWa+OMft/84MWD1Z2XEPJyVv7dj4WWVI Zvt2kx6dn63Xa9a6mVKW80Iz2u5Fi97dkcRxPAqcEbH6Q6Tb7VTou0jyrlvNPBdqbU/x miVvuTHh938KfZ3PK402goZqu/W3MiAbHYpQQjixanhLew+JoYVo4TdB/iaio5YxjtWv og== Received: from nalasppmta01.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3qhywuhmnk-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Sun, 14 May 2023 05:50:23 +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 34E5oM0S029613 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Sun, 14 May 2023 05:50:22 GMT Received: from hu-kriskura-hyd.qualcomm.com (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; Sat, 13 May 2023 22:50:16 -0700 From: Krishna Kurapati To: Thinh Nguyen , Greg Kroah-Hartman , Philipp Zabel , "Andy Gross" , Bjorn Andersson , "Konrad Dybcio" , Rob Herring , Krzysztof Kozlowski , Felipe Balbi CC: , , , , , , , , , , Krishna Kurapati Subject: [PATCH v8 8/9] arm64: dts: qcom: sa8295p: Enable tertiary controller and its 4 USB ports Date: Sun, 14 May 2023 11:19:16 +0530 Message-ID: <20230514054917.21318-9-quic_kriskura@quicinc.com> X-Mailer: git-send-email 2.40.0 In-Reply-To: <20230514054917.21318-1-quic_kriskura@quicinc.com> References: <20230514054917.21318-1-quic_kriskura@quicinc.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain 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-ORIG-GUID: 6gGDt-bN0ctTffrunZga5jpQE-SQZPkc X-Proofpoint-GUID: 6gGDt-bN0ctTffrunZga5jpQE-SQZPkc 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-14_03,2023-05-05_01,2023-02-09_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 spamscore=0 suspectscore=0 lowpriorityscore=0 adultscore=0 clxscore=1015 phishscore=0 malwarescore=0 mlxlogscore=799 impostorscore=0 bulkscore=0 priorityscore=1501 mlxscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2304280000 definitions=main-2305140050 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE 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 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 | 53 ++++++++++++++++++++++++ 1 file changed, 53 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sa8295p-adp.dts b/arch/arm64/boot/dts/qcom/sa8295p-adp.dts index fd253942e5e5..8b24b3c55769 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,20 @@ &usb_1_qmpphy { status = "okay"; }; +&usb_2 { + pinctrl-names = "default"; + pinctrl-0 = <&usb2_en_state>, + <&usb3_en_state>, + <&usb4_en_state>, + <&usb5_en_state>; + + status = "okay"; +}; + +&usb_2_dwc3 { + dr_mode = "host"; +}; + &usb_2_hsphy0 { vdda-pll-supply = <&vreg_l5a>; vdda18-supply = <&vreg_l7g>; @@ -729,3 +744,41 @@ wake-n-pins { }; }; }; + +&pmm8540c_gpios { + usb2_en_state: usb2-en-state { + pins = "gpio9"; + function = "normal"; + qcom,drive-strength = ; + output-high; + power-source = <0>; + }; +}; + +&pmm8540e_gpios { + usb3_en_state: usb3-en-state { + pins = "gpio5"; + function = "normal"; + qcom,drive-strength = ; + output-high; + power-source = <0>; + }; +}; + +&pmm8540g_gpios { + usb4_en_state: usb4-en-state { + pins = "gpio5"; + function = "normal"; + qcom,drive-strength = ; + output-high; + power-source = <0>; + }; + + usb5_en_state: usb5-en-state { + pins = "gpio9"; + function = "normal"; + qcom,drive-strength = ; + output-high; + power-source = <0>; + }; +}; -- 2.40.0