Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp1219774ybl; Wed, 8 Jan 2020 13:11:12 -0800 (PST) X-Google-Smtp-Source: APXvYqy1uBVToxF7z+AOFmcn5vVAd/94EBwSxlRQrFjrcQtX/9TcUQXCUTM4dzZ/EF4JQx+/dl2c X-Received: by 2002:aca:814:: with SMTP id 20mr471065oii.159.1578517872353; Wed, 08 Jan 2020 13:11:12 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1578517872; cv=none; d=google.com; s=arc-20160816; b=TKpkMC8RvjbG2cLE5TkcKnlEdTLirCR0D25pWEJbHw/HAETaiwxXh4ne6A+IJq+w5j ycruHnQuXRrZaNpx+BE2mxCDHjN3y3jAHJT29IFj0z58vYzLrHrgnZMojRLLt3wxGdOq h0TEtr26tLFTjHe+t00Pcy7C7Pc9/BK9ZkJAj0VTy9exFC8C+IREay6cgGH3x88kxKIS vCyoTj09owCrtzyJa6Y4GXh+MmTPqffUibZF2RY+rNUthoyB203M/T0kgkb1yNN4IgPm AJkhM50xognKnIIhtdOYyVCXFyKQPib/TcRM27JeKYFMvmVPgNRJ6kbrBZcjt+JIUdCp JLyw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:cc:to :message-id:date:subject:from:dkim-signature; bh=uN626LkiVQ/IYQ07t5hafh9YVD29M1eVztEzw+fNXzo=; b=BQJjPwy/MlaKxe9dQfAANvJfslZad0318+I3noj3enYMIJPZXpHJacEaSxc2ETbLsT 2+azqxQ8TknrDl5yA+9RdUE+f8ttoesRuCd43fx6nofoCoLAAOoP+b146yEFGGUjp6Y7 amfL/p1Q4AC4q7Qfjo3TNr9lujv0nycT9FCQ9TV/Ol3wFqJcIXDPQ2QlhEl4b14wYCLa jxICMRLeKS+NUfesiusMSCKGhnB3rTBA2BbKUDvPt8X8m9U9Dcy30JNB/rM98gBv+8WX 2zwwpZO3XYOwe4Gyb4dV0c+3dwBSfEE/VYC68g6Dj67iUy8ZG3F8el1OoqIMzSJ3VB47 uFjw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kwiboo.se header.s=001 header.b=L+7rDbSu; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id h125si2152103oia.253.2020.01.08.13.10.59; Wed, 08 Jan 2020 13:11:12 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kwiboo.se header.s=001 header.b=L+7rDbSu; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727124AbgAHVHs (ORCPT + 99 others); Wed, 8 Jan 2020 16:07:48 -0500 Received: from o1.b.az.sendgrid.net ([208.117.55.133]:40472 "EHLO o1.b.az.sendgrid.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726636AbgAHVHs (ORCPT ); Wed, 8 Jan 2020 16:07:48 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kwiboo.se; h=from:subject:to:cc:content-type:content-transfer-encoding; s=001; bh=uN626LkiVQ/IYQ07t5hafh9YVD29M1eVztEzw+fNXzo=; b=L+7rDbSuAq0Ia9qc9SRmnvqqaFTp4cKR53aOnONEMw+LyuDyZ8cOez218+z0LcpnDLq+ I86taNWQY8ybiGAACLpwV/8+cOxvPGEtE+K4o1SB3TPbad7A+2MZm7uAqrh3PhPWfu2bqe 0DMr6kaAbV/AbTZigTtv9Ag3u1KYVXdtg= Received: by filterdrecv-p3mdw1-56c97568b5-m6gw4 with SMTP id filterdrecv-p3mdw1-56c97568b5-m6gw4-19-5E1644A3-A 2020-01-08 21:07:47.202815829 +0000 UTC m=+1974280.427826101 Received: from bionic.localdomain (unknown [98.128.173.80]) by ismtpd0005p1lon1.sendgrid.net (SG) with ESMTP id lJXBfmg9SiKtZf1InJRBnw Wed, 08 Jan 2020 21:07:47.011 +0000 (UTC) From: Jonas Karlman Subject: [PATCH v2 00/14] Support more HDMI modes on RK3228/RK3328 Date: Wed, 08 Jan 2020 21:07:47 +0000 (UTC) Message-Id: <20200108210740.28769-1-jonas@kwiboo.se> X-Mailer: git-send-email 2.17.1 X-SG-EID: =?us-ascii?Q?TdbjyGynYnRZWhH+7lKUQJL+ZxmxpowvO2O9SQF5CwCVrYgcwUXgU5DKUU3QxA?= =?us-ascii?Q?fZekEeQsTe+RrMu3cja6a0h8tx7bkLKAWnDQBpQ?= =?us-ascii?Q?ZEr7pUsi+B2Ai3fmPPFJg85m7ZXab8HQv0FysAB?= =?us-ascii?Q?wzv2Lwwd2atjV7VtUYiUxWyFeOGsZB6BWRCHaiC?= =?us-ascii?Q?8frswzSua6VEYbRb4fRqHHmqC5RsNHtYPSR4Lf4?= =?us-ascii?Q?CKUZOgPJ7ap+SBQlFBWbsbNgIa8bLzLYCr6l=2Ff5?= =?us-ascii?Q?T0ljA2CyRHNjrm4jqXqoA=3D=3D?= To: Heiko Stuebner , Sandy Huang Cc: Jonas Karlman , Kishon Vijay Abraham I , Zheng Yang , linux-rockchip@lists.infradead.org, dri-devel@lists.freedesktop.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This series make it possible to use more HDMI modes on RK3328, and presumably also on RK3228. It also prepares for a future YUV420 and 10-bit output series. Part of this has been reworked from vendor BSP 4.4 kernel commits. Patch 1-5 fixes issues and shortcomings in the inno hdmi phy driver. Patch 6 prepares for use of high TMDS bit rates used with HDMI 2.0 and 10-bit output modes. Patch 7-13 changes rk3228/rk3328 to use mode_valid functions suited for the inno hdmi phy instead of the dw-hdmi phy. These changes allows for more CEA modes to be usable, e.g. some 4K and fractal modes. Patch 14 adds support for more pixel clock rates in order to support common DMT modes in addition to CEA modes. Note: I have only been able to build test RK322x related changes as I do not have any RK322x device to test on. All modes, including fractal modes, has been tested with modetest on a RK3328 Rock64 device using e.g. modetest -M rockchip -s 39:3840x2160-29.97 Changes in v2: - collect acked-by tag - drop the limit resolution width to 3840 patch This series is also available at [1] and the early work on YUV420 and 10-bit output is available at [2]. [1] https://github.com/Kwiboo/linux-rockchip/commits/next-20200108-inno-hdmi-phy [2] https://github.com/Kwiboo/linux-rockchip/commits/next-20200108-bus-format Regards, Jonas Algea Cao (1): phy/rockchip: inno-hdmi: Support more pre-pll configuration Huicong Xu (1): phy/rockchip: inno-hdmi: force set_rate on power_on Jonas Karlman (11): phy/rockchip: inno-hdmi: use correct vco_div_5 macro on rk3328 phy/rockchip: inno-hdmi: remove unused no_c from rk3328 recalc_rate phy/rockchip: inno-hdmi: do not power on rk3328 post pll on reg write drm/rockchip: dw-hdmi: allow high tmds bit rates drm/rockchip: dw-hdmi: require valid vpll clock rate on rk3228/rk3328 clk: rockchip: set parent rate for DCLK_VOP clock on rk3228 arm64: dts: rockchip: increase vop clock rate on rk3328 arm64: dts: rockchip: add vpll clock to hdmi node on rk3328 ARM: dts: rockchip: add vpll clock to hdmi node on rk3228 drm/rockchip: dw-hdmi: limit tmds to 340mhz on rk3228/rk3328 drm/rockchip: dw-hdmi: remove unused plat_data on rk3228/rk3328 Zheng Yang (1): phy/rockchip: inno-hdmi: round fractal pixclock in rk3328 recalc_rate arch/arm/boot/dts/rk322x.dtsi | 4 +- arch/arm64/boot/dts/rockchip/rk3328.dtsi | 6 +- drivers/clk/rockchip/clk-rk3228.c | 2 +- drivers/gpu/drm/rockchip/dw_hdmi-rockchip.c | 47 ++++++-- drivers/phy/rockchip/phy-rockchip-inno-hdmi.c | 110 ++++++++++++------ 5 files changed, 120 insertions(+), 49 deletions(-) -- 2.17.1