From patchwork Thu Jun 1 09:21:11 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Neil Armstrong X-Patchwork-Id: 689008 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 3F644C7EE23 for ; Thu, 1 Jun 2023 09:21:40 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232736AbjFAJVh (ORCPT ); Thu, 1 Jun 2023 05:21:37 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42910 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232721AbjFAJVe (ORCPT ); Thu, 1 Jun 2023 05:21:34 -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 8EF089D for ; Thu, 1 Jun 2023 02:21:30 -0700 (PDT) Received: by mail-wm1-x331.google.com with SMTP id 5b1f17b1804b1-3f6dfc4dffaso6508045e9.0 for ; Thu, 01 Jun 2023 02:21:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1685611289; x=1688203289; h=cc:to:content-transfer-encoding:mime-version:message-id:date :subject:from:from:to:cc:subject:date:message-id:reply-to; bh=FcxAvJgkKrQIlZsFDeDW+ZrkzVmM8rkabiZ/3MtwMOc=; b=bisGZrxTZWGmCZHyPxJwgcrhsBGDdrS5J9/fjuP/QBuH4CNRJ9vt30DpDg9d8gJ7f+ Qf/pGmZE1dDJZoqVGi9hyBfeMxiRnZnAu43DznuTSqMgXz5mrF8NgBUOCEFHh6j4k+MB kupUUumTBs5rmIRnrh4QQlIZ4Vsflrk1uFAjDvNP5y2hq6odKH1EwzbvGc6jvbQmOQyd WIipuAl4g58eD0rUNaQdMH1Q0cCdhUhpydgfXI7aHXplxOqYcxEh9avLVf4ek5cjFDuJ IyssETzD0MurSFHAvp+03kJgMmbDH7AvdMd9bkcILWDckYymYTb4cCoKwkRCvMU9mm2A lO4Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1685611289; x=1688203289; h=cc:to:content-transfer-encoding:mime-version:message-id:date :subject:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=FcxAvJgkKrQIlZsFDeDW+ZrkzVmM8rkabiZ/3MtwMOc=; b=L7MX6JEJtCCEORIVFGqmdFDGoy7LoboARPN5LrcE970R/3b6D6hdZ/OjJQNGTOM1uH FxSTdaOrR36UCk3YwiVjhsAu87Pnk7NpoWuJMa5592nxgaKxBNEtlAHavadcON14nfRG 5ybjZtxHnu/OeiAIFX3ZbpGPaC8I6dmSBO1ROSWSm12q+gHdY34vX1otSGJAKOxf3c/F nJlPZgv9u5oxGVi+h5KjQOILQQ2jS6hC0y1TbEHXo0HOUCZCkyHHlv38Psj0EuVEKsZ5 eJhppwGmvPak1pBd2XbqB+jcVYU85QQ+Mdx6m73xAE3t9hmoo5EH9SJmKiLWdtegrCiK YrWQ== X-Gm-Message-State: AC+VfDxNsz9MRDJ70H4B3JLbudCeoWWOUegKxNYib/0NbP3fBGjUCL7l Z9Ev25hrSd0W8p91mp7kKLNLYg== X-Google-Smtp-Source: ACHHUZ4OUSH3HsUAFs6mwDJHFADiMWqLjdwk37CctJ+J6vWnPA/xWSyLGL74scdwoG2MqG8ykLtviA== X-Received: by 2002:a1c:7506:0:b0:3f1:bb10:c865 with SMTP id o6-20020a1c7506000000b003f1bb10c865mr1603329wmc.38.1685611289044; Thu, 01 Jun 2023 02:21:29 -0700 (PDT) Received: from arrakeen.starnux.net ([2a01:e0a:982:cbb0:8261:5fff:fe11:bdda]) by smtp.gmail.com with ESMTPSA id a2-20020a1cf002000000b003f3157988f8sm1671572wmb.26.2023.06.01.02.21.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 01 Jun 2023 02:21:28 -0700 (PDT) From: Neil Armstrong Subject: [PATCH 0/2] typec: add support for the ON Semiconductor nb7vpq904m Type-C Linear Redriver Date: Thu, 01 Jun 2023 11:21:11 +0200 Message-Id: <20230601-topic-sm8x50-upstream-redriver-v1-0-6ad21094ff6f@linaro.org> MIME-Version: 1.0 X-B4-Tracking: v=1; b=H4sIAAdjeGQC/x2NywqDMBAAf0X23IUk1lD6K6WHPLZ1QWPYVRHEf 2/oceYwc4KSMCk8uxOEdlZeSgN76yCNoXwJOTcGZ1xvvLG4LpUT6vw4BoNb1VUozCiUhXcS9OS 8pZyHFO/QIjEoYZRQ0tgyZZumJqvQh4//9fW+rh+vlhFLhQAAAA== To: Greg Kroah-Hartman , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Bjorn Andersson , Heikki Krogerus , Liam Girdwood , Mark Brown , Dmitry Baryshkov Cc: 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=1610; i=neil.armstrong@linaro.org; h=from:subject:message-id; bh=Gj9gL2fn4aulvReDmQHIXohrLQK9BRznPeqnK27sFAo=; b=owEBbQKS/ZANAwAKAXfc29rIyEnRAcsmYgBkeGMW8sEJeQr6aBMdPo49JiweSYCF4uGlGNMQVEUE s5JnHDyJAjMEAAEKAB0WIQQ9U8YmyFYF/h30LIt33NvayMhJ0QUCZHhjFgAKCRB33NvayMhJ0ZkYD/ wKhk3Yy5kxZTWf9Wl0g2yyxNz3WFHTNtakQuruG2y5IstBIOGpUd4lHEuIvqxH3UDB0xwLWp+mweVN PaZwABNWAhjjcMPb0jFeVrNqT4PCV0y5QvC6qJyaX4ueetvpKRPaK3+zwjzs5CKZ7nq7p42WtjYVfj 7x4nMxw5Slno234d/dJPqurfb/wpTayMLOkoDnetGFjmheQNVcR43BiIcQYNqSwA+oNoE5hWWcEt9r JggcrhUGSJGuSRXoLx5OotKF2wKOx0ruIXFxdGpT5aVfr/AVkMYQKkupGt1VnooPuxzYyiMD2fb02l nqfHJ9RZhSa/rqT3FgmYkH+WsJy329fDRpVHZqm019GXozQ9qSaK7ke2LB4OMNfL8c0RGKRRtJvdOG kgqvn8LzR4xuiAz7UtVR/M37ldpKW89+bs/i38GdiUIIV+kzWpJa0B5j5rpR/ddfe321i5j6C1B5j5 /GzuVXCad4dh+wdYfQRqm/J9bo6ULl2qwb9UqtOfNRbwLeDS0wqeds3SEOP0kV6T0dhkqWP7giE2AN /eSGt570KSfTjsA1EW44JiLTu/fR80ghjGj/0OdCak/1Ek9gNA8cyZOwTjchxpR9l69SoF/Crld/zU Gi6AhWET6PrklPACudpCgS37Xk1bzz99GMkV3e+zKJ52vGbLjxNTXFurbLDg== X-Developer-Key: i=neil.armstrong@linaro.org; a=openpgp; fpr=89EC3D058446217450F22848169AB7B1A4CFF8AE Precedence: bulk List-ID: X-Mailing-List: linux-usb@vger.kernel.org Add support for the ON Semiconductor NB7VPQ904M Type-C USB SuperSpeed and DisplayPort ALT Mode Linear Redriver chip found on some devices with a Type-C port. The redriver compensates ultra High-Speeed DisplayPort and USB Super Speed signal integrity losses mainly due to PCB & transmission cables. The redriver doesn't support SuperSpeed lines swapping, but can support Type-C SBU lines swapping. Support is designed as a Type-C Switch and Mux, and can propagate orientation settings to the source endpoint, which is usually a Super Speed PHY which does the data lanes swapping. Bindings are added first and can handle the fact data lanes pairs can be swapped on the PCB. Compile-time dependencies: - svid removal at [1] [1] https://lore.kernel.org/all/20230526131434.46920-1-heikki.krogerus@linux.intel.com/ Signed-off-by: Neil Armstrong --- Dmitry Baryshkov (1): usb: typec: add support for the nb7vpq904m Type-C Linear Redriver Neil Armstrong (1): dt-bindings: usb: add ON Semiconductor nb7vpq904m Type-C Linear Redriver bindings .../devicetree/bindings/usb/onnn,nb7vpq904m.yaml | 141 ++++++ drivers/usb/typec/mux/Kconfig | 8 + drivers/usb/typec/mux/Makefile | 1 + drivers/usb/typec/mux/nb7vpq904m.c | 526 +++++++++++++++++++++ 4 files changed, 676 insertions(+) --- base-commit: ac9a78681b921877518763ba0e89202254349d1b change-id: 20230601-topic-sm8x50-upstream-redriver-6e261edd5cb4 Best regards,