From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from out-180.mta0.migadu.com (out-180.mta0.migadu.com [91.218.175.180]) (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 8CE7341166E for ; Fri, 31 Jul 2026 10:32:57 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=91.218.175.180 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1785493993; cv=none; b=IuIo1vO5FDzV2vTmk06+bMMlB3vytua6Df79JSDcvtS20jiZtf9Z85/NncIT9TQl7mNFKZk4ayISLLBpxB+WXbtoKpe3sfxsSYIMMrDcwWfJkm6zQC0h4nI1WkKiVTrM3/m7SA591ckqLK4oKxULXFlsR2KvCTJ+uPm82+j5WZ8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1785493993; c=relaxed/simple; bh=nFzY/g99oZncMMZ30gXXxgNKIQ6NjRvIy1dQ/1HTG+g=; h=Mime-Version:Content-Type:Date:Message-Id:Cc:Subject:From:To: References:In-Reply-To; b=m7pbhV2LjWZxHGWJ0VofgpAaOGGHSQ461LHE2Li6Nz0GZToHfcSMJsmFgw5BAR0uTJZ9+cbnyY+lUEZGXRY/JfOv/fbjhlIV9Nzu7qdUvpKvO5pvDEnISReUFo+Ml85enB9hkqpSloK6IzPeggztj9OIMr4APRHhPWgMVldh+9k= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=cknow-tech.com; spf=pass smtp.mailfrom=cknow-tech.com; dkim=pass (2048-bit key) header.d=cknow-tech.com header.i=@cknow-tech.com header.b=Lv4Fq626; arc=none smtp.client-ip=91.218.175.180 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=cknow-tech.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=cknow-tech.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=cknow-tech.com header.i=@cknow-tech.com header.b="Lv4Fq626" Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cknow-tech.com; s=key1; t=1785493969; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=uuRw5hJ2mftHt1u3eDzEgfPNP6kuHelSAGaazRJn7TM=; b=Lv4Fq626JJBk/C3kc8zkrhqDPdUjL6bzyFEeyMQaBLrw1+uxbdtBz7qhsf/5sU16eP0lkl sM7bvwh9C1aeBzNbIXFTt9X3TnZu40JdLyC9Q5OpkjaSjZxxAyhKr/8wlGfnlN+6mAESl9 wTJnhv5EtsG/+7LZloPJteLS28VJCfPSHqy33X6SSMvRAzL7oLixWdrV+X7RCEmC3p0AR0 Y91AxOxqQR1FezH9v33+gOEDQZoTSWfnpSp7iFWcdB+igEBKy8L82X9wlQBmVOUvUP4r5V NWV9oS45FLj6cawfvdMEcckv+bN9jkZkD0ribPfYbdINDH08cF3zfKcZ/bjsBA== Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=UTF-8 Date: Fri, 31 Jul 2026 12:32:44 +0200 Message-Id: Cc: , , , Subject: Re: [PATCH v4 0/2] phy: rockchip: inno-hdmi: Change TMDS rate handling to configure() ops X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. From: "Diederik de Haas" To: "Jonas Karlman" , "Vinod Koul" , "Neil Armstrong" , "Heiko Stuebner" References: <20260518180722.2480799-1-jonas@kwiboo.se> In-Reply-To: <20260518180722.2480799-1-jonas@kwiboo.se> X-Migadu-Flow: FLOW_OUT On Mon May 18, 2026 at 8:07 PM CEST, Jonas Karlman wrote: > This series adds support for using phy_validate() and phy_configure() > with this HDMI PHY as an alternative to current in-tree unused way of > using PHY bus width to configure the TMDS character rate. > > The only known users that calls phy_set_bus_width() on this PHY are my > out-of-tree HDMI 2.0 patches for Rockchip RK3228/RK3328, i.e. those > originating from LibreELEC (also carried by other distros), the > downstream vendor kernel uses a different implementation that also calls > phy_set_bus_width() on this PHY. Tested-by: Diederik de Haas # Rock64 > Patch "drm/rockchip: dw_hdmi: Configure HDMI PHY in atomic_mode_set()" > that calls phy_validate() and phy_configure() on this PHY can be found > at [1]. > > [1] https://lore.kernel.org/dri-devel/20260510183114.1248840-10-jonas@kwi= boo.se/ > > This series is part of a larger multi series effort to: > - phy: rockchip: inno-hdmi: Change TMDS rate handling to configure() ops = [v4] > - drm/rockchip: dw_hdmi: Misc cleanup and propagate bus format [v2] > - drm: bridge: dw_hdmi: Misc enable/disable, CEC and EDID cleanup [v7] > - drm/bridge: dw-hdmi: Improve input/output bus format handling > - drm/bridge: dw-hdmi: Convert to a HDMI bridge and use of bridge connect= or > - drm/bridge: dw-hdmi: Add and use tmds_char_rate_valid() plat data ops > - drm/meson: hdmi: Misc cleanup and use CEC notifier helpers [v1] > - drm/rockchip: dw_hdmi: Enable YCbCr and Deep Color modes > Link to snapshot: https://github.com/Kwiboo/linux-rockchip/commits/next-2= 0260518-rk-hdmi-v5/ > > Changes in v4: > - Add NULL opts check in validate() > - Only store the opts->hdmi.tmds_char_rate value for later use > - Move comments about expected consumer usage from inline to above the > functions > Link to v3: https://lore.kernel.org/linux-phy/20260515195512.1757363-1-jo= nas@kwiboo.se/ > > Changes in v3: > - Change validate() ops to only validate tmdsclock > - Add comments about expected consumer usage > - Update commit message with a typical call chain > Link to v2: https://lore.kernel.org/linux-phy/20260510095731.1222705-1-jo= nas@kwiboo.se/ > > Changes in v2: > - Split into two patches, one that adds new ops and a second that remove > the old and unused workaround > - Add validate() ops to validate that the TMDS rate is supported > Link to v1: https://lore.kernel.org/linux-phy/20260503172936.194003-1-jon= as@kwiboo.se/ > > Jonas Karlman (2): > phy: rockchip: inno-hdmi: Add configure() and validate() ops > phy: rockchip: inno-hdmi: Remove deprecated way to configure TMDS rate > > drivers/phy/rockchip/phy-rockchip-inno-hdmi.c | 71 +++++++++++++++---- > 1 file changed, 58 insertions(+), 13 deletions(-)