From patchwork Mon Oct 20 02:51:29 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yoshihiro Kaneko X-Patchwork-Id: 5101961 Return-Path: X-Original-To: patchwork-linux-sh@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 76845C11AC for ; Mon, 20 Oct 2014 02:52:23 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 8DA97201ED for ; Mon, 20 Oct 2014 02:52:22 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id D7009201B9 for ; Mon, 20 Oct 2014 02:52:20 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752177AbaJTCwU (ORCPT ); Sun, 19 Oct 2014 22:52:20 -0400 Received: from mail-pa0-f51.google.com ([209.85.220.51]:40018 "EHLO mail-pa0-f51.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751993AbaJTCwT (ORCPT ); Sun, 19 Oct 2014 22:52:19 -0400 Received: by mail-pa0-f51.google.com with SMTP id lj1so4246976pab.38 for ; Sun, 19 Oct 2014 19:52:19 -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; bh=ZsVAljYJC2ynyKxtyIco8hM+lZmAfyKZ66QhilyV1NE=; b=qejcSfumMIvS21UfJr1jFRXN3djWDoUKUwAg/xa/KhmzCU5nVpH8p5DVJfL2YRXo4W 2e8ETdUVcPiw0uxFoveR75W6TEW2zVV+WVhCoVwcbJaXo1sdWzmYMxINk2EQ4TLOAtIz RAMJxYZCDkOguJs7YfD6QGtcN37lPKyNWHtXseKhEVZ3xG6iOk/1V69N0lk5FmvmUakM Dj18kpNFg1O8BPmuG+KflM1u2mRwRydhvcVg3qgqHssbMzHf8LmqD9gWwqQQMXdo5adT jhj0PdpZa+M25h204b9CKWlKp8lxcNLillxRxEFuEpy90GS3ZFxV0fKycXxx2aGuksvx 4aOg== X-Received: by 10.68.107.226 with SMTP id hf2mr8001640pbb.99.1413773539061; Sun, 19 Oct 2014 19:52:19 -0700 (PDT) Received: from localhost.localdomain (p5095-ipngn6701marunouchi.tokyo.ocn.ne.jp. [153.174.4.95]) by mx.google.com with ESMTPSA id x15sm7614258pbt.91.2014.10.19.19.52.17 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sun, 19 Oct 2014 19:52:18 -0700 (PDT) From: Yoshihiro Kaneko To: linux-media@vger.kernel.org Cc: Guennadi Liakhovetski , Simon Horman , Magnus Damm , linux-sh@vger.kernel.org Subject: [PATCH] media: soc_camera: rcar_vin: Add DT support for r8a7793 and r8a7794 SoCs Date: Mon, 20 Oct 2014 11:51:29 +0900 Message-Id: <1413773489-18170-1-git-send-email-ykaneko0929@gmail.com> X-Mailer: git-send-email 1.9.1 Sender: linux-sh-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-sh@vger.kernel.org X-Spam-Status: No, score=-8.2 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, 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 Based on platform device work by Matsuoka-san. Signed-off-by: Yoshihiro Kaneko Acked-by: Simon Horman --- Compile tested only. This patch is against master branch of linuxtv.org/media_tree.git. Documentation/devicetree/bindings/media/rcar_vin.txt | 2 ++ drivers/media/platform/soc_camera/rcar_vin.c | 2 ++ 2 files changed, 4 insertions(+) diff --git a/Documentation/devicetree/bindings/media/rcar_vin.txt b/Documentation/devicetree/bindings/media/rcar_vin.txt index ba61782..9dafe6b 100644 --- a/Documentation/devicetree/bindings/media/rcar_vin.txt +++ b/Documentation/devicetree/bindings/media/rcar_vin.txt @@ -6,6 +6,8 @@ family of devices. The current blocks are always slaves and suppot one input channel which can be either RGB, YUYV or BT656. - compatible: Must be one of the following + - "renesas,vin-r8a7794" for the R8A7794 device + - "renesas,vin-r8a7793" for the R8A7793 device - "renesas,vin-r8a7791" for the R8A7791 device - "renesas,vin-r8a7790" for the R8A7790 device - "renesas,vin-r8a7779" for the R8A7779 device diff --git a/drivers/media/platform/soc_camera/rcar_vin.c b/drivers/media/platform/soc_camera/rcar_vin.c index 234cf86..c023aab 100644 --- a/drivers/media/platform/soc_camera/rcar_vin.c +++ b/drivers/media/platform/soc_camera/rcar_vin.c @@ -1871,6 +1871,8 @@ static struct soc_camera_host_ops rcar_vin_host_ops = { #ifdef CONFIG_OF static struct of_device_id rcar_vin_of_table[] = { + { .compatible = "renesas,vin-r8a7794", .data = (void *)RCAR_GEN2 }, + { .compatible = "renesas,vin-r8a7793", .data = (void *)RCAR_GEN2 }, { .compatible = "renesas,vin-r8a7791", .data = (void *)RCAR_GEN2 }, { .compatible = "renesas,vin-r8a7790", .data = (void *)RCAR_GEN2 }, { .compatible = "renesas,vin-r8a7779", .data = (void *)RCAR_H1 },