Received: by 2002:ab2:6857:0:b0:1ef:ffd0:ce49 with SMTP id l23csp1209301lqp; Fri, 22 Mar 2024 08:23:59 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVzU1T5vzRiwC8unoRMchLCztZnuStuL+586aWZTGXCquTKUwXuPUv5ve8D7KN5nDl5AvjqlcvKkfE33urderP5aRsmiXRYPWL/RxXvVg== X-Google-Smtp-Source: AGHT+IFtTjZsUNnPIJdv4HPjC5vCXAlY5TPxK3xQX5WVeDKVCR0xhKkLjJqQXOoeHFoVXiv00kCK X-Received: by 2002:a17:90a:4403:b0:29f:cd7d:2371 with SMTP id s3-20020a17090a440300b0029fcd7d2371mr2617022pjg.32.1711121039146; Fri, 22 Mar 2024 08:23:59 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711121039; cv=pass; d=google.com; s=arc-20160816; b=y01odEXCXttdPxIZMEecPvnPAIWQnj5PgjdRHy7iwmCq3kLl5tuVDZ5g4HzyxUyFQG ifmIlVi9yfxKIPeVoXkYsjUzggLAnWMuv5LOU6tlW7LuQb0432+xjscTDCeEgVCoLJOB 0pGtfGdjylzDy8K3bTgd9OgsUIL5Ntdb9HbgPc4wu4GyJgBykCAAb3eTb8fTYynUtom5 uIGOvZlsrot4hoTclLRC18xbim9K9hrPzXA7EdmDOPu2+QJwgOn/ByqiWVAY8IBUJzaZ GxkISn2zVh0NE8fne96TEclMwZOEQeeScoq/fB4tuk600sMsfD+9sSDsGsMfdba0QOBb DE0Q== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature; bh=xH+tLDeMl99Xl0L3QKJ15jBZOcEoqwwXUzAeFBXfobY=; fh=aOk2Prygm4Gw9D3wh5X4k98i/TCaj3LD1uvZFwrLlEE=; b=J6XDh5FGmU2PKeQAeLTVClS5fyEFKBddYoRVRfJJ6wpXGGKfllyEYHDtJhmfklCpK6 bONVZRIZzmVE49P9ZR6M+WlDUtXj0aMWP/wd7iYikKQYD3gt/0pk2gkYQk7cJTgnksYM u2vR39A9T47PRV1/yYZYWPqh2kibVq6pAfvUHpiF6aqOeJFS5QJdeaDc+6mKP4TPnscX KmoLQYiNlRammgWSLA47VhrRRAokeGTYzWg/DKfo4f/zu2jnZYkgZbMPyo9bXhsmqJMI robHhLx6ERaLmtwn153BXk9Lf/b1s63kgM5ZPol7TE6z63JmI5x84ffDnvSwLCbNQCeK f59w==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=qsnn1yXW; 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-111695-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-111695-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id l62-20020a639141000000b005d5434a5732si2089186pge.456.2024.03.22.08.23.58 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 22 Mar 2024 08:23:59 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-111695-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=qsnn1yXW; 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-111695-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-111695-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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 30003B22002 for ; Fri, 22 Mar 2024 15:23:51 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id E5A9E56770; Fri, 22 Mar 2024 15:23:26 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="qsnn1yXW" Received: from mail-wr1-f53.google.com (mail-wr1-f53.google.com [209.85.221.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 509224E1DD for ; Fri, 22 Mar 2024 15:23:24 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.221.53 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711121006; cv=none; b=qr4tfsYmVrSZz3g7opmk6UzcEUJR2znPlEEsmrbwRgJW68q1q0mVlv+wDEP7s3Xlse1lL/qT1BlUi6wFuOFitPog6qO1YDpH0akHlTpbWMGzs1/ExRARP2kuipgWsT8Z4JuAYDk0k+vI7HX2VgCAF7Mz/138Z8ClRvwLIpzqzdM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711121006; c=relaxed/simple; bh=Jh9QoSpAh1VJIpxGig8oTblYGq/+BHwEt/Vp0lSS23E=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=MLPX32bXhCQX14EQcjTiKd83cKRSN0Z/r921jwsgkh3/lBlmfhZE7D0AKo0DQ+xpFKAQxqneCDddbTs/Ri9FeZR+OmIqT7PqWX+iNlO4yO2FBgI4DR/v72rvcEvRsfVRKzXQnBlg/ZURMGSkGwFrVD8CdMIGSJ1uZSAXdgva++w= 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=qsnn1yXW; arc=none smtp.client-ip=209.85.221.53 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-wr1-f53.google.com with SMTP id ffacd0b85a97d-33e285a33bdso1053628f8f.2 for ; Fri, 22 Mar 2024 08:23:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1711121003; x=1711725803; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=xH+tLDeMl99Xl0L3QKJ15jBZOcEoqwwXUzAeFBXfobY=; b=qsnn1yXW8LdqXh4iwvKIexEj6btk6YM1YV6p5gVHnL/mnupx2gW2u/NRIX1SB5mTp3 wwdIELhghDdDWtBDP+ud2NnjwHwJ+4p82zk5MUuXrXh2jNYbDOJnRhNHB8MzZ8+EgNhf z12pSygmnuARXarXJvGgKlud8WQHRouHU3caeIqstB3UbbbxXbW7lapN6mFnpwtw+0bO mEhc+hvQsz7bPdTmxGhcGWeiin2bp5KcWsxV4wfE9XLajeelpb6c1BDg7yHbS00D4tAW HJT1uB/8k5rNcfeilhft+0UHLs+8lEl7df+hCkjFsqvRU5OkHpuONnCf7g8ep7pJXHZv HT2w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1711121003; x=1711725803; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=xH+tLDeMl99Xl0L3QKJ15jBZOcEoqwwXUzAeFBXfobY=; b=FN8bPrFWqHr3W9VIERLDG/yZxIjWY3MoB935DZEKFBvMh//bNq2HWWQm9y6Z9lpf8q VRkscOrBuop+4EfHVF/MjEqD7ZLJ6wUfnNFA9pxVwOvCDtyoFSZC6sWgDFiDrohb3XGG KNR5Ia+FugxyAEozYddZyMT/q8eidtsIkCtGvt2znZsnlAb4mlqDOqcjKknZJQCjui90 QRYDYkDaPy0UE3Lypn2R/phCVfebjhKbpQrWUwnyRtiDxTlDoGCym3GRZougbaoH+Vxd 8ujXAbHswQ04DzhSfGkcwjiNYxs9PCYcVR1/A7S9ED1FmbCf29BGB++kc/MEBbKKsNud nlJQ== X-Forwarded-Encrypted: i=1; AJvYcCUAcSIvCu773N5U12huuy8tpJPrRrQDOChX9reNvu68R+NAC6PRa5i4ytQAgkaa8KK/PAt+rU1TZSqxxrOBni1QKwEKASkWfhcRJGMw X-Gm-Message-State: AOJu0YxwPGWYWNZ3/TsdiUo/oUeIHvzcADiCiAZWFHNInzBXBYOjuuM+ 1tYqVP/WSUZcGugHVmD0Q/MBq3XaHaAJpnBGh7F+2I/RxQt/6WhtF0SLkr+SFwY= X-Received: by 2002:adf:e603:0:b0:341:b5ca:8f88 with SMTP id p3-20020adfe603000000b00341b5ca8f88mr1503198wrm.48.1711121002762; Fri, 22 Mar 2024 08:23:22 -0700 (PDT) Received: from [192.168.0.102] ([176.61.106.68]) by smtp.gmail.com with ESMTPSA id t17-20020a0560001a5100b0033dd2c3131fsm2282603wry.65.2024.03.22.08.23.21 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 22 Mar 2024 08:23:22 -0700 (PDT) Message-ID: <0b091595-1587-421d-bb00-c00ef729d143@linaro.org> Date: Fri, 22 Mar 2024 15:23:21 +0000 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH 1/2] dt-bindings: usb: qcom,pmic-typec: drop port description Content-Language: en-US To: neil.armstrong@linaro.org, Dmitry Baryshkov 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 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> From: Bryan O'Donoghue In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit 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 CC1/CC2 Then we would not be abusing HS/SS/SBU for the port names - we'd be extending the connector definition but also naming the ports/endpoints appropriately associated with the data over the hw --- bod