From patchwork Thu Mar 28 05:43:14 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Joel Stanley X-Patchwork-Id: 1067794 Return-Path: X-Original-To: incoming-dt@patchwork.ozlabs.org Delivered-To: patchwork-incoming-dt@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=vger.kernel.org (client-ip=209.132.180.67; helo=vger.kernel.org; envelope-from=devicetree-owner@vger.kernel.org; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=jms.id.au Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="iLmH72yU"; dkim-atps=neutral Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 44VDLl1K22z9sPh for ; Thu, 28 Mar 2019 16:43:43 +1100 (AEDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1725794AbfC1Fnm (ORCPT ); Thu, 28 Mar 2019 01:43:42 -0400 Received: from mail-pf1-f193.google.com ([209.85.210.193]:40514 "EHLO mail-pf1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725765AbfC1Fnl (ORCPT ); Thu, 28 Mar 2019 01:43:41 -0400 Received: by mail-pf1-f193.google.com with SMTP id c207so10837259pfc.7 for ; Wed, 27 Mar 2019 22:43:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=TrQTNWtEhX30V68PZvwbW/uKCMAELcI651bhrZMVjrY=; b=iLmH72yU8s+MPuXA3wt1SPOY8EqN6OoZCy8cd828YrgyflDkGZh/s7y5Rby5W2nGQP qXF6Hy2TulB0C4GKgnIsRvSc8kaguubLDIfkbaHADAYKsmzlgFMMDDPDHFJ79BAHhz/M EsDXJtOZLd+sZLyChBmxZD1WfZbYfookIi2ss8gg3rhA4iJESEdAGiy3CPDiHzC0nZRY TQMFQIc+qpaaDYvXG8/JFRJx9FnGV8tvhk2SLDpgrrZppsXyK+JwPBJN38YKRAqymMUr eKojYSKNZ0YW5/uyN1SNjndjC8xnf2mXacqsYLyjYrpvwP/u7hWD2gGzVSVBHh+VwP32 wNpw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :mime-version:content-transfer-encoding; bh=TrQTNWtEhX30V68PZvwbW/uKCMAELcI651bhrZMVjrY=; b=fqIqBfPP80SlEAQVe0Z4zY5vcie7JlgCpAp6Qur4aWVAzSSNxzVxTDjDBL9dD/Zw2s NxGxETio+d/nTjbiS+6Irjrv8oqqBgdONQHlVnQX3BGTDNNqpLWsHBsjzezoPgoLuXQx r79jF5xJflzCHAX4BJwxxSDs4y+FGsgPgDjpKoX7cSnsb04xXEwPKEZiISUD1XJsb71T OaTUdMFa/bmBhW+FrGl7apT2y4RLy8S1ItIFfmp4Q9I68tKBt2pymX+ecKqgmnKvYD/A /lvL6LKCKK0kmCFWmp51ZI1X1rU+Ipm2dAbG5Fy7Js1VgzGVvIx+ilFqZBYlEjlhRGB7 ZBBA== X-Gm-Message-State: APjAAAXXigGbP1Znv+Pdh1OEVGQ28Ja9zuoNCmm9JiyWOcNB5/IVvTaO 3nE7FawDnIX7NVXxDtDEm5zyj+CmCkE= X-Google-Smtp-Source: APXvYqztA777xq55PcpPdnp2+o+wTifJ0KDt1Dwp9HXMVWgXzxHncoZuYMhh0kLKaf87pN4bPRswog== X-Received: by 2002:a63:4a5a:: with SMTP id j26mr29507826pgl.361.1553751821083; Wed, 27 Mar 2019 22:43:41 -0700 (PDT) Received: from voyager.jms.id.au ([36.255.48.244]) by smtp.gmail.com with ESMTPSA id n24sm52508675pfi.123.2019.03.27.22.43.35 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 27 Mar 2019 22:43:40 -0700 (PDT) Received: by voyager.jms.id.au (sSMTP sendmail emulation); Thu, 28 Mar 2019 16:13:32 +1030 From: Joel Stanley To: David Airlie , Daniel Vetter , Rob Herring Cc: Andrew Jeffery , Maarten Lankhorst , Maxime Ripard , Sean Paul , dri-devel@lists.freedesktop.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-aspeed@lists.ozlabs.org Subject: [PATCH 0/2] drm: Add ASPEED BMC 'GFX' driver Date: Thu, 28 Mar 2019 16:13:14 +1030 Message-Id: <20190328054316.17939-1-joel@jms.id.au> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org This driver is for the ASPEED BMC SoC's GFX display hardware. This driver runs on the ARM based BMC systems, unlike the ast driver which runs on a host CPU and is is for a PCIe graphics device that happens to live in the BMC's silicon, but is otherwise available for use by the BMC. I submitted a RFC about a year ago. https://patchwork.kernel.org/patch/10339605/ I've fixed all of the issues I had in the RFC, and made the cleanups that Eric suggested in that review. This version is based on next-20190327. Joel Stanley (2): dt-bindings: gpu: Add ASPEED GFX bindings document drm: Add ASPEED GFX driver .../devicetree/bindings/gpu/aspeed-gfx.txt | 41 +++ drivers/gpu/drm/Kconfig | 2 + drivers/gpu/drm/Makefile | 1 + drivers/gpu/drm/aspeed/Kconfig | 15 + drivers/gpu/drm/aspeed/Makefile | 3 + drivers/gpu/drm/aspeed/aspeed_gfx.h | 104 +++++++ drivers/gpu/drm/aspeed/aspeed_gfx_crtc.c | 248 ++++++++++++++++ drivers/gpu/drm/aspeed/aspeed_gfx_drv.c | 269 ++++++++++++++++++ drivers/gpu/drm/aspeed/aspeed_gfx_out.c | 49 ++++ 9 files changed, 732 insertions(+) create mode 100644 Documentation/devicetree/bindings/gpu/aspeed-gfx.txt create mode 100644 drivers/gpu/drm/aspeed/Kconfig create mode 100644 drivers/gpu/drm/aspeed/Makefile create mode 100644 drivers/gpu/drm/aspeed/aspeed_gfx.h create mode 100644 drivers/gpu/drm/aspeed/aspeed_gfx_crtc.c create mode 100644 drivers/gpu/drm/aspeed/aspeed_gfx_drv.c create mode 100644 drivers/gpu/drm/aspeed/aspeed_gfx_out.c Acked-by: Daniel Vetter Reviewed-by: Noralf Trønnes Reviewed-by: Sam Ravnborg