Received: by 2002:ab2:620c:0:b0:1ef:ffd0:ce49 with SMTP id o12csp754625lqt; Tue, 19 Mar 2024 02:52:50 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUWQe3F5QUFMOy5Omyvjh0WYsjuueTiVfcCHJudw8fN2f36xJMy2sciPBcU00BkhNuTZSdQZRKFdNGvuwNHzVjTuI66X6asmrwtrbA+NQ== X-Google-Smtp-Source: AGHT+IH+gs2K6/2EFa6duVGuBBEEBPHZT8mdNPFlzkYtP3ZoiGdajyiLAdbv23U7QrWFjX33J+rE X-Received: by 2002:a17:906:cb92:b0:a46:24fd:4a75 with SMTP id mf18-20020a170906cb9200b00a4624fd4a75mr9570894ejb.29.1710841969949; Tue, 19 Mar 2024 02:52:49 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1710841969; cv=pass; d=google.com; s=arc-20160816; b=v2+BlCgjjxFanw/Ds248jMlJmUTPMzAqs28jvX/mYlUy8IBmHUInoWVh+Z0FsuGaTD RDtyg20Yc94LfaoprjTtQQjkmv1T3WVdtAjQ5+mpgS77sOmQBBMr2mVoXvqC9osIowSb Uj6elFWBtkREYCHmjKdQ9T+khW16NcLelu1DLzkhFtYxN8i6FOpn+st1AHjvYzxbcueZ 5pbDQXRymrMYC46/OYK4/CVU8J0FhDCtjZGiVEFe6eV44Npv/mlSsips2mMtdm1L62jM YA7Id8XkE8NlFjRzlN86ENzS7FRC92F6FAf5M8Gp5FTrsY7rE5cps3/sEmDPKpOC6l/Y Pfuw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :dkim-signature; bh=A6LcXKMDysqMRqbalBzfZO3pv8QVanE6pMSkVm/ZUmU=; fh=WcTKzMO0edcRVf9Wcj1bHtPaLKdnsE3GdnlOg9yj0XY=; b=X6FRI6ik2m8oX7SiQvHmkcRitH4Dc54mVa/8Q1cekfUsHq2mcdY+gmsnSg0WnDoU6/ yPvBSPXOg8EYvT6qKlkgwhK4nnx2IWY3VyLPmvHRarwoO7FD3lj8xcYOElSHnf4FlC/W dpuq4FOFJz8kfIYsmzUr5996TL8W1w6tcietj5XoAvzf5EUAGwD/PjxlSs5HIVw6f7V+ ZiwCb9ud7+B8+3Av95TSz4nIqQcNEzC5aVDRB1kXRE8KFgsJSuWPC2oh5OW29vxTOrpw kNiGzRA7WEwLw/6njMNmpxCHbxLSI9C5k47OLTNF71LoOfdNpp2VLTKWLi91OHPuAWyZ Wj8w==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=FkJym5mj; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-107329-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-107329-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id m22-20020a1709062ad600b00a46c1bc8e76si1593616eje.844.2024.03.19.02.52.49 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 19 Mar 2024 02:52:49 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-107329-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=FkJym5mj; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-107329-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-107329-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 86AD81F22281 for ; Tue, 19 Mar 2024 09:52:49 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id EC0547D40B; Tue, 19 Mar 2024 09:52:30 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="FkJym5mj" Received: from mail-yw1-f180.google.com (mail-yw1-f180.google.com [209.85.128.180]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 51C1A7D3F3 for ; Tue, 19 Mar 2024 09:52:28 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.180 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710841950; cv=none; b=KnV3ztVksACnuvf1QoyKTMYET8xseggOUghEOcPheI7k8WzQdaOvKLtpTS/y04yKmtjMWULHjohT6o87EtGlJFKDbr6J5OwUOgc0aPxRVJX+FgN5HJI4GdLrPW5xeh0c17/6hYFvdq7dnPGBUH7os4VwHTdi4ciqNBG1Yy2lzjE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710841950; c=relaxed/simple; bh=GBn2DTXzIExCHBi5QRFqEjOBO93zlSboxWgc4rPCncY=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=C1CGjC56LvsgaGBNmV/ZAVYPl/TXYkm3TYNUGVleoxhRZ/J6aJ86FrRHQRFdeQxdK06Dm6VyaBpnypwn147bBDxcgFKHhY5j0XbMimMqJmtka0Lu7T4gp9hcemBkQucu6wtjjr/QLFEtsbygi2Qvm5MmDH3yaHnE/0QRfdqPrLE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=FkJym5mj; arc=none smtp.client-ip=209.85.128.180 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Received: by mail-yw1-f180.google.com with SMTP id 00721157ae682-60a0a54869bso48079417b3.1 for ; Tue, 19 Mar 2024 02:52:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1710841947; x=1711446747; darn=vger.kernel.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=A6LcXKMDysqMRqbalBzfZO3pv8QVanE6pMSkVm/ZUmU=; b=FkJym5mj45ia5WYaUoejisQWBJcjOG01oDb84UZ0dr06rhdQL5Xf+v28nPjWMtph3u gVKl91Qr9vVxjliiYzl19DnGrCxAcfd1hhJcDbSGi3Dfhp0jqxrKMshvi0hWyjGaNIfk T4PycqH9uaDKxqdvy9xt4LyBzVmXmoO5OAYzWcboYA20Bll2RDkYuRwlO0tai7PKMszD 9S7LSQ/heiW9j++oJxDXwcs1bNbv2OtDML9vnQ3Sku0jnXC+LhZBWBOKUOtXtiHGKfsN L8ySfnsTNbmDDRzAMA1weymtsIHSUXsxDmNCsJ2zIsSPKwYSunP80SKNHRm1/XjmW2W9 yH5A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1710841947; x=1711446747; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=A6LcXKMDysqMRqbalBzfZO3pv8QVanE6pMSkVm/ZUmU=; b=PgO2pysveAQ3sEoDKiXAKS3Nga9MXRsOFJJF+EpMNzenOF8jqnrIvxc4pkn7/5Zg9E ZH3UgkbFRB4/YinUKF6/47zeobB+i1qkXERdvxUQA0h/BKhA7V9cC/LvcbEX0oNAu1wl kKKiDQcZ3qY0mkJJca31Tgc3HZIjGT8WldWArQoMYz5kKTgVYcCub/iBORoRg5eBWQTS dnpUra/SC0SFGXdLLUHMMas8WANcCdADT3PmMooHSp0zSu/R9ZSBW8KvroqsqGJ3xW18 GHO+Ho8FAs3rkr8sHJ/VVfJ9goski9IP13Id/nzm1kdqzjgcDYAYYCe4xrGhwSDxn6DY SGHA== X-Forwarded-Encrypted: i=1; AJvYcCWs1+7KUB4nmuLHY4ocjfpHJLA5vMZb8P7U5PDI9Bu/93CrxFoX56sI+m7uA3tgOSpbOyctu7R1INyMe7ZbEtuAFCLDz6wbmTURyC0q X-Gm-Message-State: AOJu0YwR/ZmSVHmfB+w7PmJTm+4dLyy/Apvyd03+j/UY6Rsyz86jJhfk 2fsC6IHGbxCIwr3pDgqdF23gx58Z4fLa8fPU6ezI9jXVe5qwMFrUE0AccluIDLebTg8IxOUPVt/ w4+1Vnr5AMpxHDJwp6DW/1vYBkHXUs9g2RrB7xg== X-Received: by 2002:a0d:e7c2:0:b0:610:e891:838c with SMTP id q185-20020a0de7c2000000b00610e891838cmr279556ywe.7.1710841947304; Tue, 19 Mar 2024 02:52:27 -0700 (PDT) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20240319091020.15137-1-quic_kbajaj@quicinc.com> <20240319091020.15137-3-quic_kbajaj@quicinc.com> In-Reply-To: <20240319091020.15137-3-quic_kbajaj@quicinc.com> From: Dmitry Baryshkov Date: Tue, 19 Mar 2024 11:52:15 +0200 Message-ID: Subject: Re: [PATCH 2/3] arm64: dts: qcom: qdu1000-idp: enable USB nodes To: Komal Bajaj Cc: Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , Conor Dooley , linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Amrit Anand Content-Type: text/plain; charset="UTF-8" On Tue, 19 Mar 2024 at 11:11, Komal Bajaj wrote: > > Enable both USB controllers and associated hsphy and qmp phy > nodes on QDU1000 IDP. Add the usb type B port linked with the > DWC3 USB controller switched to OTG mode and tagged with > usb-role-switch. > > Co-developed-by: Amrit Anand > Signed-off-by: Amrit Anand > Signed-off-by: Komal Bajaj > --- > arch/arm64/boot/dts/qcom/qdu1000-idp.dts | 65 ++++++++++++++++++++++++ > 1 file changed, 65 insertions(+) > > diff --git a/arch/arm64/boot/dts/qcom/qdu1000-idp.dts b/arch/arm64/boot/dts/qcom/qdu1000-idp.dts > index 89b84fb0f70a..26442e707b5e 100644 > --- a/arch/arm64/boot/dts/qcom/qdu1000-idp.dts > +++ b/arch/arm64/boot/dts/qcom/qdu1000-idp.dts > @@ -46,6 +46,33 @@ ppvar_sys: ppvar-sys-regulator { > regulator-boot-on; > }; > > + usb_conn_gpio: usb-conn-gpio { > + compatible = "gpio-usb-b-connector"; If this board has only a USB-B connector, can it really handle USB 3.0? > + vbus-gpio = <&pm8150_gpios 7 GPIO_ACTIVE_HIGH>; > + id-gpio = <&tlmm 42 GPIO_ACTIVE_HIGH>; > + vbus-supply = <&vbus_supply_regulator>; > + > + pinctrl-0 = <&usb_vbus_det_default > + &usb_id_det_default>; > + pinctrl-names = "default"; > + > + port { > + usb_port0_connector: endpoint { > + remote-endpoint = <&usb_1_dwc3_hs>; > + }; > + }; > + }; > + > + vbus_supply_regulator: vbus-supply-regulator { > + compatible = "regulator-fixed"; > + regulator-name = "vbus_supply"; > + > + gpio = <&tlmm 43 GPIO_ACTIVE_HIGH>; > + pinctrl-0 = <&usb_vbus_boost_default>; > + pinctrl-names = "default"; > + enable-active-high; > + }; > + > vph_pwr: vph-pwr-regulator { > compatible = "regulator-fixed"; > regulator-name = "vph_pwr"; > @@ -239,6 +266,16 @@ vreg_l18a_1p2: ldo18 { > }; > }; > > +&pm8150_gpios { > + usb_vbus_det_default: usb-vbus-det-default { > + pins = "gpio7"; > + function = "normal"; > + input-enable; > + bias-pull-up; > + power-source = <0>; > + }; > +}; > + > &qup_i2c1_data_clk { > drive-strength = <2>; > bias-pull-up; > @@ -500,3 +537,31 @@ &tlmm { > &uart7 { > status = "okay"; > }; > + > +&usb_1 { > + status = "okay"; > +}; > + > +&usb_1_dwc3 { > + dr_mode = "otg"; Nit: this is the default setting. > + usb-role-switch; > +}; > + > +&usb_1_dwc3_hs { > + remote-endpoint = <&usb_port0_connector>; > +}; > + > +&usb_1_hsphy { > + vdda-pll-supply = <&vreg_l8a_0p91>; > + vdda18-supply = <&vreg_l14a_1p8>; > + vdda33-supply = <&vreg_l2a_2p3>; > + > + status = "okay"; > +}; > + > +&usb_1_qmpphy { > + vdda-phy-supply = <&vreg_l8a_0p91>; > + vdda-pll-supply = <&vreg_l3a_1p2>; > + > + status = "okay"; > +}; > -- > 2.42.0 > > -- With best wishes Dmitry