From patchwork Sun Mar 24 21:21:41 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: =?utf-8?q?Jernej_=C5=A0krabec?= X-Patchwork-Id: 10867735 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id EC29715AC for ; Sun, 24 Mar 2019 21:22:16 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id D1F9528D31 for ; Sun, 24 Mar 2019 21:22:16 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id C133629285; Sun, 24 Mar 2019 21:22:16 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.2 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 305E328D31 for ; Sun, 24 Mar 2019 21:22:16 +0000 (UTC) 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=rD1TXoQFka27vxMS1Z0RopI2USxhqmP2ypt0ij/XIqQ=; b=U0XTZ1KaaBHcZp deNy469tZ5LhGb+4P7fGhy315p/D1P5QJAp+q2tgFN5HfhPmyrd0dxQMIvSCzA5qZ0YBt+joTiLqy wFKhTePSt7m2e9rRngoAEWzbsvKGze0XfF2X4SJ2LSmQGExVQb1EmMXu4Xik7wvqmLlp0hc+f3xwt AsqSr32Ui30OekLGBtlUO28A5F8g7f46KXuTu1XR8FibfyxQuY6FdfL/TdKGuVsgbxYOgm9kLjI5q f67Gbj3tWKzWBIXYDBpCM2Dj9RrT7v6P+E0KI0Zliv3LN05dIWu47W6iA5UWkgQPlamSQg3WT33zM USBC62X/sPmiaLSpyFWg==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1h8AZG-0002sI-Ke; Sun, 24 Mar 2019 21:22:10 +0000 Received: from mailoutvs21.siol.net ([185.57.226.212] helo=mail.siol.net) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1h8AZC-0002qh-03 for linux-arm-kernel@lists.infradead.org; Sun, 24 Mar 2019 21:22:07 +0000 Received: from localhost (localhost [127.0.0.1]) by mail.siol.net (Postfix) with ESMTP id 056C05218A8; Sun, 24 Mar 2019 22:21:58 +0100 (CET) X-Virus-Scanned: amavisd-new at psrvmta10.zcs-production.pri Received: from mail.siol.net ([127.0.0.1]) by localhost (psrvmta10.zcs-production.pri [127.0.0.1]) (amavisd-new, port 10032) with ESMTP id wgpBJOIEJt6h; Sun, 24 Mar 2019 22:21:57 +0100 (CET) Received: from mail.siol.net (localhost [127.0.0.1]) by mail.siol.net (Postfix) with ESMTPS id ACAF05218B0; Sun, 24 Mar 2019 22:21:57 +0100 (CET) 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 B3D7F5218A8; Sun, 24 Mar 2019 22:21:56 +0100 (CET) From: Jernej Skrabec To: maxime.ripard@bootlin.com Subject: [PATCH 0/2] drm/sun4i: dw-hdmi: Improve CEC support Date: Sun, 24 Mar 2019 22:21:41 +0100 Message-Id: <20190324212144.3652-1-jernej.skrabec@siol.net> X-Mailer: git-send-email 2.21.0 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190324_142206_236620_695D833D X-CRM114-Status: UNSURE ( 7.58 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: airlied@linux.ie, linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, a.hajda@samsung.com, wens@csie.org, Laurent.pinchart@ideasonboard.com, daniel@ffwll.ch, linux-arm-kernel@lists.infradead.org Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP It turns out that additional logic between HDMI CEC controller and pins on PHY on some Allwinner SoCs prevents proper communication. It might be possible to fix it, but it's much easier and less error prone to just directly drive pins using software implementation of CEC protocol. Let me know what do you think. Best regards, Jernej Jernej Skrabec (2): drm/bridge/synopsys: dw-hdmi: Add an option to suppress loading CEC driver drm/sun4i: dw-hdmi: Bit bang CEC on some SoCs drivers/gpu/drm/bridge/synopsys/dw-hdmi.c | 2 +- drivers/gpu/drm/sun4i/Kconfig | 10 +++ drivers/gpu/drm/sun4i/sun8i_dw_hdmi.h | 11 +++ drivers/gpu/drm/sun4i/sun8i_hdmi_phy.c | 83 ++++++++++++++++++++++- include/drm/bridge/dw_hdmi.h | 2 + 5 files changed, 105 insertions(+), 3 deletions(-)