Received: by 2002:a05:7412:798b:b0:fc:a2b0:25d7 with SMTP id fb11csp26693rdb; Wed, 21 Feb 2024 15:51:46 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCUnLbrUQ2DgIP5QJtFYnEMZjzweZikE6RjmWzD5YQVIzEpmZFT16IWparros1NPcVsbQnAbbKgm9J14faIhOaPUrjtwmPqkGwvJoc1pWw== X-Google-Smtp-Source: AGHT+IEnIDJLJRrqu5U0PtLFxkyDBlCO0nkgShYhWTOhDBFlq/TJB8eEUPpZqBRCWe2DF4l5om03 X-Received: by 2002:a05:622a:1a8d:b0:42e:3c39:d0c with SMTP id s13-20020a05622a1a8d00b0042e3c390d0cmr2799099qtc.18.1708559505888; Wed, 21 Feb 2024 15:51:45 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708559505; cv=pass; d=google.com; s=arc-20160816; b=YSVdtHxvQAfPFLyBPJinoArBK9SI3/imFFZ54pBiZt0q2NltZWkP3sTRn7VxiSvDnL GPKAeJk3Y2giYnhnkyjVdCJN+LiZhI0fQJjbYWexx1slAUQ3EtveKUJtZduvv1yKeRDP aBm2R0T8CaYnqcQo2vG5M6CLTJHs5VJrVvm2M/2Ier2JuEH4psiIPIq2b1FGiTQKvuRf eL6lfz1fxT6rw/DFUGD9LhrBrkeE7k8aynVe2z/p2szIhnQ8UJ83b4Nxs5ZQa/RctV00 AiUb57PtReBkDRZjMiA8mnDmvfSLu87oJWCzIZot9kAMgdNtLNsiAUw3sAsZVC8J4HDE A4Kg== 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=/XpZt7hzwc3jNcQDwZUZ5vMVTQ3xQ4U9NKZbGKi742g=; fh=5V8LbXcVSpPTHFQOQZTry2FcYCgc+0NseHz32AEPCbE=; b=NGM+w/pC9tHPQ50/g0U8qPnFTvi/V1T+M+zEhS18LijXIh1xn4uKkTSQmAjGjnnznR HWqjZ13q7V1sBaOIsZFNJgKmbFqbe/X0Zcwn96f2KMjGvgA+2ZXNSL5Zzg0uFxAq/pPq +r/DbT0IdNlZXwoZPgV/vtBduy7kauGLJHD0/SjslDjViSYmuPSH4j9uLkQ5TfxrWZfN El42KoDOToVrbAJBgPnZLfp3hqGEKOHYWJPSEyzrEpnOxN1cOj97BDxHSFM2y+il3KR9 sFm/ImfS7QvB7uVW6gzf00RD9qUk5A786ugrlmjDFB6LFaWNH1hJfoPj8SS+nccPJG43 HFOA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=NhA3ETk3; 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-75688-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-75688-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id z21-20020ac87115000000b0042da968cef7si10985696qto.543.2024.02.21.15.51.45 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 21 Feb 2024 15:51:45 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-75688-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=NhA3ETk3; 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-75688-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-75688-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 80BC91C21E2D for ; Wed, 21 Feb 2024 23:51:45 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 16ECB133425; Wed, 21 Feb 2024 23:50:27 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="NhA3ETk3" Received: from mail-yb1-f171.google.com (mail-yb1-f171.google.com [209.85.219.171]) (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 8E06912D754 for ; Wed, 21 Feb 2024 23:50:24 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.219.171 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708559426; cv=none; b=j1sVPYRXEPlGiSASKJ5Qw7c7meIDRsRK45P/u/Sh0/NQQ9CUPpOdk2Ws+IDfnfAkVpEHhL68sKhWp2VDNU4QdhEMH56lZrqeHX55rQD5Z6H7me73GT55CIriv1Ty2SL+CdjaiEFkFexjKT6aIcB25xtik8i3iDFOx4LJfhvZ4+0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708559426; c=relaxed/simple; bh=y3MIWBK0YFitBa1SLGaOLrvzg2gVwOMZAiNBj6d1t2M=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=kQs0H0Qq9T/w9wBQ0Co8K6kV/1JJqffjQ3QOiLy0FbhbXpqxnmq6Ur/eXZDcT7n6C52mIY231y1W3VcEYgao6iG2tHpacjoIq2NVS7BHSkbQhRwyNGmSMTW0UCH+FmkF++EYGJyRUlLLUzRrvLR6O4+RiwwQIg/g+Des+LelC4o= 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=NhA3ETk3; arc=none smtp.client-ip=209.85.219.171 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-yb1-f171.google.com with SMTP id 3f1490d57ef6-db4364ecd6aso5876884276.2 for ; Wed, 21 Feb 2024 15:50:24 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1708559423; x=1709164223; 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=/XpZt7hzwc3jNcQDwZUZ5vMVTQ3xQ4U9NKZbGKi742g=; b=NhA3ETk3NVvQ/4D4ROhT9QG3s9Ax5+t5GQuNDlKakQGiBJnR9NOEWkyYqYOTw5hlkN w0Y4qSSStdP7900XKsYL22AOoEO8IB/sNr/0Xb9EUL1uYg7JqqRUle8KeXcCeZT8lJCH k220zewx2vNIncGdPkbuxPSdaMMZx6zGegdkwi/fqzdWDEritXZFlYCH7sWhwb1htJFT 0++fC0Lsya9GGAzuLQR1joLUy420z+u2cI2GKKnaxeaedSKbJF2Psxb978GRpGdlbb0Y D5VEDufNXFqzpInzOSmQn8i2bfI+Y+El2XWxRsdYFZFNy2Lkafa3trrzb+XZaqMUwfwD fKyw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1708559423; x=1709164223; 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=/XpZt7hzwc3jNcQDwZUZ5vMVTQ3xQ4U9NKZbGKi742g=; b=JPXkQgjb9knx6EFfMFTO598SPotKdQPilEuChd2QB0e+cc7MmF3le7AcPsQnU+/j/5 VTUNNPzoU+7k9/Q18UmszoDGkq2Be1nR22VHUKXQAU4HVGqx7EDNqct2864j7bxLVgv9 pNKjWutsNnBruSiK5g5i7KORv1ZRcwx5t6SeguimSB20mNAb3AFR3MJOLRpOS+/5qmBC f64SX9vzPHyeQacFvp9kDCpvA1RIU26dZbQ97bbNSSL0R36MM3FB0N74XHPJIkqDdsNQ iI5FibT9TqJ18b1AfDCAW5lEDU+tdpGx8xoBixSbXP0u+oFOELPMztofmOJw0BHdIj0j iCMg== X-Forwarded-Encrypted: i=1; AJvYcCVxMZ8XymRoBu6MogZb1AxLqitmrUaP4NeM1h7Vr4dp6Ls7K+8gYVh2xamsjtuiIUH2JvGIVJZK6z2yI+my/QNlHXF0hIHePw+p756q X-Gm-Message-State: AOJu0YyrhHSUHp1KUwnQwSEAUvBT5ys7Ac9okBqxGJ8XL7syLfRdlML4 3apru3h5Ev4QjT/bUsVfz4XrBdjkEMZnu1LpBZwuh2r0IZgzycGUZgWGxlXgHi4ClHdSKjymEcm /iIe5ryCEYYRvO3CuRRUv6a6ycKNGkeMXMv2xXg== X-Received: by 2002:a05:6902:220f:b0:dc7:48f8:ce2e with SMTP id dm15-20020a056902220f00b00dc748f8ce2emr1016956ybb.37.1708559423600; Wed, 21 Feb 2024 15:50:23 -0800 (PST) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20240221-rb3gen2-dp-connector-v1-0-dc0964ef7d96@quicinc.com> <20240221-rb3gen2-dp-connector-v1-6-dc0964ef7d96@quicinc.com> In-Reply-To: <20240221-rb3gen2-dp-connector-v1-6-dc0964ef7d96@quicinc.com> From: Dmitry Baryshkov Date: Thu, 22 Feb 2024 01:50:12 +0200 Message-ID: Subject: Re: [PATCH 6/9] arm64: dts: qcom: qcs6490-rb3gen2: Enable USB role switching To: Bjorn Andersson Cc: Rob Clark , Abhinav Kumar , Sean Paul , Marijn Suijten , David Airlie , Daniel Vetter , cros-qcom-dts-watchers@chromium.org, Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , Conor Dooley , linux-arm-msm@vger.kernel.org, dri-devel@lists.freedesktop.org, freedreno@lists.freedesktop.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org Content-Type: text/plain; charset="UTF-8" On Thu, 22 Feb 2024 at 01:19, Bjorn Andersson wrote: > > With the ADSP remoteproc loaded pmic_glink can be introduced and wired > up to provide role and orientation switching signals. > > Signed-off-by: Bjorn Andersson > --- > arch/arm64/boot/dts/qcom/qcs6490-rb3gen2.dts | 48 +++++++++++++++++++++++++++- > 1 file changed, 47 insertions(+), 1 deletion(-) > > diff --git a/arch/arm64/boot/dts/qcom/qcs6490-rb3gen2.dts b/arch/arm64/boot/dts/qcom/qcs6490-rb3gen2.dts > index ab498494caea..079bf43b14cc 100644 > --- a/arch/arm64/boot/dts/qcom/qcs6490-rb3gen2.dts > +++ b/arch/arm64/boot/dts/qcom/qcs6490-rb3gen2.dts > @@ -121,6 +121,41 @@ debug_vm_mem: debug-vm@d0600000 { > }; > }; > > + pmic-glink { > + compatible = "qcom,qcm6490-pmic-glink", "qcom,pmic-glink"; > + > + #address-cells = <1>; > + #size-cells = <0>; > + > + connector@0 { > + compatible = "usb-c-connector"; > + reg = <0>; > + power-role = "dual"; > + data-role = "dual"; > + > + ports { > + #address-cells = <1>; > + #size-cells = <0>; > + > + port@0 { > + reg = <0>; > + > + pmic_glink_hs_in: endpoint { > + remote-endpoint = <&usb_1_dwc3_hs>; > + }; > + }; > + > + port@1 { > + reg = <1>; > + > + pmic_glink_ss_in: endpoint { > + remote-endpoint = <&usb_1_dwc3_ss>; This should be connected to the QMP PHY rather than to the USB host. Also it might be better to squash this patch with the patch 8. Or at least to get redriver into the picture in this patch (and keep only display-related parts in that patch). > + }; > + }; > + }; > + }; > + }; > + > vph_pwr: vph-pwr-regulator { > compatible = "regulator-fixed"; > regulator-name = "vph_pwr"; > @@ -476,7 +511,16 @@ &usb_1 { > }; > > &usb_1_dwc3 { > - dr_mode = "peripheral"; > + dr_mode = "otg"; > + usb-role-switch; > +}; > + > +&usb_1_dwc3_hs { > + remote-endpoint = <&pmic_glink_hs_in>; > +}; > + > +&usb_1_dwc3_ss { > + remote-endpoint = <&pmic_glink_ss_in>; > }; > > &usb_1_hsphy { > @@ -491,6 +535,8 @@ &usb_1_qmpphy { > vdda-phy-supply = <&vreg_l6b_1p2>; > vdda-pll-supply = <&vreg_l1b_0p912>; > > + orientation-switch; > + > status = "okay"; > }; > > > -- > 2.25.1 > -- With best wishes Dmitry