From patchwork Mon Jan 6 20:46:00 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jonas Karlman X-Patchwork-Id: 11320061 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 479C91395 for ; Mon, 6 Jan 2020 20:46:14 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 23676206DB for ; Mon, 6 Jan 2020 20:46:14 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="FD5LTm36" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 23676206DB Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=kwiboo.se Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-rockchip-bounces+patchwork-linux-rockchip=patchwork.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-ID:Date:Subject: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-Owner; bh=Kk9vQ0ziZBJt1KO093lgwwoWtQ7oRFa4eTTyiCBpgsA=; b=FD5LTm36+zvsRX RF3uC50WDA59OhiS2SozwDzYK4MFE4gz93FAOm2nV6qr+JD1KM4l3zZsqzbNEz5qJZtvIzlvztIt7 jUs+NvU6qNGhuia7FF9KTqB4MbuNZvcS00hhBcRISpO/fL/hVV4z3RNRG70yiAIY+m5vGuu3Izl1y ZPy4LIafz2ObBUyam3VxMo+ovWSgqEENOlPPDYTqFD8fn077VQQVCkZAG0vE7AQzJ4KJXbLeRJVCj BfyTb5/WkNxkUMnTze9Coukr8mBj7zjzw1lTs9ChCid4f/o995EVeijVxvFIqUlz7zwgin+TW26GZ o7bngOk+wxLSdxU01aqg==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1ioZGM-0001Yz-Eh; Mon, 06 Jan 2020 20:46:10 +0000 Received: from mail-oln040092068064.outbound.protection.outlook.com ([40.92.68.64] helo=EUR02-HE1-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1ioZGI-0001YH-OU; Mon, 06 Jan 2020 20:46:09 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=EBlq8OP77AVE023E3kEtFqs0Whl8Gjj9sgHYYE9B7gVr307RwGxvzdxptgz935RboZ8vQM92PSNdc1e6/RF/PZeyR71bIQuEflPn1jaU3aFTpjZVqBnROMvp1pBmCt5K4qkvTafbw3EN1AlslWH7HYCGJRN4Y+bPw8IvRjeSG9MbmtDbrkYWr2wXAIq+jOTXIh0EE/fE3jMkOhr5Vadh2/wXjQFowXTNbEuovDq8Z4CYPwbJy22tYYTI20SdFUDkRlRLhi6BiyxGDzyzDKasJf5gmFCKeN15lmmo3YX+kSoXTT3N3icHrbNIXO68uE3n45nL8vlE9Gjab4cImx6Ftw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=ulw9p1L3gMXb4AJXqo5es4a5r/NKzxoZzWnYv91QgKo=; b=gsTyCXxvX7zFqsXqmcBievkLxprNO5c+PaMqW/VO+eliMK45aH0KsNU7EPejsC6a573nysmjH4H6fzXD48lpJ9S4WD7RENruwXiFVYHvquwNS3gIKBM82pCiCy1Y+ruTvZtYfPxiB0QhWkuBCWu98lX4L/t7zpJTSy3McNw8WIiTwr/vS8PNnWX7zn9YMwZ9N6ngOWHC5xIjmHySzQogVR9WKStF+wJ0cXbLYqXONYY4bGsJKN9ovuR3JqstkUummq1InNMX4sija6hyj5mNq6HFSdb24xTGQDylK76+Inm9q1g/W0RaetYxakaQTUfxtIppC0TnqHL9TTZIl7ERGg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=none; dmarc=none; dkim=none; arc=none Received: from VE1EUR02FT060.eop-EUR02.prod.protection.outlook.com (10.152.12.53) by VE1EUR02HT115.eop-EUR02.prod.protection.outlook.com (10.152.13.129) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2602.11; Mon, 6 Jan 2020 20:46:02 +0000 Received: from HE1PR06MB4011.eurprd06.prod.outlook.com (10.152.12.60) by VE1EUR02FT060.mail.protection.outlook.com (10.152.13.140) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2602.11 via Frontend Transport; Mon, 6 Jan 2020 20:46:00 +0000 Received: from HE1PR06MB4011.eurprd06.prod.outlook.com ([fe80::b957:6908:9f62:c28b]) by HE1PR06MB4011.eurprd06.prod.outlook.com ([fe80::b957:6908:9f62:c28b%5]) with mapi id 15.20.2602.015; Mon, 6 Jan 2020 20:46:00 +0000 Received: from bionic.localdomain (98.128.173.80) by AM5PR0402CA0019.eurprd04.prod.outlook.com (2603:10a6:203:90::29) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2602.12 via Frontend Transport; Mon, 6 Jan 2020 20:45:59 +0000 From: Jonas Karlman To: Heiko Stuebner , Sandy Huang Subject: [PATCH 00/15] Support more HDMI modes on RK3228/RK3328 Thread-Topic: [PATCH 00/15] Support more HDMI modes on RK3228/RK3328 Thread-Index: AQHVxNJNNVZSJYLQbE2SQNKZv6GhtQ== Date: Mon, 6 Jan 2020 20:46:00 +0000 Message-ID: Accept-Language: sv-SE, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-clientproxiedby: AM5PR0402CA0019.eurprd04.prod.outlook.com (2603:10a6:203:90::29) To HE1PR06MB4011.eurprd06.prod.outlook.com (2603:10a6:7:9c::32) x-incomingtopheadermarker: OriginalChecksum:CC8E993C4D3FD8CA0CD71A9CD67E907DB6949CF8D3AAE82376CAEAA6CDF308A0; UpperCasedChecksum:A2CD90775FD91933196DC12F0B0931C91DB158E95D9BB2C2A02BB5C842F00F4E; SizeAsReceived:7981; Count:49 x-ms-exchange-messagesentrepresentingtype: 1 x-mailer: git-send-email 2.17.1 x-tmn: [+PzkEC5Sk+0gmq/B1zMjnaSoM5exaTwV] x-microsoft-original-message-id: <20200106204544.5836-1-jonas@kwiboo.se> x-ms-publictraffictype: Email x-incomingheadercount: 49 x-eopattributedmessage: 0 x-ms-office365-filtering-correlation-id: c69260a1-ddc4-4ef4-9f21-08d792e96ff1 x-ms-traffictypediagnostic: VE1EUR02HT115: x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: 81XcGKf1B3vW9CwbT8OKh7COlEBVNib5G4a80I+YXrLKvnnQGlwMtPPSbMATnG7lFEKVLxHBEtJnJ+0Et/elTI5TUI0yKw70Sw2hW4UxmIOXqnu8mJdmEU3ltkUjqf0vg0d/R/7zP3v6cV11avCWTD8OHUGz1rb6hTBJ6kTkrWyyreFOoL66GKfmJFTNlnas x-ms-exchange-transport-forked: True MIME-Version: 1.0 X-OriginatorOrg: outlook.com X-MS-Exchange-CrossTenant-RMS-PersistedConsumerOrg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-CrossTenant-Network-Message-Id: c69260a1-ddc4-4ef4-9f21-08d792e96ff1 X-MS-Exchange-CrossTenant-rms-persistedconsumerorg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-CrossTenant-originalarrivaltime: 06 Jan 2020 20:46:00.4572 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Internet X-MS-Exchange-CrossTenant-id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-Transport-CrossTenantHeadersStamped: VE1EUR02HT115 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200106_124606_908417_46449719 X-CRM114-Status: GOOD ( 13.35 ) X-Spam-Score: -0.0 (/) X-Spam-Report: SpamAssassin version 3.4.2 on bombadil.infradead.org summary: Content analysis details: (-0.0 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [40.92.68.64 listed in list.dnswl.org] -0.0 SPF_HELO_PASS SPF: HELO matches SPF record -0.0 SPF_PASS SPF: sender matches SPF record X-BeenThere: linux-rockchip@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Upstream kernel work for Rockchip platforms List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Mark Rutland , Jonas Karlman , David Airlie , "linux-kernel@vger.kernel.org" , "dri-devel@lists.freedesktop.org" , Kishon Vijay Abraham I , "linux-rockchip@lists.infradead.org" , Rob Herring , Daniel Vetter , "linux-arm-kernel@lists.infradead.org" , Zheng Yang Sender: "Linux-rockchip" Errors-To: linux-rockchip-bounces+patchwork-linux-rockchip=patchwork.kernel.org@lists.infradead.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 filter out any mode having larger width then 3840 pixels, e.g 4096x2304 modes, since limitations in the scaler code trigger an error for a large console framebuffer. Patch 7 prepares for use of high TMDS bit rates used with HDMI2.0 and 10-bit output modes. Patch 8-14 changes rk3228/rk3328 to use mode_valid functions suited for the inno hdmi phy instead of the dw-hdmi phy. This Patch 15 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. modetest -M rockchip -s 39:3840x2160-29.97 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 (12): 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: vop: limit resolution width to 3840 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/gpu/drm/rockchip/rockchip_drm_vop.c | 10 ++ drivers/phy/rockchip/phy-rockchip-inno-hdmi.c | 110 ++++++++++++------ 6 files changed, 130 insertions(+), 49 deletions(-)