Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp5562207rwr; Mon, 1 May 2023 07:41:23 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5iEpGDPuK6E7NC31IDKp3gb6Wb98Elhcw9ioHjvLzPqugDkaUI7FEKH7LbFL9KBN7J2WJn X-Received: by 2002:a05:6a20:6a26:b0:ef:2389:66ca with SMTP id p38-20020a056a206a2600b000ef238966camr18481298pzk.7.1682952082719; Mon, 01 May 2023 07:41:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1682952082; cv=none; d=google.com; s=arc-20160816; b=EyJsjR5NTegmCqqNWqxDc4I4iQ9EeKCdZbpLjW4Qyq4j3Bkr6kMNkkauY4sgsH34c+ coDB65MIhkNsK3ZejqIhKnmZ3JuiBaGiPER+cOjpc2+BDoVZoo0gApy7iI/tR4NRjR1f u2SSE6A/Fd0AD8jCKUF/8lAe60YAZKA1hxoiLF6TDvl3jPK7SIWbsYCCP+Uhu51dZ5UK 320qnG2IQsYtDcWkimWQMzHlgchh3FupCWhUzcA0dL/1x+XrjUvzgRSH1YgJckt/rlL1 VPN+PZUkJiqDYH6O85Tit3B9rHc/BOtB9YMPWA5EV+nsgEFsJiMgi8eGG7S157YQXwjX iEmQ== 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=SO2o2n33V/6ML1mXMcntAULEnoh70sDCEByz8TtJoro=; b=f8ZooT+6v/f/ERHnca4RYeE+IRitYgg/0XPkvrmr789mkxk0WhtimM451kyIIn0Q35 5gT1OFGGcL/9R0YaO7SPysmLiPvEXOYOOsyCNPiu/KBwXB/bsACFQoukFsMUkwQfL+i2 l6mvPJCIiEbLP4IKa0d9vfobJKYxDppGd5lcg5y1d/HQQmqItFP4btMMpFU4Qj67rOsE 1MRdEnQhvxbA8rKqQYxhAw6fl6PFrqZeNtalQa+wHEio2f17gUMBAJtoOGONP7lJXpQy TrEkGp3If6QqilgBZJb0KIIcyhkDiQEuzcdz91rX/8/lvrYfpF5j4DT7b3O93GQ2f/22 QxBw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=f355EohV; 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 j16-20020a63e750000000b0051b9055399asi27575872pgk.4.2023.05.01.07.41.11; Mon, 01 May 2023 07:41:22 -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=f355EohV; 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 S232658AbjEAOkX (ORCPT + 99 others); Mon, 1 May 2023 10:40:23 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51972 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232649AbjEAOkT (ORCPT ); Mon, 1 May 2023 10:40:19 -0400 Received: from mx0b-0031df01.pphosted.com (mx0b-0031df01.pphosted.com [205.220.180.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 72D45E7C; Mon, 1 May 2023 07:40:16 -0700 (PDT) Received: from pps.filterd (m0279869.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 341Dm2VG023873; Mon, 1 May 2023 14:35:54 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=SO2o2n33V/6ML1mXMcntAULEnoh70sDCEByz8TtJoro=; b=f355EohVR8tso76lD2TfLiICLFhNrSuT6IpyG6O8wDLMPK7Zm/z0xOi9CpZqm+mcY0Cg SWeHkKq7Qd/g3tchghK31RMgNHcJ192vRxNsZLuAKI2/p/rux+t6exAbY4IQY2+E6Pv7 kaNAnOd3BwF1pMQqYr9VPtB/rJs2I2McIcsIveC7hziLFqXbpdu/sWAVdWZqLDNTinqE +Y/6qcYNZ67b8R9tDaeCvobliqjVoobpM3ARE+vLBHg7Ab527/ZaSGuPvo6Q2FFOoCCS vDsEZaeYVBYAFYrDg+y5eFe3ZW2W+MmU9mBS20IkHrRLbHCNVha++vqkRI1m7EGFAhNJ 9Q== Received: from nalasppmta05.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3q8t8ubrse-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 01 May 2023 14:35:53 +0000 Received: from nalasex01a.na.qualcomm.com (nalasex01a.na.qualcomm.com [10.47.209.196]) by NALASPPMTA05.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 341EZqm3012575 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 1 May 2023 14:35:52 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; Mon, 1 May 2023 07:35:46 -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 CC: , , , , , , , , , , Krishna Kurapati Subject: [PATCH v7 8/9] arm64: dts: qcom: sa8295p: Enable tertiary controller and its 4 USB ports Date: Mon, 1 May 2023 20:04:44 +0530 Message-ID: <20230501143445.3851-9-quic_kriskura@quicinc.com> X-Mailer: git-send-email 2.40.0 In-Reply-To: <20230501143445.3851-1-quic_kriskura@quicinc.com> References: <20230501143445.3851-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-ORIG-GUID: U1Cx7HiJ3AchDMeLZuyHv_NMnkzLB6Q_ X-Proofpoint-GUID: U1Cx7HiJ3AchDMeLZuyHv_NMnkzLB6Q_ 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-01_07,2023-04-27_01,2023-02-09_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 malwarescore=0 clxscore=1015 adultscore=0 priorityscore=1501 phishscore=0 bulkscore=0 spamscore=0 mlxscore=0 mlxlogscore=695 impostorscore=0 suspectscore=0 lowpriorityscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2303200000 definitions=main-2305010115 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 | 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>; + 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>; + }; +}; + +&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>; + }; +}; -- 2.40.0