From patchwork Wed Apr 3 00:19:06 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Joel Stanley X-Patchwork-Id: 10882489 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 DF9391390 for ; Wed, 3 Apr 2019 00:19:25 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id C6F90289E1 for ; Wed, 3 Apr 2019 00:19:25 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id BB570289E5; Wed, 3 Apr 2019 00:19:25 +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_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 6BB99289E1 for ; Wed, 3 Apr 2019 00:19:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:To :From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=Etv+yJruL+OhZAIRJoj2jcnLRpAKG1P6DN40FB6ITmU=; b=SPCvfnCLnLaHyK XDK9chYbvdVWbigBI5ellGPl2dOchG/4xLV9fN7iQDqYG1mi+5KQiDB306pTpYltchjcW/v8aQKUJ Fxyr5ZP6d51E9wcLmOmjAYEH0OxUZUqhX/+H+rRRi8xLiPWo8x63n1IoDctsqUX4niwPeDESh12Z0 wJPjy3omTUcPm2JhrWNBMcTbGLIIHahO2w5AtbvQyAMyt2rpJLbYyOuck9M5d6QRovdSEnSVQ+f72 JgJsoU6FoHR7I2Rm75UFuU5qoqcSlEoXSs5PPwrqodXZefVJYbi6/ZyZsJzhVOEbFIfwDCghcRgdi PvYMJCdLm7+2QhVZqeXA==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1hBTci-0006HG-0k; Wed, 03 Apr 2019 00:19:24 +0000 Received: from mail-pl1-x644.google.com ([2607:f8b0:4864:20::644]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1hBTce-0006Gu-Oa for linux-arm-kernel@lists.infradead.org; Wed, 03 Apr 2019 00:19:22 +0000 Received: by mail-pl1-x644.google.com with SMTP id y6so7075555pll.13 for ; Tue, 02 Apr 2019 17:19:20 -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=lwfll33/EfKfWoCBgz+Vg/jhXVGjp4unGTIqOfoPdZw=; b=JJ1qxURsWHo2VQasgVKuvrVHmy7h27fzLe5xp4hGCwdZj+RZ93jS3H56QrkXHfJtcS F2B5HVcsVYCm2l5ggX3LJy0RMm/EEC7Q6DU/N9siV635JslBp1jW0Xfj5DjwJ1AN57Lz 8HyZ3B3jneTp7AQyY4MiMZgvGdwkStP2U18xsXXEAoSBSO/C8dHyejW0WUEhCRinCG9J oyiv+nyS0IdwYCnlAxmoP29rQDgBz1ytO/s7FUCJkosOvQdQ5Ehp/tXkmKXMM74gQYFG 4KcWNpuqM9MfR5tRu5EzqZYWfOC70WmVi92GxLPCxl73ZGnJEeFnNNuOVX4I77ggknSU oV4g== 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=lwfll33/EfKfWoCBgz+Vg/jhXVGjp4unGTIqOfoPdZw=; b=l/R/ehrdKtpsSt8MBX/CNX9g/Qb9PYrcKMUTM14d6AZwtCcql6VbZA+Yb+DJ3MctK1 oSwo2GY109y49F/6SMEKjjTToECFlvDkY/pbHFdxbM18bR+2Ki/UuadF9Une5EXLfjwP Nc/xVU0HsdlcL1qUfkWnRf/qsrqxwi3eOF8DKW+oeKPhMPR25KVGjFp/K1lJfdV8zDWd 2f+gYKYzYp0GuEBYdVgbv2MUpGOGhxf7vvOjptL79ghdwbmxdVcsoctr1wgd6MVxtMou 8lZWJJjBOwaPgAm11K7bSngfA4H6IYfqE0OaYsT/+zBV7cZ5tXgEvTFOhpn99TOkIiTa edtA== X-Gm-Message-State: APjAAAWGZ9eYx9DxLCsLWnViyPW40tKs0iA/Xzuoj7j/ghM1Pck6QW3D 1xvBV7HCedxk0/QwkRUrqbg= X-Google-Smtp-Source: APXvYqzm1+r8z4JjvlwuNjk0dx8my+nAAa7WE2TGiGzlNYVOOcNcuYyqKTGx/q3xBhq6ekrE2UxBkw== X-Received: by 2002:a17:902:b210:: with SMTP id t16mr50010341plr.84.1554250759799; Tue, 02 Apr 2019 17:19:19 -0700 (PDT) Received: from voyager.jms.id.au ([36.255.48.244]) by smtp.gmail.com with ESMTPSA id j67sm8248338pfc.72.2019.04.02.17.19.14 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 02 Apr 2019 17:19:19 -0700 (PDT) Received: by voyager.jms.id.au (sSMTP sendmail emulation); Wed, 03 Apr 2019 10:49:10 +1030 From: Joel Stanley To: Daniel Vetter , Rob Herring Subject: [PATCH v3 0/3] drm: Add ASPEED BMC 'GFX' driver Date: Wed, 3 Apr 2019 10:49:06 +1030 Message-Id: <20190403001909.31637-1-joel@jms.id.au> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190402_171920_821477_3C3F4AA7 X-CRM114-Status: GOOD ( 12.51 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: devicetree@vger.kernel.org, linux-aspeed@lists.ozlabs.org, David Airlie , Maarten Lankhorst , dri-devel@lists.freedesktop.org, Andrew Jeffery , =?utf-8?q?Noralf_Tr=C3=B8nnes?= , Sean Paul , linux-arm-kernel@lists.infradead.org Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP v3: Fix up drmP and IRQ flag, thanks Sam v2: Address review from Noralf and Daniel, add maintainers patch 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. Joel Stanley (3): dt-bindings: gpu: Add ASPEED GFX bindings document drm: Add ASPEED GFX driver MAINTAINERS: Add ASPEED BMC GFX DRM driver entry .../devicetree/bindings/gpu/aspeed-gfx.txt | 41 +++ MAINTAINERS | 8 + drivers/gpu/drm/Kconfig | 2 + drivers/gpu/drm/Makefile | 1 + drivers/gpu/drm/aspeed/Kconfig | 14 + drivers/gpu/drm/aspeed/Makefile | 3 + drivers/gpu/drm/aspeed/aspeed_gfx.h | 104 +++++++ drivers/gpu/drm/aspeed/aspeed_gfx_crtc.c | 241 ++++++++++++++++ drivers/gpu/drm/aspeed/aspeed_gfx_drv.c | 269 ++++++++++++++++++ drivers/gpu/drm/aspeed/aspeed_gfx_out.c | 42 +++ 10 files changed, 725 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