From patchwork Thu Feb 4 17:09:04 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vinod Koul X-Patchwork-Id: 376323 Delivered-To: patch@linaro.org Received: by 2002:a02:b18a:0:0:0:0:0 with SMTP id t10csp1562589jah; Thu, 4 Feb 2021 11:24:21 -0800 (PST) X-Google-Smtp-Source: ABdhPJxbP1blKXEaO7kN4hEWalCdjNAvLCSW2Sxejz1agDXSA1lUJQfJGZnhK7vijoj05LIt6tH2 X-Received: by 2002:aa7:c0cd:: with SMTP id j13mr99961edp.319.1612466661727; Thu, 04 Feb 2021 11:24:21 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612466661; cv=none; d=google.com; s=arc-20160816; b=LpRqrdoxHxIbUng+ZGitM4Pmy9ddwSSh6PyRjnquO6qVCO2hi4h+qBT/tQcsBXL8qD mzN+SXg0p0+Hof8H6OTYy7U76L0dfCHc1hZ+60mO/FCEYm08OR1Y+ufZwvdTGOOdxkmc D/cmPqk8EVduK7O27TNmPsQYS0dXFEWULY4/MkNkJfvYhQN4lY3hoABviKlIyVygC/b0 mM6zMcbhWypRmN89ugEAyXq1aa8/8RC+iqJueftID9xzNMFXGvQ7LnPPtr3AIbrMdgN7 UQamhtw47CHlvQNKLpG1GaahmRr6bq3piaZjgBigOuz20DaYWLEYUcdqvgJDVnJOOa8y 7v5A== 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=hDvFN7FOpJNjEtqonEfKLDLAFEoHhYkdIfVB3sA5RO8=; b=LmW5eY2SaCwWAew2FC0ekXRq9YLg68nT7BZnvhvbZ5lIb79gAM9U5itJjhbMLqS7gI BHEGL1GdH0660UFF872gidnxXs40bgipulNTbDCkIztmf5p6XXjKiu3tJi/1plxCP2fK NrDzX+t09xFUwBq2pHkZZTfFj9L7P9kZhY9fKWd/WHhkj+B9xjt4k1Fnt9OZ3SAOqOSV VS6Lvj2NMe6X6+hDvXZW6IKBW65KBzVtDPFbzzAhWvi8lNACjJl2DrHOEVYJQAC5YOko +5S3lyXN1FCm6Gh7GjndbYlNuEpfd70kWr0O9L7gR0g1yidEC3yBEDQrllpNX/8UNQER CI+A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=c99jDqMx; spf=pass (google.com: domain of linux-arm-msm-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-arm-msm-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id z9si4466267edr.555.2021.02.04.11.24.21; Thu, 04 Feb 2021 11:24:21 -0800 (PST) Received-SPF: pass (google.com: domain of linux-arm-msm-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=@kernel.org header.s=k20201202 header.b=c99jDqMx; spf=pass (google.com: domain of linux-arm-msm-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-arm-msm-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238255AbhBDTXM (ORCPT + 16 others); Thu, 4 Feb 2021 14:23:12 -0500 Received: from mail.kernel.org ([198.145.29.99]:56746 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238339AbhBDRKX (ORCPT ); Thu, 4 Feb 2021 12:10:23 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id 8317864F65; Thu, 4 Feb 2021 17:09:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1612458565; bh=35QGcWRXrFZZKLLrP8CbNn95b1JWwB0ykltG6Pu99j0=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=c99jDqMx9VGky9p5LbB87lAzjRfq0NmAeChii4YBlgoO+poQrAxqMv0KN8Z0+ycn2 zQYqfEscDgreKoiaxrDsrD27tiFfGIWaAFp4rd6bVEgRUUc+gCEKXiWOp6TrBMGeeA eIxWQA7wcPPIHl+yG3SlSPb10lllGz5fI61Pg5PTEeiYZO8EIjl46Q5hwEakbxGi6g r+nZSiFutbq6f7A7ImRxCeivzHj7kF0NgJgtVA+Yaj8kbB9HcSKPqAlVF8ZwdvfWMj cVOBHm4T/BcJ2xb/LwluApe/BB8Lbx7cNJaMLEv2f9q/EUpIAqICT9eAVkawKC4gSg DiLv3YWxB2+3w== From: Vinod Koul To: Bjorn Andersson Cc: linux-arm-msm@vger.kernel.org, Jack Pham , Andy Gross , linux-kernel@vger.kernel.org, Vinod Koul Subject: [PATCH 3/6] arm64: dts: qcom: sm8350-mtp: enable USB nodes Date: Thu, 4 Feb 2021 22:39:04 +0530 Message-Id: <20210204170907.63545-4-vkoul@kernel.org> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20210204170907.63545-1-vkoul@kernel.org> References: <20210204170907.63545-1-vkoul@kernel.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org From: Jack Pham Enable both USB controllers and associated hsphy and qmp phy nodes on sm8350 MTP. Designate the usb_1 instance as peripheral-mode only until proper PMIC based Type-C dual-role handling is supported. TODO: the second USB controller is exposed to a microAB port. Dual- role can be supported for this by adding the "usb-role-switch" property as well as defining a USB connector node with a "gpio-usb-b-connector" compatible. However, this requires GPIO support from PM8350 which is still missing. Signed-off-by: Jack Pham Message-Id: <20210116013802.1609-3-jackp@codeaurora.org> Signed-off-by: Vinod Koul --- arch/arm64/boot/dts/qcom/sm8350-mtp.dts | 42 +++++++++++++++++++++++++ 1 file changed, 42 insertions(+) -- 2.26.2 diff --git a/arch/arm64/boot/dts/qcom/sm8350-mtp.dts b/arch/arm64/boot/dts/qcom/sm8350-mtp.dts index 8923657579fb..a2baa1ad3752 100644 --- a/arch/arm64/boot/dts/qcom/sm8350-mtp.dts +++ b/arch/arm64/boot/dts/qcom/sm8350-mtp.dts @@ -248,3 +248,45 @@ &tlmm { &uart2 { status = "okay"; }; + +&usb_1 { + status = "okay"; +}; + +&usb_1_dwc3 { + dr_mode = "peripheral"; +}; + +&usb_1_hsphy { + status = "okay"; + + vdda-pll-supply = <&vreg_l5b_0p88>; + vdda18-supply = <&vreg_l1c_1p8>; + vdda33-supply = <&vreg_l2b_3p07>; +}; + +&usb_1_qmpphy { + status = "okay"; + + vdda-phy-supply = <&vreg_l6b_1p2>; + vdda-pll-supply = <&vreg_l1b_0p88>; +}; + +&usb_2 { + status = "okay"; +}; + +&usb_2_hsphy { + status = "okay"; + + vdda-pll-supply = <&vreg_l5b_0p88>; + vdda18-supply = <&vreg_l1c_1p8>; + vdda33-supply = <&vreg_l2b_3p07>; +}; + +&usb_2_qmpphy { + status = "okay"; + + vdda-phy-supply = <&vreg_l6b_1p2>; + vdda-pll-supply = <&vreg_l5b_0p88>; +};