Received: by 2002:ab2:6857:0:b0:1ef:ffd0:ce49 with SMTP id l23csp1185847lqp; Fri, 22 Mar 2024 07:53:08 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXCoXZ1Dm5hrDTtsV9LXNThfKNUh8iDxkL4aZ7c3yn4aSTqwi3dqLvPm96IX3Zwn9Y/tLsgDOL5a3LNATnRtPfxgCo7YU0QewEX2g+bdw== X-Google-Smtp-Source: AGHT+IF7u/SxyT1q/FVwoV26Gce7M7u9iPkD1gjKSn4Tmk3s7UNp0t/LYYM60jQ+MRLuzOyMNtm6 X-Received: by 2002:a1f:4b03:0:b0:4d4:4ef8:2fb5 with SMTP id y3-20020a1f4b03000000b004d44ef82fb5mr2256450vka.13.1711119187773; Fri, 22 Mar 2024 07:53:07 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711119187; cv=pass; d=google.com; s=arc-20160816; b=AggOlBSUBazTkdbpl/5Ag3uNRiu4ma3WY9o7ZEMmFBfHNXnL3AIggXA8KGLyxK7bVB VXmFJ7GkwoVcU45sUKEboXA+w1z5r5m7RDsgBgRHBUTbcO33Zw7zaAeW6n+5ZYLiN5fB Z+OyrA9lNs0j87DElKDvCtLaiJzH1Y4cwJHDbSo5tSF5dt4JigXfXcwnZ0fkVwi7ESUU YJpn53pEquGD7meEdrPfZMrdjA2Tsw3IH38HzIrJ7u+f5Ud0LjPDy2febV9pXf/DpTTl ircJ92q4H6wfGUWnh3e4VaasKn/58dEiyGrgi+nGbMhtXA6m1WO1pJYf55SRseyBnLPf s+hA== 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=NxYoftnRDFE6gTrj78TOy0Q0Mg6/KBJ0u3ctErMPVMk=; fh=oe3EAzEQqoZk9vwXnt1pA1wNuVNderAz9+xihIc5d8k=; b=tSSngbt6Cchv36XGMemX5x11CPYymUtNWxnKlCpI6x6EbhTOZAwEXVFwtVMhSmmQ+Y UHhrk4jhgaSHXaoRktgqcFWYLXUKtQWrxZbb3ujbFarFJOILDYAVV3UsiBuqUOTFeDvs 49mVl9X1hhvaFPyVJ6sQ9FJ4JJcgyKKrGF+kh6yhls4j+5KT7LV+xffhvcEK15MfNvfj 7717T++Acpx7VjcTpSu96yi7jxguI2v/LjDMtN+tnW8MFYrSykqA3yjg1jXnne51qa3y 9+zh+ps312WbtDgvUGEU4HEsdw4Yxu5RdnrfbnfdqRHmhfNAdeZpA26uxiQnYrctHtEo l1hg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=W70kSFpO; 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-111652-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-111652-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. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id fq9-20020a056214258900b00690a9020e19si2188547qvb.42.2024.03.22.07.53.07 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 22 Mar 2024 07:53:07 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-111652-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=W70kSFpO; 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-111652-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-111652-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 7DA131C221E4 for ; Fri, 22 Mar 2024 14:53:07 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 5E5EE4C60C; Fri, 22 Mar 2024 14:52:56 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="W70kSFpO" Received: from mail-wm1-f42.google.com (mail-wm1-f42.google.com [209.85.128.42]) (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 105A5481DA for ; Fri, 22 Mar 2024 14:52:53 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.42 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711119175; cv=none; b=IAzankWtVH7QW7xyJ5vD/Xo/tgBuUyYUTDL0v86Jk4G7jCtTPCFrOZZ/dx9S/GFiLtzYWOzDgOuUIzNtV8vsTsIXBOHZWF1f3sh68pEGwygNIuiSIdaW2BfeeOjxJkzZwuZiC0mlUnkcY3iBz26Z3H1gLlC2fmHFWJ3iOQTZwIw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711119175; c=relaxed/simple; bh=Wy7u/UExrSNdM8DBECLbLG3iX7xChOfdO1n056C1SMc=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=pFStANSNCgpDNe8xfxECLyeCvh0zECWLEf5XhxpB1XzcB8sUEN8+ZTtNgFuAaHvjv5ZUxWoZz37Uc/PHLOVe61lyHugu5PcfXIpxjwf3zVAd33Vnq9NNFE9XrCnOhN9mElnPRj4gu/52kao+GNZITQL8OaRiYi+U6Pns1xNg7Zc= 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=W70kSFpO; arc=none smtp.client-ip=209.85.128.42 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-wm1-f42.google.com with SMTP id 5b1f17b1804b1-4140aadfe2eso16479185e9.1 for ; Fri, 22 Mar 2024 07:52:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1711119172; x=1711723972; 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=NxYoftnRDFE6gTrj78TOy0Q0Mg6/KBJ0u3ctErMPVMk=; b=W70kSFpOCsp9/knT3U1FUY9rUixZL225aYTqVxmTA7lkIB2Gk6yiQXGR7zmS9POqMN PpBk6yxOeKq89jKvY82j/7ZAUVJGK0RRc9/K5XWbW0oy4P/mp3FEX3CRws88uiH4rqrb nrzfth7iXa+G5YeJzNRWxSUYwcGfFIm1ENHBo92G4m44Ph/I/C2uTK8OoFXwNtwtQAPF mykBEW57lki7XbCGfx1xmKBUxoKd0xJDtkkT7q51UA5B3MS4gmkOb/2xIAQjH+Gcq9DT 7QqUdqFyHLZ8C0qcN9yG9rrkJ+errbpAZUBAsVZpIfsKP7bdQHnenfToZtvOsPfSOaKv XAJg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1711119172; x=1711723972; 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=NxYoftnRDFE6gTrj78TOy0Q0Mg6/KBJ0u3ctErMPVMk=; b=YV7KV2OyNr5kITIrzXv03fJAzLzuk4HvAK6mqtPhlKADDGgQMAInxAGtJalGmtNCu6 Y6xEYyyWnoZ4hUA4pPgNOMPEUEgVUMUWwCNJNGLNLCh5GIcughdhZuythwJUTt7M1pEU k/tRq5rBZc/bjSOfAP1QNydkpINZUJdubgFt1vGE5PtiGAYbQpFIt/DSADumgRQgPXkr HLnPjne9hYMa90MkhlfbBD5RV8vyzbHpW5VY2N03467/PSP8nW2cyjqxvje4pKAf/ErJ ni7wrZEN2hiyrXFD7nIgpaxxHOreQ0gbcOYDQih0IW0sWmJK5+xINGsokXhefX3bFOpV htvw== X-Forwarded-Encrypted: i=1; AJvYcCX8yb3u7gHUe6a7V368k5Tz9r7iibEoCwaySIlVwVvgMJZdpkjGLoDJVMt++3+iIoZbqP2boVASppL2ME1J7g0g/nIcX0lizOALibbw X-Gm-Message-State: AOJu0YwXD44UxC245rlXGYy7GpZaUFq/wER0mzm0j1hrOnkd5XlGORSw +mQgyd1L6iSR/85iEuwTwgvWL6UI+Q6Xg47HnO5GRQmonbQdQJslZu0rN9nkeJg= X-Received: by 2002:a05:600c:1d1f:b0:413:fe9d:eaa5 with SMTP id l31-20020a05600c1d1f00b00413fe9deaa5mr1761041wms.26.1711119172531; Fri, 22 Mar 2024 07:52:52 -0700 (PDT) Received: from [192.168.0.102] ([176.61.106.68]) by smtp.gmail.com with ESMTPSA id p21-20020a05600c359500b00414038b4d64sm3288782wmq.27.2024.03.22.07.52.51 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 22 Mar 2024 07:52:52 -0700 (PDT) Message-ID: <5ea4a187-1971-4970-a289-826d96c0351a@linaro.org> Date: Fri, 22 Mar 2024 14:52:51 +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: 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> From: Bryan O'Donoghue In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit On 22/03/2024 13:28, Dmitry Baryshkov wrote: > Then the actual usage doesn't match the schema. usb-c-connector > clearly defines HS, SS and SBU ports Its a bit restrictive IMO, data-role and power-role switching is not limited to HS and in fact can be done with a GPIO for example. /Looks in Documentation/devicetree/bindings/connector/usb-connector.yaml Yeah I mean this just doesn't cover all use-cases .. ports: $ref: /schemas/graph.yaml#/properties/ports description: OF graph bindings modeling any data bus to the connector unless the bus is between parent node and the connector. Since a single connector can have multiple data buses every bus has an assigned OF graph port number as described below. properties: port@0: $ref: /schemas/graph.yaml#/properties/port description: High Speed (HS), present in all connectors. port@1: $ref: /schemas/graph.yaml#/properties/port description: Super Speed (SS), present in SS capable connectors. port@2: $ref: /schemas/graph.yaml#/properties/port description: Sideband Use (SBU), present in USB-C. This describes the alternate mode connection of which SBU is a part. 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. Documentation bit-rot --- bod