Received: by 2002:a05:7412:2a91:b0:fc:a2b0:25d7 with SMTP id u17csp512829rdh; Wed, 14 Feb 2024 03:56:42 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCV3h7WhA7e9Oy25vQz3a95LFlJ1D+6ILnrWsvPtTblrT+b/Skn7cWHJo1wUoejosNPGw6XhkMeST6Q3CkOEjtD0eBHLYOGD1wyqGLqKmA== X-Google-Smtp-Source: AGHT+IHpPAL4hpm00VEpvqPYmv8pvaz2FNVa5cHDAe6kgR665eEuyd7jvbyfHpE5RXgUUXaGQadG X-Received: by 2002:a05:6402:5286:b0:563:8718:afa7 with SMTP id en6-20020a056402528600b005638718afa7mr1033727edb.12.1707911801955; Wed, 14 Feb 2024 03:56:41 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707911801; cv=pass; d=google.com; s=arc-20160816; b=fMb69tonbl/yn6F96kfN/d2w9YwDhbKhKgrkglCI2KfCufWXJYX6J1RQqXzHFjK1eg MY14f17AjzUoY3phQb9ZYUGBCIW5sTd7Cim+y+qDLZU/Nqjdi41YErN30HQP5YbhnvAK nGsL+TZFKFEwJywN1jWQgL2rbwc5/G1LyEiq2XAKYpYDrKD+0f7gtNBXZev0xbeyn48u v30qI36JL1Qefl5d4Grq0esVTT1X2sAXWAwpmJw6H1MSXeQISrdGieccqIi47AZqdVnW axaSsN0VYmtXHcQLZmz9qeJSPReBsa2QCzNwpdcgZc5B/sOMUg3PoROWW7wFgtndqzFE sM3w== 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=wk/yvac68KApX3QCxVFNWDnL3uuzD5WQyNBDkyO4nBU=; fh=zbvc06+z6j0p6LeXJhJeQqQ8G55zNeqSjHcz0x/m+0I=; b=gwzznCAujwU4DMPg7dJJu044p8xwsLm0uaYWsE6UVM7M7QzNzNTU0WjtxwcbcDDdm7 As244QCi8UFIyfch89bTeKP1a6pqvTsih8eH7VOYyu77tssZEjzX36RYsbj/Ylzj7QsS MstRFuA/p/CRd7N8nrqeduwy6akWapzl8Dfk5B5N0d0XaA7Y90FXB8mIk4dA9uU863fj ip5Vvv8lrSK9FYkhpplZb+lxsjRffov+XRWCoR7Q/FfzOxMwpJ8Prq2q2qfahSl0OuJW ibV/QRI/W+LG142qpTnGe/sM6rp+wo4NOixHBJKOmXvZYM5tAs6nvot+di9kd6JZvTzx PaqQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=YA70RvpR; 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-65157-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-65157-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.com X-Forwarded-Encrypted: i=2; AJvYcCVQGHlqqs0g+bHhzoF6eZxjTqBD9+0ayxzH2s11NxYIwCyqohnLzIUqiC+Op5TgMO6qAjG+PdzJK4FjhpL5zbboHsqcs/KRQHqXtZOYdQ== Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id o8-20020aa7d3c8000000b00561b9400511si2851342edr.307.2024.02.14.03.56.41 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 14 Feb 2024 03:56:41 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-65157-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=YA70RvpR; 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-65157-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-65157-linux.lists.archive=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 am.mirrors.kernel.org (Postfix) with ESMTPS id 68D021F2A2FE for ; Wed, 14 Feb 2024 11:46:56 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 5905E1AACE; Wed, 14 Feb 2024 11:46:42 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=collabora.com header.i=@collabora.com header.b="YA70RvpR" 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 D60A218EB9; Wed, 14 Feb 2024 11:46:39 +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=1707911201; cv=none; b=sVvVOdqYqJ3CXK4E1nSVCbxLpEIR57zvXJ7lO2bcLRCqAtArisd1ul44JVcqwK+9PLpZFkmwyP4MzrcOzs3xN1DkKB5IfraBCr/u0nsMXKI4VWuhwjbfWf9mbBPrSpg8hkJgq+h+ekhw25p3vFIPi2L3Cm/l0AHSz70umv2FyIo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707911201; c=relaxed/simple; bh=jvl3Y+wH/gfbOOMoVy7joBUO4CawoZUoJ7kw1HD0z/U=; h=From:Subject:Date:Message-Id:MIME-Version:Content-Type:To:Cc; b=MNwOpVzrFYaXM+bfhLsrCY1wMZit4b/lAELclDX7cTvGt81t7TtAPs/8uyZE6wisqvuKJqL4tmdUVB6gcyHcbQWE8yhq2Eh/AenlYUf9qS9SUBRU/rC+pFK931U1spV4PzcriFTA0mBfXrvnCziTPjyRNXsjPjjDAaxQJF9n2fk= 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=YA70RvpR; 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=1707911198; bh=jvl3Y+wH/gfbOOMoVy7joBUO4CawoZUoJ7kw1HD0z/U=; h=From:Subject:Date:To:Cc:From; b=YA70RvpRZSuQsZE/wvgVmxVw45f0rXLs1tzxXs8bLKLUP9AAeBHDmszfK4g7Z9rzM pH6rRBh3vkUoWFAlaD6C0kde9ObclosTzemb+pih8zB2DTRmYucPsoABSUiZZRb+k2 7fMkq/pk01jgSz2yyrwPzaxAbvFbAYGutm4b5VpNCaDYqygBOMrhPCyGuw2nifwT9s ymoZZi+WYj0afGQzgYIQfgcauusscL0U6I9Sw3UDsXy4nDj1nby0dZ63kmeVLOx5kX wXd/yjUWOlJILX0Loah1ucl3ufmj5z5TFF6CC5z+clt+x7LLH2YzsANmoVgnvhT7kJ SXoYHO42DCx8g== 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 BF758378045F; Wed, 14 Feb 2024 11:46:37 +0000 (UTC) From: Cristian Ciocaltea Subject: [PATCH v4 0/2] Add support for RK3588 HDMI/eDP Combo PHY Date: Wed, 14 Feb 2024 13:45:35 +0200 Message-Id: <20240214-phy-hdptx-v4-0-e7974f46c1a7@collabora.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-B4-Tracking: v=1; b=H4sIAN+nzGUC/6WPQY7CMAxFr4KyxpWdhpKy4h5oFiYxJFJpqrSqQ Kh3n5TNVKPZzfLL/z3bbzVKjjKq0+6tssxxjKkvwex3ygXu7wLRl6w0aoOkLQzhBcEP0xMst5a vDXqyokp/yHKLz4/r8lXyLacHTCELbwzUUltbbCrCGjUZIHA5jlPkvnIxOe4m4bNLXcfXlLly6 bG6Q6mk/PqcOdO64R++9bhZ/0g0HjZvzRoQ+EgHtGQcmuNfdL2hSW/putDaeWksOl/mv+llWb4 Bo3cFUXUBAAA= To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Heiko Stuebner , Johan Jonker , Sebastian Reichel , Sascha Hauer , Andy Yan , Vinod Koul , Kishon Vijay Abraham I , Philipp Zabel , Algea Cao 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 X-Mailer: b4 0.13-dev-a684c 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 v4: - Used consistent naming by replacing hdptx_*/rockchip_* with rk_hdptx_* (Johan) - Link to v3: https://lore.kernel.org/r/20240212-phy-hdptx-v3-0-2cde680cd024@collabora.com 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