From patchwork Wed Dec 7 05:08:26 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kevin Hilman X-Patchwork-Id: 9463947 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 4AF276022E for ; Wed, 7 Dec 2016 05:14:55 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 400A8284A1 for ; Wed, 7 Dec 2016 05:14:55 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 34895284BD; Wed, 7 Dec 2016 05:14:55 +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 EC37B284A1 for ; Wed, 7 Dec 2016 05:14:54 +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 1cEUVK-00035q-VY; Wed, 07 Dec 2016 05:10:55 +0000 Received: from mail-pf0-x232.google.com ([2607:f8b0:400e:c00::232]) by bombadil.infradead.org with esmtps (Exim 4.85_2 #1 (Red Hat Linux)) id 1cEUTg-0000jW-KJ for linux-arm-kernel@lists.infradead.org; Wed, 07 Dec 2016 05:09:17 +0000 Received: by mail-pf0-x232.google.com with SMTP id c4so74889222pfb.1 for ; Tue, 06 Dec 2016 21:08:52 -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=wOGRED++Gmw5Zvz1aB2TcrlhewDsYsYYWdA67y9/1X2aI7pFMlEgUwvxWw06WohiVb P6uTWhmVyGsNjT8Clzm4ud51sbhdHF2YiEZ0wQZ4uiQfeQu/DkhnWCSHvj4tt19WzytW tIiChf/o20GzIJzCDZoF7qEYZ1ZqC6hA5z8X6Yf/H12CCwt3VjNZUiS4lVnR8n+h+tTs XcNww8KtqnCXO9oyMK7K9cG4ML+3ckZlIwOU5uPe4RyMpBdzWZAYpZVAMKn4t+UwJQ8V agxjjQNKuAdf76foun6Lqdn4/ozOQjIFMlkbiTbWNQrncaqaK2Vll6MqVivFkS5SqBva 5Uww== 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=BpgzVqjRqrridcYy/jKVUzLbJih9NSZgDFBWWhlYQ7rrI/NodMvl+le4QNxO1B/aqh dzgjBiVJC6XXrZses0LF6Ji5w3eWaSiTbb0dQRfxe66t5S1nz8SRy0sE1NlPBWG4nmiN 5cd/JD5cthymHOKSKw1SIbfxFKbaxNkOwFJedvESdjdNG45QDDI5Vx5GgQlNAYNJgetO Xb/F0FbX7YEagPXAih+YLOuUXEfkgB+N0WFQbpqC5yAhUTOBr+HeUMtZk792G9wBibOS +vmurQE7ycZt2C4BDUWDprUi6eu3pPiasu7w/O2ehHS9O71aT63PxvrkSQEWOK4CNjXD sN2g== X-Gm-Message-State: AKaTC03wDQR29/rkvlmo12bEMJMrDBkD+SxmrizCOjlxox55EwrffZLx5tp9tboDqRD0R36l X-Received: by 10.99.246.5 with SMTP id m5mr119918363pgh.9.1481087331529; Tue, 06 Dec 2016 21:08:51 -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 r2sm38455127pfi.67.2016.12.06.21.08.50 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 06 Dec 2016 21:08:50 -0800 (PST) From: Kevin Hilman To: Hans Verkuil , Laurent Pinchart , Sakari Ailus , linux-media@vger.kernel.org Subject: [PATCH v5 5/5] [media] davinci: VPIF: add basic support for DT init Date: Tue, 6 Dec 2016 21:08:26 -0800 Message-Id: <20161207050826.23174-6-khilman@baylibre.com> X-Mailer: git-send-email 2.9.3 In-Reply-To: <20161207050826.23174-1-khilman@baylibre.com> References: <20161207050826.23174-1-khilman@baylibre.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20161206_210913_141003_ECF02787 X-CRM114-Status: GOOD ( 10.75 ) 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, },