Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp2522837imm; Mon, 28 May 2018 09:41:26 -0700 (PDT) X-Google-Smtp-Source: ADUXVKJVf2bdz9AAMCa5Dn9UI9LScWXfEP/BZKwjDxdgXhBGH7EQqc7O9hU2bO16jEDFdZEtdsCv X-Received: by 2002:a63:7b1e:: with SMTP id w30-v6mr7605309pgc.402.1527525686850; Mon, 28 May 2018 09:41:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1527525686; cv=none; d=google.com; s=arc-20160816; b=QtRJT9OBWcAOH+qVhgejfUlECUBE/EE/fwtygnI4NePe1tDeLnoh5I/lDgs3awebex jDMs/piiu+e8PS9P1FaoS88VHzcyUcEne2yljBbNcQulPzMKeWKfb9vd+7t8QgmwtOhw Q1lcYQMgDf8i1+YsHRSAFeZJFw2uRdj9yxd4M/AO2mS4hSK/0dfczLk8csCRsiBv6Sp5 V5SLonWlDVMKGWP+m2WcJ6UMAKMooY89k6uRAzJ6Ep7a/ongQnhu9HMz7RfD7HcjhPzA Oyl7jFHDdDSEiPbaSUi0IIZ8GE+o8IYvKBQp1nUcRpXHpr6DFWd7cq0cuLiaEZ3Yeqey fx6A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :arc-authentication-results; bh=vGsYffg7J4Ttmd1NVPj29YhdnF5ga94EpskkI2T+dCk=; b=YEg9mrYedT24Fi80m0Ck4clLJ+NX9ATbYYcu6w5rOJ6QHBoFIyLtUTqwKszrQXtwgD 3JvGNhIclJvjXmIqFm9Xt3Ig/+PRxTfOPweiXOexsURis5aN+2lCQxmRxR7DEuCGAu2s ZTt0dLWCNLE51CWhESllvIbmV0qSNizOfXLSiEC5TntRAcFy2GHJ0+40iGO/5dVtXpUt afaTDVCBiQxgQkK2FmKxaRxOKOhH3WI9KFHl+uVJpnNoRFnNSqA/5A4ybubhD1kpyOjK rwX3xuw9BUkrUD1uL6yLlx/HdR45j220maNybB1/q6ya8QFXZJtBUBJYADuQXvP4x7Zh LUpQ== 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 q3-v6si13963581plb.529.2018.05.28.09.41.12; Mon, 28 May 2018 09:41:26 -0700 (PDT) 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 S940357AbeE1QjW (ORCPT + 99 others); Mon, 28 May 2018 12:39:22 -0400 Received: from relay2-d.mail.gandi.net ([217.70.183.194]:48089 "EHLO relay2-d.mail.gandi.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S940289AbeE1QhZ (ORCPT ); Mon, 28 May 2018 12:37:25 -0400 X-Originating-IP: 2.224.242.101 Received: from w540.lan (2-224-242-101.ip172.fastwebnet.it [2.224.242.101]) (Authenticated sender: jacopo@jmondi.org) by relay2-d.mail.gandi.net (Postfix) with ESMTPSA id 1F8A34001A; Mon, 28 May 2018 18:37:18 +0200 (CEST) From: Jacopo Mondi To: hverkuil@xs4all.nl, laurent.pinchart@ideasonboard.com, sakari.ailus@iki.fi, mchehab@kernel.org, ysato@users.sourceforge.jp, dalias@libc.org Cc: Jacopo Mondi , linux-renesas-soc@vger.kernel.org, linux-media@vger.kernel.org, linux-sh@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 0/5] Remove sh_mobile_ceu_camera from arch/sh Date: Mon, 28 May 2018 18:37:06 +0200 Message-Id: <1527525431-22852-1-git-send-email-jacopo+renesas@jmondi.org> X-Mailer: git-send-email 2.7.4 X-Spam-Level: Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hello, this series removes dependencies on the soc_camera based sh_mobile_ceu_camera driver from 3 board files in arch/sh and from one sensor driver used by one of those boards. Hans, this means there are no more user of the soc_camera framework that I know of in Linux, and I guess we can now plan of to remove that framework. A note on the sensor driver: I haven't been able to find any documentation for the SHARP RJ54N1CB0C sensor and so I inferred as much as possible from the existing code. It seems to me that the sensor needs to power-up/enable gpios (both active high) and I have registered them from the kfr2r09 board file, assuming this was not a platform-specific design, but something the sensor requires. As per the previous drivers ported away from soc_camera, I'm in favour of moving them to staging if they do not match the quality expected from a modern V4L2 sensor driver. Ie. framerate control is missing, and I know this has been a blocker for other drivers in the past. What I've done to three board files closely resembles what I done already for Migo-R and Ecovec, and it listed in the single commit messages. The only tough one is probably ap325rxa, which had an additional sensor registered but controlled from i2c transaction of magic blobs from the board file. I dare to remove that sensor registration completely as it seems to me there is no diver for that at all in mainline. Last, this patch is based on the media tree master branch, with Akinobu Mita's patches on ov772x driver on top, which I strangely see only partially applied to the media master tree [1] Hans, as this is mostly media-related work, but mostly on SH architecture, I would like to ask if these should go through you or SH tree. All of that has only been compile tested. It's pretty hard to find this platforms around and testing would be awesome if somebody happens to have one of these. Thanks j [1] https://patchwork.linuxtv.org/patch/49318/ https://patchwork.linuxtv.org/patch/49317/ https://patchwork.linuxtv.org/patch/49312/ Jacopo Mondi (5): media: i2c: Copy rj54n1cb0c soc_camera sensor driver media: i2c: rj54n1: Remove soc_camera dependencies arch: sh: kfr2r09: Use new renesas-ceu camera driver arch: sh: ms7724se: Use new renesas-ceu camera driver arch: sh: ap325rxa: Use new renesas-ceu camera driver arch/sh/boards/mach-ap325rxa/setup.c | 282 ++----- arch/sh/boards/mach-kfr2r09/setup.c | 216 +++-- arch/sh/boards/mach-se/7724/setup.c | 120 ++- arch/sh/kernel/cpu/sh4a/clock-sh7723.c | 2 +- drivers/media/i2c/Kconfig | 11 + drivers/media/i2c/Makefile | 1 + drivers/media/i2c/rj54n1cb0c.c | 1437 ++++++++++++++++++++++++++++++++ 7 files changed, 1710 insertions(+), 359 deletions(-) create mode 100644 drivers/media/i2c/rj54n1cb0c.c -- 2.7.4