From patchwork Wed Dec 7 18:30:25 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kevin Hilman X-Patchwork-Id: 9465051 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 7E3B660459 for ; Wed, 7 Dec 2016 18:33:19 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 738162840B for ; Wed, 7 Dec 2016 18:33:19 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 6835128501; Wed, 7 Dec 2016 18:33:19 +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=-4.1 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_MED,T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 7E7972840B for ; Wed, 7 Dec 2016 18:33:18 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.85_2 #1 (Red Hat Linux)) id 1cEh0S-0006k4-Qh; Wed, 07 Dec 2016 18:31:52 +0000 Received: from mail-pf0-x22b.google.com ([2607:f8b0:400e:c00::22b]) by bombadil.infradead.org with esmtps (Exim 4.85_2 #1 (Red Hat Linux)) id 1cEgzU-0006D6-CY for linux-arm-kernel@lists.infradead.org; Wed, 07 Dec 2016 18:30:54 +0000 Received: by mail-pf0-x22b.google.com with SMTP id i88so78255111pfk.2 for ; Wed, 07 Dec 2016 10:30:33 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=ELajvnAPENckIjmV2W04vbCmPndERMtXx5JbrniWNkc=; b=QEBIgyxmiCC6mytxqjDUfTFuPgoW8ATrmgvTsre83OsFEB705Crd0qp0RBUWGjZ2ix Mapwet3z9QpXGVTOZgIrfiCm5eVPlWGfKdfsT45XEBb6JBQxbkSOsj8bulydKTMZZGOT C8+ZrPJjW84T+7LN8cFq554iC6PgT10AEjfpGkvS4l/1uzxCoJvC2DaskMMPspQ9MdSj +rZxrR6YAGEBdsbRYv9Bcdx6vgtBE2kVW6M2/4McvPv6ju7J3zBFrONdCGSgDIkx31jY NQui9qOQqlLxsipXAnXuVokyVEnj6Jx7Q1poufRRd4czouAp4mjpVojXDOB9i+taSo08 X/Ew== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=ELajvnAPENckIjmV2W04vbCmPndERMtXx5JbrniWNkc=; b=TN1AWY8Gzsh7R4s/REUDSt2hY69x6AkoYx/5HYspTvYL/EO9K+BrJAgngXXp1L0s/x ZxstNzD393i4DkQF/PopNyrWHdxwZhcj+TP9q1HUKZf8WuhOW8dgHQ+Q182Zj9p6f4Tc QAX4GkqiUiK0XxpS2LpD4ZWlRvKAg0JXMGrxdnzvdwbd//+HMy6mKaA5qoUbAXqoPeeB T61Z9/6mq7bj2p9N4L7kyIZ1aRde/cQ0D/SnMGfOiPUVhQ/K2VJ6rOhMJ0ISFrdKev/q rFnp4qXuVGBvBXUi/9CNpMUkzLiB7vr20k8Cr6DofMILp0XekM5mz5wNwmpP63RTFXNZ N+2w== X-Gm-Message-State: AKaTC01W7dORjx4h7nPru1tFT7ZWmnD2Hm5QKVOJU6yrwUjwSNPwpCW8GWbCUYNxM0llh+BR X-Received: by 10.99.24.84 with SMTP id 20mr124665869pgy.12.1481135432564; Wed, 07 Dec 2016 10:30:32 -0800 (PST) Received: from localhost (c-98-203-232-209.hsd1.wa.comcast.net. [98.203.232.209]) by smtp.gmail.com with ESMTPSA id d1sm44205369pfb.76.2016.12.07.10.30.32 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 07 Dec 2016 10:30:32 -0800 (PST) From: Kevin Hilman To: Hans Verkuil , Laurent Pinchart , Sakari Ailus , linux-media@vger.kernel.org Subject: [PATCH v6 5/5] [media] davinci: VPIF: add basic support for DT init Date: Wed, 7 Dec 2016 10:30:25 -0800 Message-Id: <20161207183025.20684-6-khilman@baylibre.com> X-Mailer: git-send-email 2.9.3 In-Reply-To: <20161207183025.20684-1-khilman@baylibre.com> References: <20161207183025.20684-1-khilman@baylibre.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20161207_103052_606195_2B164C8B X-CRM114-Status: GOOD ( 10.52 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: David Lechner , Axel Haslam , Sekhar Nori , =?UTF-8?q?Bartosz=20Go=C5=82aszewski?= , Alexandre Bailon , Patrick Titiano , 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 Add basic support for initialization via DT Signed-off-by: Kevin Hilman --- drivers/media/platform/davinci/vpif.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/drivers/media/platform/davinci/vpif.c b/drivers/media/platform/davinci/vpif.c index f50148dcba64..1b02a6363f77 100644 --- a/drivers/media/platform/davinci/vpif.c +++ b/drivers/media/platform/davinci/vpif.c @@ -467,8 +467,17 @@ static const struct dev_pm_ops vpif_pm = { #define vpif_pm_ops NULL #endif +#if IS_ENABLED(CONFIG_OF) +static const struct of_device_id vpif_of_match[] = { + { .compatible = "ti,da850-vpif", }, + { /* sentinel */ }, +}; +MODULE_DEVICE_TABLE(of, vpif_of_match); +#endif + static struct platform_driver vpif_driver = { .driver = { + .of_match_table = of_match_ptr(vpif_of_match), .name = VPIF_DRIVER_NAME, .pm = vpif_pm_ops, },