From patchwork Thu Mar 10 15:39:00 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alan Cox X-Patchwork-Id: 8558091 Return-Path: X-Original-To: patchwork-linux-fbdev@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id E345C9F2B4 for ; Thu, 10 Mar 2016 15:39:22 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 18AC12034C for ; Thu, 10 Mar 2016 15:39:22 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 333C020376 for ; Thu, 10 Mar 2016 15:39:20 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753652AbcCJPjS (ORCPT ); Thu, 10 Mar 2016 10:39:18 -0500 Received: from lxorguk.ukuu.org.uk ([81.2.110.251]:35102 "EHLO lxorguk.ukuu.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753102AbcCJPjO (ORCPT ); Thu, 10 Mar 2016 10:39:14 -0500 Received: from localhost.localdomain (proxy [81.2.110.250]) by lxorguk.ukuu.org.uk (8.15.2/8.14.1) with ESMTP id u2AGIr5r004920; Thu, 10 Mar 2016 16:18:58 GMT Subject: [PATCH v2 1/2] video: goldfishfb: add devicetree bindings From: Alan To: devicetree@vger.kernel.org, linux-fbdev@vger.kernel.org, tomi.valkeinen@ti.com, plagnioj@jcrosoft.com Date: Thu, 10 Mar 2016 15:39:00 +0000 Message-ID: <20160310153845.8996.17736.stgit@localhost.localdomain> User-Agent: StGit/0.17.1-dirty MIME-Version: 1.0 Sender: linux-fbdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-fbdev@vger.kernel.org X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Greg Hackmann Add device tree bindings to the Goldfish frame buffer interface. Signed-off-by: Greg Hackmann Signed-off-by: Jin Qian Signed-off-by: Alan Cox Acked-by: Rob Herring --- Documentation/devicetree/bindings/goldfish/fb.txt | 17 +++++++++++++++++ drivers/video/fbdev/goldfishfb.c | 9 ++++++++- 2 files changed, 25 insertions(+), 1 deletion(-) create mode 100644 Documentation/devicetree/bindings/goldfish/fb.txt -- To unsubscribe from this list: send the line "unsubscribe linux-fbdev" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/Documentation/devicetree/bindings/goldfish/fb.txt b/Documentation/devicetree/bindings/goldfish/fb.txt new file mode 100644 index 0000000..8e7a6f8 --- /dev/null +++ b/Documentation/devicetree/bindings/goldfish/fb.txt @@ -0,0 +1,17 @@ +Android Goldfish Framebuffer + +Android goldfish framebuffer device generated by android emulator. + +Required properties: + +- compatible : should contain "google,goldfish-fb" to match emulator +- reg : +- interrupts : + +Example: + + goldfish_fb@9010000 { + compatible = "google,goldfish-fb"; + reg = <0x9010000 0x100>; + interrupts = <0x2>; + }; diff --git a/drivers/video/fbdev/goldfishfb.c b/drivers/video/fbdev/goldfishfb.c index 7f6c9e6..f0e651b 100644 --- a/drivers/video/fbdev/goldfishfb.c +++ b/drivers/video/fbdev/goldfishfb.c @@ -304,12 +304,19 @@ static int goldfish_fb_remove(struct platform_device *pdev) return 0; } +static const struct of_device_id goldfish_fb_of_match[] = { + { .compatible = "google,goldfish-fb", }, + {}, +}; +MODULE_DEVICE_TABLE(of, goldfish_fb_of_match); static struct platform_driver goldfish_fb_driver = { .probe = goldfish_fb_probe, .remove = goldfish_fb_remove, .driver = { - .name = "goldfish_fb" + .name = "goldfish_fb", + .owner = THIS_MODULE, + .of_match_table = goldfish_fb_of_match, } };