Received: by 2002:a05:6500:1b45:b0:1f5:f2ab:c469 with SMTP id cz5csp1110678lqb; Wed, 17 Apr 2024 23:38:53 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUsvQzWffs2IlOnE7J+QwB09i6D6GKPVxh++pj9UkKSvPOrUWJBJv2GZPG4Yu80EyHtm3GqlNa5gkX625IYm9Cm0fDUiN49jx+Gg5vzZg== X-Google-Smtp-Source: AGHT+IG9NTHxIxEfrUDxRb2f1WSUayifzddbBCd6lRpsJImGYzGkqjSnJZEv0rqjtOd9naSg5L6Z X-Received: by 2002:a17:906:a190:b0:a51:c7ec:fa42 with SMTP id s16-20020a170906a19000b00a51c7ecfa42mr1275014ejy.73.1713422333408; Wed, 17 Apr 2024 23:38:53 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713422333; cv=pass; d=google.com; s=arc-20160816; b=mFgwXEtF/utHeiGMHzbTmzW6UMtotfpPmwYOqpQ5i6Tl7KG9SegAuQQSTWKq86DHcq BH0gFc/9LfK3py9d93KtINlGP2YXhYwANS43iwQ+aYUMN5fDptOKtG7RiWALQ+amUMpx I/p/Cgdoy6uDByZVMpbHyyiPIBSuzekMddUn6Lhv6MFYRMMwKT17jEKz50EcujnOiCgo ovH83H6AWHZl+RqPxmATGyZLo6W5/ZkBv9r7M6S3UPJrtWAysvDS8gtzN1+05FoxrkaY vdTmuBdI9H2AON+h5WzkyLcr+kwwPk46+hrdzVviAb6Qi5c2WA0+LdTnt64S4FX8W0o3 WInA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:message-id:content-transfer-encoding:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:subject:date :from:dkim-signature; bh=5mz+oQAakD3CTuuZK4gdHTXA/bAuX31xNREQB78SAO4=; fh=I1KCjKsIsRFvYjCy6+F5WJGE2seeSsX3qJxYmUOXJNg=; b=Xo8ic/fl3FZE0HoU6mHHpDlf3NcLDxq7L3aip2ogQGkn0RLBBXkZdjzMIBeWBn6ff7 WRkupdn7ToWKgh8pS1Q4ZlggeKvdvxYyOKYtB3s2a+UTtPw0iud+27t+1UH6ggUCyoh7 mDfhRCRFI4JKA98j9yJhtVmG898EbIq/05Guv8NV3wDvjWR+6p3ZMLwqcaAqZxYEtrKz ROwbCmxoD4CifrCcFwO/pfT/QXA2WOw370bBLXcApEa/jXLRFTpEH2qzIV8ipmHo27/9 tz7SHtigls4TAUDrTIcqjXmzO6Wrd9gRz7fROlC5D4c+Qq365/JugeM4Jn0F8hKGxuAl y2dA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Jv9VtSF6; 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-149591-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-149591-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 ot7-20020a170906ccc700b00a523537b982si486896ejb.878.2024.04.17.23.38.53 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 17 Apr 2024 23:38:53 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-149591-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=Jv9VtSF6; 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-149591-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-149591-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 F2F151F216A0 for ; Thu, 18 Apr 2024 06:38:52 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 3559B2BB0A; Thu, 18 Apr 2024 06:38:43 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="Jv9VtSF6" Received: from mail-lf1-f52.google.com (mail-lf1-f52.google.com [209.85.167.52]) (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 8E37325622 for ; Thu, 18 Apr 2024 06:38:40 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.167.52 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713422322; cv=none; b=mz4AXD0aFlwbsRBJUNlwAK0knkpSkNTnYdU6pvPwjRfgMopktmevmANaf9lqX+ArPgWTvSeW794EgcjwzuAG3TCOXMm0Gf0nkXNDvX03DB+NtLAZ064RpbowTuoYzRbxyhoZhXwu+U0fj94MZnb03dEuxYVkK3K6iN4RrK0N1eg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713422322; c=relaxed/simple; bh=Qyzrud7crPo74pZD8E9P8dWXUAXZm54kyHXrDz6cx78=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:To:Cc; b=MKVXtyRVcpPn5OSaRqfcxzxjWELtWu8/DphUD0p4oOeCws2QYtUrMm+mnCRrp6dNMwHQOTARt7WJGGQYQza3Wf1N3bDQdO3Ufi1nI7TNduuTqBRJ65q+LwLlbzJd4wJ3j0kz3uQb2voSVAQsgBNOyKSVhZD8ndxmcf2agLqZQTI= 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=Jv9VtSF6; arc=none smtp.client-ip=209.85.167.52 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-f52.google.com with SMTP id 2adb3069b0e04-5196fe87775so361135e87.3 for ; Wed, 17 Apr 2024 23:38:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1713422319; x=1714027119; darn=vger.kernel.org; h=cc:to:message-id:content-transfer-encoding:mime-version:subject :date:from:from:to:cc:subject:date:message-id:reply-to; bh=5mz+oQAakD3CTuuZK4gdHTXA/bAuX31xNREQB78SAO4=; b=Jv9VtSF6uMticxFRzBbYiyV8MDNQUO1il9qawbJBQQhMiqfqjBOcVISX24rv+9xYFF B+T2hzXIWSMyTj7pbS4bSR+fwzyr/2kzP2kLPcyGlnrbXG4JdOtgKYgtiNq4626GPBiO zwY6yJ0v74fD11BD0xoPhB5ZLyq0tutLof4qSzub7vxR2ONXNxbfMF9/7uE7QqcsNRFu hCPJj0WTMptRHA43PstALzvn9wHKptqNzJl0EqERL6JH7SztG0l9Yd2XyGOMImIwA3sI dO4pvC254o7ZtOS1Ez90/zqL86JvAVUZtZgiXZEQPIIN0xXMesptisnAiiDPQDu0kvv8 7Hkg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1713422319; x=1714027119; h=cc:to:message-id:content-transfer-encoding:mime-version:subject :date:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=5mz+oQAakD3CTuuZK4gdHTXA/bAuX31xNREQB78SAO4=; b=qrje5hzP+ByEQJ8PByDa5PnKOEOH/IhuFeu6OU1pHulMUGv6SCtFRoLwh8hPvvuOYt nrdW39mThx/MHfCty7F4l198RHcn5PDzSbIDop3sxSfAzYcAHAagfV6zHvN+vt6WGk+G 5LvRcdtoxNtciNXfngDXGwVKvreGGZf3fkD5XjwK7SaBbrI80ogsKWF5aujNMhBWHl/T 40/XIFnTiHhOG0SJJP7w36SzVsP7tpgSWrLK1dvLNDb1vKMwiI2MjCVfZ5jcQ/FKL3Cm qOK1FlYAU+QXNlOXTxGwgrs/lNzWRgeRgJwiq8lDhXPGcUBxWDcFqKwbNWruVoUP9rP2 x1dw== X-Forwarded-Encrypted: i=1; AJvYcCWzUjhZPi9RgXfzdNXE8NKK6lZmLiT0kRZuoqiK9DlwG0bFWY1V0RNBjgpmgKTHD9OxE0tTFwqlCoxst+FRIaCOwpL6e0jKRIsy651E X-Gm-Message-State: AOJu0Ywius0S8R55ihp3CIKiCUQpD+3g2K8jDYYNzW2OlhH9N9XChSV2 G73/QbfYQ0sx0P7v3sxt0bU9do+GhzqcVkBP94uSqzTEHCFjFLl5yeJog/4y6ZQ= X-Received: by 2002:a19:7506:0:b0:516:d0d5:6f60 with SMTP id y6-20020a197506000000b00516d0d56f60mr805542lfe.38.1713422318695; Wed, 17 Apr 2024 23:38:38 -0700 (PDT) Received: from umbar.lan ([192.130.178.91]) by smtp.gmail.com with ESMTPSA id x11-20020ac2488b000000b0051593cfb556sm121213lfc.239.2024.04.17.23.38.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 17 Apr 2024 23:38:38 -0700 (PDT) From: Dmitry Baryshkov Date: Thu, 18 Apr 2024 09:38:35 +0300 Subject: [PATCH v3] 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: <20240418-typec-fix-example-v3-1-08f649b6f368@linaro.org> X-B4-Tracking: v=1; b=H4sIAOq/IGYC/33NSwqDMBCA4atI1p2Sl1pd9R6lixgnGrBGEgmKe PdGVy2ULv8Z5puNBPQWA6mzjXiMNlg3phCXjOhejR2CbVMTTrmkgnOY1wk1GLsALuo1DQiirRq GWt1y0ZJ0N3lM69N8PFP3NszOr+eLyI7pPy0yoFA0lGkhS8kqvA92VN5dne/IwUX+QQj2i+DAw OSFMQalEaX+IvZ9fwOjHTTn9gAAAA== 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 , Dmitry Baryshkov X-Mailer: b4 0.13.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=3487; i=dmitry.baryshkov@linaro.org; h=from:subject:message-id; bh=Qyzrud7crPo74pZD8E9P8dWXUAXZm54kyHXrDz6cx78=; b=owEBbQGS/pANAwAKAYs8ij4CKSjVAcsmYgBmIL/tVs+hlgiNVLSZTiNSJ8YafMnzmEbBk/GoD Tz5JBgdCxKJATMEAAEKAB0WIQRMcISVXLJjVvC4lX+LPIo+Aiko1QUCZiC/7QAKCRCLPIo+Aiko 1fgzB/0ZlfzlK7/uyjO++WeyRA6F5z/Yw4DB3zB4MQnFjXrVubshik+vl8x2DwF5efpEQhoETGx 0TGbJxMnz1vPcvYagG374q/hMLZpgTiVWKwTmDQxAYBaBhWTbmK5Zk7vtbak87W/aB75sb6QLOO pg9PtfTHzyruRKZ3oaxpGj6V28RHOl38ft1iqBD//KkbQHrpnZA7DNi/VISmZsj5gPaEJlXA2Tw zud4dJch98iBsl2c8Njxp4D2Zo2m7cyY7pTwHUbNvzcl9YvG+zumYYp1FLGODS00NP52Iaazrz8 qqVOLycPVCO3qAIPBy2DVJazZJz8evMHtbNWRRjG2Go/+XMb 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). Reported-by: Luca Weiss Acked-by: Konrad Dybcio Signed-off-by: Dmitry Baryshkov --- Update examples to follow usb-c-connector schema wrt. ports definitions. --- Changes in v3: - Dropped the Fixes tag (Greg, Conor) - Link to v2: https://lore.kernel.org/r/20240331-typec-fix-example-v2-1-f56fffe4f37c@linaro.org Changes in v2: - Dropped patch removing the role-switching port. We do not use it, but it can become useful by other designs. - Link to v1: https://lore.kernel.org/r/20240322-typec-fix-example-v1-0-6b01c347419e@linaro.org --- .../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 0cdc60b76fbd..6d3ef364672e 100644 --- a/Documentation/devicetree/bindings/usb/qcom,pmic-typec.yaml +++ b/Documentation/devicetree/bindings/usb/qcom,pmic-typec.yaml @@ -193,15 +193,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>; }; }; }; @@ -213,8 +220,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>; }; }; }; @@ -222,8 +229,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>; }; }; }; --- base-commit: 4eab358930711bbeb85bf5ee267d0d42d3394c2c change-id: 20240322-typec-fix-example-3d9b1eca853d Best regards, -- Dmitry Baryshkov