Received: by 2002:a05:7412:d8a:b0:e2:908c:2ebd with SMTP id b10csp997092rdg; Fri, 13 Oct 2023 07:25:36 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFOcHh51TeD3IkLO6qn0amrW8OvJNBtNyPwDnadZYrPey+bx+X7d+4NE42EYpRyx1ONsUXM X-Received: by 2002:a05:6a20:3d29:b0:15d:7e2a:cc77 with SMTP id y41-20020a056a203d2900b0015d7e2acc77mr28983664pzi.48.1697207136458; Fri, 13 Oct 2023 07:25:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697207136; cv=none; d=google.com; s=arc-20160816; b=JglsAUWtChpesXWQZoPmGMe/VRodGVRwXiNx4E5KleJQbyb4ntkCwmeItjquGlT9L6 ekkiQzBKlbnlUhu9X/EW+eTDJxUsORNkgUUUdgTsTUlhCeRyuZHkqPvpiWuKS3otnfa+ Fa6QT6FdLIqJG1CYumdU3OPk0313jK2I2Uv9RIb6CJporumL0hSiIs571l7e4BpwIsCZ QvUdOMjfZlxkrG6Ei4n6enk1qpcB32brPQjKA34lj5/f9wOfhDVKMawMvgmoYb/Q/V6L hc2hWwgJGOGsTcwHBgyfb9AjEZl8ATg+D3b6cUbBcBNTPmGX0xpP6odHjJSsw3txlyWh bwWQ== 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=pm+/QnAH06Qh5wXqBp81N2OJaOoNdJfCQwZxxMt/91k=; fh=TrJ7bhIcY5I2XU10ce7ir5F6EjOezYVNk+TamR8A+Wc=; b=j6FOTYZ9TVTNuQL9gDmgOWVlOPBO33tbdL85royaScjcCGfwU3nhwyrwfe9mNxrpiz vA1EKQTAvfU/gGmhDrpCUizNOT1A8F12HGw6RA/jPynhZjBRR8vFr8jWQI0YqyuzPP+/ S1bFmhKq85ENJU+xmRR3qyof7u4hHhxKdW3sCh+2boq2mA4PQm0aNlHp3FDWaLN6Kt1n 35ioSIJldbgkQSKEJ+DFoRwhEzpmkKsuV8Fh1dKZdLfu7NcruaNbT7c/YTEUrubn9J0T Un23W7siFdolHnja+7Ury4l/Cs0nauJ1TM4E5jfQwEpkBzIMsfJ7OTnp0o+MMW7Y98YD ma5Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@fairphone.com header.s=fair header.b=pph0E6fh; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 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 lipwig.vger.email (lipwig.vger.email. [2620:137:e000::3:3]) by mx.google.com with ESMTPS id i188-20020a639dc5000000b00578bb707e6esi4691127pgd.806.2023.10.13.07.25.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 13 Oct 2023 07:25:36 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) client-ip=2620:137:e000::3:3; Authentication-Results: mx.google.com; dkim=pass header.i=@fairphone.com header.s=fair header.b=pph0E6fh; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 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 lipwig.vger.email (Postfix) with ESMTP id ED126829F9A3; Fri, 13 Oct 2023 07:25:33 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232176AbjJMOZK (ORCPT + 99 others); Fri, 13 Oct 2023 10:25:10 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35522 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232098AbjJMOZH (ORCPT ); Fri, 13 Oct 2023 10:25:07 -0400 Received: from mail-ej1-x635.google.com (mail-ej1-x635.google.com [IPv6:2a00:1450:4864:20::635]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EDCFFD6 for ; Fri, 13 Oct 2023 07:25:04 -0700 (PDT) Received: by mail-ej1-x635.google.com with SMTP id a640c23a62f3a-9ae2cc4d17eso361159366b.1 for ; Fri, 13 Oct 2023 07:25:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fairphone.com; s=fair; t=1697207103; x=1697811903; 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=pm+/QnAH06Qh5wXqBp81N2OJaOoNdJfCQwZxxMt/91k=; b=pph0E6fhGwpDPYGHdJ+f3vTSJQyVAqRy23vSoatmaLrf4Hp/ijOOJcva0y8JEI32IB 3vmOq515iDrM2O+ZnkxCuttdCaRY/7KMsqZD5oWBWZ/OTSDCwY5sM0eb+Jt9vLLLuRdY r5d8KWlfmSmCGVvR3WoazCmKI0evoivs3uJ8RlTfbkkFM+kMES4navijQXSVv6fRWFpP 3RbISxpuzFcXz1n4WwYFbrD/yHc3TmjjnyTda7p9VQA6TK4+r4j92V2U09r/vPp+419Q 0MI1ET8iM2PIK5HPnTrgcl2abyssP2675N0NcpGlur24AeRamdBecKHaz8GaFqZtb+91 sOuQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1697207103; x=1697811903; 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=pm+/QnAH06Qh5wXqBp81N2OJaOoNdJfCQwZxxMt/91k=; b=jkqorg1ebHCJhhTHV2lt/LAXQbG/IFzURn3JEGFgf9ChHqccU3s2JFnSR3pLdlwtid JVGIodyaMQ6BbJ95IQBeOZgG/q5MFzVZdch9dkUcdukAqu5aw3sa5TR/G0bnLpFpzkT+ W0+/v+H9UgIzQgD5WRcbWfqKIDogf/OkNz6eHpR0SYzww5VAgaxXHpn0qBkhRZsbBlhM t5ydOnSlb4oqDp1MKKXTb3IgfLOYEgbQvYXaB9xDNwXT77TmRAjRa3TLzcEWxi2A0UgH hHBUm3sF/LlX/NeJUetfxubC9z2y4Xw9HJAKPk3TAz92YInnaMnonoxJe5MdIbwXaZ2q u4Pw== X-Gm-Message-State: AOJu0YwguMFHAkK5SjcPJLW7obwFOCALSwWNmkZDImsS4ojia1gKBieo zeUttwX+cDwOB2B+BvBKQ7Evpw== X-Received: by 2002:a17:906:1d5:b0:9a1:bb8f:17de with SMTP id 21-20020a17090601d500b009a1bb8f17demr22023725ejj.35.1697207103432; Fri, 13 Oct 2023 07:25:03 -0700 (PDT) Received: from otso.luca.vpn.lucaweiss.eu (144-178-202-138.static.ef-service.nl. [144.178.202.138]) by smtp.gmail.com with ESMTPSA id ot21-20020a170906ccd500b0099df2ddfc37sm12412041ejb.165.2023.10.13.07.25.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 13 Oct 2023 07:25:02 -0700 (PDT) From: Luca Weiss Date: Fri, 13 Oct 2023 16:24:47 +0200 Subject: [PATCH 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: <20231013-ptn36502-v1-1-98109a430efc@fairphone.com> References: <20231013-ptn36502-v1-0-98109a430efc@fairphone.com> In-Reply-To: <20231013-ptn36502-v1-0-98109a430efc@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 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 lipwig.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 (lipwig.vger.email [0.0.0.0]); Fri, 13 Oct 2023 07:25:34 -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. 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