From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-m127164.xmail.ntesmail.com (mail-m127164.xmail.ntesmail.com [115.236.127.164]) (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 ED7DA4B3364; Mon, 19 Oct 2026 10:33:59 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=115.236.127.164 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1792406043; cv=none; b=mlWsMDUm2vVfJ/MUUopMAin8n/EeaQfwhreHtaZzJjnf0k2sMqAuLR5KAeTWr/efrm6+jyp7Pu/eA6EOaC0+hPbXY8vYWrfqsdca0rCs10cII8kptFGJKuKn6psDJzkVOq9spO5mfC953qNW7Xrz8RFoAdI2CkebtgTcBZ2ByTA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1792406043; c=relaxed/simple; bh=ludcRUnZPT6gAIzKy1cw93hULrOdA1t1p0ac7pqLiDk=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version; b=DxYABwhJvngcE3wbQoQbkcc4gR5VpG07Id7H+ieHclz6s1twGfA6/nkDraHOI5nRJgxQBzJDxqcJZRSLBVWAWqKQve/GWnhkjT4fBWnwIEY9bwRi7AKSq1ezomXyRGmM11B5xBwtV1iMHz88kLDp0s4sSVMCmVx06tkr3i3dZoI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=rock-chips.com; spf=pass smtp.mailfrom=rock-chips.com; dkim=pass (1024-bit key) header.d=rock-chips.com header.i=@rock-chips.com header.b=NeVTMvm6; arc=none smtp.client-ip=115.236.127.164 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=rock-chips.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=rock-chips.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=rock-chips.com header.i=@rock-chips.com header.b="NeVTMvm6" Received: from zyb-HP-ProDesk-680-G2-MT.. (unknown [61.154.14.86]) by smtp.qiye.163.com (Hmail) with ESMTP id 518d3dd84; Mon, 19 Oct 2026 18:28:41 +0800 (GMT+08:00) From: Damon Ding To: Sandy Huang , Heiko Stuebner , Andy Yan , David Airlie , Simona Vetter , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Vinod Koul , Andrzej Hajda , Robert Foss Cc: Neil Armstrong , Manivannan Sadhasivam , Laurent Pinchart , Jonas Karlman , Jernej Skrabec , Luca Ceresoli , Dave Jones , Dmitry Baryshkov , dri-devel@lists.freedesktop.org, linux-rockchip@lists.infradead.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-phy@lists.infradead.org, Damon Ding Subject: [PATCH v2 0/6] Add eDP support for RK3568 Date: Mon, 19 Oct 2026 18:28:18 +0800 Message-Id: <20261019102824.3157044-1-damon.ding@rock-chips.com> X-Mailer: git-send-email 2.34.1 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-HM-Tid: 0aa153b4d21803a8kunme348c01b2f6c0b X-HM-MType: 1 X-HM-Spam-Status: e1kfGhgUHx5ZQUpXWQgPGg8OCBgUHx5ZQUlOS1dZFg8aDwILHllBWSg2Ly tZV1koWUFITzdXWRgWCB1ZQUpXWS1ZQUlXWQ8JGhUIEh9ZQVlCT0JIVktOGBhMGkweSh9JS1YVFA kWGhdVEwETFhoSFyQUDg9ZV1kYEgtZQVlNSlVKTk9VSk9VQ01ZV1kWGg8SFR0UWUFZT0tIVUpLSE pKQk1VSktLVUpCWQY+ DKIM-Signature: a=rsa-sha256; b=NeVTMvm6b/1u8YkojplkAi/G3NWF11vZKYvAIj6kJDzvLm06em+sn2BDCG2b2RHd0ubXpphbNOAScPy+tuvi8AGPpPemSwm2Unn4it0YiB5Uc4KBh0x2JAuSvSXCNhnmjXhyHSSGo5n6cAXn0H2HDPo1REq+kEwK1w9jmpy5Vs0=; c=relaxed/relaxed; s=default; d=rock-chips.com; v=1; bh=617Ri5C4UzxIoL/xXhlNBV+ngcvt66tB3mFH89EiNfY=; h=date:mime-version:subject:message-id:from; PATCH 1 is to document the "rockchip,rk3568-edp" compatible in the Rockchip Analogix DP binding. PATCH 2 is to add the binding for the RK3568 eDP PHY with NaNeng IP block. PATCH 3 is to add the RK3568 support for the Analogix DP bridge driver. PATCH 4 is to add the driver for the Rockchip eDP Transmitter PHY with NaNeng IP block. PATCH 5 is to add the RK3568 support for the Rockchip Analogix DP driver. PATCH 6 is to add the eDP controller and eDP PHY nodes for the RK3568 SoCs. Tested on RK3568 EVB1 baord with LG eDP panel LP079QX1-SP0V. &edp { avdd-0v9-supply = <&vdda0v9_image>; avdd-1v8-supply = <&vcca1v8_image>; force-hpd; status = "okay"; aux-bus { panel { compatible = "edp-panel"; backlight = <&backlight>; power-supply = <&vcc3v3_lcd0_n>; no-hpd; port { panel_in_edp: endpoint { remote-endpoint = <&edp_out_panel>; }; }; }; }; }; &edp_in { edp_in_vp0: endpoint { remote-endpoint = <&vp0_out_edp>; }; }; &edp_out { edp_out_panel: endpoint { remote-endpoint = <&panel_in_edp>; }; }; &edp_phy { status = "okay"; }; &vp0 { vp0_out_edp: endpoint@ROCKCHIP_VOP2_EP_EDP0 { reg = ; remote-endpoint = <&edp_in_vp0>; }; }; Damon Ding (6): dt-bindings: display: rockchip: analogix-dp: Add support for RK3568 dt-bindings: phy: Add rockchip,rk3568-edp-phy drm/bridge: analogix_dp: Add support for RK3568 phy: rockchip: Add support for Naneng eDP phy drm/rockchip: analogix_dp: Add support for RK3568 arm64: dts: rockchip: rk356x: Add eDP controller and phy nodes .../rockchip/rockchip,analogix-dp.yaml | 25 +- .../bindings/phy/rockchip,rk3568-edp-phy.yaml | 59 +++ .../devicetree/bindings/soc/rockchip/grf.yaml | 15 + arch/arm64/boot/dts/rockchip/rk356x-base.dtsi | 41 ++ .../drm/bridge/analogix/analogix_dp_core.c | 1 + .../gpu/drm/rockchip/analogix_dp-rockchip.c | 24 +- drivers/phy/rockchip/Kconfig | 10 + drivers/phy/rockchip/Makefile | 1 + .../phy/rockchip/phy-rockchip-naneng-edp.c | 435 ++++++++++++++++++ include/drm/bridge/analogix_dp.h | 2 + 10 files changed, 611 insertions(+), 2 deletions(-) create mode 100644 Documentation/devicetree/bindings/phy/rockchip,rk3568-edp-phy.yaml create mode 100644 drivers/phy/rockchip/phy-rockchip-naneng-edp.c --- Changes in v2: - Apply the lane-dependent TX configurations in set_lanes() instead of set_rate(), and store the lane count for set_voltages(), since the Analogix DP core issues separate phy_configure() calls and the lane count is only valid in the set_lanes/set_voltages calls.(Sashiko) - Initialize val to zero in rockchip_edp_phy_enabled() to avoid using an uninitialized variable when regmap_read() fails.(Sashiko) - Fail the probe when the chip data requires GRF configurations while the "rockchip,grf" property is missing.(Sashiko) - Rebase onto latest drm-misc-next tree. -- 2.34.1