Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp5995293pxb; Mon, 8 Nov 2021 01:22:28 -0800 (PST) X-Google-Smtp-Source: ABdhPJw76iA9mWOyvKZZGR21nLQWQrT1JIdY6lRVrDozH/sDpI22x4bwHQKUfiEJpRilcRGj+xH+ X-Received: by 2002:a05:6e02:1c87:: with SMTP id w7mr41969652ill.244.1636363348459; Mon, 08 Nov 2021 01:22:28 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1636363348; cv=none; d=google.com; s=arc-20160816; b=Y13s06p0xjl59M6fI6020XyjOOzf0I3XcGpE5bUWf1Za/JJsTragJV3v6ATX0dkhA8 MbVTgzyCEKDrqTsOpI+puod/jTKv3IJWLKx+8Z1nWqPjWqgu4yvSfy9aalu0QJngc10e ZSOhNltoPHe+kCY/SnE/sPI+74KR+KC6PsNH4tEinNXX8ur90+5UQX61KB38eRsg7fWr Mop0Sf2RLy5mjcAaUaWXDQ35TESHaK9gE1TpsB6hLY6zuyWaDAEjnEdaFw+AwSPW9twJ FEK/CfOGVv/ZsV7NHL5/ORKZAcOCwbZYis32J1S0Vi+XWQY5FFnwER2pPLXv+W1v6GBf 0V+g== 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=ry7cctuk3NZPWDFMUzP8xKLPdLXELjoYCuSbrmcRh1s=; b=nRJEp+utVGViQn5OdmyZkGObImPDO12K6cyLy1grFk7BSR5AsdjRKanHnprFw+gEkH Y0OaSviczPqRQkL5fREr94lxlTkP7PNRXWy6ylnNaAuMMqOl1fIY2nkiD10Hmbx71gQj btfVZRB/VqRLO7OBhGO4YgptY7OK6BwDbo8ddsjPKnT7FokU7C1hNkM4oNiBYGIGPaCI JyMq8vcVHv5qtCv1+2f81PiTnE/V7hE4PWi40B+Q78+4IwT7Kon7rz6C2OKgy28bZHmr zp+BeRcE9Hw8Ve8T5wrA8LULS3iYPkSI6Zwsi7H4F5hmDKsG0ZwVrLsQowc0YiFtHWTr Z2eA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@riseup.net header.s=squak header.b=OZubvlMT; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=riseup.net Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id e17si24633982iot.15.2021.11.08.01.22.14; Mon, 08 Nov 2021 01:22:28 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@riseup.net header.s=squak header.b=OZubvlMT; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=riseup.net Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237619AbhKHFJ1 (ORCPT + 99 others); Mon, 8 Nov 2021 00:09:27 -0500 Received: from mx1.riseup.net ([198.252.153.129]:55570 "EHLO mx1.riseup.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237638AbhKHFJO (ORCPT ); Mon, 8 Nov 2021 00:09:14 -0500 Received: from fews1.riseup.net (fews1-pn.riseup.net [10.0.1.83]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "mail.riseup.net", Issuer "R3" (not verified)) by mx1.riseup.net (Postfix) with ESMTPS id 4HnfGW4rQwzF3K9; Sun, 7 Nov 2021 21:06:27 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=riseup.net; s=squak; t=1636347987; bh=F2q5E8Qn4Ne5vZ3VtvcvBFAEC8rtQNkSMlH8Ci6joyU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=OZubvlMTmL5F8AcRGdwTNv76eKaCA8W6OQqdvOTb3rpr38ij63KbcT/8SO2j9dIk0 rDyivIjMj6n4pIxRWMwKooL226OpNx4Z0EMCY7OQK7bI0vPq+pZ3hMEVjYgW/VBzVy EqSGCefpX4I+QPaRkN9BjD4q42zktTZw8pIMuF1U= X-Riseup-User-ID: 8E9E742E70D9B4256ACE2F1FB7293BF8B30C92B3D3217CDF4250889B2F989CBA Received: from [127.0.0.1] (localhost [127.0.0.1]) by fews1.riseup.net (Postfix) with ESMTPSA id 4HnfGS2ytkz5vj2; Sun, 7 Nov 2021 21:06:24 -0800 (PST) From: Dang Huynh To: Dang Huynh Cc: Andy Gross , Bjorn Andersson , Rob Herring , linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, martin.botka@somainline.org, marijn.suijten@somainline.org, paul.bouchara@somainline.org, angelogioacchino.delregno@somainline.org, Caleb Connolly Subject: [PATCH v2 7/7] arm64: dts: qcom: sdm660-xiaomi-lavender: Add USB Date: Mon, 8 Nov 2021 12:03:36 +0700 Message-Id: <20211108050336.3404559-8-danct12@riseup.net> In-Reply-To: <20211108050336.3404559-1-danct12@riseup.net> References: <20211108050336.3404559-1-danct12@riseup.net> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Enable and configure DWC3 and QUSB2 PHY to enable USB functionality on the Redmi Note 7. Signed-off-by: Dang Huynh --- .../boot/dts/qcom/sdm660-xiaomi-lavender.dts | 25 +++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sdm660-xiaomi-lavender.dts b/arch/arm64/boot/dts/qcom/sdm660-xiaomi-lavender.dts index 122b487f197b..a34812e91160 100644 --- a/arch/arm64/boot/dts/qcom/sdm660-xiaomi-lavender.dts +++ b/arch/arm64/boot/dts/qcom/sdm660-xiaomi-lavender.dts @@ -82,6 +82,15 @@ framebuffer_mem: memory@9d400000 { no-map; }; }; + + /* + * Until we hook up type-c detection, we + * have to stick with this. But it works. + */ + extcon_usb: extcon-usb { + compatible = "linux,extcon-usb-gpio"; + id-gpio = <&tlmm 58 GPIO_ACTIVE_HIGH>; + }; }; &blsp1_uart2 { @@ -98,6 +107,13 @@ voldown { }; }; +&qusb2phy { + status = "okay"; + + vdd-supply = <&vreg_l1b_0p925>; + vdda-phy-dpdm-supply = <&vreg_l7b_3p125>; +}; + &rpm_requests { pm660l-regulators { compatible = "qcom,rpm-pm660l-regulators"; @@ -403,3 +419,12 @@ &sdhc_2 { &tlmm { gpio-reserved-ranges = <8 4>; }; + +&usb3 { + status = "okay"; +}; + +&usb3_dwc3 { + dr_mode = "peripheral"; + extcon = <&extcon_usb>; +}; -- 2.33.1