Received: by 2002:ab2:6857:0:b0:1ef:ffd0:ce49 with SMTP id l23csp1332168lqp; Fri, 22 Mar 2024 11:36:26 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCU1EIahc5rAPG6x4XLlVa4sc4Jsxy7uS8y4tCp9Nks/2pynmD82wY25e40B5y/lJjXnctf+dFfadk6NrV2itzaCcv1ZVfYrEU99HeZMYg== X-Google-Smtp-Source: AGHT+IFRXvzfndvhSI7fYj6GKTmi8ShkfpR48ksVaFM/SzviMWnzjnkNUsbIUk69rStddErXFXJ+ X-Received: by 2002:a17:906:1309:b0:a47:159b:cdfe with SMTP id w9-20020a170906130900b00a47159bcdfemr485505ejb.0.1711132586307; Fri, 22 Mar 2024 11:36:26 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711132586; cv=pass; d=google.com; s=arc-20160816; b=HFVyIyvMz/i//mDSgS8hcenjjyJyigImBCGx6dzLrpRmUoWOlDxckTsrd52tlfVEtg EK9cG4klNENqEt0n6DCpldhg0zeQ9SBHvqEiHh6TMyVbxH1GmUtu3Y/KdXZxX0cyAjET HU18S1hHdJYcPru/EVTcNcwz+l2ZdSYLg1qFjeYIeoEn9cszX5kGDMva12Mp1LvRywFd 5EOGOqR6Zi9uRqSk4XeJ+b3ISH6lDVIkm0zqc7x5/+f+2OHicov3tj4GOTbyMmq21nOC K8XfUXZ12AxmSsAaJEpoiN8vF7JzlHqLX0nVarXkQQUj7ONUldWvM5Mk5PhXvpjlT7xX dIVA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=9qjiljG+jRz1SuukzVaYEihjPj/pdfAZ1lkMhfgj3xs=; fh=YwtbJDcqOyrCe4Cy1RVa4ZRAVYW9t0iRn085nWwmUb0=; b=bYDGh8Vqo+FPquwbNUFoiKGohRAJQKT6j2SdbGlTBww3BeBbeqNVIrWGNlpvOkw+eA EHTCLtDMAVsfD5LgSIZhOO8GM/6lKNc4ZYJXTuFQ6wD19BOAqcmQM6swzBU9WSOY00Xw kS1gpZ/XgtS7mpm32LBhNSwJrtZESAc4bGpqcVN/na8yXD/H9EaQYA7cwSuGNYRQugrc d2mszVWnF6y5GlEU35HbpJljWvC/CKsB6Hnzu/AZiH9aHt6jt1z2byGFtTt9hrL8eAQG LP9Hf78cMYlkQ6BTIgimqlA8tZSy6JD9hdHj0ioBnsjZC1NdL7EK8TeDIqAPyUjoGUga vEmg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="BV/BUCmx"; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-111959-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-111959-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.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 g12-20020a170906c18c00b00a47365f648esi79620ejz.898.2024.03.22.11.36.25 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 22 Mar 2024 11:36:26 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-111959-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=@kernel.org header.s=k20201202 header.b="BV/BUCmx"; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-111959-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-111959-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.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 93E911F277BC for ; Fri, 22 Mar 2024 18:36:25 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 6E8A569D0A; Fri, 22 Mar 2024 18:36:17 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="BV/BUCmx" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 8D93A69941; Fri, 22 Mar 2024 18:36:16 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711132576; cv=none; b=kI16ypPqMh7AlzGsF5ri7rrJ8myfHzWj1ec4GY8jDyhlHGX7Mt4W3rejUCC9CpKFp6h23EB/km7RgQMX9Z4QzbQbjcSP5fHQeMZUGRU6z5Pn1df4z4EvQMxXN0Fh7jb/wql01RYOeT/vwK0k4ZGX3WMcjves+q2peHaC2vtiXRk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711132576; c=relaxed/simple; bh=0y+MfSq9AjFTDKn0zQYT/v6yPp3l+ObYynFLWm8K1Zs=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=GgJkR15v4mnl5Hd1ku4NVjKGwM3dD//Gst22NLaNdo2r5cdi4gpviPgSzGa4kI+mmuOz6eGc5KZmoil+RfvQwbir/TFgeJl+b7NUd8hugCKCR4z8KVt/bqMUhyqfOJRSihvAszMuMzDO4AylWuZUpL8yHqfgj7HtydM6DLWK0sQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=BV/BUCmx; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 44210C433C7; Fri, 22 Mar 2024 18:36:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1711132576; bh=0y+MfSq9AjFTDKn0zQYT/v6yPp3l+ObYynFLWm8K1Zs=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=BV/BUCmxtRxdyZxMgdjLHny9/yv6eMrzAecMuroNJXACO9zdPogvOZLlBF5QBcJOw 3S/jS7Evwa7ZZJS52jOXy1+fP9drg+E+VSyyqOoRoURr3RxvJKbIly3Ol6bEMfQkD9 Okfos52Z3dNH+bSc0yAHLKMNSuPKiFU6DcYkRoaszhPuew6o9n+6N5shuY9ymV+6jW 6YbsecN4ppKV+8HARWrPJbMzLrLQv2cwN5l9WtHI4JkawFdsuQn6kyy5RT6obWgJ57 14AteTI8fyVgZqrLA5j/JkFwcfGzJbTmD5/kjNAMEmbKMmODfb2TmuqldQyVLWYjKV Dhew0Q6ret/7w== Date: Fri, 22 Mar 2024 13:36:14 -0500 From: Rob Herring To: Dmitry Baryshkov Cc: Bryan O'Donoghue , neil.armstrong@linaro.org, Bjorn Andersson , Konrad Dybcio , Greg Kroah-Hartman , Krzysztof Kozlowski , Conor Dooley , linux-arm-msm@vger.kernel.org, linux-usb@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 1/2] dt-bindings: usb: qcom,pmic-typec: drop port description Message-ID: <20240322183614.GA1233803-robh@kernel.org> 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> <5ea4a187-1971-4970-a289-826d96c0351a@linaro.org> <0b091595-1587-421d-bb00-c00ef729d143@linaro.org> 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=us-ascii Content-Disposition: inline In-Reply-To: On Fri, Mar 22, 2024 at 05:49:00PM +0200, Dmitry Baryshkov wrote: > On Fri, 22 Mar 2024 at 17:23, Bryan O'Donoghue > wrote: > > > > On 22/03/2024 15:09, neil.armstrong@linaro.org wrote: > > >> TBH I think we should drop this HS, SS stuff from the connector > > >> definition - there's nothing to say in a h/w definition anywhere HS > > >> must be a port or indeed SS - not all hardware knows or cares about > > >> different HS/SS signalling. > > > > > > It matches the USB-C connector electrical characteristics, which by spec > > > has, at least: > > > - High-Speed USB Line > > > - up to 4 differential high-speed lanes that can be switched to DP, USB2 > > > or PCIe > > > - SideBand line (SBU) > > > > > > And those 3 components can be handled by 3 different HW in the SoC, so > > > each one has a dedicated port. > > > > > > Remember DT describes the HW, not the SW implementation. > > > > > > Neil > > > > Yes, you're right about that. > > > > I suppose > > > > 1. Orientation switches should be defined as coming from a port on the > > connector associated with the CC pins. > > port@3: > > orientation-switch port name goes here > > > > 2. Data-role switches... > > Again the CC pins > > > > https://community.silabs.com/s/article/what-s-the-role-of-cc-pin-in-type-c-solution?language=en_US > > > > Maybe the right-thing-to-do is to add another port for the CC pins - > > which would still describe the hardware characteristics but would > > _accurately_ name the thing which does the data-role/orientation switching > > It's true that we don't describe CC lines. However In most of the > cases CC lines are handled by the Type-C port manager directly. So > there will be a connection from usb-c-connector to the pmic-typec > itself (which looks pretty redundant). The thought at the time this was designed was that would be the parent node of the connector. That's perhaps too simple. Rob