From patchwork Tue Jun 13 14:50:07 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Neil Armstrong X-Patchwork-Id: 692534 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id A4196EB64D9 for ; Tue, 13 Jun 2023 14:50:40 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S242803AbjFMOui (ORCPT ); Tue, 13 Jun 2023 10:50:38 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58648 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S242841AbjFMOuT (ORCPT ); Tue, 13 Jun 2023 10:50:19 -0400 Received: from mail-wm1-x331.google.com (mail-wm1-x331.google.com [IPv6:2a00:1450:4864:20::331]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9947A1BF3 for ; Tue, 13 Jun 2023 07:50:13 -0700 (PDT) Received: by mail-wm1-x331.google.com with SMTP id 5b1f17b1804b1-3f7fcdc7f7fso39079495e9.0 for ; Tue, 13 Jun 2023 07:50:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1686667812; x=1689259812; 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=5wH2CsCx7+x3Jzc+j/GbOX9j20blCsxJNxD0bmB92+8=; b=vqsfX/5teKL+EI+5LMnz2dE7BVO8sIdgalf4AKSUInSKmIBYbYWaRLnfLXlyXPAM0E 91bIM/wMF33ZEOzyv4jhsuAZwbxakzgBZuqgWwukf8LrmNIu/OIs2GK0IhY98TkjHZ7K PhaLJNYTM1gc+Nq7uwGb1F69f5kt3l0pSqtJql3ResXYNZnTLk9XSwGlFQHSXqFw9xvO oWmM8zDAYFan944bKPKONuq5hUQAgRjYdxLHPscX2VNnbtOHaCpMId1OEGXgY/o51FMV dOHJTEUBqxCNkCHF/gjlgkH26uEY7oligkycNI1LniGZ1Q0mWVBCxMcXYSvgmmR2Voj7 Os7Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1686667812; x=1689259812; 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=5wH2CsCx7+x3Jzc+j/GbOX9j20blCsxJNxD0bmB92+8=; b=HfhSKgFGoYu59LMrUDgsHQcEOckZCHm5iF5a33R/BBF8KSDB33SVE6TSDEFznjX5kn bmznf5YJbPxByGGZ2yJWQ5t9RXC0V3kh7ztseec6LHumhOSYFa8iXCY5kk2hLJUuYani plFLZqXcsrl6k9BELN5jGKdyt/DJWzSHonRplI9Y/vPxN7uXB6EIOb0FlNT8K7TWVI/C xVU4hb688ekGknbAcE2MwKiX2cg5UIZW5noWf42DRSc1+sVN4qcM2RxPyPJc/BsUQyc5 dUL3zTrFm1zdvQBejXOziQ6A9GcTQAUw+8bWRW28tUTpjgyNk01sCOatVSmy8x5dEHAz XIqA== X-Gm-Message-State: AC+VfDweGdXGckNsYcvon/w2tahioYbGqS0H5qIo/DN5utC+8rdsctF4 Bt/5VnoAOa6nEWR8bvLVRcxVRQ== X-Google-Smtp-Source: ACHHUZ5eR1pT9PKayWpebDvk92ibUcL+HLxRvYWARDzck5wf4D+XZ6Xp3Bi/VBF4WEF7ULAHOHiD3A== X-Received: by 2002:adf:ef8b:0:b0:30f:bde3:aa6 with SMTP id d11-20020adfef8b000000b0030fbde30aa6mr5587262wro.15.1686667811912; Tue, 13 Jun 2023 07:50:11 -0700 (PDT) Received: from arrakeen.starnux.net ([2a01:e0a:982:cbb0:8261:5fff:fe11:bdda]) by smtp.gmail.com with ESMTPSA id l15-20020adff48f000000b003078cd719ffsm15623356wro.95.2023.06.13.07.50.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 13 Jun 2023 07:50:11 -0700 (PDT) From: Neil Armstrong Date: Tue, 13 Jun 2023 16:50:07 +0200 Subject: [PATCH v3 1/2] dt-bindings: usb: add ON Semiconductor nb7vpq904m Type-C Linear Redriver bindings MIME-Version: 1.0 Message-Id: <20230601-topic-sm8x50-upstream-redriver-v3-1-988c560e2195@linaro.org> References: <20230601-topic-sm8x50-upstream-redriver-v3-0-988c560e2195@linaro.org> In-Reply-To: <20230601-topic-sm8x50-upstream-redriver-v3-0-988c560e2195@linaro.org> To: Greg Kroah-Hartman , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Bjorn Andersson , Heikki Krogerus , Liam Girdwood , Mark Brown , Dmitry Baryshkov Cc: linux-arm-msm@vger.kernel.org, linux-usb@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Neil Armstrong X-Mailer: b4 0.12.2 X-Developer-Signature: v=1; a=openpgp-sha256; l=5081; i=neil.armstrong@linaro.org; h=from:subject:message-id; bh=dL76UrfLBQ6NLFixzbwIYjFzKBYS7ny1GhYc6Sf8tJ4=; b=owEBbQKS/ZANAwAKAXfc29rIyEnRAcsmYgBkiIIhT2X1Bg2vkPtm0JQliNDzKOZzKmpPFLoeCb78 viEjDcSJAjMEAAEKAB0WIQQ9U8YmyFYF/h30LIt33NvayMhJ0QUCZIiCIQAKCRB33NvayMhJ0UjeEA CxEovMfrGwKn0dvnRH4ULuxbH7PNewLTQAfSH686l7zSKtyIpHNVdv8pRoFotpzm8uokoV1WH6B6Og K5OhXtqGWUmrIoc1YpYf2X/HQBpDvRofOMEU1/Y1sGQEBQjapqvx3MQ9A0JbMctJYyPoaKLZqcvvIW +4vt1HlZSpET4WjnjqKN2bFxJ1fNG0hCxVqzeCtuZeuJF0KUeNdLCUt82d414uZGW/AMBxoIyf2Wav opytsGYWfDDjGPZCVkhoKu+e3AVV8MIL6JdqfaAsQ8kz2zolRo+AcuiPunqM6D+/Tf3geKJRwv687V 0sETLCJtHScuJm0y95QLE7i45fImmkYQaImc9mlp6YB8CK4V9hVIVXjVA68qeizJLliYf3mCXL3org C+6emuLdLxpeUSCdO28wHNhnI53fj6oe1nt2WtnDmkQauhwemgH1/lNZ8D1UIvCEM6OWpxXF96Hc+G cGQCca0IWq8IbLD7mABiLmF04m7TI6UEHjnZh0202mRuC9hkZiDS9y908v/dQQI2GNaxLMulfkftCP B7xfB3DZoPGcerIzZcSqsSiiT5zHzExbIJH6RLt3T/glS/O0fycZBvCzGIoDvyzcosCZDJPnHQT8PP RGyHWJ255xtmtgy+WFBpZqwY9j9hiGE9wGPIxlrnG4LHS9ZtVdEQvEge9ENA== X-Developer-Key: i=neil.armstrong@linaro.org; a=openpgp; fpr=89EC3D058446217450F22848169AB7B1A4CFF8AE Precedence: bulk List-ID: X-Mailing-List: linux-usb@vger.kernel.org Document bindings for this ON Semiconductor Type-C USB SuperSpeed and DisplayPort ALT Mode Linear Redriver. Signed-off-by: Neil Armstrong --- .../devicetree/bindings/usb/onnn,nb7vpq904m.yaml | 141 +++++++++++++++++++++ 1 file changed, 141 insertions(+) diff --git a/Documentation/devicetree/bindings/usb/onnn,nb7vpq904m.yaml b/Documentation/devicetree/bindings/usb/onnn,nb7vpq904m.yaml new file mode 100644 index 000000000000..c0201da002f6 --- /dev/null +++ b/Documentation/devicetree/bindings/usb/onnn,nb7vpq904m.yaml @@ -0,0 +1,141 @@ +# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/usb/onnn,nb7vpq904m.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: ON Semiconductor Type-C DisplayPort ALT Mode Linear Redriver + +maintainers: + - Neil Armstrong + +properties: + compatible: + enum: + - onnn,nb7vpq904m + + reg: + maxItems: 1 + + vcc-supply: + description: power supply (1.8V) + + enable-gpios: true + + 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#/$defs/port-base + description: Super Speed (SS) Input endpoint from the Super-Speed PHY + unevaluatedProperties: false + + properties: + endpoint: + $ref: /schemas/graph.yaml#/$defs/endpoint-base + unevaluatedProperties: false + + properties: + data-lanes: + $ref: /schemas/types.yaml#/definitions/uint32-array + description: | + An array of physical data lane indexes. Position determines how + lanes are connected to the redriver, It is assumed the same order + is kept on the other side of the redriver. + Lane number represents the following + - 0 is RX2 lane + - 1 is TX2 lane + - 2 is TX1 lane + - 3 is RX1 lane + The position determines the physical port of the redriver, in the + order A, B, C & D. + oneOf: + - items: + - const: 0 + - const: 1 + - const: 2 + - const: 3 + description: | + This is the lanes default layout + - Port A to RX2 lane + - Port B to TX2 lane + - Port C to TX1 lane + - Port D to RX1 lane + - items: + - const: 3 + - const: 2 + - const: 1 + - const: 0 + description: | + This is the USBRX2/USBTX2 and USBRX1/USBTX1 swapped lanes layout + - Port A to RX1 lane + - Port B to TX1 lane + - Port C to TX2 lane + - Port D to RX2 lane + + 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@32 { + compatible = "onnn,nb7vpq904m"; + reg = <0x32>; + + vcc-supply = <&vreg_l15b_1p8>; + + 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>; + data-lanes = <3 2 1 0>; + }; + }; + port@2 { + reg = <2>; + usb_con_sbu: endpoint { + remote-endpoint = <&typec_dp_aux>; + }; + }; + }; + }; + }; +...