Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp8799667rwd; Tue, 20 Jun 2023 21:57:12 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5x3uKVRwt3ebIvy0YkovDAbyyPRUQ2Q4k+MOK+ysWCoV/uOZauGekzVfiOibXGbwqPmbcn X-Received: by 2002:a05:6a21:329a:b0:11f:2714:f70d with SMTP id yt26-20020a056a21329a00b0011f2714f70dmr13584322pzb.9.1687323432601; Tue, 20 Jun 2023 21:57:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687323432; cv=none; d=google.com; s=arc-20160816; b=JSXjSDKk6KrD0rHlycL9JhGVRw7uz8B+BIYB/PZAdgJ+ymE92nokKr015kUUvDIMy3 6xhTMe2eEgXr2jLKw6XvXLRVBQhbaIRTUXNa+u4GUB2JT9GxauxlX6DkwQ3JU9JJJ2G4 /IyGgUE9W8fJlAjhjhbwvt0c/enWFoCaOwwcJCJJdbYnCCx5o3nw3IsOkuc8ExNlcJol CjpwRWZGaJFfH1ashU5IbwaxGMNbE8gH+gzduPAzescNUS6zhVyUz9b0DEXD8y0IGyt2 3tbXgtAaXnYWOnptdCKknGTSH+3WbRXmFV7ha7oQC0ftlQ2aUMSJZnb2j22ykRFTd62c tEmQ== 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=FU31ZwX5raZgZo/697IHZzJVOYqV7gdemw6L+6LAyYNDqTkzu7a2jBU8fcdeZksc+x KipjNPRzVTnuWsletBrRKKZDFOKTGbC1uWbsC0tUqYXnp0CZcQ6UN40Il6r0BEUmvxGZ FaFBCiBq37TFCLl2AJ91KHJMQE3UGEz484HNQPFdxzuRCql31euwlDHfZFPx7W9738J2 MsrnwBDV9W5qeBK5RrbjjIwqP3za0QioQulBi58vDpUy6esXIHu6qlczNbhjUjdSvqGz hEKTdQLh4zfNJETebb0VIQ5WuI91J5Xhi7YYg2M76zO0Zwd5OWMwR/7NwT5GIM56aWzO 3Cbg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=ZvbTDqaU; 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 d18-20020a170902f15200b001b53bb27f1asi3083762plb.295.2023.06.20.21.56.57; Tue, 20 Jun 2023 21:57:12 -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=ZvbTDqaU; 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 S229944AbjFUEjS (ORCPT + 99 others); Wed, 21 Jun 2023 00:39:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54696 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229709AbjFUEjN (ORCPT ); Wed, 21 Jun 2023 00:39:13 -0400 Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com [205.220.168.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 56FBA1998; Tue, 20 Jun 2023 21:38:45 -0700 (PDT) Received: from pps.filterd (m0279867.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 35L3vKai026623; Wed, 21 Jun 2023 04:37:45 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=ZvbTDqaU7Qv5N2WBoHiMAsfyvhg5Bl43+Ui68ToTU8wOHjNhbMxc7JqHZFaN30raDMkM KlMYNQFnwJV6PBbYhXmn+Gcg/oFTU5BT+afmWyjxEEAL06Erz+Apb/LsV4oS1HKoDYmr Va0s6/FV5qH3UTVegZfAy6xqvRq+h/5G0hF5Fsm1SINS6B3s9HeT+lEUf8X5WXKxtyKP Vb2xsXw6j8i04iSE9PTBqgu15B/ndyGQPBhGxUVeaurNWnLVhxJKj5d8pwnBzv+WEvaw I9HEvowFExfW0wO492CT1TkbB6KkCM19wpAxS8hQbhg4w1ddFmH0HE5EadEXbsRcHFU8 AA== Received: from nalasppmta01.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3rb7sutmjc-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 21 Jun 2023 04:37:45 +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 35L4bjYL003858 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 21 Jun 2023 04:37:45 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; Tue, 20 Jun 2023 21:37:38 -0700 From: Krishna Kurapati To: Thinh Nguyen , Greg Kroah-Hartman , Philipp Zabel , "Andy Gross" , Bjorn Andersson , "Konrad Dybcio" , Rob Herring , Krzysztof Kozlowski , Felipe Balbi , Wesley Cheng , Johan Hovold CC: , , , , , , , , , , Krishna Kurapati Subject: [PATCH v9 09/10] arm64: dts: qcom: sa8295p: Enable tertiary controller and its 4 USB ports Date: Wed, 21 Jun 2023 10:06:27 +0530 Message-ID: <20230621043628.21485-10-quic_kriskura@quicinc.com> X-Mailer: git-send-email 2.40.0 In-Reply-To: <20230621043628.21485-1-quic_kriskura@quicinc.com> References: <20230621043628.21485-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: nasanex01b.na.qualcomm.com (10.46.141.250) 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: WNyyr7n1cqMGSlHwUOzy349u_7zCQJ-2 X-Proofpoint-ORIG-GUID: WNyyr7n1cqMGSlHwUOzy349u_7zCQJ-2 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.254,Aquarius:18.0.957,Hydra:6.0.591,FMLib:17.11.176.26 definitions=2023-06-21_03,2023-06-16_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 malwarescore=0 impostorscore=0 priorityscore=1501 bulkscore=0 phishscore=0 mlxlogscore=799 suspectscore=0 spamscore=0 mlxscore=0 adultscore=0 clxscore=1015 lowpriorityscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2305260000 definitions=main-2306210039 X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,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 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