From patchwork Sat Jun 22 09:46:35 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Lad, Prabhakar" X-Patchwork-Id: 2765481 Return-Path: X-Original-To: patchwork-davinci@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 442EDC0AB1 for ; Sat, 22 Jun 2013 09:49:14 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id E5DDB20103 for ; Sat, 22 Jun 2013 09:49:10 +0000 (UTC) Received: from bear.ext.ti.com (bear.ext.ti.com [192.94.94.41]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 2476920102 for ; Sat, 22 Jun 2013 09:49:06 +0000 (UTC) Received: from dlelxv90.itg.ti.com ([172.17.2.17]) by bear.ext.ti.com (8.13.7/8.13.7) with ESMTP id r5M9lnvS030805; Sat, 22 Jun 2013 04:47:49 -0500 Received: from DFLE72.ent.ti.com (dfle72.ent.ti.com [128.247.5.109]) by dlelxv90.itg.ti.com (8.14.3/8.13.8) with ESMTP id r5M9lnp6006644; Sat, 22 Jun 2013 04:47:49 -0500 Received: from dlelxv23.itg.ti.com (172.17.1.198) by DFLE72.ent.ti.com (128.247.5.109) with Microsoft SMTP Server id 14.2.342.3; Sat, 22 Jun 2013 04:47:49 -0500 Received: from linux.omap.com (dlelxs01.itg.ti.com [157.170.227.31]) by dlelxv23.itg.ti.com (8.13.8/8.13.8) with ESMTP id r5M9lnan009786; Sat, 22 Jun 2013 04:47:49 -0500 Received: from linux.omap.com (localhost [127.0.0.1]) by linux.omap.com (Postfix) with ESMTP id 2A34880627; Sat, 22 Jun 2013 04:47:49 -0500 (CDT) X-Original-To: davinci-linux-open-source@linux.davincidsp.com Delivered-To: davinci-linux-open-source@linux.davincidsp.com Received: from dflp53.itg.ti.com (dflp53.itg.ti.com [128.247.5.6]) by linux.omap.com (Postfix) with ESMTP id 11A8180627 for ; Sat, 22 Jun 2013 04:47:47 -0500 (CDT) Received: from red.ext.ti.com (red.ext.ti.com [192.94.93.37]) by dflp53.itg.ti.com (8.13.8/8.13.8) with ESMTP id r5M9lkun027466 for ; Sat, 22 Jun 2013 04:47:46 -0500 (CDT) Received: from mail6.bemta12.messagelabs.com (mail6.bemta12.messagelabs.com [216.82.250.247]) by red.ext.ti.com (8.13.7/8.13.7) with ESMTP id r5M9lkiU019830 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Sat, 22 Jun 2013 04:47:46 -0500 Received: from [216.82.250.99:52991] by server-11.bemta-12.messagelabs.com id 05/74-22153-2C275C15; Sat, 22 Jun 2013 09:47:46 +0000 X-Env-Sender: prabhakar.csengg@gmail.com X-Msg-Ref: server-6.tower-126.messagelabs.com!1371894464!9372246!1 X-Originating-IP: [209.85.160.50] X-SpamReason: No, hits=0.7 required=7.0 tests=BODY_RANDOM_LONG, ML_RADAR_SPEW_LINKS_14,RCVD_ILLEGAL_IP,spamassassin: X-StarScan-Received: X-StarScan-Version: 6.9.6; banners=-,-,- X-VirusChecked: Checked Received: (qmail 1560 invoked from network); 22 Jun 2013 09:47:45 -0000 Received: from mail-pb0-f50.google.com (HELO mail-pb0-f50.google.com) (209.85.160.50) by server-6.tower-126.messagelabs.com with RC4-SHA encrypted SMTP; 22 Jun 2013 09:47:45 -0000 Received: by mail-pb0-f50.google.com with SMTP id wz7so8772503pbc.23 for ; Sat, 22 Jun 2013 02:47:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:x-mailer:in-reply-to:references; bh=moLe7swqEw6Er1ACL15+sEK0+dGSF6q7isrisRPbg0Q=; b=CEhnAI/WSk7ECJBmdJgo4Yu45aS+g5XmFHV3ofLY3acoKYF4HRSNPXxwii145XF8rz Zdh/Vh9C4aaKacqZxtYUhLytqL1L+aHnZdFV6a/D0dr+cz/DVg8ygjBxAQ3X1pdBl5DC Ow/gDhwmlIovEuW+MF2nHXoSk3JN9bcsXrA2WPwWQocqhco7jyzWDkrAqvScSLTEPvPC 0r5FDoU0P9FM4U5QGujkrtOjuhhlAjtXGV4J9r3a7GiTJqJmseXXefYfLn7/OB1O4kuR Qg4UI5UIs8K6bj5VgSgzCAbqPsL8i8fWq0KMJhMEZp0TYrEiFiDNZsBYGiF8xeb+mj8F eJEQ== X-Received: by 10.68.134.103 with SMTP id pj7mr15743717pbb.171.1371894464426; Sat, 22 Jun 2013 02:47:44 -0700 (PDT) Received: from localhost.localdomain ([1.23.213.136]) by mx.google.com with ESMTPSA id b4sm6013656pbm.6.2013.06.22.02.47.36 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sat, 22 Jun 2013 02:47:43 -0700 (PDT) From: Prabhakar Lad To: Mauro Carvalho Chehab , LMML , Hans Verkuil , Laurent Pinchart Subject: [PATCH 2/2] media: i2c: ths8200: add OF support Date: Sat, 22 Jun 2013 15:16:35 +0530 Message-ID: <1371894395-14414-3-git-send-email-prabhakar.csengg@gmail.com> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1371894395-14414-1-git-send-email-prabhakar.csengg@gmail.com> References: <1371894395-14414-1-git-send-email-prabhakar.csengg@gmail.com> CC: DLOS , , , LKML , Rob Herring , Rob Landley , Grant Likely X-BeenThere: davinci-linux-open-source@linux.davincidsp.com X-Mailman-Version: 2.1.12 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: Errors-To: davinci-linux-open-source-bounces@linux.davincidsp.com X-Spam-Status: No, score=-6.8 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, T_DKIM_INVALID, UNPARSEABLE_RELAY autolearn=ham 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 From: "Lad, Prabhakar" add OF support for the ths8200 driver. Signed-off-by: Lad, Prabhakar --- .../devicetree/bindings/media/i2c/ths8200.txt | 19 +++++++++++++++++++ drivers/media/i2c/ths8200.c | 9 +++++++++ 2 files changed, 28 insertions(+) create mode 100644 Documentation/devicetree/bindings/media/i2c/ths8200.txt diff --git a/Documentation/devicetree/bindings/media/i2c/ths8200.txt b/Documentation/devicetree/bindings/media/i2c/ths8200.txt new file mode 100644 index 0000000..285f6ae --- /dev/null +++ b/Documentation/devicetree/bindings/media/i2c/ths8200.txt @@ -0,0 +1,19 @@ +* Texas Instruments THS8200 video encoder + +The ths8200 device is a digital to analog converter used in DVD players, video +recorders, set-top boxes. + +Required Properties : +- compatible : value must be "ti,ths8200" + +Example: + + i2c0@1c22000 { + ... + ... + ths8200@5c { + compatible = "ti,ths8200"; + reg = <0x5c>; + }; + ... + }; diff --git a/drivers/media/i2c/ths8200.c b/drivers/media/i2c/ths8200.c index cc1339a..8a29810 100644 --- a/drivers/media/i2c/ths8200.c +++ b/drivers/media/i2c/ths8200.c @@ -550,10 +550,19 @@ static struct i2c_device_id ths8200_id[] = { }; MODULE_DEVICE_TABLE(i2c, ths8200_id); +#if IS_ENABLED(CONFIG_OF) +static const struct of_device_id ths8200_of_match[] = { + { .compatible = "ti,ths8200", }, + { /* sentinel */ }, +}; +MODULE_DEVICE_TABLE(of, ths8200_of_match); +#endif + static struct i2c_driver ths8200_driver = { .driver = { .owner = THIS_MODULE, .name = "ths8200", + .of_match_table = of_match_ptr(ths8200_of_match), }, .probe = ths8200_probe, .remove = ths8200_remove,