Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp8834125rwd; Tue, 20 Jun 2023 22:35:56 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5x46ryyQ/WV0meNHTcXQ9Mw/Whwxun5DTqTyKjZaYsuzvEcVDi1OYu4rjoCJESfNOFgGrs X-Received: by 2002:a05:6a20:9195:b0:122:cb38:637c with SMTP id v21-20020a056a20919500b00122cb38637cmr2640386pzd.49.1687325756361; Tue, 20 Jun 2023 22:35:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687325756; cv=none; d=google.com; s=arc-20160816; b=x+3uSZe5+u2uHIWmjO0D8452KwjymwOzbY1P8UMwU5GDDUSxPQOeChuzK3UK99jKAl HYy4w1nndRnXT22VVsVNP0krzJGtCdYn3Dmqnu7KDnoWAw+ghfkbEiunvvc7gszspdfY prh5sw52EsfFa9bprlwWZ5MmHl6Y6HV7HHYYfSYoqH/fTtMff/N7Op2J3oCBwtcQF/Ex jbM4a5Mq5wb2XU/dZ7e+knF4ioeD6YLWEbmbnuvirJ9sd6iboe7UaZ1CdyJI2kugLP02 bhiigCWq97Bdzzk40qt+PkEDf+4w3ogXEQVMjrUrgINCCpxoTspWjAuOo4sbg1buS+or KnRQ== 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=7eLJ5VGSEKr9ajDV2vpmqHH8rLnmFPgGlnGIZu7ZnSg=; b=dr4geF9vnwexfIlJQE7eUIfa6fmIB5Md0QAF8BmBCIgqIInlouiYSaZyzjAuWIhUE4 4o13p9YbgzYRGLVucvoZTVEHrz+mW11f0CGaXK1AspPGLirbBau+dl+E2lMy1YbuRat1 FGxxGhMAEoUZavQDxxogLPsUZXSoMqyzm5OA2zZ2SYKhVeC0cwMyUkBeVFrxkooDXKpy 73p/j1Us9XDXYDktqUTm3kOTH1wsS5JJO1QqDXyX6RKyjIA92+YwKFP4e69Wfz+AhZzb NlhQ4EWPzkeWET6y55q8+vlLZ8jXRYu3+vTRq7ySHl4CZSE0/s9uYgyhwqdRN//E0S1F iSrw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=Gw3hFBFt; 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 f15-20020aa7968f000000b00652c20d3522si3151309pfk.303.2023.06.20.22.35.16; Tue, 20 Jun 2023 22:35:56 -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=Gw3hFBFt; 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 S229931AbjFUEjP (ORCPT + 99 others); Wed, 21 Jun 2023 00:39:15 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54746 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229944AbjFUEjK (ORCPT ); Wed, 21 Jun 2023 00:39:10 -0400 Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com [205.220.168.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 61FD9198D; Tue, 20 Jun 2023 21:38:43 -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 35L4G6Ij009750; Wed, 21 Jun 2023 04:37:52 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=7eLJ5VGSEKr9ajDV2vpmqHH8rLnmFPgGlnGIZu7ZnSg=; b=Gw3hFBFtG3mPITzlXsU8UzXBAdv3zxW6yvb5GbGZIFC8f+tnjNxC4YFiKPva3/W2m7oz PA3KFUdea2fdOr+aaxe3TPZaBdUI8/4JBf+sCMsGCr5r7lqPTwc5Hv8hwbIR4GmF7T4g W8UZ3c1XQS1oIFHXeZAngE2S7lX58OQDA+A/K57xSL6emjrX3N4BYXhIM25D66jgqSFm AL9av2454UTH6N2CuXCa3+Kb39JSOdywdc/fAsA2c7wP4Su2N4iVDZ07BOOEvg5CHV9r 9gUgSKFJzkRsWaTxxWKiFoS6qiXwgfJylTiguhAqB+dcPVH5Z4BAUwtRT8AmJ9keuHUl uw== Received: from nalasppmta01.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3rb3guu04p-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 21 Jun 2023 04:37:52 +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 35L4bpIb003900 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 21 Jun 2023 04:37:51 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:45 -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 10/10] arm64: dts: qcom: sa8540-ride: Enable first port of tertiary usb controller Date: Wed, 21 Jun 2023 10:06:28 +0530 Message-ID: <20230621043628.21485-11-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-ORIG-GUID: Vw8XW0VwCZYndRFdUPPZ7FcTvbIPeiYi X-Proofpoint-GUID: Vw8XW0VwCZYndRFdUPPZ7FcTvbIPeiYi 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 impostorscore=0 adultscore=0 spamscore=0 suspectscore=0 lowpriorityscore=0 mlxscore=0 mlxlogscore=919 priorityscore=1501 phishscore=0 clxscore=1015 bulkscore=0 malwarescore=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 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. Signed-off-by: Andrew Halaney [Krishna: Rebased on top of usb-next] 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 24fa449d48a6..53d47593306e 100644 --- a/arch/arm64/boot/dts/qcom/sa8540p-ride.dts +++ b/arch/arm64/boot/dts/qcom/sa8540p-ride.dts @@ -309,6 +309,19 @@ &usb_2_qmpphy0 { status = "okay"; }; +&usb_2 { + pinctrl-names = "default"; + pinctrl-0 = <&usb2_en_state>; + + 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>; }; @@ -401,4 +414,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