From patchwork Fri Jun 9 05:56:34 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Varadarajan Narayanan X-Patchwork-Id: 105283 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:994d:0:b0:3d9:f83d:47d9 with SMTP id k13csp735804vqr; Thu, 8 Jun 2023 23:01:29 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7UVbE000eDsu4mAK35mFopWBTUelI5zSMud5oIi7qfKbTViGs5myc1DDmgaWa3+p1gIA5a X-Received: by 2002:a17:902:c649:b0:1a6:46f2:4365 with SMTP id s9-20020a170902c64900b001a646f24365mr167465pls.30.1686290489297; Thu, 08 Jun 2023 23:01:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686290489; cv=none; d=google.com; s=arc-20160816; b=fgcRLGMZRCWLN9mmlGTvNGmzP3HOe+AiuBwr5j2/tD5H8JcPGw7rwHcRJMa1L1kYAW U1ZGKjw5POuX46tayOGO2TpW2kcT3Pz9l76MaSXMen2GSBClcyATqX9qZ6thKYVGtr/0 anLsmkAk/UF5UgqaC1M7ekU7BtRkgTRFnh9lROdG/1SDAhBwJUzhOjOZ57qtXJPLcu2H ViZ5h3G8prHWYN9Dt5Ti69OV6i/yPlHQcL87YCbV0BbistM58Hz9nQPdNP/FGl4+7ZSR mE3O7mrN3LqAHhuZUhnznRoGtVa6oQ+cSU7Nwk1gHMHhPpgq88a0Ix62376mDwX9CdnF 4DIA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=D0Fd++hZFXiLvHodQk/Vg9MFpsazfeAQUnvaBMDTxas=; b=rLUc/PXKf0yKUkxpJLwVvslj67lTANOpcBwtgHyk3Zq7skmYkxnqef1tFSl4a5JkdY JEjofz9puz2a9ebgO1WWkrBQPxLkgsq1V/u9QD2l9bVdirx+bf/5hkJRNLzGi1URumWU tsiDab24sej/JWaxU9qKyACDkW8T4f0icXsZ9+pYX6r/Vsm+++xiwLUsjbD8pLzjTTwC i7mh5Wv1/DQo7u3iwx//Efrq5ZSY93z4F7g6iG7mnpwtBXcIxlgev0JrgSrEma1exf5Z mm8PN+wWORWkhQvPI/X5FojX8KwK4TW6DbQZp2encdGC0iAefBRH/TGlaDYUuSMIkVlL /NvQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=fsplNjEA; 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 u17-20020a170902e5d100b001b243a20f0fsi2206435plf.504.2023.06.08.23.01.11; Thu, 08 Jun 2023 23:01:29 -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=fsplNjEA; 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 S237902AbjFIF5r (ORCPT + 99 others); Fri, 9 Jun 2023 01:57:47 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60412 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236735AbjFIF5e (ORCPT ); Fri, 9 Jun 2023 01:57:34 -0400 Received: from mx0b-0031df01.pphosted.com (mx0b-0031df01.pphosted.com [205.220.180.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DC66830E2; Thu, 8 Jun 2023 22:57:33 -0700 (PDT) Received: from pps.filterd (m0279872.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 3595vTE8003569; Fri, 9 Jun 2023 05:57:29 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-type; s=qcppdkim1; bh=D0Fd++hZFXiLvHodQk/Vg9MFpsazfeAQUnvaBMDTxas=; b=fsplNjEA2tChAkWZpRGilmVHaAjBnabjKiFXiv/NHxCEbvjXVjLRW0nNQImSQYQByP5G mcVF4XgpShAw4YIZYiLEee0i5ZuT/nyhJsV6NPJNMy1UCWKRg3Cq9YvmcKasPo6FP/Vw VdyfdpBtyvJNKC6Od+UzBKbzK25oCEVUH1mbNX///BG6NcDTAv111OjeL9/i4UiS4GYo LS94doTxnP7UdXBfZzhRNLnthO18UmHHHqlGFpO1MoenYjuFRFSkHVLicTe+VhCpasCw k9FEeRNM8pDEpTgiQ9gbhGMrz6hVz7Thq1zXksHu/WlatiTlyR5mXtjA65HEsLI3yBGB bA== Received: from nasanppmta04.qualcomm.com (i-global254.qualcomm.com [199.106.103.254]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3r3nwersj0-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 09 Jun 2023 05:57:29 +0000 Received: from nasanex01a.na.qualcomm.com (nasanex01a.na.qualcomm.com [10.52.223.231]) by NASANPPMTA04.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 3595vSj8010257 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 9 Jun 2023 05:57:28 GMT Received: from varda-linux.qualcomm.com (10.80.80.8) by nasanex01a.na.qualcomm.com (10.52.223.231) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.42; Thu, 8 Jun 2023 22:57:23 -0700 From: Varadarajan Narayanan To: , , , , , , , , , , , , , , CC: Varadarajan Narayanan Subject: [PATCH v15 5/5] arm64: dts: qcom: ipq9574: Enable USB Date: Fri, 9 Jun 2023 11:26:34 +0530 Message-ID: <5021dbf3a28ee073795e7580bfa019df465e16ed.1686289721.git.quic_varada@quicinc.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: References: MIME-Version: 1.0 X-Originating-IP: [10.80.80.8] X-ClientProxiedBy: nasanex01a.na.qualcomm.com (10.52.223.231) To nasanex01a.na.qualcomm.com (10.52.223.231) X-QCInternal: smtphost X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=5800 signatures=585085 X-Proofpoint-GUID: qeh4ogz572iPNQW8zV182fsk6v2z1JRl X-Proofpoint-ORIG-GUID: qeh4ogz572iPNQW8zV182fsk6v2z1JRl X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.254,Aquarius:18.0.957,Hydra:6.0.573,FMLib:17.11.176.26 definitions=2023-06-09_03,2023-06-08_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 impostorscore=0 malwarescore=0 mlxlogscore=601 phishscore=0 priorityscore=1501 suspectscore=0 clxscore=1015 spamscore=0 adultscore=0 mlxscore=0 lowpriorityscore=0 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2305260000 definitions=main-2306090051 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,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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1768203735999711312?= X-GMAIL-MSGID: =?utf-8?q?1768203735999711312?= Add regulator defines Turn on USB related nodes Provide vdd info Reviewed-by: Dmitry Baryshkov Signed-off-by: Varadarajan Narayanan --- Changes in v15: - Move fixed regulator defines from 'arm64: dts: qcom: ipq9574: Add USB related nodes' to this patch Changes in v13: - s/fixed_/regulator_fixed_/ Changes in v11: - Rename dwc_0 -> usb_0_dwc3 - Maintain sorted order for the usb nodes Changes in v10: - Provide vdd info Changes in v5: - Move "host" mode specification to board dts - Due to dependency with earlier patches board dts filename changed ipq9574-al02-c7.dts -> ipq9574-rdp433.dts Changes in v2: - Fix node placement and coding style - "ok" -> "okay" --- arch/arm64/boot/dts/qcom/ipq9574-rdp433.dts | 41 +++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/ipq9574-rdp433.dts b/arch/arm64/boot/dts/qcom/ipq9574-rdp433.dts index 8c2451c..877026c 100644 --- a/arch/arm64/boot/dts/qcom/ipq9574-rdp433.dts +++ b/arch/arm64/boot/dts/qcom/ipq9574-rdp433.dts @@ -21,6 +21,24 @@ chosen { stdout-path = "serial0:115200n8"; }; + + regulator_fixed_3p3: s3300 { + compatible = "regulator-fixed"; + regulator-min-microvolt = <3300000>; + regulator-max-microvolt = <3300000>; + regulator-boot-on; + regulator-always-on; + regulator-name = "fixed_3p3"; + }; + + regulator_fixed_0p925: s0925 { + compatible = "regulator-fixed"; + regulator-min-microvolt = <925000>; + regulator-max-microvolt = <925000>; + regulator-boot-on; + regulator-always-on; + regulator-name = "fixed_0p925"; + }; }; &blsp1_uart2 { @@ -105,6 +123,29 @@ }; }; +&usb_0_dwc3 { + dr_mode = "host"; +}; + +&usb_0_qmpphy { + vdda-pll-supply = <&mp5496_l2>; + vdda-phy-supply = <®ulator_fixed_0p925>; + + status = "okay"; +}; + +&usb_0_qusbphy { + vdd-supply = <®ulator_fixed_0p925>; + vdda-pll-supply = <&mp5496_l2>; + vdda-phy-dpdm-supply = <®ulator_fixed_3p3>; + + status = "okay"; +}; + +&usb3 { + status = "okay"; +}; + &xo_board_clk { clock-frequency = <24000000>; };