From patchwork Mon Aug 5 08:58:43 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Linus Walleij X-Patchwork-Id: 11076303 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 A27EC13AC for ; Mon, 5 Aug 2019 08:59:05 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 8F8E32886C for ; Mon, 5 Aug 2019 08:59:05 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 83BA128877; Mon, 5 Aug 2019 08:59:05 +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,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 3E5812886C for ; Mon, 5 Aug 2019 08:59:05 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 223A56E317; Mon, 5 Aug 2019 08:59:03 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-lf1-x143.google.com (mail-lf1-x143.google.com [IPv6:2a00:1450:4864:20::143]) by gabe.freedesktop.org (Postfix) with ESMTPS id BBD5A6E30D for ; Mon, 5 Aug 2019 08:59:01 +0000 (UTC) Received: by mail-lf1-x143.google.com with SMTP id p197so57256619lfa.2 for ; Mon, 05 Aug 2019 01:59:01 -0700 (PDT) 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:mime-version :content-transfer-encoding; bh=5Mpu+9BXQBz6K5v4fBeKDx2nimOndUlvbI5LeRRJJ8w=; b=bckMXxj1ueXKaRMlunf7ymLYudMZRFeQzF/Qym7oPlF9gmGAb8TkU3SptfjvT3o7+Z +K1F5w5kbvTlLMh77dOJ/1gqMhaxOOhepf92ryj3ogPduP3ugcDzbJyGNZfcIdk4cBWI o5sYJVbXM8bvaJ67SNN6kb1uH1AS2H/RPtTEgPEQYJ/MArijm4KLLmvFP+b3YBWUX1Rc lU5mwXClhQp/J6npkU0wLKEtL4Q+XwQQo34TnCpJIcJFGkJR8CZ5zIxPxPD7A8M0BPmP 5zrc7VxdEKDohyfMDgyMouKJsMFIYTY3YCeBJmfCqpttc9la1tLfY6VNhvqZWWpW6l+S pXZA== X-Gm-Message-State: APjAAAVnUIhvryZFC5DkvddWYW4n9c3PbZa3ACrowj54l1ZKOC5uO3XL KD2ba+yGV992lx/gS01HTzhvHA== X-Google-Smtp-Source: APXvYqzgQX6QSvc8gNUWxCb0D3TS6ENYK1ZH8OpjA5RX1MHD4c88CWPDVZhINA2GGzpXkZtBVyi6/w== X-Received: by 2002:a19:f703:: with SMTP id z3mr15398029lfe.171.1564995540090; Mon, 05 Aug 2019 01:59:00 -0700 (PDT) Received: from genomnajs.ideon.se ([85.235.10.227]) by smtp.gmail.com with ESMTPSA id b20sm234500lfc.17.2019.08.05.01.58.58 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Mon, 05 Aug 2019 01:58:58 -0700 (PDT) From: Linus Walleij To: Daniel Tang , Fabian Vogt Subject: [PATCH 0/4 v2] PL111 DRM conversion of nspire Date: Mon, 5 Aug 2019 10:58:43 +0200 Message-Id: <20190805085847.25554-1-linus.walleij@linaro.org> X-Mailer: git-send-email 2.21.0 MIME-Version: 1.0 X-Mailman-Original-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=5Mpu+9BXQBz6K5v4fBeKDx2nimOndUlvbI5LeRRJJ8w=; b=ubWWTLCzqcirJay0D9GAVci3gf5pepENlv2D0l2p4vZJbe4D7/w7hQMQFHkV5J49vS qGgBEKsennpq+/NO8pidoUeiWpW7ReJxgmMDRjVohc9DEUL6dR4iPPDMz3D2N45VDJ7k suSQNm4VqfuenWOWU/PUhGPf1l0KTr61H4dX+S8Zwy0X0OQcOCj4ga3k92Kb06glM/9/ RFApqKc2vg44g48T3lkn6gvCIkccgtcJuDGNUpU5lPw0EHDsGOVN0o+se8B/mnE+xdLU xeW2SKibS/UKMK58z/crFtP/tjusCExRIKLp2DyUE5VwoTyBmVBdnaskOtZIgADHljd+ M4pw== 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: dri-devel@lists.freedesktop.org, linux-arm-kernel@lists.infradead.org Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" X-Virus-Scanned: ClamAV using ClamSMTP This now works, I think. So this is a cold-coded attempt to move the TI nspire over to using DRM. It is more or less the last user of the old fbdev driver so it is a noble cause and interesting usecase. This can be applied on top of a vanilla Torvalds v5.3-rc1 kernel out since sunday. I do not expect these patches to "just work", I expect them to need some hacking, so someone who is actually working on the hardware will need to step in and fix it up. It does outline the overall idea of how to do this. I found no defconfig for nspire in the kernel so I used ARMv4t multi. Configuring the driver for nspire: - Disable CONFIG_FB_ARMCLCD - Enable CONFIG_DRM_PL111, CONFIG_DRM_PANEL_SIMPLE The ARM patch will be merged separately through ARM SoC. Linus Walleij (4): drm/pl111: Support grayscale drm/panel: simple: Add TI nspire panel bindings drm/panel: simple: Support TI nspire panels ARM: nspire: Move CLCD set-up to device tree .../bindings/display/panel/ti,nspire.yaml | 36 ++++++ arch/arm/boot/dts/nspire-classic.dtsi | 19 ++- arch/arm/boot/dts/nspire-cx.dts | 18 ++- arch/arm/boot/dts/nspire.dtsi | 10 +- arch/arm/mach-nspire/Makefile | 1 - arch/arm/mach-nspire/clcd.c | 114 ------------------ arch/arm/mach-nspire/clcd.h | 10 -- arch/arm/mach-nspire/nspire.c | 25 ---- drivers/gpu/drm/panel/panel-simple.c | 64 ++++++++++ drivers/gpu/drm/pl111/pl111_display.c | 29 ++++- include/linux/amba/clcd-regs.h | 1 + 11 files changed, 171 insertions(+), 156 deletions(-) create mode 100644 Documentation/devicetree/bindings/display/panel/ti,nspire.yaml delete mode 100644 arch/arm/mach-nspire/clcd.c delete mode 100644 arch/arm/mach-nspire/clcd.h