Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp2261711rwr; Fri, 21 Apr 2023 06:42:55 -0700 (PDT) X-Google-Smtp-Source: AKy350agLqxBKajqGqSh09LrjWNo9AxhE43ZiuLg4vHlYnCZg81YZSi13iNOCyTwnJsiXxxhp+Ln X-Received: by 2002:a05:6a20:8e19:b0:d7:3c1a:6c9a with SMTP id y25-20020a056a208e1900b000d73c1a6c9amr5779635pzj.4.1682084575219; Fri, 21 Apr 2023 06:42:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1682084575; cv=none; d=google.com; s=arc-20160816; b=ugkCns/lXskQVs7nyLWzZmVNXKrOlxXOy4nuOyZEUE+EzmPBUGf3Cpecq8BKiLPrL/ UZn10PtOWh/lyZSpJiMaeBToz/Aa4Zjx+QC0J4+emka4CGE2DBna3PcIdBODUe8G6F/I 6CYmDDuSQa1vgcKeag9xRpMjNjixKvwtiHyvEnMEfIBlNz2sDrFrq6qNgEZ3zcOqPsBI nGfpDdX6HI57M04KB0oly+IoqLdWuDeGJnKm0vjAfy5fMSk679x02nLYOQK43cSILP7v moxUkMRhcI+ZOnazIHnmOxl08izlHlrEq9eG7phfVtCRld6qbwDvaE+t5t7oiJVdUjK8 UcbA== 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=vaATKEvIff/FfpRV6D3k8hDPCfL/mA87Q5z+Mae/UCE=; b=Acho8RwbL8hKqHKT1Cm1gl85QoHw6X7jEjcRhQd6Sx7E5AwOF83j2bZrybnOGxg+B+ Rpzl5wtHXbk3uCw8KG+syn1trYbDKrqgVNZGGyT24EsStEojNKF+RX5MpDRhd0962L+E 1aKv/YB7MkPqE+JZrttbPRSQt7tnZRKUcle9l8VIMPjH2qGNOI4J1b+zWctBTaRJhrkg Wa38duGXGyti+d4v9fmKbCtZULYmX1McFLCCzErP6AkB9k13jk+UGF/sHz0ZbJn5Kxif QJAYIahE0MPtsdl0xDm27faOj5y/a5MTS+fjDKQFJ+i3jI4zGE2s8+da4Wi3ca7OflT9 gCPQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=Ec2gM5X0; 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 l69-20020a638848000000b0051a788417e3si4750797pgd.466.2023.04.21.06.42.43; Fri, 21 Apr 2023 06:42:55 -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=Ec2gM5X0; 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 S232090AbjDUNld (ORCPT + 99 others); Fri, 21 Apr 2023 09:41:33 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57020 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231183AbjDUNlU (ORCPT ); Fri, 21 Apr 2023 09:41:20 -0400 Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com [205.220.168.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 20988118E2; Fri, 21 Apr 2023 06:41:02 -0700 (PDT) Received: from pps.filterd (m0279863.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 33LDUViu007028; Fri, 21 Apr 2023 13:40:56 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=vaATKEvIff/FfpRV6D3k8hDPCfL/mA87Q5z+Mae/UCE=; b=Ec2gM5X0eweHSVSA6zR41VuzPu6/vcUzfZdrEnDIB6oBz24IAvHoH7ClxqhltNFV/oAt z47swiXnLTLMGaLGKWPHhLC7G9HJi7NTNrm9iLSQhBBQfSMJtJPGvyLckTl8zMaMSN+U mqC+7PKfFEieAUK/amV34JmKYHtUohI1NVN+Np2q7a2ZDeDaKxfBwCStw+z9JVGozOGj ST+BjuyIMVo4pJ6fziDlcAAxioIFGt/GC2HjExlvnDKxm3JlVdqs3luOXpAtXe7aVYHV PuRFKW4mvJBaaIunkUh/eRJnMHVqjfF/Wv11FcUl5BF3pPXPeHvIGGBAvhbbPT0zouLf 7Q== Received: from nalasppmta05.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3q3thdr46c-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 21 Apr 2023 13:40:56 +0000 Received: from nalasex01b.na.qualcomm.com (nalasex01b.na.qualcomm.com [10.47.209.197]) by NALASPPMTA05.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 33LDeupL015600 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 21 Apr 2023 13:40:56 GMT Received: from hu-shazhuss-hyd.qualcomm.com (10.80.80.8) by nalasex01b.na.qualcomm.com (10.47.209.197) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.42; Fri, 21 Apr 2023 06:40:51 -0700 From: Shazad Hussain To: , , , CC: Shazad Hussain , Konrad Dybcio , Vinod Koul , "Kishon Vijay Abraham I" , Greg Kroah-Hartman , Wesley Cheng , , , , , Subject: [PATCH v1 6/6] arm64: dts: qcom: sa8775p-ride: enable USB nodes Date: Fri, 21 Apr 2023 19:09:21 +0530 Message-ID: <20230421133922.8520-7-quic_shazhuss@quicinc.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20230421133922.8520-1-quic_shazhuss@quicinc.com> References: <20230421133922.8520-1-quic_shazhuss@quicinc.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.80.80.8] X-ClientProxiedBy: nasanex01a.na.qualcomm.com (10.52.223.231) To nalasex01b.na.qualcomm.com (10.47.209.197) X-QCInternal: smtphost X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=5800 signatures=585085 X-Proofpoint-ORIG-GUID: CFPB77Ex6Nqnd0tXBvokhvyu6Q4POTNh X-Proofpoint-GUID: CFPB77Ex6Nqnd0tXBvokhvyu6Q4POTNh 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-04-21_06,2023-04-21_01,2023-02-09_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 adultscore=0 suspectscore=0 clxscore=1015 priorityscore=1501 malwarescore=0 mlxlogscore=612 mlxscore=0 impostorscore=0 spamscore=0 lowpriorityscore=0 bulkscore=0 phishscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2303200000 definitions=main-2304210119 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 Enable usb0, usb1 and usb2 nodes and their respective phy's. Signed-off-by: Shazad Hussain --- arch/arm64/boot/dts/qcom/sa8775p-ride.dts | 92 +++++++++++++++++++++++ 1 file changed, 92 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sa8775p-ride.dts b/arch/arm64/boot/dts/qcom/sa8775p-ride.dts index f238a02a5448..13ac60ddd170 100644 --- a/arch/arm64/boot/dts/qcom/sa8775p-ride.dts +++ b/arch/arm64/boot/dts/qcom/sa8775p-ride.dts @@ -291,6 +291,13 @@ "BT_EN", "USB2_PWR_EN", "USB2_FAULT"; + + usb2_en_state: usb2-en-state { + pins = "gpio9"; + function = "normal"; + output-high; + power-source = <0>; + }; }; &pmm8654au_2_gpios { @@ -306,6 +313,20 @@ "USB1_PWR_ENABLE", "USB1_FAULT", "VMON_SPX8"; + + usb0_en_state: usb0-en-state { + pins = "gpio3"; + function = "normal"; + output-high; + power-source = <0>; + }; + + usb1_en_state: usb1-en-state { + pins = "gpio10"; + function = "normal"; + output-high; + power-source = <0>; + }; }; &pmm8654au_3_gpios { @@ -426,6 +447,77 @@ status = "okay"; }; +&usb_0 { + pinctrl-names = "default"; + pinctrl-0 = <&usb0_en_state>; + + status = "okay"; +}; + +&usb_0_dwc3 { + dr_mode = "peripheral"; +}; + +&usb_0_hsphy { + vdda-pll-supply = <&vreg_l7a>; + vdda18-supply = <&vreg_l6c>; + vdda33-supply = <&vreg_l9a>; + + status = "okay"; +}; + +&usb_0_qmpphy { + vdda-phy-supply = <&vreg_l1c>; + vdda-pll-supply = <&vreg_l7a>; + + status = "okay"; +}; + +&usb_1 { + pinctrl-names = "default"; + pinctrl-0 = <&usb1_en_state>; + + status = "okay"; +}; + +&usb_1_dwc3 { + dr_mode = "host"; +}; + +&usb_1_hsphy { + vdda-pll-supply = <&vreg_l7a>; + vdda18-supply = <&vreg_l6c>; + vdda33-supply = <&vreg_l9a>; + + status = "okay"; +}; + +&usb_1_qmpphy { + vdda-phy-supply = <&vreg_l1c>; + vdda-pll-supply = <&vreg_l7a>; + + status = "okay"; +}; + +&usb_2 { + pinctrl-names = "default"; + pinctrl-0 = <&usb2_en_state>; + + status = "okay"; +}; + +&usb_2_dwc3 { + dr_mode = "host"; +}; + +&usb_2_hsphy { + vdda-pll-supply = <&vreg_l7a>; + vdda18-supply = <&vreg_l6c>; + vdda33-supply = <&vreg_l9a>; + + status = "okay"; +}; + &xo_board_clk { clock-frequency = <38400000>; }; -- 2.17.1