From patchwork Sat Dec 29 13:33:11 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Johan Jonker X-Patchwork-Id: 10746003 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 B1314746 for ; Tue, 1 Jan 2019 21:48:31 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id A35BD28710 for ; Tue, 1 Jan 2019 21:48:31 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 958B3287A6; Tue, 1 Jan 2019 21:48:31 +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_ADSP_CUSTOM_MED, FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 4924C28710 for ; Tue, 1 Jan 2019 21:48:31 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 3CAE96E2A8; Tue, 1 Jan 2019 21:48:25 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-ed1-x544.google.com (mail-ed1-x544.google.com [IPv6:2a00:1450:4864:20::544]) by gabe.freedesktop.org (Postfix) with ESMTPS id 5E8FA6E557 for ; Sat, 29 Dec 2018 13:33:34 +0000 (UTC) Received: by mail-ed1-x544.google.com with SMTP id b14so19459778edt.6 for ; Sat, 29 Dec 2018 05:33:34 -0800 (PST) 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=VOEwkIxvI1q/i/WRRxMwm990tTHzp40HbWJrY1h5Srg=; b=hT8M/WEpIgHw/+oiuCJdaprfPk2TwuBtTihLPx/GC6Qxe+7qw1yQHeD0tXvhBACDEd A3OEG2tYlPsfXlGE9vg8McFyMSeRtrkQYRSTW0QcNN5cCJ07dJG2QuW5bhfBxzvZ+dwl /JW0hEkSrEfTQX7RQ9JRCBhSJedoXIMvRCruoxC9kr85XRgcmLj+v4urqoMIyaCuuxL1 PLyFBlph1DvhSjGKMNLi2E01sCsP0eD/wRM6Xb8Ew5ZUd4fR5IfQ6qU0/xPONjoG9lKy uMijCw/kQt/EH9wIxHuR8sWfPH0hv2QxtCAN/kWuqn/tWY8cUl+Om9NKhNCAczfx/4bl 8d5A== X-Gm-Message-State: AA+aEWYkB1lLpTq5f3eddbpvlR9ebw4Ou1SB5VR0hVTPRNk5qPsFfnGf hkkE42Mp4QXKQl352TU/6i15QVBC X-Google-Smtp-Source: AFSGD/UYOFS24TVFvlBj0Ecv6cUdhZZA7uE6oF+NVkTRWHBxFbetPqX3nvlmZdYuB1++JNd2TppOJw== X-Received: by 2002:a50:9153:: with SMTP id f19mr26220211eda.159.1546090412895; Sat, 29 Dec 2018 05:33:32 -0800 (PST) Received: from debian.home (ip51ccf9cd.speed.planet.nl. [81.204.249.205]) by smtp.gmail.com with ESMTPSA id d7-v6sm8023063ejx.68.2018.12.29.05.33.31 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 29 Dec 2018 05:33:32 -0800 (PST) From: Johan Jonker To: heiko@sntech.de Subject: [PATCH v2 0/7] Enable rk3066 VOP and HDMI for MK808 Date: Sat, 29 Dec 2018 14:33:11 +0100 Message-Id: <20181229133318.18128-1-jbx6244@gmail.com> X-Mailer: git-send-email 2.11.0 X-Mailman-Approved-At: Tue, 01 Jan 2019 21:47:02 +0000 X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: mark.rutland@arm.com, devicetree@vger.kernel.org, linux-rockchip@lists.infradead.org, airlied@linux.ie, mturquette@baylibre.com, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, sboyd@kernel.org, robh+dt@kernel.org, linux-clk@vger.kernel.org, linux-arm-kernel@lists.infradead.org MIME-Version: 1.0 Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" X-Virus-Scanned: ClamAV using ClamSMTP DISCLAIMER: Use at your own risk. For testing only! Version: V2 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 7 kernel patches a MK808 can show 2 penquins and a console on a DVI-D monitor in combination with a framebuffer. Not tested: HDMI TV DRM Xorg Display managers Android etc. Problems: Fixed screen size for DVI-D. HDMI sound not included. etc. /////////////////////////////////////////// # 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 /////////////////////////////////////////// Finley Xiao (1): clk: rockchip: rk3188: add CLK_SET_RATE_PARENT for lcdc dclk Johan Jonker (2): ARM: dts: rockchip: rk3066: add HCLK_HDMI to pmu node ARM: dts: rockchip: rk3066a-mk808: enable vop0 and hdmi nodes Mark Yao (2): drm: rockchip: vop: add rk3066 vop definitions ARM: dts: rockchip: add rk3066 vop display nodes Zheng Yang (2): drm: rockchip: introduce rk3066 hdmi ARM: dts: rockchip: add rk3066 hdmi nodes .../bindings/display/rockchip/rockchip-vop.txt | 1 + arch/arm/boot/dts/rk3066a-mk808.dts | 12 + arch/arm/boot/dts/rk3066a.dtsi | 92 ++ drivers/clk/rockchip/clk-rk3188.c | 4 +- drivers/gpu/drm/rockchip/Kconfig | 8 + drivers/gpu/drm/rockchip/Makefile | 1 + drivers/gpu/drm/rockchip/rk3066_hdmi.c | 928 +++++++++++++++++++++ drivers/gpu/drm/rockchip/rk3066_hdmi.h | 235 ++++++ drivers/gpu/drm/rockchip/rockchip_drm_drv.c | 2 + drivers/gpu/drm/rockchip/rockchip_drm_drv.h | 1 + drivers/gpu/drm/rockchip/rockchip_vop_reg.c | 110 +++ drivers/gpu/drm/rockchip/rockchip_vop_reg.h | 53 ++ 12 files changed, 1445 insertions(+), 2 deletions(-) create mode 100644 drivers/gpu/drm/rockchip/rk3066_hdmi.c create mode 100644 drivers/gpu/drm/rockchip/rk3066_hdmi.h