From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (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 F0C07606A33D for ; Tue, 10 Nov 2026 07:46:48 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.a=rsa-sha256 header.s=bombadil.20210309 header.b=KXV7xV0F; dkim=fail reason="signature verification failed" (1024-bit key) header.d=rock-chips.com header.i=@rock-chips.com header.a=rsa-sha256 header.s=default header.b=cIuw9r3N DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:Cc :To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Unsubscribe-Post:List-Owner; bh=ahx8dRRQKj1ysCC77kLSJXp3M3Uvo3ZqhTdlnITj1Ng=; b=KXV7xV0FWpqJbqCq9lWM+VJmN8 nPBUiNQaxu0ty66ANCyjnMEVl7QIaqX7ynif6ZQOximrHUe3L0uElN7v27KXahprJr7JAaG8a2nNn P6vp3v4K94ABfE1IaoikNqKPKF3UwucbOTCgY+b1a9tTqlVlvJrvByJofJ097sIpyq8l5PKtphwUN DUT8WpuyAVYGblvlJtrWbHWTpDiPkuJF157EQV8nynGkqPXfUcCdIlmiFJt7TBmONXdxEaYnT/tMq UFI2OodK/+WXLAYWY+uAy6qucap8obwFhrbmKAUuzwhWK9D1uKWwqnV4tn4Iq9CGjDbc1+BoM+4rh vBgiZtfA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.100.1 #2 (Red Hat Linux)) id 1xQgZ6-00000002zdG-1pxO; Tue, 10 Nov 2026 07:46:48 +0000 Received: from mail-m1099.netease.com ([154.81.10.99]) by bombadil.infradead.org with esmtps (Exim 4.100.1 #2 (Red Hat Linux)) id 1xQgY3-00000002xti-1P1m; Tue, 10 Nov 2026 07:45:55 +0000 Received: from zyb-HP-ProDesk-680-G2-MT.. (unknown [61.154.14.86]) by smtp.qiye.163.com (Hmail) with ESMTP id 542170ae1; Tue, 10 Nov 2026 15:45:38 +0800 (GMT+08:00) From: Damon Ding To: Vinod Koul , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Heiko Stuebner Cc: Neil Armstrong , Manivannan Sadhasivam , Luca Ceresoli , Dmitry Baryshkov , Sebastian Reichel , Dave Jones , linux-phy@lists.infradead.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org, linux-kernel@vger.kernel.org, Damon Ding Subject: [PATCH v5 0/3] Add eDP support for RK3568 Date: Tue, 10 Nov 2026 15:45:30 +0800 Message-Id: <20261110074533.4052196-1-damon.ding@rock-chips.com> X-Mailer: git-send-email 2.34.1 X-Archived-By: MIME-Version: 1.0 X-HM-Tid: 0aa1c46b72e803a8kunm3f9229952eb2cb X-HM-MType: 1 X-HM-Spam-Status: e1kfGhgUHx5ZQUtXWQgPGg8OCBgUHx5ZQUlOS1dZFg8aDwILHllBWSg2Ly tZV1koWUFITzdXWRgWCB1ZQUpXWS1ZQUlXWQ8JGhUIEh9ZQVlCHhgfVk0fHR1CTUlDSk1PSlYVFA kWGhdVEwETFhoSFyQUDg9ZV1kYEgtZQVlNSlVKTk9VSk9VQ01ZV1kWGg8SFR0UWUFZS1VLVUtVS1 kG DKIM-Signature: a=rsa-sha256; b=cIuw9r3NlKowZrUWErU2uw/zWOZ1BHgXaY2pMGQAcI8VJH0escNu3mDkTD9SzrbwU4709UU3cIkQgmtkTvrZomScxd5YSLgUiZagqVIxNwjA9+OkNMtpHL76F/MpwrcZozR2Yhn4yiKff+6Ght1fQnd6qHPkM2hmbkVeDwiUweY=; s=default; c=relaxed/relaxed; d=rock-chips.com; v=1; bh=SV9FPv5bQCpmG5w0OSwyufr0Ia+XJV7fSCSE3cl9f1s=; h=date:mime-version:subject:message-id:from; X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.9.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20261109_234544_240221_A45DB47A X-CRM114-Status: GOOD ( 14.09 ) X-Spam-Score: -2.1 (--) X-BeenThere: linux-phy@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Linux Phy Mailing list List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-phy" X-Spam-Status: No, score=-11.9 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_EF,HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS, USER_AGENT_GIT autolearn=ham autolearn_force=no version=4.0.1 X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-26) on aws-us-west-2-korg-listserv-alma10-1 Picked from: https://lore.kernel.org/all/20261030064905.2248999-1-damon.ding@rock-chips.com/ The 'rockchip,rk3568-edp' display binding, the RK3568 support for the Analogix DP bridge driver and the RK3568 support for the Rockchip Analogix DP driver have been applied to the drm-misc-next tree. PATCH 1 is to document the RK3568 eDP Transmitter PHY with Naneng IP block, along with the eDP PHY GRF syscon node it resides in. PATCH 2 is to add the driver for the Rockchip eDP Transmitter PHY with Naneng IP block. PATCH 3 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 (3): dt-bindings: phy: Add rockchip,rk3568-edp-phy phy: rockchip: Add support for Naneng eDP phy arm64: dts: rockchip: rk356x: Add eDP controller and phy nodes .../bindings/phy/rockchip,rk3568-edp-phy.yaml | 46 ++ .../rockchip/rockchip,rk3568-edp-phy-grf.yaml | 80 +++ arch/arm64/boot/dts/rockchip/rk356x-base.dtsi | 45 ++ drivers/phy/rockchip/Kconfig | 11 + drivers/phy/rockchip/Makefile | 1 + .../phy/rockchip/phy-rockchip-naneng-edp.c | 471 ++++++++++++++++++ 6 files changed, 654 insertions(+) create mode 100644 Documentation/devicetree/bindings/phy/rockchip,rk3568-edp-phy.yaml create mode 100644 Documentation/devicetree/bindings/soc/rockchip/rockchip,rk3568-edp-phy-grf.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. Changes in v5: - Move the APB clock (PCLK_EDPPHY_GRF) from the parent syscon node to the PHY node and enable it in the driver. (Sashiko) - Split the "rockchip,rk3568-edp-phy-grf" syscon node to its own binding schema, instead of extending the shared Rockchip GRF schema. - Validate the voltages against the effective lane count, to also cover combined set_lanes + set_voltages requests. (Sashiko) - Select REGMAP_MMIO. - Drop the example from the PHY binding schema, as complete MFD examples belong in the GRF binding schema. - Rename the reference clock to "ref". -- 2.34.1 -- linux-phy mailing list linux-phy@lists.infradead.org https://lists.infradead.org/mailman/listinfo/linux-phy