From patchwork Mon May 1 14:34:45 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krishna Kurapati X-Patchwork-Id: 89059 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp2748634vqo; Mon, 1 May 2023 07:51:24 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5VoOwEP5LHKjQ5m1txdjxGf2wcUCu1UMc/8vSj8M0Bvj9FqXKYHff/bIrIktHIYPxKDQEF X-Received: by 2002:a05:6a20:1455:b0:ee:d266:32b9 with SMTP id a21-20020a056a20145500b000eed26632b9mr18788626pzi.10.1682952684403; Mon, 01 May 2023 07:51:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1682952684; cv=none; d=google.com; s=arc-20160816; b=UvtWTATv4khKEVpDbYpYF9KLbj9vJNezjti56n6zXsB0x88186CIVII7gAdqp2ef+j b4kRfSPUR9AZvEBZfro3C9wC9DN8L3/E50B22TtZ80DBUiae3O3pqdzQwYZjwqT3SLXZ qrX+Rw+Q4iOD6RhC3aFx4sTfnQ/egWwmeKts/z816oQeS5o1waV/KpqbTXlug8a5etMt Wa3yNgRS0EtbRsNizYEUObeIt9BVD2ziuBJKOemmy+/uF94Gu/tPqhSKjQavovZc1QH9 WoarIKnzzoYaWVck4srRkhdNkEonhkMbkwnJTKHt9onCIpws336K5VsoQZKe3teaS5yU NgwQ== 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=Abuns1dscIhsXqDWAq+7t0Pta40GkCpQ9StWLfQ64cg=; b=VCqBqUrppv82v9CLfNieswUwVcB8kZdRzcoL3zgI6ruKf/GdL795f++wiHOrYueLqm se2o1PPDWKhmXn+N99rhrP98x2PZxI5ldDtDktZDebnKoClRv2KlMC53azMbH0XthgfW jEKwk/g8suYwCtUipcORycX755iUl+Y70OoLUA3Zg1LnJHzL4GnR4fcm1NA9Dzf2SeQ7 K9qI4G5ziBfjB8jDukK+SRF5leZXMN6dIZXi/Jhszm9JyoYybtwMkA/6f+S6i9cobC7C Aof3WF9kJ0VR0h8L3dpeGmbqkHsjcB3QaZVUnR+VC5XSjs4jlK8wQ3zbWPqi2G6pVgQJ NCBA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=R6ZVOIVG; 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: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id u63-20020a638542000000b004fae5f0895dsi22426147pgd.45.2023.05.01.07.50.47; Mon, 01 May 2023 07:51:24 -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=R6ZVOIVG; 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 S232494AbjEAOh6 (ORCPT + 99 others); Mon, 1 May 2023 10:37:58 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49432 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231249AbjEAOh4 (ORCPT ); Mon, 1 May 2023 10:37:56 -0400 Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com [205.220.168.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A7C921728; Mon, 1 May 2023 07:37:23 -0700 (PDT) Received: from pps.filterd (m0279866.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 341CnDCf013917; Mon, 1 May 2023 14:36:00 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=Abuns1dscIhsXqDWAq+7t0Pta40GkCpQ9StWLfQ64cg=; b=R6ZVOIVGD65EoofKVbsive0yvO0gnsok/OFVVuTcAmIjlh0GlqwPRZAEZRAffK9fgZnQ PkYDu7QRRhhf7l5hzDLulUJYlanuxFTVMngUmbIDDg+m3MMJNeIjGJSnnFOdcw3NVyjX uYp/wZ4Y9rY7TYMEXRvg3AI7CS9Q2wax36MiF19QzvwfRVJzeGDpJc/owwBRKc015Ipi luQGd373skX9ccRspFWj8+LZkFncw1LYpjXDn29ti7upLVGcwv1oTQT/sf2DPyqELPoG cIDUKP6FafK+AuHPnfC4CG5KiH6bbQ2F6dwbxSPtBJYOp1CLp+cFmhnZ8kyVagqBUyM4 jA== Received: from nalasppmta04.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3q8vhgum0y-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 01 May 2023 14:35:59 +0000 Received: from nalasex01a.na.qualcomm.com (nalasex01a.na.qualcomm.com [10.47.209.196]) by NALASPPMTA04.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 341EZxhQ003882 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 1 May 2023 14:35:59 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:52 -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 9/9] arm64: dts: qcom: sa8540-ride: Enable first port of tertiary usb controller Date: Mon, 1 May 2023 20:04:45 +0530 Message-ID: <20230501143445.3851-10-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 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: zPnTMxNKC6n4oQsTRTS7hvLOOieuvYbW X-Proofpoint-ORIG-GUID: zPnTMxNKC6n4oQsTRTS7hvLOOieuvYbW 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_08,2023-04-27_01,2023-02-09_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 spamscore=0 impostorscore=0 suspectscore=0 phishscore=0 mlxscore=0 bulkscore=0 malwarescore=0 mlxlogscore=933 adultscore=0 lowpriorityscore=0 priorityscore=1501 clxscore=1015 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2303200000 definitions=main-2305010117 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 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1764703794084928754?= X-GMAIL-MSGID: =?utf-8?q?1764703794084928754?= 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 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; + }; };