Received: by 2002:ab2:6857:0:b0:1ef:ffd0:ce49 with SMTP id l23csp1135110lqp; Fri, 22 Mar 2024 06:41:39 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWYNZLxEMREdyG+30oKHgjZ6lABPlKO/ZH9asPX43QYwy0bby6+8/vpsqGJrkjTui6M8zLSF1XCpQ7dHf6foBsSa6D+/rONON5/LT4F6w== X-Google-Smtp-Source: AGHT+IFTZYtn0fIBbtXIrLQStu65B4KgOza5mkr7VQRe9wS0EsN9xhbu9oRIyLrKiHisRoAtWyRk X-Received: by 2002:a17:906:f8d1:b0:a46:c510:261e with SMTP id lh17-20020a170906f8d100b00a46c510261emr1855422ejb.49.1711114899855; Fri, 22 Mar 2024 06:41:39 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711114899; cv=pass; d=google.com; s=arc-20160816; b=qcPhCi5tlEi+LTEtXC/fy3TutRcowpuvAXAG3pMh/qy+8f/p0yjuvlckP9+0HjB8bF bAMUpRyKUzs+pNjgOIARlhGptgStl3GlxSgQfC+Sif+cxFLWSI2sv8XbuG+pDfa2EmLB 4G59dExuNdRPsFD2mm94m1J6uolxgqFMnrcQFxc1AaC2IcVFOvkxAVPVKAu+nEBAdxLy j/TbFQ3k30yad3LNpXnovkHUp8FlJE6UPJ3j6Tzmtbwy4ehvzKG58LA23CMquGAdvFOm qUWRuO2iIa01WgXGZi1sdOj2pPP9RKsWcxHY3ELjusYqPS9PAxadFF+qib8OeO5q2ux/ DWbQ== 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=R9g57H/zZx4/H4WjLHlsjs71ZcYJXW78b4kk7aQ8Rnc=; fh=ykaKeT+uxMPahn+njy0TW5dQBqxZU9sc8rzTDsbtdl0=; b=wc/qh/s5DzWJvOosyESRUL/tFbEcne+jl2MMIUByXGjgrt1L6M/xmWsOX33q4RVBDG ZdK5cJsQ5Ce95gDCRsIgewIivUtbjkyyqaW+meNRmgE34Mf4vxvkJTofCzZ1+YMvDqaD 9D8I5+s4LyQOEpJwiu8di0RErT4ATgj2HD/fDHk7UNvxQUbAfpEspLlR5KMblZmJqPMS HO8a8rHivMx5kWRF0mkc4z7oslBa0a0tWiJX2cikqJksQx9FnZZ7kiy0XCjBVfbxJw2I uvw0arCoShY1kMwhpJ212bIyheNp06cjxzBFooi0NMaz02WX8fe4VEgYClOu9gYwmAsQ xWDg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=eMk4zdrd; 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-111543-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-111543-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 k3-20020a1709062a4300b00a447135867fsi922546eje.24.2024.03.22.06.41.39 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 22 Mar 2024 06:41:39 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-111543-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=eMk4zdrd; 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-111543-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-111543-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 95E2C1F22998 for ; Fri, 22 Mar 2024 13:41:39 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 998835026B; Fri, 22 Mar 2024 13:28:20 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="eMk4zdrd" Received: from mail-yw1-f181.google.com (mail-yw1-f181.google.com [209.85.128.181]) (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 206E94AEF0 for ; Fri, 22 Mar 2024 13:28:17 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.181 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711114099; cv=none; b=blHimz9LQPnYmbx/7tBu96hrFP+KLIZKiIl+8IOkXgPdWZbcS8I4FQzstJZPAEfcKrBv5CTOtzBBcwew8ia/ZxgFCKdftsrTEDTp07guXZUWRKTUwyTlLFjE7tVtm4ofzqH0T4MSdg40AjnDanE9Suor8wrJda3mlHA5ygvamT4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711114099; c=relaxed/simple; bh=IzOAEu+wO6bc93he6oyR3C00QDPujoCbNJiCwFw/ehk=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=dpLz7E3CZsUhGhMrzq4KlYvERs8DUa7Pjb/9vdoY/bX3MS7mP062mWsV27jxApqKsYIuLbbNqziGpEi+QkjIQ/kyBujuRksrfPxxmsgx8DrpCR773QfYB3aiHPOeMVwnnTzp4h85eIL4LnVRbNvVkmPvktjZUSVx+CKyl8lH7rs= 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=eMk4zdrd; arc=none smtp.client-ip=209.85.128.181 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-f181.google.com with SMTP id 00721157ae682-609fc742044so22681697b3.1 for ; Fri, 22 Mar 2024 06:28:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1711114097; x=1711718897; 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=R9g57H/zZx4/H4WjLHlsjs71ZcYJXW78b4kk7aQ8Rnc=; b=eMk4zdrdkcGXx2x4J+q1Y5EkVIxWSr2/lrylt9TjrsUqAZAH9pNQftmEmSKALzpDUM EUi/wTRVTlO5C3R5gtD1mZiOl41QI5evKJtAWC5XeyPZp2kGH8hk+eFyNpz78gR01zib JsGH469nn/YaOzdUVxD6XQz1105B0vblG0yIlrYx1eTF3HzjQVpwHDTiKlH+o3/OY010 bii8EAI2794cKFXQGnsjv/+x1tnGzcIMVbt5uJ8CRUhC90UhbxNp1P42F1HKejgzKI8g QIbFG5PLw80Z2Uv8BW2InoGNnKyCe2QCEK0lRVDp7/YhfPI0J2ha2f6Hxu/FAPNtftul 8idA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1711114097; x=1711718897; 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=R9g57H/zZx4/H4WjLHlsjs71ZcYJXW78b4kk7aQ8Rnc=; b=mrXYFA57ov0xPBqBzgd/C3k4D6oK6wm3l2mJJOcVEw2eUKww7u7s0f5KQc1WaPEpWD AD1TZYhs4boQjsypry91l3JhgK2/Jd1S5RymFq7Pwpqa/jz3m8Q0qQbVK0XxRvq41pqm qrHB1XYwyxM5ZmusoQxjIrB/c9xEsoeVeyxjL6W6IPJwRVBbMO3+p2NbJQUvYR4D/3j2 Jc5mqY5imLO30LjR6/V3lksNHfuhX/y0sS1n63KYHVBM8XBLQqyyCTa/RFCpJNmzbllk ncvH8Xob31iMvrO+w18GfTD+Qe1ba4NZTmdBu1mCQOSmHWTixCv0JsZaUA/+ZuQawNLY Pstg== X-Forwarded-Encrypted: i=1; AJvYcCUJiLY99zrXVXo0QCNWT5Xz9v3hT2UZIn8Rd0rz80VzAkEvUVUWC4Z/b/J12cA5xqG/+Uz2pgOypUZlWcfyZAlZJNOQfX0iM7hayJZr X-Gm-Message-State: AOJu0YzGwRVxieM67upC5jC/zx0q51zaxSvdMdbkjf9FTX167N30AXQh zDHI9yCH6ayjumRKYSDr7+rr01dqcMVLi9iWbNHbdLlq3xfspk/0uLm4nS/JIngH6MRzXKTHb3n jFjfe92z+U+wIcG+P5sVqxMKjbyJnPw8r3G7Jgg== X-Received: by 2002:a25:aea0:0:b0:dcc:4b44:336c with SMTP id b32-20020a25aea0000000b00dcc4b44336cmr2133365ybj.53.1711114097008; Fri, 22 Mar 2024 06:28:17 -0700 (PDT) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20240322-typec-fix-example-v1-0-6b01c347419e@linaro.org> <20240322-typec-fix-example-v1-1-6b01c347419e@linaro.org> <230eab52-9751-43fd-8e47-fbfe12410e44@linaro.org> In-Reply-To: <230eab52-9751-43fd-8e47-fbfe12410e44@linaro.org> From: Dmitry Baryshkov Date: Fri, 22 Mar 2024 15:28:05 +0200 Message-ID: Subject: Re: [PATCH 1/2] dt-bindings: usb: qcom,pmic-typec: drop port description To: "Bryan O'Donoghue" Cc: Bjorn Andersson , Konrad Dybcio , Greg Kroah-Hartman , Rob Herring , Krzysztof Kozlowski , Conor Dooley , linux-arm-msm@vger.kernel.org, linux-usb@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" On Fri, 22 Mar 2024 at 14:35, Bryan O'Donoghue wrote: > > On 22/03/2024 11:52, Dmitry Baryshkov wrote: > > The PMIC Type-C controller doesn't have separate role-switching signal. > > Instead it has an HS signal connection between embedded USB-C connector > > node and the HS port of the USB controller. > > I take your point on port as a signal but the way type-c determines > data-role is via the DR_Swap message. > > https://www.embedded.com/usb-type-c-and-power-delivery-101-power-delivery-protocol/ > > We receive an IRQ which is a packet containing DR_Swap - TCPM consumes > that data and does a data-role switch. > > The port then establishes the link between typec-port and redriver or PHY. > > So, I think HS should be dropped from the commit logs and names in both > series. Then the actual usage doesn't match the schema. usb-c-connector clearly defines HS, SS and SBU ports The snps,dwc3.yaml describes ports as ones handling usb-role-switch, but then clearly writes that port@0 is HS and port@1 is SS. As such, I think, the correct name for the ports is to have _hs_ in the name We have pmic-typec/port, separate graph port for role-switching (supported by TCPM code), but we didn't use it at all on our platforms (nor do we need it, as we use the HS port). > > BTW for the GLINK devices I think the adsp firmware just notifies the > APSS of the data-role switch so, these types of devices probably should > have an epdoint with "usb_role_switch" in the name. > > --- > bod > -- With best wishes Dmitry