From patchwork Sat Mar 2 10:41:12 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Johan Jonker X-Patchwork-Id: 10836545 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 E5B3D139A for ; Sat, 2 Mar 2019 10:41:38 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id C81AD2B5FA for ; Sat, 2 Mar 2019 10:41:38 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id B74862B62E; Sat, 2 Mar 2019 10:41:38 +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.0 required=2.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, DKIM_INVALID,DKIM_SIGNED,FREEMAIL_FROM,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 94DEA2B5FA for ; Sat, 2 Mar 2019 10:41:37 +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:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id: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=sLCkXm000zpWsHmMQuqCNkkZRdIpjDkUuxQ0U6ObCdI=; b=PQA sUa3ehoTEvF5HftAP//X6Mhg+e+D0alsAyyIqapgUhYcx5xMYIa3bpJ+lz6srZXYm9pPy9PqMx7C1 Tt5ajc489gZryg1qVFGxbFPLUGRM9vFdEyXAZrAnx39x99BfnCB6cjbMLmkdb+uqdFg3HbnKtWMxO IisaWi15DNO6ty15Hb8RwL+a+PtSsl7tKILgEh13oQixZkbQDRH3OBOmztyrMb8EfiMB95SoOx/4B I/OYouznMzv/X/nD+q1EYR3xb5LWPIdH+P4eihEa2985KAug4PSjpJfjMey8qTGazdWm41fudi22w Hs1JD1YkSThplQoCpmp8JQV9xsQoBwQ==; 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 1h025E-0006Tt-PO; Sat, 02 Mar 2019 10:41:32 +0000 Received: from mail-ed1-x542.google.com ([2a00:1450:4864:20::542]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1h025C-0006Sv-Gs; Sat, 02 Mar 2019 10:41:31 +0000 Received: by mail-ed1-x542.google.com with SMTP id b20so422519edw.11; Sat, 02 Mar 2019 02:41:29 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=yqapotUBswQEf8ok7L3gakhHsDt2IajmTUF6p7XEmWs=; b=cUuSR4VZQho5CoaMeIZGFEfXxNDa6YfjqpUiPL9NJlhEG2BylQOPsIzYboRfboqbp8 f8NRv/QpmjkMZe5xOUfZolI5qKcjxt9huwUkzBW+xKlX9++locVO7bwMOrXv5nv1N7lw L8ovTpNbwVPPI1/ujRmx8eldnLuuBGG/CWHwdIc43fF5NtiS0qIIgrKBFii7KyWhEtwu qj7cEkuiIwRGc9E93nmmXou92dcHZyg+Tq627MpgigKwKl+4sCE9v5n3/6FalaQ1fTV2 9gFIDHbvILcdH9j+/jLPvTcA7FEoWnnELgg+04Ad7BsXyNMOP51rEvoXPAfdgrJ1KHmQ dvxw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=yqapotUBswQEf8ok7L3gakhHsDt2IajmTUF6p7XEmWs=; b=R55RKsd/Il8dMgcEtdl9V4SZs9mbn5czBJwinGc471uCMUtiKqHBZxRR/DTndIVP73 nTQNmEQXm4uS6Fh/CEcWIzCMqXbZzs+jseyX14fpvGHWAgOExrG9Rw8JRyCVWn79XzSL lE/7xovWs5Zd++4aJYipRSFCCFDIf6qpXmNS04GPhAEzueCXsfIM1xg52yZKkdn1aTe4 6QRaYXvpUfwBO0odtLZ1EfVUvF0E9K/VYjXqgnBguV9IQKNP6cAdgMMBYzNTv4Ue45KA 8+4IL+ghx6mFHEYyLclSuZkzWkI9NqJyyhu5I7AQznrJSKF/AHWYA8R7CvhqKndTNUlx s3CQ== X-Gm-Message-State: APjAAAWKpTsdMHiYLhaEGMpeSbaVCIlGUMxuok+wqSaEQZnyIkTWdTB2 8qeZx2Y0NtkJ2JjRLBaz/6E= X-Google-Smtp-Source: APXvYqzpH9Uee0E3uLJ/74OoWdxN74YQHI8N5pg48XwgHhEy5c4+HwiNEqz913V0wdkWWlRYcv0osQ== X-Received: by 2002:a50:8992:: with SMTP id g18mr7662263edg.216.1551523288107; Sat, 02 Mar 2019 02:41:28 -0800 (PST) Received: from debian.home (ip51ccf9cd.speed.planet.nl. [81.204.249.205]) by smtp.gmail.com with ESMTPSA id 36sm247711edz.58.2019.03.02.02.41.26 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 02 Mar 2019 02:41:27 -0800 (PST) From: Johan Jonker To: heiko@sntech.de Subject: [PATCH v3 0/4] Enable rk3066 VOP and HDMI for MK808 Date: Sat, 2 Mar 2019 11:41:12 +0100 Message-Id: <20190302104116.1535-1-jbx6244@gmail.com> X-Mailer: git-send-email 2.11.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190302_024130_588074_FFAE6944 X-CRM114-Status: GOOD ( 12.01 ) 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: mark.rutland@arm.com, devicetree@vger.kernel.org, airlied@linux.ie, hjc@rock-chips.com, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, linux-rockchip@lists.infradead.org, robh+dt@kernel.org, daniel@ffwll.ch, linux-arm-kernel@lists.infradead.org MIME-Version: 1.0 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 Version: V3 Title: Enable rk3066 VOP and HDMI for MK808. This patch serie only works in combination with a MK808 TV stick and a rk3066 processor. Other boxes and tablets with a rk3066 need extra software for power management and lcd's. What does it do: With these kernel patches a MK808 can show 2 penguins and a console on a DVI-D monitor in combination with a framebuffer. Not tested: HDMI TV DRM Xorg Display managers Android etc. Problems: DRM functions keep changing every rc With v5.0-rc8 the monitor doesn't blank on poweroff, it freezes Fixed screen size for DVI-D. HDMI sound not included. etc. /////////////////////////////////////////// Changes V2 > V3: updated to v5.0-rc8 removed patches that are already added to linux-next rk3066_hdmi.c removed gpl text small style changes removed unused includes add include for: drm_helper_hpd_irq_event drm_helper_probe_single_connector_modes update drm_hdmi_avi_infoframe_from_display_mode function call rk3066_hdmi.h removed gpl text rk3066a.dtsi add extra port for hdmi connector node rk3066a-mk808.dts add hdmi connector node connect hdmi_out with hdmi_con_in rk3066-hdmi.txt add extra port for hdmi connector node /////////////////////////////////////////// # How to make rkfs.cpio find . | cpio -o --format=newc > ../rkfs.cpio # How to compile/flash make menuconfig ARCH=arm CROSS_COMPILE=/usr/bin/arm-linux-gnueabi- make -j4 ARCH=arm CROSS_COMPILE=/usr/bin/arm-linux-gnueabi- cp ./arch/arm/boot/zImage ../zImage-dtb cat ./arch/arm/boot/dts/rk3066a-mk808.dtb >> ../zImage-dtb ../tools/rkcrc -k ../zImage-dtb ../mk808.img sudo ../tools/rkflashtool w 0x4000 0x8000 < ../mk808.img sudo ../tools/rkflashtool b /////////////////////////////////////////// Johan Jonker (2): ARM: dts: rockchip: rk3066a-mk808: enable vop0 and hdmi nodes dt-bindings: display: rockchip: add document for rk3066 hdmi Zheng Yang (2): drm: rockchip: introduce rk3066 hdmi ARM: dts: rockchip: add rk3066 hdmi nodes .../bindings/display/rockchip/rk3066-hdmi.txt | 72 ++ arch/arm/boot/dts/rk3066a-mk808.dts | 29 + arch/arm/boot/dts/rk3066a.dtsi | 52 ++ drivers/gpu/drm/rockchip/Kconfig | 8 + drivers/gpu/drm/rockchip/Makefile | 1 + drivers/gpu/drm/rockchip/rk3066_hdmi.c | 911 +++++++++++++++++++++ drivers/gpu/drm/rockchip/rk3066_hdmi.h | 226 +++++ drivers/gpu/drm/rockchip/rockchip_drm_drv.c | 2 + drivers/gpu/drm/rockchip/rockchip_drm_drv.h | 1 + 9 files changed, 1302 insertions(+) create mode 100644 Documentation/devicetree/bindings/display/rockchip/rk3066-hdmi.txt create mode 100644 drivers/gpu/drm/rockchip/rk3066_hdmi.c create mode 100644 drivers/gpu/drm/rockchip/rk3066_hdmi.h