From patchwork Thu Aug 29 18:44:24 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Abel Vesa X-Patchwork-Id: 823953 Received: from mail-wm1-f47.google.com (mail-wm1-f47.google.com [209.85.128.47]) (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 9A6831BE251 for ; Thu, 29 Aug 2024 18:44:41 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.47 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1724957083; cv=none; b=k8XENOIGuLRUodTesPCxWxLz8VKOOXbHd27HoW/AACDpvRJ0nmGkk6y01SrU2kVCQAkEub6KXReXCMUfeCRXLimvIssnb1stcF2p9Mo2/fMk71ZE3UN32Qb0mFcJxJYkNIV82rhBELdVNvdycTux0sdxIHMZncDT1LHxKns/tpk= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1724957083; c=relaxed/simple; bh=XVH+qw8w65unaRXW0f5lRb3ixXIvUxmzc94Q95ng4ZE=; h=From:Subject:Date:Message-Id:MIME-Version:Content-Type:To:Cc; b=B3V2ho49grP58/oUFv6jxKuiypRJIhy+m5lQRIZtcwER+Ij3dm5vC0T0m2jW2bd8O65pzc0w0dgTupBg2ZIgKdMKl1XiFU3X4YvmLIKw7tD7PC3IQOqzL9Ata0BT0ndGhfsAzWURV5xe3QBASCaFndlJzWu6lWxqZSRMVSJsO/U= 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=lt9wHwxd; arc=none smtp.client-ip=209.85.128.47 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 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="lt9wHwxd" Received: by mail-wm1-f47.google.com with SMTP id 5b1f17b1804b1-42bb9d719d4so2233865e9.3 for ; Thu, 29 Aug 2024 11:44:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1724957080; x=1725561880; darn=vger.kernel.org; h=cc:to:content-transfer-encoding:mime-version:message-id:date :subject:from:from:to:cc:subject:date:message-id:reply-to; bh=bPihfaKA2Ncz2MiX/m9dykVkd/DtCZT9+2T1uLNZPSE=; b=lt9wHwxdvUuoTIhgD6aGT4XXlEaa0mznpoqhHzJP9r2IjhJpHYJmPREN+4hIP7NyHY gBZkhoDTVFEBtB7GrIAR4qWia0MLjWtEOPc9k4XSa+QIRX8wbOwe07Uj9V9SR5ZTF8EL 6i/qbv1Dadvttw5k/+tJohpejHd2o4qqe6QrSkfEn7fodg8KopOeAWlEGG/sv+wz40dY 40WF42bgqfclFS+j/iHXPct3yQVs7RrNKsxeFz1HgI0mOhZfJT1HA1ZXUU1FvooCdpxU NWGl7Wky1ORP2Uwtc/hTxvzUWMZSLmcsEzTAuBnoe8JYejkmmDO6L0PZIiy2GqdMiPz6 X14Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1724957080; x=1725561880; 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=bPihfaKA2Ncz2MiX/m9dykVkd/DtCZT9+2T1uLNZPSE=; b=XVQCJPf7fLa1EpWCO/yUwJwH3lSA04GxNkTHG2BVbaw3zf4Vzx8+DIijLBfeJt+bgg z/YHc8ulRxuBI/JG3YNX/cAY36zOmePOLWFl7pRLLg96cqxnaUwBnnNri4d9enAgv9Y6 9ikg0iVGkZLmv3QZkoQc9K26o1apTJ2W3wH4vUhEFBULGIzM7QmjH9s/HlqfkPm/V3k5 D/Cc7jiqsACVWAcm1j19pmomqkVLIRKquSUC/G672ao4xmRV5xuLb/befdExkdl5Yjz+ wzX5k45K2b3LVCUjy97Isbx95luUrSjhHNPYbQp1T4/77pB1c1M9eHen4XG9cpjbVRs4 x+2g== X-Forwarded-Encrypted: i=1; AJvYcCVHVm5ltIKnDdz+S5v46hJEJQ8WNDFSKyRpJihJv/6Ap9oLIMKOcOJXDNiid2K69GzO1V1OIr9HBWk=@vger.kernel.org X-Gm-Message-State: AOJu0Yw1rj4WzbVs6cnYO+N1gtcKdK7vGkEYuiUcmN6xiyiZLo1RAdHK lxoninl2ZvOILRQisDLKthFceBMFfmjgK8nyt8G7kHMKcFIxSdD0ZS6W3AfAQxM= X-Google-Smtp-Source: AGHT+IFrgJIgqAeicEyJjTgtyNnUEWmERidm2ah//MyAABKVE0BHwAU/Z99LitUrA38Qh/UbVXPMNQ== X-Received: by 2002:a05:600c:1914:b0:42b:a356:a780 with SMTP id 5b1f17b1804b1-42bb02a8517mr32499365e9.19.1724957079716; Thu, 29 Aug 2024 11:44:39 -0700 (PDT) Received: from [127.0.1.1] ([82.79.186.176]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-42bb6e33b41sm24540885e9.40.2024.08.29.11.44.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 29 Aug 2024 11:44:39 -0700 (PDT) From: Abel Vesa Subject: [PATCH RFC 0/2] usb: typec: Add new driver for Parade PS8830 Type-C Retimer Date: Thu, 29 Aug 2024 21:44:24 +0300 Message-Id: <20240829-x1e80100-ps8830-v1-0-bcc4790b1d45@linaro.org> Precedence: bulk X-Mailing-List: linux-usb@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-B4-Tracking: v=1; b=H4sIAInB0GYC/6tWKk4tykwtVrJSqFYqSi3LLM7MzwNyDHUUlJIzE vPSU3UzU4B8JSMDIxMDUyND3QrDVAsDQwMD3YJiCwtjA90U0+Tk5ERL0yRTU3MloK6CotS0zAq widFKQW7OSrG1tQDqFIg9ZgAAAA== To: Heikki Krogerus , Greg Kroah-Hartman , Rob Herring , Krzysztof Kozlowski , Conor Dooley Cc: Bjorn Andersson , Konrad Dybcio , Rajendra Nayak , Sibi Sankar , Johan Hovold , Dmitry Baryshkov , Trilok Soni , linux-kernel@vger.kernel.org, linux-usb@vger.kernel.org, devicetree@vger.kernel.org, Abel Vesa X-Mailer: b4 0.13.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=1380; i=abel.vesa@linaro.org; h=from:subject:message-id; bh=XVH+qw8w65unaRXW0f5lRb3ixXIvUxmzc94Q95ng4ZE=; b=owEBbQKS/ZANAwAKARtfRMkAlRVWAcsmYgBm0MGNGMQDzX3Nx5DsiYFHYI6pN0gQaq2VaDNTj 7Z+byN/pdaJAjMEAAEKAB0WIQRO8+4RTnqPKsqn0bgbX0TJAJUVVgUCZtDBjQAKCRAbX0TJAJUV VrzjEACkXmp19AD7f0T1wRa6RLzrEPyfAU7fAOv55K7ac9Yu5dHsBuUU80KfJFrWjZf4EbYd4ad 4I6Vh8SBhWRaFhXxNtbKKU4otMeYCWGGRWEEzZsQAjhoXcdgR1JpuJxyZMT2kyOUI797PQJRbfe BummyVyoaRfNUYVWHJlq7jQgh2nQS8DG58CaZfeiNe/ugxxSf2TtE+JFAB3EhOVvybhUAe8hKLb axDY57mOojCq2kvUvwyTrtv/S1TF0tJdgnkbPg2C2ozskbGK0yRo+OhUQrh0AeK1ViyQTPH8gvT Oep18JCLkyH6wTybd++euBxw8lvnKw7GPf0bw6g/QNtT60Y/5qjhx/cm3NmJ4ugx4HQsvNeVx6Y 6lHSuCQmvBcCwvFydra3ynq5sV5b3j0uVMi1v0QqQF+Rw2UQzaCfnzCAyRqqKA39y0zkZBYwFmK hIhshtRpKSLKrKFIm5KIEqeaB0e6F6Qo21qTjEJozDIrDVIb2lcdEqQcrKYjtW6l71n89g6pUN4 fLe2+UZUczJBydDxk1Uq7Vv55Ljs879I4DX8yrAhKBI7VLQggDYtgJLG2BeistCm/cWTV4WgT2m arFyPihthyEXNWO3ayxk8wK8kMG6/LQepENmu9IcW78x3ncWv2GSM39sMw+6CrE7d3mGqw2lr2J gSWX9bsN33KaMOA== X-Developer-Key: i=abel.vesa@linaro.org; a=openpgp; fpr=6AFF162D57F4223A8770EF5AF7BF214136F41FAE The Parade PS8830 is a Type-C multi-protocol retimer that is controlled via I2C. It provides altmode and orientation handling and usually sits between the Type-C port and the PHY. It is currently used alongside Qualcomm Snapdragon X Elite SoCs on quite a few laptops already. This new driver adds support for the following 3 modes: - DP 4lanes - with pin assignments C and E - USB3 - DP 2lanes + USB3 Only DP 4lanes and USB3 modes have been succesfully tested on Qualcomm (X Elite) CRD and Lenovo Thinkpad T14s so fat. Devicetree patches for these 2 boards will follow. The DP 2lanes + USB3 is still work-in-progress as it might involve changes outside of this retimer driver. Signed-off-by: Abel Vesa Reviewed-by: Krzysztof Kozlowski --- Abel Vesa (2): dt-bindings: usb: Add Parade PS8830 Type-C retimer bindings usb: typec: Add support for Parade PS8830 Type-C Retimer .../devicetree/bindings/usb/parade,ps8830.yaml | 117 +++++++ drivers/usb/typec/mux/Kconfig | 10 + drivers/usb/typec/mux/Makefile | 1 + drivers/usb/typec/mux/ps8830.c | 347 +++++++++++++++++++++ 4 files changed, 475 insertions(+) --- base-commit: b18bbfc14a38b5234e09c2adcf713e38063a7e6e change-id: 20240521-x1e80100-ps8830-d5ccca95b557 Best regards,