Received: by 2002:a05:7412:f690:b0:e2:908c:2ebd with SMTP id ej16csp923194rdb; Fri, 20 Oct 2023 03:36:34 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGF+ttQLYTiMLEYNZHMUoPWPBIuAVRZBUeKbEsx4UuNW66kqOGExM39tgQzJi1LeU5Sn4cR X-Received: by 2002:a17:902:ce8f:b0:1c3:a215:a9ba with SMTP id f15-20020a170902ce8f00b001c3a215a9bamr1532588plg.33.1697798193824; Fri, 20 Oct 2023 03:36:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697798193; cv=none; d=google.com; s=arc-20160816; b=mb/XlfoH/1fi+fwCjzIsFHT/EqzvV8t8dBEFiFeQEo6xC2UHlFsfjly6es/13ys3E8 tKJC/y3BAqWt1zjSGVrVMTjXgOfpB/GvwX6xnM8Hp+bO+kT2dldqPZDZ9Lhb1yZSzUx9 MO1Prcdkq5mNnIP3zJCIQ6glbl/HIbC1UtRuohbd2H/4COacnGUFX0+swzChS90JAzBw Dv2IeXwIDRl7qtradPc5NNxYHE4BkOlgQRs2uMbWFWQZM/+qDUynQj9zNtxw5ZpxkJlk o/D1AQzTuLKxjwqMmXybwebwM6M/Mv8KRnnuWCQDpSIDCUvqtBNAXFTRYfAX9+BINR2B HtoA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:in-reply-to:references:message-id :content-transfer-encoding:mime-version:subject:date:from :dkim-signature; bh=zcOsTWZFgk36Pr6gD973XFfrWfkQhr13IcUUfM7456o=; fh=VOqehVQMm+rGQ4A4INzFYEVyQsgKdwliE7lpdIg/FeQ=; b=WcsXVgaEPhX8fvVX0aa5tWmZlJsck078GCbxcmLaUEST+CfxwdncbdP7nsjMVUTXko oc6DSOviyELoR4yOZPY17xqI6i1hiQlRhg1CPOCGM4weJJuxmf4MRLkIMj5eo8UmIX3Z 884iIniwE5jwb9KUVoIc5JAvNG+xjkqcGv79GmDTyRzsQfwtdd+M5iy6WvQ9jyfcENuf ZClGn/GgLTgfaoLm1H95G2iSFUE2AiL3vN5KZ4CyzLsF7RpYuGPsCnTDdqYJsi0CT8/F xbb88QaJ7fQqSSbtX3Vv542cxsc2oD83dQkZJcnLHXXuC52Kcw/VnuMzZwSIPrfEw5GO h/AA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@fairphone.com header.s=fair header.b=B3HpL9rw; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=fairphone.com Return-Path: Received: from morse.vger.email (morse.vger.email. [2620:137:e000::3:1]) by mx.google.com with ESMTPS id u6-20020a17090341c600b001c77e00809csi1612223ple.453.2023.10.20.03.36.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 20 Oct 2023 03:36:33 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 as permitted sender) client-ip=2620:137:e000::3:1; Authentication-Results: mx.google.com; dkim=pass header.i=@fairphone.com header.s=fair header.b=B3HpL9rw; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=fairphone.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by morse.vger.email (Postfix) with ESMTP id 586E3809C38C; Fri, 20 Oct 2023 03:36:31 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at morse.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1376987AbjJTKgM (ORCPT + 99 others); Fri, 20 Oct 2023 06:36:12 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:32902 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1376957AbjJTKf7 (ORCPT ); Fri, 20 Oct 2023 06:35:59 -0400 Received: from mail-ej1-x62a.google.com (mail-ej1-x62a.google.com [IPv6:2a00:1450:4864:20::62a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8804ED61 for ; Fri, 20 Oct 2023 03:35:52 -0700 (PDT) Received: by mail-ej1-x62a.google.com with SMTP id a640c23a62f3a-9ba1eb73c27so105794066b.3 for ; Fri, 20 Oct 2023 03:35:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fairphone.com; s=fair; t=1697798151; x=1698402951; darn=vger.kernel.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=zcOsTWZFgk36Pr6gD973XFfrWfkQhr13IcUUfM7456o=; b=B3HpL9rwjP58F9+ojrAYWhu0KKiuIa9tjlrJWOUopb8kGUUHqTYSXloUhow/KsMnL6 vBnZioIZ5CeUdV+HtrBwgtgMvtj2gfesgi4u5ghTMW0wJttqsMem5C0FltBKhyehrYKD EVBN2rp7rrldWw2WWydUEidCZ0S0slEDHUO4SLB07VGmplKuWiLZIMQei+4K8Bf7rjqS Lgt8uVZlC2lklG9CwUycytTDOnLmO0rOsJgqbCL2mSIuoM9RZk8j3cWxwHtgEw179I3W GV241vorvwQb0LHP557m2eYz8Cfs0KGmVKuclyoUFI+GSHlGlRsPoyu45XVSaNRki4DF qvtw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1697798151; x=1698402951; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=zcOsTWZFgk36Pr6gD973XFfrWfkQhr13IcUUfM7456o=; b=LNCsuqF5RTRhpifwHtVwgPoasIwp8qE2EtAfQ5CNjGSPgSMy3nuA+QN0HW0u1oyoh8 dSEPU7oW+jz4nk2jC1EEeKj6fMSc8Lpezub4PM1A1W65RCyivGku4DlYtk9RM4pfOptX kQzDOouRaZHa4r+sz3GM041kEwAzuQJascMSekqEZDIBAuMgXWiBUeFxcuezsNYmUr8f J/aPBTyUwXKhmUPptJoNiGaJ9ORWfs5vh7Zecj0/4ynAoZO6EQjpQx1w3SI+6hjzSLk9 CdMKLAM6RcIFGwmHQm6W98grEKzMBvROCwtyQ54YMVqBoiLoMVRmJig9QhkZ0mCWzKzc 1I0w== X-Gm-Message-State: AOJu0YxawmgEGmEgLNBeBnaoNj0B3QqbRqYyAc4kA1lmUZdz0s++WGLb iIg2biRNfc1bbZeV+6NIJtVzdw== X-Received: by 2002:a17:906:fe04:b0:9c3:cd12:1925 with SMTP id wy4-20020a170906fe0400b009c3cd121925mr966287ejb.58.1697798150757; Fri, 20 Oct 2023 03:35:50 -0700 (PDT) Received: from otso.luca.vpn.lucaweiss.eu (k10064.upc-k.chello.nl. [62.108.10.64]) by smtp.gmail.com with ESMTPSA id h7-20020a1709063c0700b0099c53c4407dsm1226701ejg.78.2023.10.20.03.35.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 20 Oct 2023 03:35:50 -0700 (PDT) From: Luca Weiss Date: Fri, 20 Oct 2023 12:35:46 +0200 Subject: [PATCH v2 1/2] dt-bindings: usb: add NXP PTN36502 Type-C redriver bindings MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <20231020-ptn36502-v2-1-b37a337d463e@fairphone.com> References: <20231020-ptn36502-v2-0-b37a337d463e@fairphone.com> In-Reply-To: <20231020-ptn36502-v2-0-b37a337d463e@fairphone.com> To: Greg Kroah-Hartman , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Heikki Krogerus , Liam Girdwood , Mark Brown , Dmitry Baryshkov Cc: ~postmarketos/upstreaming@lists.sr.ht, phone-devel@vger.kernel.org, linux-usb@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, Luca Weiss , Krzysztof Kozlowski X-Mailer: b4 0.12.3 X-Spam-Status: No, score=-0.8 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on morse.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (morse.vger.email [0.0.0.0]); Fri, 20 Oct 2023 03:36:31 -0700 (PDT) Document bindings for this Type-C USB 3.1 Gen 1 and DisplayPort v1.2 combo redriver. The PTN36502 can also run in GPIO mode where it is configured differently, without any I2C connection, but this is not supported yet. Reviewed-by: Krzysztof Kozlowski Signed-off-by: Luca Weiss --- .../devicetree/bindings/usb/nxp,ptn36502.yaml | 94 ++++++++++++++++++++++ 1 file changed, 94 insertions(+) diff --git a/Documentation/devicetree/bindings/usb/nxp,ptn36502.yaml b/Documentation/devicetree/bindings/usb/nxp,ptn36502.yaml new file mode 100644 index 000000000000..eee548ac1abe --- /dev/null +++ b/Documentation/devicetree/bindings/usb/nxp,ptn36502.yaml @@ -0,0 +1,94 @@ +# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/usb/nxp,ptn36502.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: NXP PTN36502 Type-C USB 3.1 Gen 1 and DisplayPort v1.2 combo redriver + +maintainers: + - Luca Weiss + +properties: + compatible: + enum: + - nxp,ptn36502 + + reg: + maxItems: 1 + + vdd18-supply: + description: Power supply for VDD18 pin + + retimer-switch: + description: Flag the port as possible handle of SuperSpeed signals retiming + type: boolean + + orientation-switch: + description: Flag the port as possible handler of orientation switching + type: boolean + + ports: + $ref: /schemas/graph.yaml#/properties/ports + properties: + port@0: + $ref: /schemas/graph.yaml#/properties/port + description: Super Speed (SS) Output endpoint to the Type-C connector + + port@1: + $ref: /schemas/graph.yaml#/properties/port + description: Super Speed (SS) Input endpoint from the Super-Speed PHY + + port@2: + $ref: /schemas/graph.yaml#/properties/port + description: + Sideband Use (SBU) AUX lines endpoint to the Type-C connector for the purpose of + handling altmode muxing and orientation switching. + +required: + - compatible + - reg + +additionalProperties: false + +examples: + - | + i2c { + #address-cells = <1>; + #size-cells = <0>; + + typec-mux@1a { + compatible = "nxp,ptn36502"; + reg = <0x1a>; + + vdd18-supply = <&usb_redrive_1v8>; + + retimer-switch; + orientation-switch; + + ports { + #address-cells = <1>; + #size-cells = <0>; + + port@0 { + reg = <0>; + usb_con_ss: endpoint { + remote-endpoint = <&typec_con_ss>; + }; + }; + port@1 { + reg = <1>; + phy_con_ss: endpoint { + remote-endpoint = <&usb_phy_ss>; + }; + }; + port@2 { + reg = <2>; + usb_con_sbu: endpoint { + remote-endpoint = <&typec_dp_aux>; + }; + }; + }; + }; + }; +... -- 2.42.0