From patchwork Mon Feb 5 11:24:23 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Cristian Ciocaltea X-Patchwork-Id: 19926 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7301:168b:b0:106:860b:bbdd with SMTP id ma11csp809283dyb; Mon, 5 Feb 2024 03:26:35 -0800 (PST) X-Google-Smtp-Source: AGHT+IHm6c6uRpHP2uHPgG5RzwLgXmZXawrBURekkuS+HDIlNU+1zD4nxfcpRmQFjokj5iNcmn8I X-Received: by 2002:ae9:e604:0:b0:781:5fbf:eeb4 with SMTP id z4-20020ae9e604000000b007815fbfeeb4mr13220079qkf.37.1707132394879; Mon, 05 Feb 2024 03:26:34 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707132394; cv=pass; d=google.com; s=arc-20160816; b=pyh49lpJjss5ou8Fb20asaeBMr5ZqX8i3qcwVRH1CXJCbOYkeOEibIXOlHhZO9u5Bz sLt3i1nYA1FbeCPBFAwJh+WeJmLBeyMdsQh2KiuUCH++uCqKU577wRxsHcHzhdjQ1IiA tRAkENBCNrG4RL7/LD2PEk/k9QWNe+Ry8gynIc0sGAVHMn/2CU+QXpKfQkMd0rNL9gRW TL0jj38D4cecOFogce0UanqsdGTX0iQeIbQpdCFZkL0/oCWZGlIrDv3aV+nXI7N33SRb NMszcnzzpYV/sA8fOgeUE1RVaY48zGtyHDBNdq1/zMd2ovZYEjvKrqZiD6oL0mK500c7 vx7A== 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=N9KjUzP4HENHlfM5Po+3sGM0kwugVTjxa49DXUo1j7E=; fh=IdZsDm0hetElaKAXVceD8JhGedWT2mQ8UmoEQmupv/4=; b=bph0tNCac23mD+pILdg/BxJhKD4eyiXTlqzWYaz6XKL2nvshlegRgfF3Bx4FYN8zYW X8xyC92uCXNCnW6cIlLke9O2DPEbn1mrornCJ7xNG3JAB44MyK/zfdJFl+KF2HhtX8xg zgHfTsJDHEzWOpXxJtrwhjjP5jVDCmD7rL0HRi/ywS8z9h35eRIxYgfAdpQtQGGeXv33 71+WfQ1hOgiHsz6M+o6jYZa6Lrne4wu22CvXBuNE5IRO/+Z2GvnGxf4SEJ0nhs7Unwkm +gTI7TgKdZj3YOBdaF5R1p51Tdsa0tStlKWKWkc2d36wAb5PvaATRYfQHVBewRCd0B9D cFkQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=TgPAjrgS; 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-52479-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-52479-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.com X-Forwarded-Encrypted: i=1; AJvYcCWg9rEEYOMIRMB8D2zb9n3mI/NzmjjbQCOOsjgght5Tc2Ik8jSMQ6hXPJ2vrT13qYOnkrBIsAeH+Gx6/fK5V8WqMAhHdA== Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id c28-20020a05620a135c00b00783b5c83466si8177685qkl.336.2024.02.05.03.26.34 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 05 Feb 2024 03:26:34 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-52479-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=TgPAjrgS; 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-52479-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-52479-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 9B1481C216EC for ; Mon, 5 Feb 2024 11:26:34 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id B3216199B0; Mon, 5 Feb 2024 11:26:09 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=collabora.com header.i=@collabora.com header.b="TgPAjrgS" 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 455A91864D; Mon, 5 Feb 2024 11:26:05 +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=1707132366; cv=none; b=OOiM/2oCuj0G/puaRT1x8SeRYQSuYBkNV0QmGl0hnRRPVGMpm08T2fyBI1SaBvUD4UEpNhpLpiOvwD07YrTrZMbYehqFZERs88RGh1e5AgRLyKcroHFvbdrNei+KhTSAkZaHOT4Phk+O02Uxikn8uxWBH5oxv8IUCLTEX2bW1o4= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707132366; c=relaxed/simple; bh=HEFTrisHcwP/RUwGwlzUD3rlgftR0EEubBnkx8n5Y6o=; h=From:Subject:Date:Message-Id:MIME-Version:Content-Type:To:Cc; b=MboTGskkyWWIyR+ev6cfjbyFBsrP0Fk2FAW0YfLIVSGDhrrBYpEdulkAsyuJABnPPzrchEJCEQpVSTR4uK5Ze40zUOVqz3wFaWkWBAFh1H9Wbua9sDZC7zj90x7mhlMoywIGlOcZjVP4s8bijg0AEoNr4dqq2Q4/ib3QFsj91cs= 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=TgPAjrgS; 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=1707132361; bh=HEFTrisHcwP/RUwGwlzUD3rlgftR0EEubBnkx8n5Y6o=; h=From:Subject:Date:To:Cc:From; b=TgPAjrgSt35SPVjCcqmmPj/tSXqjAbk4HD7ypkMPNnq4uEeG5UaPfN8sK25450VLM 9ilvuQHdgHWsdP8Ex2CLGEJ4muZ5Wqg5mdflZpGZmexoLCZljKlu53z3UcVKAzI6t+ M4Vd2668bc2SY90W4XseI8Kch8rde3ufYGM1jq7scSs0zRf850H4NSeDiZSiDw7puZ xjbw/jXIwYAXG271YafuGuMxXYrI3nKU+VtyP9Ljy2a9UL4y6nIOGbGSI2Qa4I7Q6G m9l0P16ACm/R2HsCIOEz+Edk+360NJ/4F4ntM0cmC3mS3cEBSZerJV7kW/JwzhnxXt MeVQ3O2adLQkQ== 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 F1332378107C; Mon, 5 Feb 2024 11:26:00 +0000 (UTC) From: Cristian Ciocaltea Subject: [PATCH v2 0/2] Add support for RK3588 HDMI/eDP Combo PHY Date: Mon, 05 Feb 2024 13:24:23 +0200 Message-Id: <20240205-phy-hdptx-v2-0-a7150814c047@collabora.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-B4-Tracking: v=1; b=H4sIAGjFwGUC/6WOQQqDMBBFryJZN5JEkdhV71FcjHFsBtTIREQR7 97oqvsuHzze/4eIyIRRPLNDMK4UKUwJzCMTzsP0QUldYmGUKZU2Vs5+l76bl01aqC20leq0RZH 8mbGn7W69m8Q9h1EunhF+CrrWdWFVlWtVKKNLqaVjigvBlDsKDoYF4eXCMEAbGHIXxqvtkxJ4v 2+u+lr4o9ec5/kFnws8avkAAAA= To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Heiko Stuebner , Johan Jonker , Sebastian Reichel , Cristian Ciocaltea , 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 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1790058058063614176 X-GMAIL-MSGID: 1790058058063614176 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 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 | 1040 ++++++++++++++++++++ 4 files changed, 1140 insertions(+) --- base-commit: 596764183be8ebb13352b281a442a1f1151c9b06 change-id: 20240128-phy-hdptx-8a98ab60d18e