Received: by 2002:a05:7412:da14:b0:e2:908c:2ebd with SMTP id fe20csp1030629rdb; Sat, 7 Oct 2023 08:50:21 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHoFBi1wChwHKRbMmALSY7p/pTCi4hzfInF5h4S0uSCFnzLWUhZYysB2ArX2XO2VrbR3qBt X-Received: by 2002:a05:6830:6b87:b0:6bf:df:66d5 with SMTP id dd7-20020a0568306b8700b006bf00df66d5mr10291626otb.35.1696693821232; Sat, 07 Oct 2023 08:50:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696693821; cv=none; d=google.com; s=arc-20160816; b=oW5c27hYI7Ug/0AMOsbi3kywoSHEl2t+IVLUsNyb7/G1X7dvIJotiYhOi7iNjk9Pv/ 8ygYFMP9KD7f6OsRT7p3529f0N/cWYPX0p5tSZ7O3tttj+Y/3SUmTnaQkoYoMxVqy1PA d9jXI6BC0zZhqH0klfxPx/zODM/MZXb6MzvkZVZOcl1G6H0NUOkRrNKg3hnBGWinmdPx 5TBLLB9/hW6KuMwgBAtvngAr3PyWdfON4LXvJvwdHswAu9eotTtKlp1ovSTb8dRShPul JRBP0xDdn75uv6wnjQyl/misL459E3X/HU4iuojdxxTaSZXu9bf1PaBll5bdsAdm2feR 8whw== 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=ru5jfmYWa9vHMjM+QOrIHJoVV6lz6+EGc5Ri10pd6sk=; fh=a++TWPJw3Cn9MYBczZLXAB+Eob7lKtyrQCXvx5EPkG8=; b=HtYO2UzrrYWnMpqgToBoDxD581HbyyKJON9sXtuKZdqTd0xtiy5QoBw40t/VCRTYOB 61W87B5sFgBiThKCXhzxX7WNHVZSuXPnca+ADW7a7rxcNWlIzw4QmMuxx3nzE6BzM72U TOmE+Tq34sg0Fm96oYsLSiLkh5mcvfAy+dvBi20L45gl1Y1q/AZS4ehYlaycLa7KmLUQ DjzUfIBJK0/fLs44D5VmZliiovo3r/ZvuyrHEoMpLyjsxry2X6ECMSFCDPPbVMcsLlpA TFliIeA2oQsg4C0YmkpuKNKGQDMaw7+W2Ft31SI3I8NYgj0W5fY26OFAK6fmxHDMRr0O tI8A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=WfO49cTe; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 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 agentk.vger.email (agentk.vger.email. [2620:137:e000::3:2]) by mx.google.com with ESMTPS id u62-20020a638541000000b00563e25c07c0si5998400pgd.270.2023.10.07.08.50.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 07 Oct 2023 08:50:21 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) client-ip=2620:137:e000::3:2; Authentication-Results: mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=WfO49cTe; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by agentk.vger.email (Postfix) with ESMTP id F0275803D8E4; Sat, 7 Oct 2023 08:50:18 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1344095AbjJGPuC (ORCPT + 99 others); Sat, 7 Oct 2023 11:50:02 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36668 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1344097AbjJGPtx (ORCPT ); Sat, 7 Oct 2023 11:49:53 -0400 Received: from mx0b-0031df01.pphosted.com (mx0b-0031df01.pphosted.com [205.220.180.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A7BCBCA; Sat, 7 Oct 2023 08:49:45 -0700 (PDT) Received: from pps.filterd (m0279871.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 397FlgSI011667; Sat, 7 Oct 2023 15:49:32 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=ru5jfmYWa9vHMjM+QOrIHJoVV6lz6+EGc5Ri10pd6sk=; b=WfO49cTeXsnXpnFBqKtpS+/IXpqbmLfzTrPvWn+F0EaR7OHarOWGbx8XAeiajlNw4Z++ 00CKyr2tcBOnp6SPPSonkPPs63gO9QVKzihVotjf1gwQ9dqmgaWb4NrWSINgHmBkplZ0 3WISK0sKCecrfLZMT4zP62pQA7/u+aVlMrqxqcnVAHDCPJrLEKY82aBccO9fvk0+hZTq xIDFl4oSPdtVqZ4N8UEJwpWQ4BM9rUWQqBMva0KuNC3Syo/K/8a2yvQzwPrAqQpBQYPf 401nLcjezcxldtgLhBVt3vxMkCd/Zdl492MaxtBs+rGH/9klpy/XA5PRkvxTYR2j1qG5 eA== Received: from nalasppmta03.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3tjxx88yg5-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Sat, 07 Oct 2023 15:49:32 +0000 Received: from nalasex01a.na.qualcomm.com (nalasex01a.na.qualcomm.com [10.47.209.196]) by NALASPPMTA03.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 397FnV2I029276 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Sat, 7 Oct 2023 15:49:31 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.36; Sat, 7 Oct 2023 08:49:25 -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 v13 10/10] arm64: dts: qcom: sa8540-ride: Enable first port of tertiary usb controller Date: Sat, 7 Oct 2023 21:18:06 +0530 Message-ID: <20231007154806.605-11-quic_kriskura@quicinc.com> X-Mailer: git-send-email 2.42.0 In-Reply-To: <20231007154806.605-1-quic_kriskura@quicinc.com> References: <20231007154806.605-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: y-X6bI1sFiL9Y0vzY8sS68XNeUgKB9Sp X-Proofpoint-ORIG-GUID: y-X6bI1sFiL9Y0vzY8sS68XNeUgKB9Sp X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.267,Aquarius:18.0.980,Hydra:6.0.619,FMLib:17.11.176.26 definitions=2023-10-07_12,2023-10-06_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 malwarescore=0 bulkscore=0 impostorscore=0 suspectscore=0 phishscore=0 priorityscore=1501 mlxscore=0 spamscore=0 mlxlogscore=925 adultscore=0 lowpriorityscore=0 clxscore=1015 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2309180000 definitions=main-2310070143 X-Spam-Status: No, score=2.7 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, RCVD_IN_SBL_CSS,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on agentk.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (agentk.vger.email [0.0.0.0]); Sat, 07 Oct 2023 08:50:19 -0700 (PDT) X-Spam-Level: ** 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 | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sa8540p-ride.dts b/arch/arm64/boot/dts/qcom/sa8540p-ride.dts index b04f72ec097c..6904a4c201ff 100644 --- a/arch/arm64/boot/dts/qcom/sa8540p-ride.dts +++ b/arch/arm64/boot/dts/qcom/sa8540p-ride.dts @@ -503,6 +503,18 @@ &usb_2_qmpphy0 { status = "okay"; }; +&usb_2 { + pinctrl-0 = <&usb2_en_state>; + pinctrl-names = "default"; + + status = "okay"; +}; + +&usb_2_dwc3 { + phy-names = "usb2-port0", "usb3-port0"; + phys = <&usb_2_hsphy0>, <&usb_2_qmpphy0>; +}; + &xo_board_clk { clock-frequency = <38400000>; }; @@ -655,4 +667,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.42.0