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: 9465035 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 B506060459 for ; Wed, 7 Dec 2016 18:30:38 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id ADD6628558 for ; Wed, 7 Dec 2016 18:30:38 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id A29C82855C; Wed, 7 Dec 2016 18:30:38 +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=-6.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI,T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 33F6428558 for ; Wed, 7 Dec 2016 18:30:38 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932586AbcLGSag (ORCPT ); Wed, 7 Dec 2016 13:30:36 -0500 Received: from mail-pf0-f175.google.com ([209.85.192.175]:36602 "EHLO mail-pf0-f175.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932192AbcLGSad (ORCPT ); Wed, 7 Dec 2016 13:30:33 -0500 Received: by mail-pf0-f175.google.com with SMTP id 189so78662838pfz.3 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=Bz5DNxXa0RkAbk3//TQ7xjxmd0CGu2958L7Vdzmx0YjXtWKdU/WcgT/Vj58SwjjIz1 W/Q+fDIQmXlRPINguMbIYVVYVRBSN3DWwaY8/D2S9As55fOIcauKJzULUS7AQqgXhFd6 3cI9pNMMf7hHnLqoRwUKF7MCnAY3cleZVy/HPe8C/95UBT7sC+dj+NISLPvYqVYvzU4F xiq+GFXqmGZ3/KKx5fUeQ4nZgTrJL3so44K9LMpAznqiQrBTMXo7i+lR3u+Y+NMJLvjy pZ4lXzw3rx22Gb9OJvJjW7OuZCVFUEZ9HqlYmKHnYrgWmv+ZPd9tb4ICXMwwV4I/f0Rk XTcA== X-Gm-Message-State: AKaTC03T/2+XXmXBzdUpCOOu/q/bsBLbDCcr6d6WwqMMlfjSIHSaUc8QOAe+9i+6iepsJGQe 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 Cc: Sekhar Nori , Axel Haslam , =?UTF-8?q?Bartosz=20Go=C5=82aszewski?= , Alexandre Bailon , David Lechner , Patrick Titiano , linux-arm-kernel@lists.infradead.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 Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.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, },