Message ID | 20240212-phy-hdptx-v3-0-2cde680cd024@collabora.com |
---|---|
Headers |
Return-Path: <linux-kernel+bounces-62231-ouuuleilei=gmail.com@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:bc8a:b0:106:860b:bbdd with SMTP id dn10csp118876dyb; Mon, 12 Feb 2024 11:16:58 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCW5PrNp4MPT6jZ28wqwWybN0BdiqmAmxGbGfSGtTi0cIa1WDXEZ29XHJcDZ1mHl6Ze4BBBkZsNoJmFSwSLvjKk9Ez/4Ug== X-Google-Smtp-Source: AGHT+IG0IniRzzyZFo2LeGsjYMvfhlb3jK9/v3kO0YYnyILTR8nA+VYnEvUoFOAbpT8oRzkmZ7kC X-Received: by 2002:a17:902:bc4b:b0:1d9:b751:4752 with SMTP id t11-20020a170902bc4b00b001d9b7514752mr7029266plz.62.1707765418143; Mon, 12 Feb 2024 11:16:58 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707765418; cv=pass; d=google.com; s=arc-20160816; b=eR2FxldeQQeAptIkjdTTCezjgbd/3izN16D1/psiR5L95+NixJAxCOjtpw6OIJ2buO bfP4co8wTzlSJ88nrzKJGyyEiJ+5Y+xMYhJYa9m9tL8pMYmDTaNwaM3fliGQYY6xLCBm DwsZLH5dyjrLzOX4bWiiOwG1ozwF6KXw8Fe87weDzXaEbCIL2+z1QKcT3LxStWz9gRe5 aSGahtBh+QdlBOJSIj4WxOt4kp6Vxs9ttTNp2iGfVu0zRWp9m7co/mt7pvYsCTW/IIWz WcDazMDAYVUVRYU3DCUhWlVRO/4sG3XgSFMXR3Gb14OzM+DU4+CIexb6wDhyefYKDIV/ psTQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:from :dkim-signature; bh=nyes0m0nvBqvt/hS0H/qmXnmEY/0PBWrVlBgBVYMGuE=; fh=MjF/c9jsilfydzNiGaNnmp59xofcb+l/ZSOp+JGA038=; b=sCDq9ytykmzNxzKeSJp0NHL3aXVFy6aNgd5P8CE4ZLmjmhN+sX4zIfP70r3hAf9EYA dKvvW6CVIXzInf3h1at4yHwQcSieCYUnp+AHrpIHF/lGzi3ZVVu5etWyga/DONtIqmWU SVgAdhAVvNtJ/BlGLgrJpKev2EuL43f2B1MlMwF2BIY1k1gqLJsRLLP4hsLkfRpmiurR qGYAncGQN2FyHwmqrA98D7p5qQkXfcJUcaAMldkZKeyX7qxNOZhkT5sPB3XQEhO10iJC OlMtFpcKXq6nfUP+eZmwrKTGxrkCMxIen0QwCnMJ/9SAQZN9eEMiN5nLeFvHaVyxZ1AE SmGw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=pqnR+JiL; arc=pass (i=1 spf=pass spfdomain=collabora.com dkim=pass dkdomain=collabora.com dmarc=pass fromdomain=collabora.com); spf=pass (google.com: domain of linux-kernel+bounces-62231-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-62231-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.com X-Forwarded-Encrypted: i=2; AJvYcCXd6EK1N8OOPb4S/LETaZ8wOc9GsebPImlQHxiS6vWF8Llt2ywcVWhVP7OMhz8l+rDZVGihTCcHWkt5YJfb7AIjTCUX/g== Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id s16-20020a170902ea1000b001d93b748a55si641469plg.25.2024.02.12.11.16.57 for <ouuuleilei@gmail.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 12 Feb 2024 11:16:58 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-62231-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=pqnR+JiL; arc=pass (i=1 spf=pass spfdomain=collabora.com dkim=pass dkdomain=collabora.com dmarc=pass fromdomain=collabora.com); spf=pass (google.com: domain of linux-kernel+bounces-62231-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-62231-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id 12E1EB233CF for <ouuuleilei@gmail.com>; Mon, 12 Feb 2024 18:53:36 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id DADE34642B; Mon, 12 Feb 2024 18:53:12 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=collabora.com header.i=@collabora.com header.b="pqnR+JiL" Received: from madrid.collaboradmins.com (madrid.collaboradmins.com [46.235.227.194]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id A2B7941C87; Mon, 12 Feb 2024 18:53:08 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=46.235.227.194 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707763990; cv=none; b=RALEd2YlfrJVQVPHaNQKyCpqdolvKhMx/tS2i3ulRRxet+3r+L7dYYqdjhh+LqWwHEI7akI28wIHHR1q6UskXi0Wg+K3qQBEQbv2EadfcwaHZgVqDrZmPOFSaxfbvqJ2mGm99IH35gsc2wSJXbipSNxPpadBgNT168MOvVUIL8Y= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707763990; c=relaxed/simple; bh=7nBNtyOe9B7di3tlfXkDPiWXRmeY0kYi18klzwAbx7M=; h=From:Subject:Date:Message-Id:MIME-Version:Content-Type:To:Cc; b=SFF7JUghCQbArIwGhvh0KwWW0f7ecQhsg5EBBfX7sRHjon7dLshOWbuuZJek2pPQw7bspqDz1w1UC1C2RQM2COoVGyG8F+fqe2kL6bVX8quy/7OA5Awd0IINrqW1ZdzDak0cL7EVxRDugeVb7rJtNkFD15196M6uri8kPfph1d8= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=collabora.com; spf=pass smtp.mailfrom=collabora.com; dkim=pass (2048-bit key) header.d=collabora.com header.i=@collabora.com header.b=pqnR+JiL; arc=none smtp.client-ip=46.235.227.194 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=collabora.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=collabora.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1707763986; bh=7nBNtyOe9B7di3tlfXkDPiWXRmeY0kYi18klzwAbx7M=; h=From:Subject:Date:To:Cc:From; b=pqnR+JiLiFvgv1Kduw36CAl7PtOEjrU2Qg1ijPxf8BpEuVsk6/mFsV6Dnc/y6xEzv z2DUMWYek26avU3H837Uh2E89fLMSxkcgn0Z+w5cZWYLKTJYNFpLUPOah44HM4fZBs R7RcYFqdQQpvOnptNofsr5L16RVzML/J183dPhyRQoQPOrCcMDxB5po8iT4KCrraMz +NoRMIelwcoPGJl35Q3fJFb7m9raQRu/xsgG+6oKJ2ANtsMXIKOBLAiE00FIueZRPj Ha8EOtzYqHDp9LD1/lI1YufgREeYc6UUaq599MI0gD6I3BDUZz9Y1M3TKWBANXSS4D 9xVuSSR2LrZSw== Received: from localhost (cola.collaboradmins.com [195.201.22.229]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (prime256v1) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: cristicc) by madrid.collaboradmins.com (Postfix) with ESMTPSA id 977C63782059; Mon, 12 Feb 2024 18:53:06 +0000 (UTC) From: Cristian Ciocaltea <cristian.ciocaltea@collabora.com> Subject: [PATCH v3 0/2] Add support for RK3588 HDMI/eDP Combo PHY Date: Mon, 12 Feb 2024 20:52:28 +0200 Message-Id: <20240212-phy-hdptx-v3-0-2cde680cd024@collabora.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: <linux-kernel.vger.kernel.org> List-Subscribe: <mailto:linux-kernel+subscribe@vger.kernel.org> List-Unsubscribe: <mailto:linux-kernel+unsubscribe@vger.kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-B4-Tracking: v=1; b=H4sIAOxoymUC/6WPQQ6CMBBFr2K6dshMqVJceQ/jYijFNkFKSkM0h Ltb3GjcunzJn/f/LGKy0dtJnHaLiHb2kw9DhnK/E8bxcLPg28xColRIUsPonuDaMT1Ac625OWJ L2oqcH6Pt/OPtulwzdzHcIblo+ctANdWlxmNBWKIkBQQm+il5Hgrjg+E+WT6b0PfchMiFCffN7 XIkxOd75kxbwx++bdwsPxKJh6+3ZgkIXNEBNSmDqvq9Xtf1BbKtoQc3AQAA To: Rob Herring <robh+dt@kernel.org>, Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org>, Conor Dooley <conor+dt@kernel.org>, Heiko Stuebner <heiko@sntech.de>, Johan Jonker <jbx6244@gmail.com>, Sebastian Reichel <sebastian.reichel@collabora.com>, Sascha Hauer <s.hauer@pengutronix.de>, Andy Yan <andy.yan@rock-chips.com>, Vinod Koul <vkoul@kernel.org>, Kishon Vijay Abraham I <kishon@kernel.org>, Philipp Zabel <p.zabel@pengutronix.de>, Algea Cao <algea.cao@rock-chips.com> Cc: devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org, linux-kernel@vger.kernel.org, linux-phy@lists.infradead.org, kernel@collabora.com, Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> X-Mailer: b4 0.13-dev-a684c X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1790721831355174465 X-GMAIL-MSGID: 1790721831355174465 |
Series |
Add support for RK3588 HDMI/eDP Combo PHY
|
|
Message
Cristian Ciocaltea
Feb. 12, 2024, 6:52 p.m. UTC
Add driver and bindings to add initial support the Rockchip HDMI/eDP TX Combo PHY found on RK3588 SoC. The PHY is based on a Samsung IP block and supports HDMI 2.1 TMDS, FRL and eDP links. Please note that currently only the TMDS related functionality has been implemented. This has been tested on Radxa ROCK 5B and Rockchip EVB1 boards. Changes in v3: - Collected R-b & T-b tags from Heiko - Converted all *_REG() args to lowercase (Vinod) - Dropped unnecessary register read/write wrappers (Vinod) - Added rate overflow check in hdptx_phy_clk_pll_calc() (Luis) - Link to v2: https://lore.kernel.org/r/20240205-phy-hdptx-v2-0-a7150814c047@collabora.com Changes in v2: - Rebased series onto next-20240129 - Removed patch 'dt-bindings: soc: rockchip: Add rk3588 hdptxphy syscon' already applied by Heiko - For consistency with SoC TRM, replaced all references to DP with eDP - Updated PHY schema per Krzysztof's review; also collected his R-b tag - Dropped FRL, EARC and 10-bit color depth functionality until the HDMI configuration options become available in PHY API - Squashed lots of regmap_write operations via regmap_multi_reg_write (Sebastian) - Introduced parametrized {CMN|SB|LNTOP|LANE}_REG() macros to replace the long list of register defines - Optimized handling of the config arrays by using ARRAY_SIZE() (Sascha) - Link to v1: https://lore.kernel.org/r/20240119193806.1030214-1-cristian.ciocaltea@collabora.com --- Cristian Ciocaltea (2): dt-bindings: phy: Add Rockchip HDMI/eDP Combo PHY schema phy: rockchip: Add Samsung HDMI/eDP Combo PHY driver .../bindings/phy/rockchip,rk3588-hdptx-phy.yaml | 91 ++ drivers/phy/rockchip/Kconfig | 8 + drivers/phy/rockchip/Makefile | 1 + drivers/phy/rockchip/phy-rockchip-samsung-hdptx.c | 1028 ++++++++++++++++++++ 4 files changed, 1128 insertions(+) --- base-commit: 596764183be8ebb13352b281a442a1f1151c9b06 change-id: 20240128-phy-hdptx-8a98ab60d18e