From patchwork Tue Feb 23 21:11:21 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Julian Scheel X-Patchwork-Id: 8395961 Return-Path: X-Original-To: patchwork-linux-media@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id AFA48C0553 for ; Tue, 23 Feb 2016 21:11:54 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id CC51120306 for ; Tue, 23 Feb 2016 21:11:53 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id DAD5D202C8 for ; Tue, 23 Feb 2016 21:11:51 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755402AbcBWVLu (ORCPT ); Tue, 23 Feb 2016 16:11:50 -0500 Received: from jusst.de ([188.40.114.84]:45517 "EHLO web01.jusst.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755279AbcBWVLt (ORCPT ); Tue, 23 Feb 2016 16:11:49 -0500 Received: from localhost (localhost [127.0.0.1]) by web01.jusst.de (Postfix) with ESMTP id 8FC541B0236A; Tue, 23 Feb 2016 22:11:48 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at web01.jusst.de Received: from web01.jusst.de ([127.0.0.1]) by localhost (web01.jusst.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id lYh9foaXORwJ; Tue, 23 Feb 2016 22:11:48 +0100 (CET) Received: from avionic-0108.net.jusst.de. (p5B3C0D03.dip0.t-ipconnect.de [91.60.13.3]) (Authenticated sender: julian@jusst.de) by web01.jusst.de (Postfix) with ESMTPSA id E51D61B0236E; Tue, 23 Feb 2016 22:11:47 +0100 (CET) From: Julian Scheel To: linux-media@vger.kernel.org, laurent.pinchart@ideasonboard.com, lars@metafoo.de, hverkuil@xs4all.nl Cc: Julian Scheel Subject: [PATCHv2 2/2] media: adv7180: Add of compatible strings for full family Date: Tue, 23 Feb 2016 22:11:21 +0100 Message-Id: <1456261881-28172-2-git-send-email-julian@jusst.de> X-Mailer: git-send-email 2.7.1 In-Reply-To: <1456261881-28172-1-git-send-email-julian@jusst.de> References: <1456261881-28172-1-git-send-email-julian@jusst.de> Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@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 Add entries for all supported chip variants into the of_match list, so that the matching driver_info can be selected when using dt. Signed-off-by: Julian Scheel --- Documentation/devicetree/bindings/media/i2c/adv7180.txt | 13 +++++++++++-- drivers/media/i2c/adv7180.c | 8 ++++++++ 2 files changed, 19 insertions(+), 2 deletions(-) diff --git a/Documentation/devicetree/bindings/media/i2c/adv7180.txt b/Documentation/devicetree/bindings/media/i2c/adv7180.txt index 2f39f26..0d50115 100644 --- a/Documentation/devicetree/bindings/media/i2c/adv7180.txt +++ b/Documentation/devicetree/bindings/media/i2c/adv7180.txt @@ -1,10 +1,19 @@ * Analog Devices ADV7180 analog video decoder family The adv7180 family devices are used to capture analog video to different -digital interfaces like parallel video. +digital interfaces like MIPI CSI-2 or parallel video. Required Properties : -- compatible : value must be "adi,adv7180" +- compatible : value must be one of + "adi,adv7180" + "adi,adv7182" + "adi,adv7280" + "adi,adv7280-m" + "adi,adv7281" + "adi,adv7281-m" + "adi,adv7281-ma" + "adi,adv7282" + "adi,adv7282-m" Example: diff --git a/drivers/media/i2c/adv7180.c b/drivers/media/i2c/adv7180.c index ff57c1d..5515f3d 100644 --- a/drivers/media/i2c/adv7180.c +++ b/drivers/media/i2c/adv7180.c @@ -1328,6 +1328,14 @@ static SIMPLE_DEV_PM_OPS(adv7180_pm_ops, adv7180_suspend, adv7180_resume); #ifdef CONFIG_OF static const struct of_device_id adv7180_of_id[] = { { .compatible = "adi,adv7180", }, + { .compatible = "adi,adv7182", }, + { .compatible = "adi,adv7280", }, + { .compatible = "adi,adv7280-m", }, + { .compatible = "adi,adv7281", }, + { .compatible = "adi,adv7281-m", }, + { .compatible = "adi,adv7281-ma", }, + { .compatible = "adi,adv7282", }, + { .compatible = "adi,adv7282-m", }, { }, };