From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=210.79.60.60 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1793342981; b=0r4HA1F3JH2+2G4LMj70KZt1dZGPAj0YZ+D8zYyMVKqmDynnSXw+w2s/TCfB5OPM3mYj qP2jQ0H5EQ/vzHEzdSRXD7lKuhj5+eNiAXK6Pxjqcx2biMPn/ixxIF0hWpNZ84Zb1Y89r NQJoeIcquJyVUN2VSISllxiuvt0CuBD1HAWs0OXrAtKYT4edOowwOJOrw40g31tGi97Wi MNdFXdipPCBToCUV/l/zul0XRr920/WdOO2u8+mtQobduIV762Z2xAiI61WxLq6QNjwFg MEOa67Fye4M4K+qD7HoJNdV1KXq2n84REjvNeOWAVXm2dP2xToPLIoFy+gKAmB+gLgg== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1793342981; h=DMARC-Filter:Received:From:To:Cc:Subject:Date:Message-Id:X-Mailer: MIME-Version:Content-Transfer-Encoding:X-HM-Tid:X-HM-MType: X-HM-Spam-Status:DKIM-Signature; bh=pGnhy8KafHjhp0kxxKojoSMc1TwDhFu6AVtDINHFLK8=; b=OIflqlBMtJyEZtJVJCOejuyLXgX6fyNbzI8ROtGdc+C+JzKN6KyY6YrpEUyiMiz1B6HV bUD5qbPAT4pxouE105gnGLZGNx0w/ilbuVRCWXB7L/BtYN0d/LHxu4rNTCEhCuYxaiLHf lQkwJRSQ1FUagGLpMtm2l5zvpWHb7xGTn6lLgJCA+BzY4J4AhguZa6gVpL/LIZFAFuNLO jCE3nl3eeeEfUBqayfW46wBA0Mbo3jkyvjY0JpGzMVIBnrIgt3aXmWNPhqOLWzrtkugg7 oiqmOR1ZBQXB3FKe26X8fauE7PEh9eK2XjkrMsaM0GH6cdRevQJW42A6JTaBWQn8B0Q== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=rock-chips.com; spf=pass smtp.mailfrom=rock-chips.com; dkim=pass header.d=rock-chips.com header.i=@rock-chips.com header.a=rsa-sha256 header.s=default header.b=Hrj5Xx5+; arc=none smtp.remote-ip=210.79.60.60 Received: from mail-m6060.netease.com (mail-m6060.netease.com [210.79.60.60]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 7000D606A31F; Fri, 30 Oct 2026 06:49:36 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 7000D606A31F 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, unprotected) header.d=rock-chips.com header.i=@rock-chips.com header.a=rsa-sha256 header.s=default header.b=Hrj5Xx5+ Received: from zyb-HP-ProDesk-680-G2-MT.. (unknown [58.22.7.114]) by smtp.qiye.163.com (Hmail) with ESMTP id 52e79690c; Fri, 30 Oct 2026 14:49:25 +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 v4 0/6] Add eDP support for RK3568 Date: Fri, 30 Oct 2026 14:48:59 +0800 Message-Id: <20261030064905.2248999-1-damon.ding@rock-chips.com> X-Mailer: git-send-email 2.34.1 X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-HM-Tid: 0aa18b92072d03a8kunme14bef99793ce X-HM-MType: 1 X-HM-Spam-Status: e1kfGhgUHx5ZQUpXWQgPGg8OCBgUHx5ZQUlOS1dZFg8aDwILHllBWSg2Ly tZV1koWUFDSUNOT01LS0k3V1kYFggdWUFKV1ktWUFJV1kPCRoVCBIfWUFZQxpPTFZNHkJISk1DSE tDT0lWFRQJFhoXVRMBExYaEhckFA4PWVdZGBILWUFZTkNVSUlVTFVKSk9ZV1kWGg8SFR0UWUFZT0 tIVUpLSEpKQk1VSktLVUpCWQY+ DKIM-Signature: a=rsa-sha256; b=Hrj5Xx5+UQt5ncE5dsfobj3S6xvum1MUlDrCc5N998ceT7FnyL8nhSGmUOTfFtWkytwwzRbnqc385T5RGKTBPyXQnoCqozAGstr9mGHYw6koxS+RfIATZiacYyS2eQ5SgfXcQaMquiqqb5KR3CwTgCQckU368CMjhu5EMUz4a18=; c=relaxed/relaxed; s=default; d=rock-chips.com; v=1; bh=pGnhy8KafHjhp0kxxKojoSMc1TwDhFu6AVtDINHFLK8=; 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 board 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 | 28 +- .../bindings/phy/rockchip,rk3568-edp-phy.yaml | 68 +++ .../devicetree/bindings/soc/rockchip/grf.yaml | 20 + arch/arm64/boot/dts/rockchip/rk356x-base.dtsi | 45 ++ .../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 | 466 ++++++++++++++++++ include/drm/bridge/analogix_dp.h | 2 + 10 files changed, 663 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. Changes in v3: - Restore the PHY related changes which were missing in v2 for unexpected reasons. Changes in v4: - Restrict the avdd-0v9 and avdd-1v8 supplies to the RK3568 compatible in the Rockchip Analogix DP binding. - Add the reg entry for the PHY node and the ranges/#address-cells/ #size-cells for the parent syscon node in the Rockchip GRF schema. - Map the PHY registers from its own reg property instead of accessing them through the parent syscon regmap. - Model the PHY node with a reg property under the parent syscon in the DT. -- 2.34.1