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: 9463935 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 A06C56022E for ; Wed, 7 Dec 2016 05:08:55 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 962DE2847E for ; Wed, 7 Dec 2016 05:08:55 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 8B10C284AE; Wed, 7 Dec 2016 05:08: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=-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 322702847E for ; Wed, 7 Dec 2016 05:08:55 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752813AbcLGFIx (ORCPT ); Wed, 7 Dec 2016 00:08:53 -0500 Received: from mail-pf0-f177.google.com ([209.85.192.177]:33966 "EHLO mail-pf0-f177.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752724AbcLGFIw (ORCPT ); Wed, 7 Dec 2016 00:08:52 -0500 Received: by mail-pf0-f177.google.com with SMTP id c4so74889223pfb.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=Cm/UyzzWKE9HjvGRr69Hnh193kerVCPS/8qJMllo9vFlAB/iT7yX8WXPKK+5PwepyS xH6oyUL/fA4+Jywn5JOIlIBeLGpxil+HEvb6Bh+pEET/5dqhWI00hN4ZjxDk2kQV5ImD KTUXSYSNwEl1n2oQaOXEv9/xJ3JYMfWAnC5otnWrbZGx3BAoPCCG1eP+eiyQ8HMV7lXD clfwWM59m6BygI7q9OmFCXPbGTbWQFpZwo/RjVwqZlmhM0ye47/ZgRxerVV55IyFShZ/ sZSGhJXzJHqfCnJeSugvdgFpu3Hq7vdB4N24+lX4nJDbwIWSUXTGmIQY7kYsS/tfP2LQ h9pw== X-Gm-Message-State: AKaTC01ZbLy9nvn5MS81VRBV1K4SxvZdKMg8in1hp+UJp2vcepTussjTcwN5GfdW+OCpeqVI 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 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 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 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, },