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: 170526 Delivered-To: patch@linaro.org Received: by 2002:a92:512:0:0:0:0:0 with SMTP id q18csp4011676ile; Mon, 5 Aug 2019 01:59:05 -0700 (PDT) X-Google-Smtp-Source: APXvYqzQINwcdLgT2Vc0KutWtnS3Lo9DNXndPNc4wH2CSWWUAsduZgwVa5J7+N/fGz335LDp4Hev X-Received: by 2002:a17:902:ff11:: with SMTP id f17mr146193657plj.121.1564995545288; Mon, 05 Aug 2019 01:59:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1564995545; cv=none; d=google.com; s=arc-20160816; b=CMDpwiOlXsUEJeYE/WXvd4xmaUzkW6Cy4pOVGe8g0m9xFQgulwtniv1F9PtHYxBMUt 0plVgi+i1ftBHSx4+5ps1luOWMpO4YkmYL4K+MHB4cS+4SV7PfX+FEirySB59sN0fefD mNshpNkq4xEe4zMvofYaC3DRXD6i4UlsvDxrugvcds7+I9eeuW3+r2kGLpAjeXk6vHKB +jS7wj7UO+5f3j6GO94+nb4/Jeo7epFTJFl6yuCMxtIx+cZw6Yzrm+kn5cS7w/wLp+v/ dcpmiGBgyKFnoJ0GrueTj6r4fWpPsgwnHfU4zDksZF17v3gRkbj0NUzUwajbPyUBVhoW x5mw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:cc:list-subscribe :list-help:list-post:list-archive:list-unsubscribe:list-id :precedence:mime-version:message-id:date:subject:to:from :delivered-to; bh=BZRCjyP4ftgntEyKyYfXFjDdapw7N2LOpAKsqFWdW9I=; b=ftLwiuSQzI1Q1FHJhiluJFsp74n5kLJFFZT6fglUwJhyR5oL4v5LM7WdR24xph0ENy YUraxXfqFypsTCEMPgMkStClNm75RJqaCEJlWRQnHl0dqsk119lKT6ek8IaaOCd6VJqm gcLa2OinVIjUypgFUkU1TGOCjVIRToja3EAJw9QeYMMqO4Rz28U90n7TlnLqwQAErsxD hfGHZpe4HSBDCt1lJrCA5F63+9YciAEMUzB0rpOV2lIh/fI7L3FrxXaVen0K1gyzKtEM FbUA46UpBtY/c1rQF7Kjv0AsI1tLqChwcDEY3bk1eHv965/bdAl7nicauEupn6dgNocb XVKw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 131.252.210.177 as permitted sender) smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from gabe.freedesktop.org (gabe.freedesktop.org. [131.252.210.177]) by mx.google.com with ESMTPS id y23si11966776pjp.5.2019.08.05.01.59.05 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 05 Aug 2019 01:59:05 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 131.252.210.177 as permitted sender) client-ip=131.252.210.177; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 131.252.210.177 as permitted sender) smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org 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-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" 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