From patchwork Thu Mar 28 05:43:14 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Joel Stanley X-Patchwork-Id: 161286 Delivered-To: patch@linaro.org Received: by 2002:a02:c6d8:0:0:0:0:0 with SMTP id r24csp291902jan; Wed, 27 Mar 2019 22:43:42 -0700 (PDT) X-Google-Smtp-Source: APXvYqxLuvv1bGzpDAdpydYvL4qF1L/pnzgeUlxaY9T/IDtav0hfC6pBkSjuo6TgnIFSWu0G2ozK X-Received: by 2002:a17:902:7204:: with SMTP id ba4mr21814938plb.337.1553751822707; Wed, 27 Mar 2019 22:43:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1553751822; cv=none; d=google.com; s=arc-20160816; b=sqJeIcIpSpIsAFyEsFJ0IPa8WlNcQ7hb7XmxAAghm3WnFzc1gUamwy/5KczCyYVF64 Kt06cFttbO81Qhz6FwfV3KsE5TuOH6WA5rPHu6Gng/kGsFDvp+zY3LvDcZh31y6w7xyD SMn8Myyeo16Tap8TwT7n6xRL6UgGv0GncO1s2sgtGrpbV/mUt51UxxNdFxzpc5yux5Mi Lkbx0ckaFS3Y7oKpt1aocSITWchyyZTVJuyHEcK5qOPX+lNJ9Xanet0s/uq9l7wcJrzf Pzvoz7p8xv/kPceKgi83iHtkRnZcXUgALrXlXdIciT2nKvr/uObLEnw3XPwYeHyErclE e4kg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=TrQTNWtEhX30V68PZvwbW/uKCMAELcI651bhrZMVjrY=; b=aVmYO5vyzzjWHKguk2PO918puLj+NhEZiua5V0ugEDOI0gLyIT9TMtXVdRBEtJdgSD Se2zP2zu/eRW5DhVoRbGa8wFn4nycjyNmsFlVOdHsuXZ7C9cwrTaNzc/VpLfPth7Geyl wmFlbRZMjKhXP7LPbMtXb3nHwgxGG28I2HlLpCL94edE3xV9/5QM7iXkNgK/aYpWeALd 47CRY6z4zhJVFtJmY4EzVIR/VvTdSLW3vXvTGqCA4ZKgvdo9IB603UAiLKJLBUnOfZ0p CevCB+zY1tkeveadsuIvRnMfznzW3ge3Lo8Yv8YLtxlZmLpYRQDTR5eEBArWKoN9lSvK 896Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=iLmH72yU; spf=pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id x4si1996427pll.344.2019.03.27.22.43.42; Wed, 27 Mar 2019 22:43:42 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=iLmH72yU; spf=pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1725794AbfC1Fnm (ORCPT + 7 others); 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-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 -- 2.20.1