Received: by 2002:a05:6358:c692:b0:131:369:b2a3 with SMTP id fe18csp488797rwb; Thu, 27 Jul 2023 16:29:35 -0700 (PDT) X-Google-Smtp-Source: APBJJlErZMAGuMIlaBV5a847Fuxc+ez01PboC+93xIApAKcgq8rleSV3UNZqCxTtAXMGlfn3Gecl X-Received: by 2002:a17:90a:5302:b0:268:5c3c:8681 with SMTP id x2-20020a17090a530200b002685c3c8681mr43406pjh.4.1690500574824; Thu, 27 Jul 2023 16:29:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690500574; cv=none; d=google.com; s=arc-20160816; b=fEFHWl8kIeLA9hhFwC993GF5tbQh9d3VRi9YZitoVaO8paoWzwZAUU7gJ36dSomkye HTbZEfa55phtjMrCJ12d2mRtsBNf9INP+GxwqgrfKFaRH0/cWLAA+mMmLquabJB6GAtI moG7wc1PBzP61FsX9zG+4LWp8hIcdiaUWbc8HaTfU0vwfxP6O0hHVMP2pRuHVFcss38S id282mSzSZ7jTbszcB3ycDpbC+EM7/BFmvCG8dkMFJPqn2Sc+75EbtarklLvLq/1DUbg 5o8589lncHYkvDZxIC8vcPRfH4/1V+pZ80bppEJGCv9L2C5MNHZwQLeRIGRRV8+f9+F1 6Lag== 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=Y0ayW8WEjPSLgxGdaTnQfXuDQNueBAnSTw7btlG1/bE=; fh=hG+2ty4feDY+2OZPqUnDncw9bDFHBUr9whTeCLGbtTI=; b=0V24pKQroM+Gvn/++pSKtRn8KXqlN5dBw3oB0DssXOf0OjQSBAzaUzRmUazzyZ0cG9 UEyXEFqH0KyIiD6lnilEoWvdmXMNnpxKqfxSI6RHNMeRNjXNzPKiN+/9+f9NhEzacsrg Qlui/6q3WTj00g4Mo9mtN2G7H837ZtnKaaYIU3VQgva5LgnwxToli6VYqnJO2b2F979u 4UeKycFwAcjj08+BTqRT8sEft8vR8yV3V5LTNZCwpLbJXwAvswYkSJK5w9rKz/miM8uX +g1UW4obrEnkM2KQoPESONdyz6B9MuAVBo2o+nkxzQTXBAGPnk87QLjXx+nc72twvtSj 4LOA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=f7XoOJ98; 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 gk20-20020a17090b119400b002680b23aff7si1991295pjb.161.2023.07.27.16.29.23; Thu, 27 Jul 2023 16:29:34 -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=f7XoOJ98; 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 S233212AbjG0WgW (ORCPT + 99 others); Thu, 27 Jul 2023 18:36:22 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49332 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233221AbjG0WgG (ORCPT ); Thu, 27 Jul 2023 18:36:06 -0400 Received: from mx0b-0031df01.pphosted.com (mx0b-0031df01.pphosted.com [205.220.180.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9CB703AAA; Thu, 27 Jul 2023 15:35:37 -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 36RKxKhl007301; Thu, 27 Jul 2023 22:34:33 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=Y0ayW8WEjPSLgxGdaTnQfXuDQNueBAnSTw7btlG1/bE=; b=f7XoOJ984F/yZjY/3lcsFEinXoVxIAeagx5mlzgC3mOvw0J/5PM/smMPzUpveT9yCMMh U1/hknbzZVb7lNEGKFYsW0NT//H9OTCFcmHraYUaHJjXS2UYYslyE0oumvHT7Mf7qSUZ NhF2iPULQJ0Ir7V8rFyyvkZajfwTnPrBJqWMHpPqSEC9oVsL+Gs8OX7JuS8AXMSosIHE YiI6I2b7Ly/C+0WvVabObxXc/PtENMxfROMGi3u2JltsJh10EfIokJn8uFZ/kM6c4Z2S yT8/CARLzqFFVavyGj7FcOM/euc4K/0rHls144FpUiiQt8kwTjoZWknk3PeB6ilZH9CR Og== Received: from nalasppmta05.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3s3k7u259q-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 27 Jul 2023 22:34:32 +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 36RMYUfa014087 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 27 Jul 2023 22:34:30 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.1118.30; Thu, 27 Jul 2023 15:34:24 -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 , Mathias Nyman CC: , , , , , , , , , Krishna Kurapati Subject: [PATCH v10 11/11] arm64: dts: qcom: sa8540-ride: Enable first port of tertiary usb controller Date: Fri, 28 Jul 2023 04:03:07 +0530 Message-ID: <20230727223307.8096-12-quic_kriskura@quicinc.com> X-Mailer: git-send-email 2.40.0 In-Reply-To: <20230727223307.8096-1-quic_kriskura@quicinc.com> References: <20230727223307.8096-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: jGbX45zOtCufsFRXOvcRX2TmfkElXwVZ X-Proofpoint-ORIG-GUID: jGbX45zOtCufsFRXOvcRX2TmfkElXwVZ 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-07-27_10,2023-07-26_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 impostorscore=0 spamscore=0 mlxscore=0 lowpriorityscore=0 malwarescore=0 bulkscore=0 mlxlogscore=955 suspectscore=0 priorityscore=1501 clxscore=1015 phishscore=0 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2306200000 definitions=main-2307270205 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 From: Andrew Halaney There is now support for the multiport USB controller this uses so enable it. The board only has a single port hooked up (despite it being wired up to the multiport IP on the SoC). There's also a USB 2.0 mux hooked up, which by default on boot is selected to mux properly. Grab the gpio controlling that and ensure it stays in the right position so USB 2.0 continues to be routed from the external port to the SoC. Co-developed-by: Andrew Halaney Signed-off-by: Andrew Halaney [Krishna: Rebased on top of usb-next] Co-developed-by: Krishna Kurapati Signed-off-by: Krishna Kurapati --- arch/arm64/boot/dts/qcom/sa8540p-ride.dts | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sa8540p-ride.dts b/arch/arm64/boot/dts/qcom/sa8540p-ride.dts index 5a26974dcf8f..69f6b13e6197 100644 --- a/arch/arm64/boot/dts/qcom/sa8540p-ride.dts +++ b/arch/arm64/boot/dts/qcom/sa8540p-ride.dts @@ -488,6 +488,19 @@ &usb_2_qmpphy0 { status = "okay"; }; +&usb_2 { + pinctrl-0 = <&usb2_en_state>; + pinctrl-names = "default"; + + status = "okay"; +}; + +&usb_2_dwc3 { + dr_mode = "host"; + phy-names = "usb2-port0", "usb3-port0"; + phys = <&usb_2_hsphy0>, <&usb_2_qmpphy0>; +}; + &xo_board_clk { clock-frequency = <38400000>; }; @@ -640,4 +653,13 @@ wake-pins { bias-pull-up; }; }; + + usb2_en_state: usb2-en-state { + /* TS3USB221A USB2.0 mux select */ + pins = "gpio24"; + function = "gpio"; + drive-strength = <2>; + bias-disable; + output-low; + }; }; -- 2.40.0