From patchwork Fri Mar 22 08:01:32 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Luca Weiss X-Patchwork-Id: 782039 Received: from mail-lf1-f45.google.com (mail-lf1-f45.google.com [209.85.167.45]) (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 0A80A171C1 for ; Fri, 22 Mar 2024 08:01:50 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.167.45 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711094512; cv=none; b=Ehf/nTDIVAxkqPpgOPUJZ/cIrqjIliMr1z6XJO6IvbVC4gWb+5uHXujgUquQjsryC4vlzfmqCkd8MA3g8964U0m5L6wlTiePrQgLixGTcYrda/HUWAdWEIfokvqt4czQhne2CtMnHeOFqzL2IKTjW8rod4shjdAZYdbebi/5nMo= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711094512; c=relaxed/simple; bh=wL0JlF8eq0Z9HHcp26zCmP4nMmGV6x98g3GPHG5/rXc=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=KHYxiN8lSqlbKeTOFtRhbaTIasXr/VJcPoWxvok/p2mZjmLJgOLx48KCasX+rfNxtVjBGC68gPcv0pS7D1Q+Cioedy+IX0jcIN/37Wl4VKQ42JAHWlSqIv6NK/8LlM9/rS0DwMCn7K6ePaBXEFpf8RyI1q0MYMWJ32yPHV8qZqk= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=fairphone.com; spf=pass smtp.mailfrom=fairphone.com; dkim=pass (2048-bit key) header.d=fairphone.com header.i=@fairphone.com header.b=L2sYvMkb; arc=none smtp.client-ip=209.85.167.45 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=fairphone.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=fairphone.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=fairphone.com header.i=@fairphone.com header.b="L2sYvMkb" Received: by mail-lf1-f45.google.com with SMTP id 2adb3069b0e04-513e14b2bd9so2220694e87.2 for ; Fri, 22 Mar 2024 01:01:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fairphone.com; s=fair; t=1711094508; x=1711699308; darn=vger.kernel.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=bAOZ7K61fLCIDdZx+aVvexoe0zzZnMrZfxPNoh4sO1o=; b=L2sYvMkbwy9ZIRErfMudHK3guTLz0uR0YcEFrkhJuexLJza6ZvOfIqE5t775MLoHBt k4Gxjr0hKX13qfGKFPMd+V6i78WAItoK2Xy52Y9ZgE9l9+MuAcJwy5qAoIGT2NoSdf+w 8//y9WUziRsnds10+7vcEFG97hHP4swCC3ULE3z3IsHjoC/JspwoQEKJuXzQ++oiBEan pnGjqypgC0tsPbGsDTkguXtTAXLmrTZBPXZLl0ZSTu7bvnW3jACzweNcCGFSI0II0iuE zNAb23NLOaQSQmI0mOkTI4trf4kKaLVCnTZTCLzkmqjDpQ+xoM4IFdNj3XvaJwTnksVo WL1Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1711094508; x=1711699308; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=bAOZ7K61fLCIDdZx+aVvexoe0zzZnMrZfxPNoh4sO1o=; b=NvgNvC5kQ6qv9pEF560/uIuR2y7jaKpRu9yKsMPR3ZHIXs1UZDiQgYigAAmciGQ9fw sFF5mT5F0cvds1I4Earysx2MPF1oslmcBxMmHcejIUi5FzYHYwUzc12ZpVX9GI/35/12 OUZYDhqwKcWJ83XVZ4kdS/6In91Y3/gehgB3sQjZJgiy3Tgz6zliAlxUzCmRtsoS7IBM 3VkfxR/PfDuCbndHxVcUWX+tzULQIqx/rsPQaSoAJdjvsEfUxJGBki52vMYKu09fllUj UcHVB9aDPeIESOcUrJG+gR8jkX+AwbmsuxacMPBoA7hoFf6V2/Cu2dkAiM7Glg75xOc4 L9lw== X-Forwarded-Encrypted: i=1; AJvYcCVS10qdkAiuNLS0krY6Fee4uiWsC55P4pkAh8VTO72XBMV6FTmmFkE3IxP6VLl+GfGld2AkT6F0TBLR2gdcGEbJRa3g/lXuVXCh X-Gm-Message-State: AOJu0Yzv1Sejb0ZIOiHh60N+NVvRHFRc/XaUjgYDt/FNpL44Z0jL4FV4 Qqhc7f0mgAorPmJg4LdOLIkDyE8vUArgSSU/TUPYsjZIXLuQVa1zrX7fxJpofdO+hXbuSznTcQC x X-Google-Smtp-Source: AGHT+IEtUnHCgXspvWzyBcI4Iu6FD4FhY7l2vPYZlKwtFxOzaUWi05T9h5nexKq5DDxYU/NPaxZq9w== X-Received: by 2002:ac2:5395:0:b0:513:dd59:bb3d with SMTP id g21-20020ac25395000000b00513dd59bb3dmr1104924lfh.20.1711094508372; Fri, 22 Mar 2024 01:01:48 -0700 (PDT) Received: from otso.luca.vpn.lucaweiss.eu (046125249120.public.t-mobile.at. [46.125.249.120]) by smtp.gmail.com with ESMTPSA id p29-20020a056402501d00b00568c613570dsm739889eda.79.2024.03.22.01.01.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 22 Mar 2024 01:01:48 -0700 (PDT) From: Luca Weiss Date: Fri, 22 Mar 2024 09:01:32 +0100 Subject: [PATCH 1/5] dt-bindings: regulator: qcom,usb-vbus-regulator: Add PM7250B compatible Precedence: bulk X-Mailing-List: linux-usb@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20240322-fp4-tcpm-v1-1-c5644099d57b@fairphone.com> References: <20240322-fp4-tcpm-v1-0-c5644099d57b@fairphone.com> In-Reply-To: <20240322-fp4-tcpm-v1-0-c5644099d57b@fairphone.com> To: Bjorn Andersson , Konrad Dybcio , Liam Girdwood , Mark Brown , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Wesley Cheng , Bryan O'Donoghue , Greg Kroah-Hartman Cc: ~postmarketos/upstreaming@lists.sr.ht, phone-devel@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, linux-usb@vger.kernel.org, Luca Weiss X-Mailer: b4 0.13.0 The VBUS register block on the PM6150 PMIC shares the design with the PM8150B one. Define corresponding compatible string, having the qcom,pm8150b-vbus-reg as a fallback. Signed-off-by: Luca Weiss Reviewed-by: Bryan O'Donoghue Acked-by: Conor Dooley --- Documentation/devicetree/bindings/regulator/qcom,usb-vbus-regulator.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/regulator/qcom,usb-vbus-regulator.yaml b/Documentation/devicetree/bindings/regulator/qcom,usb-vbus-regulator.yaml index 33ae1f786802..fcefc722ee2a 100644 --- a/Documentation/devicetree/bindings/regulator/qcom,usb-vbus-regulator.yaml +++ b/Documentation/devicetree/bindings/regulator/qcom,usb-vbus-regulator.yaml @@ -26,6 +26,7 @@ properties: - enum: - qcom,pm4125-vbus-reg - qcom,pm6150-vbus-reg + - qcom,pm7250b-vbus-reg - qcom,pmi632-vbus-reg - const: qcom,pm8150b-vbus-reg From patchwork Fri Mar 22 08:01:33 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Luca Weiss X-Patchwork-Id: 782242 Received: from mail-ed1-f41.google.com (mail-ed1-f41.google.com [209.85.208.41]) (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 14C2218B15 for ; Fri, 22 Mar 2024 08:01:52 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.41 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711094513; cv=none; b=icjCIp9s6tx4BbqiQ75WMWO2txjdG2mREWBOV3qzjWpNApbkDe/lHThtF+4snrJyN2M7suxrWUnJj+5z9w85O7GO3mwARpjN+uuPXBYaBxJfajLLVtJZbzx2fa5wOw+eKB7VgjwMi0jpQNY447n07V4D7r7EXNs4EaKVR1v61Qw= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711094513; c=relaxed/simple; bh=ZBM5V09fKIuDTzLzV/0cG79mmGRRchouq0MxxhGGVXM=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=T3P/GwWmNvRd+5aIIogvwBFzbAcXZNmK2Cp8mTVYyjmXpVUOAPasbzPB1/ejpRljqBDdBAzBX2+Xrzp28aiJ8nZ2920LCBZL3ko0vdiX9Ql069JyyIbfPvv6ykAf+C9Xkt+u5OP7n5RThf39WdZgLV8kcmpvTjHBrtPT92FWpic= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=fairphone.com; spf=pass smtp.mailfrom=fairphone.com; dkim=pass (2048-bit key) header.d=fairphone.com header.i=@fairphone.com header.b=jO1LHyxe; arc=none smtp.client-ip=209.85.208.41 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=fairphone.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=fairphone.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=fairphone.com header.i=@fairphone.com header.b="jO1LHyxe" Received: by mail-ed1-f41.google.com with SMTP id 4fb4d7f45d1cf-56bdf81706aso612069a12.2 for ; Fri, 22 Mar 2024 01:01:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fairphone.com; s=fair; t=1711094510; x=1711699310; darn=vger.kernel.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=SvLE1MVPgDc0vjg2RXtuyO+IXL0HADH5M9xYPYlMtPM=; b=jO1LHyxeBbLsB+xQF0yhB+lG9vvRSiDifTk1cfI8nyG8yEWCUYvKpoNB1arVg3NVZG OmGTdVmDjcLfhZ+ZWVeu9qUoRtB28ECWV+hTprvsmoZ1wHA7XGIrM+4Eh0EhnPj21Hbe sRu6WIi0Rt3Ep8RCSlK9STxPWjQnG1zqzfUMyBC2xStrmgeL7FdOA10yU1xz3Y2HBQEQ 69Oui27BgfLR6/G7RzrqjmmBUsEp3YDa3zQfFw40MJGNMUytpmbBcOTOAczJJ1KtWzRm fMZ4baFGMgqr4fuQsAKmsceatepVuqLcvTURw7W4b/jiWOAOD9EARcK5SB2+KEF0MPEZ KUjQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1711094510; x=1711699310; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=SvLE1MVPgDc0vjg2RXtuyO+IXL0HADH5M9xYPYlMtPM=; b=oTXhwhInvJ972Rk+/r2Cfs0j22MM/PO5pRoCeDcg66sumFigctGimTV1+SPkzxrg4+ /7xbd4N9R9i2Z3ell1ZV5QPqp/g92cWip6snbwp9u+L0zqfhN54G8UenDddvaI28lkeU /k+V9hkgqKtxng9qzWlwXhr4q2nmwBTaV3Ls97L/BJZp+xmGO48JHb1vP2BThG4LFElo vidgeeUxX35OOoh7BEHvpY71z/pE7/Yo/+uY2Er3cu+FjYbMt/QBBJgYIwmrqjAsNaNq 4boJCXMDzs23Ysg2IKWingMK+G2Qoazpr4XBAybgRZr4UW+UgG3FNciDD1zhy/dw2ufa UsQg== X-Forwarded-Encrypted: i=1; AJvYcCXhnMJ7ZiLyW4Ezs8GR81tu2H8ReC4v3tskb08sFER9E1wwCytzXRfU/dPstzpuf2HjP7S/uhuv4dELYNbyxvp8lB46HGtf7eGE X-Gm-Message-State: AOJu0Yzsszx/gylf8byYZFQFCUzCBjaNtcdNDzH07UDNiOTwhTCqB/DW srq7/SQ7MwDJyYyzuCJohPu3f+KHpfJJXM0+pLvuQ9R8DtSrGZ+NgCjZVftSt7PUgIJhAzgdUcc V X-Google-Smtp-Source: AGHT+IGbA7Ib8iNtMMdw2HGCUucqhXUuLYARbm0CTeKU/FpNbScbeM2XX2q5s73AS0o+fhZUPA/Xag== X-Received: by 2002:a50:8e5d:0:b0:566:1952:694c with SMTP id 29-20020a508e5d000000b005661952694cmr971634edx.20.1711094509844; Fri, 22 Mar 2024 01:01:49 -0700 (PDT) Received: from otso.luca.vpn.lucaweiss.eu (046125249120.public.t-mobile.at. [46.125.249.120]) by smtp.gmail.com with ESMTPSA id p29-20020a056402501d00b00568c613570dsm739889eda.79.2024.03.22.01.01.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 22 Mar 2024 01:01:49 -0700 (PDT) From: Luca Weiss Date: Fri, 22 Mar 2024 09:01:33 +0100 Subject: [PATCH 2/5] dt-bindings: usb: qcom,pmic-typec: Add support for the PM7250B PMIC Precedence: bulk X-Mailing-List: linux-usb@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20240322-fp4-tcpm-v1-2-c5644099d57b@fairphone.com> References: <20240322-fp4-tcpm-v1-0-c5644099d57b@fairphone.com> In-Reply-To: <20240322-fp4-tcpm-v1-0-c5644099d57b@fairphone.com> To: Bjorn Andersson , Konrad Dybcio , Liam Girdwood , Mark Brown , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Wesley Cheng , Bryan O'Donoghue , Greg Kroah-Hartman Cc: ~postmarketos/upstreaming@lists.sr.ht, phone-devel@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, linux-usb@vger.kernel.org, Luca Weiss X-Mailer: b4 0.13.0 The PM6150 PMIC has the same Type-C register block as the PM8150B. Define corresponding compatible string, having the qcom,pm8150b-vbus-reg as a fallback. Signed-off-by: Luca Weiss --- Documentation/devicetree/bindings/usb/qcom,pmic-typec.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/usb/qcom,pmic-typec.yaml b/Documentation/devicetree/bindings/usb/qcom,pmic-typec.yaml index d9694570c419..0cdc60b76fbd 100644 --- a/Documentation/devicetree/bindings/usb/qcom,pmic-typec.yaml +++ b/Documentation/devicetree/bindings/usb/qcom,pmic-typec.yaml @@ -21,6 +21,7 @@ properties: - items: - enum: - qcom,pm6150-typec + - qcom,pm7250b-typec - const: qcom,pm8150b-typec - items: - enum: From patchwork Fri Mar 22 08:01:34 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Luca Weiss X-Patchwork-Id: 782038 Received: from mail-ed1-f43.google.com (mail-ed1-f43.google.com [209.85.208.43]) (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 4DBC21A701 for ; Fri, 22 Mar 2024 08:01:52 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.43 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711094515; cv=none; b=bV280MG7Kpr9E2Gsgm1X2CG9hvRgAdIqUCcdp96fdjM1xGc8KGyE9SfMLPRbkA78YAIBCxi3J2P/o+tCoB6YFiHXUaDBK5E6h+mbw6e8OyO3w0qwtIwgnfPQXqLvi4mfxQdfVezsPi9ah7lvCiqKhofBuYdylfB6SJFpfcp2FOE= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711094515; c=relaxed/simple; bh=1MOPT1FDzvrdVxuX7nqt1W0QauAQ9Sdi8rEwG5YPz+4=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=Itcj+C8wSY2dzpszt3Z1g2UjvsMGC9eczAIZZiIY0K/IeQWlpCTHXl46ZFviqIqM7YdzGHFktfFw/d2zW6qRM87dwInZzlB/zzAktT0IoALHLYoM9QY3rwACicE7Tk8N8CEUtzYXpv9Wa4ZHtmxLn+OvXKvO8UPxsA0ntUBm6Y8= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=fairphone.com; spf=pass smtp.mailfrom=fairphone.com; dkim=pass (2048-bit key) header.d=fairphone.com header.i=@fairphone.com header.b=gGbdWSrH; arc=none smtp.client-ip=209.85.208.43 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=fairphone.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=fairphone.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=fairphone.com header.i=@fairphone.com header.b="gGbdWSrH" Received: by mail-ed1-f43.google.com with SMTP id 4fb4d7f45d1cf-5684db9147dso2071296a12.2 for ; Fri, 22 Mar 2024 01:01:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fairphone.com; s=fair; t=1711094511; x=1711699311; darn=vger.kernel.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=sGIiCG9uUSZYTiXZoy1kgHnKMJgJXQ5MQQFb+SBtz4I=; b=gGbdWSrHBvFbt10i0P7IS3YcfHMgFZ22iqvbPM1bKzprynfhbALYb8pKApd0TrOCw8 QHdU/J/LK3Cn/nyTlRl63owpMWZilaGzuOkb5w9XRs0Al3S1UTwaLdtqYXxH+AiJoiWz l5wc4HcwzGpAfzfYc+kVeLVqGVcPgXVkZpvCW3Ba10L5Zhin82Laf5bU2DznezpLZK2m XWxXbCffdqyFwdKJtyZygp6y6IbAxco/TVY/AvY56xu5SQ3C2zHIfNCeDuypQSQGpfrh eTK8D960FLMhLXuKT2Fg3HJkbJafhs0rVrTsgTpNJe49W21patTQPM4ictDqOMwDTWdz PP/w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1711094511; x=1711699311; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=sGIiCG9uUSZYTiXZoy1kgHnKMJgJXQ5MQQFb+SBtz4I=; b=kLYwUh6IteGqOHeyrIK0ETTv2rv1AvpT0z5nuPRB134yz3qMDebRAzecHQ3wz9JzFO QkKl3HcxfnO1SNQ2HGVTrV0qDwucdWvV9AueMXbKxhXFxv0ZMcTNwFfLXh1X9T89KFJ7 BQ2GW+5KxSaVOOXnpnvwcG33/MTvQfw/B1OfidWD3OQPi2D++U4TzCmdc4rjsleGwH7w +imfclJGtZYr4qosPJjl2buNoyd+ViDSYehqKwoIOrPQA6BUAMwmJTjLU+01AKh38IXs m5fzmN/bJedsKSbKsPpQx0yfxB+OAEG0dP4LmLQ74oka5xW3GSgJSkLx7onPldx8XCjq dTlg== X-Forwarded-Encrypted: i=1; AJvYcCXsIq5/NKaobqc5XZ3J1xPAt0qk5YjWvIQsiLr2lZGvzppgfpV7x7BOV8qkWFCoSHLCRwzMw1Wz6IMw63jlmQJgQtGEGGgvU8ow X-Gm-Message-State: AOJu0YzmBIcTDxXTKphBoclIncojGXLgWd5srqQCdmg2l6mGFhdP8D1a 5RO4Feqi+K6gkGUajX/jWAPVwtG3MqQEz1m7Bt7KFQPGU0xR1cOZ30BQ5EU7EAsecR9SRreNi0r 7 X-Google-Smtp-Source: AGHT+IG+nqdXI1/DerUy6fqVXgv4lX8l13RIVM/mybWFdH566c+9/IDCR+8S/cgY0yZTIa+l3tOfow== X-Received: by 2002:a50:9318:0:b0:56a:fbe9:80a4 with SMTP id m24-20020a509318000000b0056afbe980a4mr953720eda.1.1711094511149; Fri, 22 Mar 2024 01:01:51 -0700 (PDT) Received: from otso.luca.vpn.lucaweiss.eu (046125249120.public.t-mobile.at. [46.125.249.120]) by smtp.gmail.com with ESMTPSA id p29-20020a056402501d00b00568c613570dsm739889eda.79.2024.03.22.01.01.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 22 Mar 2024 01:01:50 -0700 (PDT) From: Luca Weiss Date: Fri, 22 Mar 2024 09:01:34 +0100 Subject: [PATCH 3/5] arm64: dts: qcom: pm7250b: Add node for PMIC VBUS booster Precedence: bulk X-Mailing-List: linux-usb@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20240322-fp4-tcpm-v1-3-c5644099d57b@fairphone.com> References: <20240322-fp4-tcpm-v1-0-c5644099d57b@fairphone.com> In-Reply-To: <20240322-fp4-tcpm-v1-0-c5644099d57b@fairphone.com> To: Bjorn Andersson , Konrad Dybcio , Liam Girdwood , Mark Brown , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Wesley Cheng , Bryan O'Donoghue , Greg Kroah-Hartman Cc: ~postmarketos/upstreaming@lists.sr.ht, phone-devel@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, linux-usb@vger.kernel.org, Luca Weiss X-Mailer: b4 0.13.0 Add the required DTS node for the USB VBUS output regulator, which is available on PM7250B. This will provide the VBUS source to connected peripherals. Signed-off-by: Luca Weiss --- arch/arm64/boot/dts/qcom/pm7250b.dtsi | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/pm7250b.dtsi b/arch/arm64/boot/dts/qcom/pm7250b.dtsi index 3bf7cf5d1700..91a046b3529c 100644 --- a/arch/arm64/boot/dts/qcom/pm7250b.dtsi +++ b/arch/arm64/boot/dts/qcom/pm7250b.dtsi @@ -45,6 +45,12 @@ pmic@PM7250B_SID { #address-cells = <1>; #size-cells = <0>; + pm7250b_vbus: usb-vbus-regulator@1100 { + compatible = "qcom,pm7250b-vbus-reg", "qcom,pm8150b-vbus-reg"; + status = "disabled"; + reg = <0x1100>; + }; + pm7250b_temp: temp-alarm@2400 { compatible = "qcom,spmi-temp-alarm"; reg = <0x2400>; From patchwork Fri Mar 22 08:01:35 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Luca Weiss X-Patchwork-Id: 782241 Received: from mail-ed1-f48.google.com (mail-ed1-f48.google.com [209.85.208.48]) (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 F3B2220300 for ; Fri, 22 Mar 2024 08:01:54 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.48 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711094516; cv=none; b=Wp62JnYcVGBbl8J/WmHanxkyvaeLtJMo5fJai8VjY0gmV83iEmjIB+73K0gvVafVtOg3rjLYAUwBq9kKH7XIPNL1bMaYDP+66MBf2WQYFwp7bSreNlke/2MWUuoNtilPAEcZGjkVpafMxF78M1t3WU5S5FyQCiisQDDgRWoWruI= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711094516; c=relaxed/simple; bh=eRAUypiy6NxphUecfUcmOhK6/zjL6KugszpYnn8ELYQ=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=anOp9ePcjsdzamJ8AxQl5hB5IKG/2GQ7qV0Ni/CT2jjg1o+8nLzXb7srAEw1sY39yOZOuNiI33sKt6+A73U7TLmW512AVFbLkZNAvHJzBBu175hhnNVIcamJ+6Xwi7uBNEzWveswza5RuTUmoMUDd2iOGcu9sw9uMhvdemutuNg= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=fairphone.com; spf=pass smtp.mailfrom=fairphone.com; dkim=pass (2048-bit key) header.d=fairphone.com header.i=@fairphone.com header.b=1LUDboFm; arc=none smtp.client-ip=209.85.208.48 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=fairphone.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=fairphone.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=fairphone.com header.i=@fairphone.com header.b="1LUDboFm" Received: by mail-ed1-f48.google.com with SMTP id 4fb4d7f45d1cf-563cb3ba9daso2018907a12.3 for ; Fri, 22 Mar 2024 01:01:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fairphone.com; s=fair; t=1711094512; x=1711699312; darn=vger.kernel.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=5pRYK0AY0UI9ndhzyuHsQHi/IsO1+vFhpELF3E3mlVU=; b=1LUDboFmd4Ic28Ky6iPYlJn0azhrckoKdyX2wp/ppC6JY1Ote+xGYlIKLgMOHsAGp0 RSNpjl1GLtkpX2QIeTx5Ds6VHHTk+llHV6QFQOEFvIE4Yhg0ljJ6r7dCi4P7t7yjnyuo H7gzTn7acIg+/azmTkeyhAA0E+CM9f6/zh0B12lfY9bY5OsEFK6ViFQpSFx/dyxWsFRy 2jHEMNzy9EI47DNJGTij8IkZxICIX/3wbjKp1z4W9RFsqNsbdvq7abWWOa7IDGta17yG nlW8gEo4gTwq6PLYrhilWe4QkR0vqHjgGJ+DVKsd0Opu0AFbcix+F/W48JXxL9RsC8tY XdJg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1711094512; x=1711699312; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=5pRYK0AY0UI9ndhzyuHsQHi/IsO1+vFhpELF3E3mlVU=; b=UnH6/scCuULbjKyYtT1QPx60m6SAj/doEn9KZ7vQjVGsuMLOfm/EdFvvqpB8iHxWdc 671vcRVN6HW7okTzquaNuT5Ii7qKDBf1sIkP+U/Vr+qVUwU18Lyb/rud0EhqhKorzjRP GS7I1lsrbzHYN9ivpqMo0k9XUZ/NU4ZTN6W2lKt7eqdo/A0g8x0e/YIWe6UkrnBCF9Bk Tkno6Gl7eg7rZukDuZ/xDQaIvnmrHjrmhgeRr1kzBPZv7qD8PagrKgsM55gZZpCbI+G4 0dMG0de7kkMyrXrqQOYHPNWoRz78zDXy6uCTe99aGMNqOfSaHPxf9iPTaUOA8G4ejCIF LLyA== X-Forwarded-Encrypted: i=1; AJvYcCXxMVVQhWGGfkDZB0HYtLBtg4oFMYKsGNT2+yth9MbqjJJg4D28BMl1KhgpxSGYrMjnAALv+DJowV20Ry56jHKfQ6fvaWzqfoiM X-Gm-Message-State: AOJu0YxdAujhbFiTVg/ZK0hzVCPBaRHWUGC9lFvmuBbCaURSmM4pSFaM pshceJFswf6VOEuuoDwj4tjcz/1pgb6qp8scLtOe5ucv9NbGxzKAuTETzVmy7JrOAoD7QVQpVNy 9 X-Google-Smtp-Source: AGHT+IFMV+nhmCMGnciFCjJOMnCNNdWpE+6zHt7ZXFjZQ3ImU8IBSLs+ufVU4s1Y/2jvby1lqIfekw== X-Received: by 2002:a50:a6d0:0:b0:56b:9162:8e6 with SMTP id f16-20020a50a6d0000000b0056b916208e6mr1069232edc.18.1711094512569; Fri, 22 Mar 2024 01:01:52 -0700 (PDT) Received: from otso.luca.vpn.lucaweiss.eu (046125249120.public.t-mobile.at. [46.125.249.120]) by smtp.gmail.com with ESMTPSA id p29-20020a056402501d00b00568c613570dsm739889eda.79.2024.03.22.01.01.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 22 Mar 2024 01:01:52 -0700 (PDT) From: Luca Weiss Date: Fri, 22 Mar 2024 09:01:35 +0100 Subject: [PATCH 4/5] arm64: dts: qcom: pm7250b: Add a TCPM description Precedence: bulk X-Mailing-List: linux-usb@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20240322-fp4-tcpm-v1-4-c5644099d57b@fairphone.com> References: <20240322-fp4-tcpm-v1-0-c5644099d57b@fairphone.com> In-Reply-To: <20240322-fp4-tcpm-v1-0-c5644099d57b@fairphone.com> To: Bjorn Andersson , Konrad Dybcio , Liam Girdwood , Mark Brown , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Wesley Cheng , Bryan O'Donoghue , Greg Kroah-Hartman Cc: ~postmarketos/upstreaming@lists.sr.ht, phone-devel@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, linux-usb@vger.kernel.org, Luca Weiss X-Mailer: b4 0.13.0 Type-C port management functionality lives inside of the PMIC block on pm7250b. The Type-C port management logic controls orientation detection, vbus/vconn sense and to send/receive Type-C Power Domain messages. Signed-off-by: Luca Weiss --- arch/arm64/boot/dts/qcom/pm7250b.dtsi | 39 +++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/pm7250b.dtsi b/arch/arm64/boot/dts/qcom/pm7250b.dtsi index 91a046b3529c..d9abac052afe 100644 --- a/arch/arm64/boot/dts/qcom/pm7250b.dtsi +++ b/arch/arm64/boot/dts/qcom/pm7250b.dtsi @@ -51,6 +51,45 @@ pm7250b_vbus: usb-vbus-regulator@1100 { reg = <0x1100>; }; + pm7250b_typec: typec@1500 { + compatible = "qcom,pm7250b-typec", "qcom,pm8150b-typec"; + reg = <0x1500>, + <0x1700>; + interrupts = , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + ; + interrupt-names = "or-rid-detect-change", + "vpd-detect", + "cc-state-change", + "vconn-oc", + "vbus-change", + "attach-detach", + "legacy-cable-detect", + "try-snk-src-detect", + "sig-tx", + "sig-rx", + "msg-tx", + "msg-rx", + "msg-tx-failed", + "msg-tx-discarded", + "msg-rx-discarded", + "fr-swap"; + vdd-vbus-supply = <&pm7250b_vbus>; + }; + pm7250b_temp: temp-alarm@2400 { compatible = "qcom,spmi-temp-alarm"; reg = <0x2400>; From patchwork Fri Mar 22 08:01:36 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Luca Weiss X-Patchwork-Id: 782037 Received: from mail-lf1-f53.google.com (mail-lf1-f53.google.com [209.85.167.53]) (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 8604F13ADD for ; Fri, 22 Mar 2024 08:01:56 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.167.53 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711094518; cv=none; b=g0E+TNp1mCJbQbr5sVl1etXYlPaCEkqQUlwAdk9gX7UA1nuWGN44uB0GbM9IJgtfyLgx1d7t/nrJXX2l2qThvTZ65QWcnfstipDWjZ8N+ZuF/AW+UML5PWuF6i6sdM8e8MAq0GEzyv7aqgA+zvG++CoZXlAraNrJM14RDf05QZA= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711094518; c=relaxed/simple; bh=c9oseDZUUXTqJN7LS14WFIW9fB6ocM05ox/NaZ76+/Y=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=jvsVmv/mBW5zLvWVE/lt3aSHud2OQPlaheFN7uD8RdNTSlR03euz1rQgtcy+nPyFEd+TZ4mI5Wzr2OpkatzQT8omEGH+dOFzVhdED/qyfmtZsNT12S1y0FSOKDhaD4Vr1Dn4zdJ/FnzSHUVCpZ78qvxnACLYoyP/xqwH34XkLaw= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=fairphone.com; spf=pass smtp.mailfrom=fairphone.com; dkim=pass (2048-bit key) header.d=fairphone.com header.i=@fairphone.com header.b=wvEqhEIO; arc=none smtp.client-ip=209.85.167.53 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=fairphone.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=fairphone.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=fairphone.com header.i=@fairphone.com header.b="wvEqhEIO" Received: by mail-lf1-f53.google.com with SMTP id 2adb3069b0e04-513e14b2bd9so2220816e87.2 for ; Fri, 22 Mar 2024 01:01:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fairphone.com; s=fair; t=1711094514; x=1711699314; darn=vger.kernel.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=bWERVSAHlJVwwhvb1oFx+Pf4sIxWeoVfA34irUNvYi0=; b=wvEqhEIOGNyxjbdM90hG8WXi+dZB0J4Z3c9qrDS3tlBz125GH91v8iADcfRCYGranf o5YZ7h+1JVamsNf6ZH1/FwhBgcHjjf7Ti5wqPqmlyzQ1rAJ8rAFav1dpRqRbkDm6bFev P1f7BZbaP+m+jsmSYkBsi5gM82bHPwT4N0Z2W8tB79cwLFkOGoTHujGdJ8ALrPWWtv1J sJhxlH8xz9dP9S/8Wd7c03IEX1wRCrkElD6oMcpk9UB/c6XdmjnGDwI2lPQctcgjFES8 OHFgAZ/q4FcwQZmyqv3abudkbg6lTi0tKBlhqqnu9S2EOQiaeoIMCsZtyywyd4wL5lGj pobg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1711094514; x=1711699314; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=bWERVSAHlJVwwhvb1oFx+Pf4sIxWeoVfA34irUNvYi0=; b=AVMw75k5OPWAds0htCcB1fwWVMzVqgENe7rcK7AWeoM6+xSGksmPkBHLGM1Y9C53XL khuI/lp3UqGrIqQeHO2NDhLHfh8khtHWjoKxEJCTw9z0vI5j/FQhSWfe4Zs2HxGfpVq0 IvyEtz9YYiEw0hgURXw0jbg4X/2pJzQX7VDdo+MRcE/2RiZa0RIZAHAnnTHGmvAaVUHN Qj9NhJONsVvJYXEFR5loDaCq8weOQPqZUAhc97JygYangG9u3BimUehl2y/fCsPmJIBE Tjhf2cuHzPzY/JeFcgSRtgknb+R+qm5iTAlYtil1aVA7CG17enftcvfkr146d8oIVdWT agWA== X-Forwarded-Encrypted: i=1; AJvYcCUfQzh/HjsQLb4GbEbjWw6REp3u7elW1jLNqD2F7VZZyCQNdekrYbv4bDIQKyAHFxrj5Uw2bKNMoyroGHgLu9NDwsT7xmxN9nUN X-Gm-Message-State: AOJu0YyRCABjTlUjamAVwkmhycGQ6Gr2oenRugh2iyZ+yNc3C4SG7crn Y+s3Ah4Yx5B93YbEgc7L9LHz7swqLOYta0TYfms2dOIEdFQ3MhSpFAfHXdHIUVngY7w2eLi0JwB y X-Google-Smtp-Source: AGHT+IHGt+ZVwxuyh9yGGHkfee1Qe7heWSrQxIuOb2MV+H3sfuBxiyY7vRVo3wCCCyZYYvJbso0/Iw== X-Received: by 2002:a05:6512:214c:b0:515:8bb2:72a2 with SMTP id s12-20020a056512214c00b005158bb272a2mr962134lfr.55.1711094514045; Fri, 22 Mar 2024 01:01:54 -0700 (PDT) Received: from otso.luca.vpn.lucaweiss.eu (046125249120.public.t-mobile.at. [46.125.249.120]) by smtp.gmail.com with ESMTPSA id p29-20020a056402501d00b00568c613570dsm739889eda.79.2024.03.22.01.01.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 22 Mar 2024 01:01:53 -0700 (PDT) From: Luca Weiss Date: Fri, 22 Mar 2024 09:01:36 +0100 Subject: [PATCH 5/5] arm64: dts: qcom: sm7225-fairphone-fp4: Enable USB role switching Precedence: bulk X-Mailing-List: linux-usb@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20240322-fp4-tcpm-v1-5-c5644099d57b@fairphone.com> References: <20240322-fp4-tcpm-v1-0-c5644099d57b@fairphone.com> In-Reply-To: <20240322-fp4-tcpm-v1-0-c5644099d57b@fairphone.com> To: Bjorn Andersson , Konrad Dybcio , Liam Girdwood , Mark Brown , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Wesley Cheng , Bryan O'Donoghue , Greg Kroah-Hartman Cc: ~postmarketos/upstreaming@lists.sr.ht, phone-devel@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, linux-usb@vger.kernel.org, Luca Weiss X-Mailer: b4 0.13.0 Configure the Type-C and VBUS regulator on PM7250B and wire it up to the USB PHY, so that USB role and orientation switching works. Signed-off-by: Luca Weiss --- With this patch I'm not quite sure if the 'ports' are connected correctly, though functionally everything appears to work fine. On some other SoCs port@1 in qmpphy and a second port in dwc3 are connected together also - one port of USB 2.0 HS, one for USB 3.0 SS. Here I'm following sm8250's solution. Also checking the binding doc doesn't reveal anything useful. --- arch/arm64/boot/dts/qcom/sm6350.dtsi | 25 ++++++++++ arch/arm64/boot/dts/qcom/sm7225-fairphone-fp4.dts | 57 ++++++++++++++++++++++- 2 files changed, 81 insertions(+), 1 deletion(-) diff --git a/arch/arm64/boot/dts/qcom/sm6350.dtsi b/arch/arm64/boot/dts/qcom/sm6350.dtsi index 24bcec3366ef..b267500467f0 100644 --- a/arch/arm64/boot/dts/qcom/sm6350.dtsi +++ b/arch/arm64/boot/dts/qcom/sm6350.dtsi @@ -1686,6 +1686,27 @@ usb_1_qmpphy: phy@88e8000 { #phy-cells = <1>; status = "disabled"; + + ports { + #address-cells = <1>; + #size-cells = <0>; + + port@0 { + reg = <0>; + + usb_1_qmpphy_out: endpoint {}; + }; + + port@1 { + reg = <1>; + }; + + port@2 { + reg = <2>; + + usb_1_qmpphy_dp_in: endpoint {}; + }; + }; }; dc_noc: interconnect@9160000 { @@ -1861,6 +1882,10 @@ usb_1_dwc3: usb@a600000 { snps,hird-threshold = /bits/ 8 <0x10>; phys = <&usb_1_hsphy>, <&usb_1_qmpphy QMP_USB43DP_USB3_PHY>; phy-names = "usb2-phy", "usb3-phy"; + + port { + usb_1_role_switch_out: endpoint {}; + }; }; }; diff --git a/arch/arm64/boot/dts/qcom/sm7225-fairphone-fp4.dts b/arch/arm64/boot/dts/qcom/sm7225-fairphone-fp4.dts index bc67e8c1fe4d..104f23ec322d 100644 --- a/arch/arm64/boot/dts/qcom/sm7225-fairphone-fp4.dts +++ b/arch/arm64/boot/dts/qcom/sm7225-fairphone-fp4.dts @@ -19,6 +19,7 @@ #include #include #include +#include #include "sm7225.dtsi" #include "pm6150l.dtsi" #include "pm6350.dtsi" @@ -543,6 +544,50 @@ conn-therm@1 { }; }; +&pm7250b_typec { + vdd-pdphy-supply = <&vreg_l3a>; + + status = "okay"; + + connector { + compatible = "usb-c-connector"; + + power-role = "source"; + data-role = "dual"; + self-powered; + + source-pdos = ; + + ports { + #address-cells = <1>; + #size-cells = <0>; + + port@0 { + reg = <0>; + pm7250b_role_switch_in: endpoint { + remote-endpoint = <&usb_1_role_switch_out>; + }; + }; + + port@1 { + reg = <1>; + pm7250b_typec_mux_in: endpoint { + remote-endpoint = <&usb_1_qmpphy_out>; + }; + }; + }; + }; +}; + +&pm7250b_vbus { + regulator-min-microamp = <500000>; + regulator-max-microamp = <1500000>; + status = "okay"; +}; + &pmk8350_rtc { status = "okay"; }; @@ -726,7 +771,12 @@ &usb_1 { &usb_1_dwc3 { maximum-speed = "super-speed"; - dr_mode = "peripheral"; + dr_mode = "otg"; + usb-role-switch; +}; + +&usb_1_role_switch_out { + remote-endpoint = <&pm7250b_role_switch_in>; }; &usb_1_hsphy { @@ -740,10 +790,15 @@ &usb_1_hsphy { &usb_1_qmpphy { vdda-phy-supply = <&vreg_l22a>; vdda-pll-supply = <&vreg_l16a>; + orientation-switch; status = "okay"; }; +&usb_1_qmpphy_out { + remote-endpoint = <&pm7250b_typec_mux_in>; +}; + &wifi { vdd-0.8-cx-mx-supply = <&vreg_l4a>; vdd-1.8-xo-supply = <&vreg_l7a>;