Received: by 2002:ab2:6857:0:b0:1ef:ffd0:ce49 with SMTP id l23csp1067139lqp; Fri, 22 Mar 2024 04:53:13 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCU6gJnzZ/veZkK/eIxDbdGjh+mSr68hAj91n3C70JXmU9FRXtz2ShwJk1a6YiWYzuwJNS6RbsMrXYoa/uRYEJgKMzsAdCfPwykTcGWyaw== X-Google-Smtp-Source: AGHT+IGfnJUdD+z6jJXo9NwF4UKCSWb5RugLFj7jWWzdom/H94OHTkPqaxwu0vlw0urCQFDjZ8YA X-Received: by 2002:a05:6102:9ab:b0:476:979:3e5 with SMTP id f11-20020a05610209ab00b00476097903e5mr2032767vsb.29.1711108392822; Fri, 22 Mar 2024 04:53:12 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711108392; cv=pass; d=google.com; s=arc-20160816; b=aOc2vAMgELGDEcVH3n3OXPQaS3DhszNIBFgPFnmIu9kiARbfzn0d5k1+ikT8dgW/Ao hpSodW1IeT5SggpaEqTYWNiS1dcfqWyIdmNZeLdSJEIjme7N0b4BOkYGvFKXuq2WZeI0 U9WvAeiz3M13ET/2Ez/SIEASyElWiE7eIgu5sRu03vY5yap53Dz5kV/fapFIZD3LG+sM xw37vRtQDCp8V2LBGdWKIMRqo8bSQYNzJlyZzEzaBlWR4PVbaIiOieaMCGiXj3xE6Dct pDhC5qXD21G4ghgNgp4nmGgMXEpFz4ZhHRQLLUMU/h0cBGgvr3HOBMiXnKJKIHmB/ml5 ZthA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :subject:date:from:dkim-signature; bh=OJ+GFLZIXNkg5v+GlXl4TnEHJE7knc6+m/ZcyQWbv4w=; fh=a98ltONujfKtNawMxaQ22uMIZiouU4U03Uhz50839Zc=; b=qtAIU9MBjlpoapzlKBgciu9HRjzmTEZAltEYZ1wLoNUlsqqsurCcGWFLfyNaV/2Xft qwHfSpEid53kO40Jn3ZoSJ1wWs7eJguuffjh3w9dh6rskbapVvar59oif8U88/tsIIkc v4JzrmzBeEziqKpJ1CLzVBPM+v/yHRHfYp/bGsv/GUMxPl2pVyNR2EPipB9nv30VrNfH orSeL/pDFvwxqPAzM/QA4Jdwqn65t8zqCFhKM1sCeyM9kQGQS1PAhojBfBKFPg5oSuKl AlLnafvUk1j1UI+x+TwQZ4l7P3L1rCPrfJJPyflx7GKGuKeMZ1SViIub5mzSLEzydjr8 pk5Q==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="T+2f2l4/"; 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-111383-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-111383-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. [147.75.199.223]) by mx.google.com with ESMTPS id vy27-20020a05620a491b00b0078a36405d17si1776384qkn.611.2024.03.22.04.53.12 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 22 Mar 2024 04:53:12 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-111383-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="T+2f2l4/"; 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-111383-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-111383-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 7449E1C2174A for ; Fri, 22 Mar 2024 11:53:12 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id A6E8B4437D; Fri, 22 Mar 2024 11:52:35 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="T+2f2l4/" Received: from mail-lf1-f54.google.com (mail-lf1-f54.google.com [209.85.167.54]) (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 E774B3FB07 for ; Fri, 22 Mar 2024 11:52:32 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.167.54 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711108354; cv=none; b=JKi7uIqde9YgzQ7SUmrXqsgmr9y/7o7xbdyXMfBw177j6c6hygmbRDfXTeReskf7Qany65jKGTq/wchAfFB8g1xYrLGHJVbzmUToxUrJ3O9qTT0jZj2HrWbN01DtArOW322WGGMQGTlV65WOC9NJclWBjTuGV59uztZaxnXo7xY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711108354; c=relaxed/simple; bh=sNL+P1h7bA7A/w8ikEYKlALN61mPmedZHQKBVN02bv4=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=BAPM562QWoIyT3/ZIsFywpqwg8fSoWrv79lxSi0ij4uBYtq4/PJvFeyg/ZDNUqJlhfqFGqAUm4TWET08qilYV5fGoJlfldumMfKe2xIfhDXqt+zGUDNu+9yr6RK+lRD07wrfgKpcv9L/xrRLZgtkMQH2U7beDa6VnxtYGe6O27Y= 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=T+2f2l4/; arc=none smtp.client-ip=209.85.167.54 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-lf1-f54.google.com with SMTP id 2adb3069b0e04-5148ea935b8so2296888e87.1 for ; Fri, 22 Mar 2024 04:52:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1711108351; x=1711713151; 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=OJ+GFLZIXNkg5v+GlXl4TnEHJE7knc6+m/ZcyQWbv4w=; b=T+2f2l4/E+UZqiJP/2bDLZJKszTxG8NJ/9VxrbYBuC+56d732wqKSJPFTTUXkUm0Gt gmpisWYuOwLQiULOHCt9DakG6wOgh6825/LC22D0WhtampIB4nXaAlYKYsxCjlAiWKzT YmFyviwc8vpeu6sQdC4Foil3uuBtZG5E7iL1vfaWBn79FuIp0twC/N516mC6023AYEo2 3JTG+ooHnzworhlXYFLrLCQrIF6rFqWUAAC4+JFuR0jyIbT2XcGydcaeo67l21L2Akf7 QThBz9SCP8QPm4DNJYCucXZzOsv3+eVlEdkbIYMn0foCidmV2j+LBQs8J6Ca0KbEBsZk 4jEQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1711108351; x=1711713151; 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=OJ+GFLZIXNkg5v+GlXl4TnEHJE7knc6+m/ZcyQWbv4w=; b=WpIv83abNg9gBA/94nZlVEK5epPFeYVUtqEPZNeh3hLWsC+9bF304W2Eu3FQLOMsdq MgiPtxukngz64jAA3jalQr4btoWaMwgrMA74FV6122hdmbKyiyHKDM2qfd7Zb3sXjbhr CsNUuawzrNQMwJoBXYYXy5tp0Z02wuscapbvrjrMuyKaU8HHVkzZYnUN5pKclSM4JULn UodivTJ/Ya/E5GoZqfpImLJc/+eU+fFwpcjWnJQnh9Uc021yXtTVkg0DabaLOH/HVBOn zPj1yZ9ohLXYVQpz/GJ97W/MT5J9lFSg9U5c4Uhasz4j9V+QQ/Pt8Qy+rEKE5hGZZmkn pW2g== X-Forwarded-Encrypted: i=1; AJvYcCX8rNDKYxE8rf+jFpbU364vRXxnpiIOGctTqP0NbJVIBQjdZQP3vCdHnLSI+1hMrw8b+vTLr4XTg3992ProlpurWy1O1Y8tVKsjYRLH X-Gm-Message-State: AOJu0YxWpDJbd2pTVE+Zd8+9USyCugsOJ8q99WCzAX6Xc3yvP3SPQQUN 0wqdi+gJWCyWUsQtUXnC+N+9//em06ophSlt7d4ZYD+bZls/+uMroDPJMtiKrok= X-Received: by 2002:a05:6512:558:b0:513:76ec:2d21 with SMTP id h24-20020a056512055800b0051376ec2d21mr1539868lfl.10.1711108351065; Fri, 22 Mar 2024 04:52:31 -0700 (PDT) Received: from umbar.lan ([192.130.178.91]) by smtp.gmail.com with ESMTPSA id y18-20020a056512045200b00514b644bfebsm320136lfk.299.2024.03.22.04.52.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 22 Mar 2024 04:52:30 -0700 (PDT) From: Dmitry Baryshkov Date: Fri, 22 Mar 2024 13:52:22 +0200 Subject: [PATCH 2/2] dt-bindings: usb: qcom,pmic-typec: update example to follow connector schema Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <20240322-typec-fix-example-v1-2-6b01c347419e@linaro.org> References: <20240322-typec-fix-example-v1-0-6b01c347419e@linaro.org> In-Reply-To: <20240322-typec-fix-example-v1-0-6b01c347419e@linaro.org> To: Bjorn Andersson , Konrad Dybcio , Bryan O'Donoghue , Greg Kroah-Hartman , Rob Herring , Krzysztof Kozlowski , Conor Dooley Cc: linux-arm-msm@vger.kernel.org, linux-usb@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Luca Weiss X-Mailer: b4 0.13.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=2868; i=dmitry.baryshkov@linaro.org; h=from:subject:message-id; bh=sNL+P1h7bA7A/w8ikEYKlALN61mPmedZHQKBVN02bv4=; b=owEBbQGS/pANAwAKAYs8ij4CKSjVAcsmYgBl/XD8eVS0HaN3UvT0a0rdJ3gp1+uqRKHzDDbaP OEyDy2vAYCJATMEAAEKAB0WIQRMcISVXLJjVvC4lX+LPIo+Aiko1QUCZf1w/AAKCRCLPIo+Aiko 1f7/CACV8GFASdzCAHKIGIiR13c2TTORHa+O+xBHdGr2I3E3hqY4SWWGvLfMmoqQKIMEuOjp6/5 y5UDtuSPpcnD8qHtA1y9CDC8xeT91G7qnk+IZVrWt7Y3jULTC0FntriWYlTMroSOpQqEUm04aXH rmX6Ml5ZC1YbP6tU+M6Ez4SZwApiYKIcJnRzOSKYen8v6+TZbEx2RtxxSstVCuJ0FXeQtnUSMgj pFFA1YMC/dJSRM1jolpaPaXMC30ObZOpyODx9CJJzN0iwU5GOxTl9d9kCCL3ouRvdTtNNV7ywS8 FlRW0cyk9/1ZWGC9CVUsgr565CbqF6aZmOazrTnl7F4A7aMB X-Developer-Key: i=dmitry.baryshkov@linaro.org; a=openpgp; fpr=8F88381DD5C873E4AE487DA5199BF1243632046A Update Qualcomm PMIC Type-C examples to follow the USB-C connector schema. The USB-C connector should have three ports (USB HS @0, SSTX/RX @1 and SBU @2 lanes). Reorder ports accordingly and add SBU port connected to the SBU mux (e.g. FSA4480). Fixes: 00bb478b829e ("dt-bindings: usb: Add Qualcomm PMIC Type-C") Reported-by: Luca Weiss Signed-off-by: Dmitry Baryshkov --- .../devicetree/bindings/usb/qcom,pmic-typec.yaml | 34 +++++++++++++++++----- 1 file changed, 26 insertions(+), 8 deletions(-) diff --git a/Documentation/devicetree/bindings/usb/qcom,pmic-typec.yaml b/Documentation/devicetree/bindings/usb/qcom,pmic-typec.yaml index 63020a88a355..beecbda40e3c 100644 --- a/Documentation/devicetree/bindings/usb/qcom,pmic-typec.yaml +++ b/Documentation/devicetree/bindings/usb/qcom,pmic-typec.yaml @@ -187,15 +187,22 @@ examples: port@0 { reg = <0>; - pmic_typec_mux_out: endpoint { - remote-endpoint = <&usb_phy_typec_mux_in>; + pmic_typec_hs_in: endpoint { + remote-endpoint = <&usb_hs_out>; }; }; port@1 { reg = <1>; - pmic_typec_role_switch_out: endpoint { - remote-endpoint = <&usb_role_switch_in>; + pmic_typec_ss_in: endpoint { + remote-endpoint = <&usb_phy_typec_ss_out>; + }; + }; + + port@2 { + reg = <2>; + pmic_typec_sbu: endpoint { + remote-endpoint = <&usb_mux_sbu>; }; }; }; @@ -207,8 +214,8 @@ examples: dr_mode = "otg"; usb-role-switch; port { - usb_role_switch_in: endpoint { - remote-endpoint = <&pmic_typec_role_switch_out>; + usb_hs_out: endpoint { + remote-endpoint = <&pmic_typec_hs_in>; }; }; }; @@ -216,8 +223,19 @@ examples: usb-phy { orientation-switch; port { - usb_phy_typec_mux_in: endpoint { - remote-endpoint = <&pmic_typec_mux_out>; + usb_phy_typec_ss_out: endpoint { + remote-endpoint = <&pmic_typec_ss_in>; + }; + }; + }; + + usb-mux { + orientation-switch; + mode-switch; + + port { + usb_mux_sbu: endpoint { + remote-endpoint = <&pmic_typec_sbu>; }; }; }; -- 2.39.2