Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp6788109yba; Tue, 14 May 2019 13:45:10 -0700 (PDT) X-Google-Smtp-Source: APXvYqyeieSdx2PWmmfqnFJoRs+8oF9jfPzs9WO5bWTKtdUlRTMVbNWY90GR5m4dg0OcRGaBaLlv X-Received: by 2002:a17:902:1029:: with SMTP id b38mr587374pla.72.1557866710671; Tue, 14 May 2019 13:45:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1557866710; cv=none; d=google.com; s=arc-20160816; b=boogqezefLImEnaBOfcxFY7ZZuzBzSN0mak478wwiDKZhqkGlITrpRQZgGUeAVLEit XpBMOayec1qS5pZvE1OTGYD46aV2TBzoaRGRA6feNxlYNy1h0RMPa7nOHkWXAyQk0bhv emCdxF5Lp4xQXYKfigUL31PlFU9BYd+knmWlb0bpMkYfTpSsb/2lSVLWoEXipNmANyed KKHh8H/XRm3fHBB66SBI6ua+KP88vIWF7qjKiiinQaVd6ZcR0a3mklx31Mz++QerIkuV ozrcTKsWkgaIC5P6VU+2YpJsJMjy2BAt/ChFatCGOdA8USaCK3EIrJ4cqyuhBjjYoThF 1BbQ== 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:mime-version :message-id:date:subject:cc:to:from; bh=TfgO1yngLoJkP1W7a/fu8JLINEnzEunDzEiK8z1gYLY=; b=VO5Fjhvg0rDFfo8U8rN0m/TVvBTZJttR9SMvfoMJ38v2HeKxPuxspn9M2eU1rh92l7 3zarURfLG2uaT3wj/sV7cx09XKoNdNtVv8nLEM744Sd1qKdS8t6o6drtFZSu0xp/OJmf ltOwSDUNcbpoTnIIsLIsYXfFDGGv9p5MeyqKrEQ+LnZoFJ2KB8DLQi97brFoYnPowkbj mDvvPg5dEf66QkMXXw3IcoBKx6ttu/F2gxbaThCGlDnzHl8ZlCDW2ZCBgNC9HCQXgDdR vDzBpkcRxBbVli9DFDk319TV0OGQmNFILgMNiFfklyr+h4mCUkP6inPxypq6mkdoP3tO LqMw== ARC-Authentication-Results: i=1; mx.google.com; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=siol.net Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id j10si21457906pgh.273.2019.05.14.13.44.55; Tue, 14 May 2019 13:45:10 -0700 (PDT) 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; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=siol.net Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726338AbfENUns (ORCPT + 99 others); Tue, 14 May 2019 16:43:48 -0400 Received: from mailoutvs12.siol.net ([185.57.226.203]:59378 "EHLO mail.siol.net" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726148AbfENUns (ORCPT ); Tue, 14 May 2019 16:43:48 -0400 Received: from localhost (localhost [127.0.0.1]) by mail.siol.net (Postfix) with ESMTP id 3FA7C521E73; Tue, 14 May 2019 22:43:45 +0200 (CEST) X-Virus-Scanned: amavisd-new at psrvmta09.zcs-production.pri Received: from mail.siol.net ([127.0.0.1]) by localhost (psrvmta09.zcs-production.pri [127.0.0.1]) (amavisd-new, port 10032) with ESMTP id H35XG354VjHa; Tue, 14 May 2019 22:43:44 +0200 (CEST) Received: from mail.siol.net (localhost [127.0.0.1]) by mail.siol.net (Postfix) with ESMTPS id ABA0E521E15; Tue, 14 May 2019 22:43:44 +0200 (CEST) Received: from localhost.localdomain (cpe-86-58-52-202.static.triera.net [86.58.52.202]) (Authenticated sender: 031275009) by mail.siol.net (Postfix) with ESMTPSA id F0885521DDF; Tue, 14 May 2019 22:43:43 +0200 (CEST) From: Jernej Skrabec To: maxime.ripard@bootlin.com, wens@csie.org Cc: airlied@linux.ie, daniel@ffwll.ch, dri-devel@lists.freedesktop.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-sunxi@googlegroups.com Subject: [PATCH 0/2] drm/sun4i: Fix sun8i HDMI PHY initialization Date: Tue, 14 May 2019 22:43:35 +0200 Message-Id: <20190514204337.11068-1-jernej.skrabec@siol.net> X-Mailer: git-send-email 2.21.0 MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org I received a report that 4K resolution doesn't work if U-Boot video driver is disabled. It turns out that HDMI PHY clock driver was initialized prematurely, before reset line was deasserted and clocks enabled. U-Boot video driver masked the issue because it set pixel clock correctly. In the process of researching the bug, I also found out that few bits in HDMI PHY registers were not set correctly. While there is no noticeable change (4K resolution works with both settings), I've added fix anyway, to be conformant with vendor documentation. Please check it out. Best regards, Jernej Jernej Skrabec (2): drm/sun4i: Fix sun8i HDMI PHY clock initialization drm/sun4i: Fix sun8i HDMI PHY configuration for > 148.5 MHz drivers/gpu/drm/sun4i/sun8i_hdmi_phy.c | 29 ++++++++++++++------------ 1 file changed, 16 insertions(+), 13 deletions(-) --=20 2.21.0