Received: by 10.223.185.116 with SMTP id b49csp3989625wrg; Mon, 19 Feb 2018 09:09:36 -0800 (PST) X-Google-Smtp-Source: AH8x2248IGAc8kb65s6ioPIGriuvrRjzyB+GRXOG9v4dn6MkWJkklHzKSjZxXf9pRA8UjCi0yfo0 X-Received: by 2002:a17:902:64d0:: with SMTP id y16-v6mr14744500pli.258.1519060176254; Mon, 19 Feb 2018 09:09:36 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519060176; cv=none; d=google.com; s=arc-20160816; b=MV2m3P34jVtnmazeHUWyszqrXSQqHm6Pmp6Vq+/7OMhP0N8WbhlKcbP80HW0ykSXnt chsd05f3SV1qUWy4cM7hUkv7Lvk7ccxwcoq9Mwyfyls0selKpcYlApZnonf/yePT131L L9xeU4ZxlrY5x+2zpSM/D68ZJ7JfepGrXRDgmAVdZVlgt6P3OVhZsuQsSX7JgC3mVY8N +IFZMX0ATh837OJiEcF2oFVfmljPivkPy3BUFDdhfr2KYCuETZaEhVFK/6BqBxiwrJO7 3luvuMjW+wHSRC1+KEu6QWFf9qbx9OhKYT6wrqcsap7XMtgeNUVu6nHiao0TnACH3GeK 1zVg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:arc-authentication-results; bh=N9Ox9VQn+GA0HGHY5higY3ptUpfuPZLHfv8QuA6MqoI=; b=OCrjIF3zaMx5XeFY6fQ/5rcNTpvIZeu8Tcm+HhNxg9QtGl3kqmZ3Y29UWmG7m/KE+H MhU7/iQFr9wJ5ZPtlRsJe2jHgVoLmhCzpWZ0k3zfASFoaqBXIPJz8OSNgrn6k85OzuB0 N0M4iAeOssllZW2CXxDmrb4bQ2WWJIZ2IHZPzXpwJqHQDUzMzmR1vryuf1KZbJk0hUx+ HGcE+WZqGRvpsAeMdGqeOlqK1vPGVdlqFZxlMhtfddTZzJJb/qlJBiDy0aTkrKt3E7tR h2TyUagBUwyKfdejksIMJxGAwsjkptttqdehQIiVivxrQm/TK5XrQA8uBP4j2F95S5NQ ZRIg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id r4si600935pgp.603.2018.02.19.09.09.21; Mon, 19 Feb 2018 09:09:36 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753551AbeBSRH5 (ORCPT + 99 others); Mon, 19 Feb 2018 12:07:57 -0500 Received: from relay2-d.mail.gandi.net ([217.70.183.194]:53275 "EHLO relay2-d.mail.gandi.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753486AbeBSRHW (ORCPT ); Mon, 19 Feb 2018 12:07:22 -0500 Received: from w540.lan (unknown [IPv6:2001:b07:6442:1ac4:c5d5:d2e5:f400:a467]) (Authenticated sender: jacopo@jmondi.org) by relay2-d.mail.gandi.net (Postfix) with ESMTPSA id 80B8EC5A5C; Mon, 19 Feb 2018 18:07:15 +0100 (CET) From: Jacopo Mondi To: laurent.pinchart@ideasonboard.com, magnus.damm@gmail.com, geert@glider.be, hverkuil@xs4all.nl, mchehab@kernel.org, festevam@gmail.com, sakari.ailus@iki.fi, robh+dt@kernel.org, mark.rutland@arm.com, pombredanne@nexb.com Cc: Jacopo Mondi , linux-renesas-soc@vger.kernel.org, linux-media@vger.kernel.org, linux-sh@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v9 10/11] arch: sh: migor: Use new renesas-ceu camera driver Date: Mon, 19 Feb 2018 17:59:43 +0100 Message-Id: <1519059584-30844-11-git-send-email-jacopo+renesas@jmondi.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1519059584-30844-1-git-send-email-jacopo+renesas@jmondi.org> References: <1519059584-30844-1-git-send-email-jacopo+renesas@jmondi.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Migo-R platform uses sh_mobile_ceu camera driver, which is now being replaced by a proper V4L2 camera driver named 'renesas-ceu'. Move Migo-R platform to use the v4l2 renesas-ceu camera driver interface and get rid of soc_camera defined components used to register sensor drivers and of platform specific enable/disable routines. Register clock source and GPIOs for sensor drivers, so they can use clock and gpio APIs. Also, memory for CEU video buffers is now reserved with membocks APIs, and need to be declared as dma_coherent during machine initialization to remove that architecture specific part from CEU driver. Signed-off-by: Jacopo Mondi Reviewed-by: Laurent Pinchart Acked-by: Hans Verkuil --- arch/sh/boards/mach-migor/setup.c | 225 +++++++++++++++------------------ arch/sh/kernel/cpu/sh4a/clock-sh7722.c | 2 +- 2 files changed, 101 insertions(+), 126 deletions(-) diff --git a/arch/sh/boards/mach-migor/setup.c b/arch/sh/boards/mach-migor/setup.c index 0bcbe58..271dfc2 100644 --- a/arch/sh/boards/mach-migor/setup.c +++ b/arch/sh/boards/mach-migor/setup.c @@ -1,17 +1,16 @@ +// SPDX-License-Identifier: GPL-2.0 /* * Renesas System Solutions Asia Pte. Ltd - Migo-R * * Copyright (C) 2008 Magnus Damm - * - * This file is subject to the terms and conditions of the GNU General Public - * License. See the file "COPYING" in the main directory of this archive - * for more details. */ +#include #include #include #include #include #include +#include #include #include #include @@ -23,10 +22,11 @@ #include #include #include +#include #include #include #include