Received: by 2002:a25:683:0:0:0:0:0 with SMTP id 125csp690934ybg; Mon, 1 Jun 2020 11:47:37 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyL8REywnokgyFUu+oix0WsMj95c1eCKpkHIQ2gLX8AZAceESRsMiWA+ZoOqmaKSci3KpWn X-Received: by 2002:a50:f18f:: with SMTP id x15mr23492172edl.228.1591037256800; Mon, 01 Jun 2020 11:47:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1591037256; cv=none; d=google.com; s=arc-20160816; b=cQUXOFladLtX6n92TAR3lvVVvhqoxMXfQ8mgmdm7KPHgoXUQMv25idiYuye5hW8isq r2B//9u7vBoHmGAQWrYpNxzuaOjKC3Ea8LIYt/L6nHmRa/aoFtSGB2Citsjdsc38tg5J UlwvK1egUJeQOXKvpEAuOY/u+u5VekaCcbORMkVc8OcuC4gd6cfHrGV00aTnH/YGhGV4 1s5XWebMw7EdxBwgSVSTm87wvnm+BfcoPTNgjCdA5Ghr8dwNIWOwsbXR/UgTByiFDrQ3 mbyEBGZ0+pUu5UQvEb6+lxQOZe8u1YBoy1tGgBkojkFC37+7mFyPSHYP6R6hUWE0IZdT Ccdw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=G1VMPDaeJfT8+NmaRje7sflS/Zy0f/09GM/fygivpDo=; b=CYu7ZGzDIXsztFBO/e3CUBsheHZFnE8d2z1Cy1yJLMloYcbOaCfHVCwJ/rnmCQlKRA 10zsRpA7Sndimzk9OAZfIsmlA5wLQnp8T1XAUO12YWC9cagpb/n1RNTiwEx2lSuLtbzY 85DBECRXnOJz4ugXoVrUTw+TpgNHGV/8LsUGKqpPb99Ht9/a+yIpEzQchfO0xJ3XazCq 3BnqvqJHaGaPZ+QQBxDqDWYuqZQaY1HWkFWHeg5TLZNfnRmgmDhYfXyQy0TXyUOaf9NF CqUue7BF26P2zch5hGY6jLsNdzncro6hUsFlQfUQxfINaJmchbPDlM95VCiAU/kap4Qy N0cQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=eMwUwSMm; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id j2si148509edd.36.2020.06.01.11.47.13; Mon, 01 Jun 2020 11:47:36 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=eMwUwSMm; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730207AbgFASpc (ORCPT + 99 others); Mon, 1 Jun 2020 14:45:32 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43618 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729956AbgFASpb (ORCPT ); Mon, 1 Jun 2020 14:45:31 -0400 Received: from mail-ej1-x641.google.com (mail-ej1-x641.google.com [IPv6:2a00:1450:4864:20::641]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6DEB9C061A0E for ; Mon, 1 Jun 2020 11:45:30 -0700 (PDT) Received: by mail-ej1-x641.google.com with SMTP id f7so10191837ejq.6 for ; Mon, 01 Jun 2020 11:45:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=G1VMPDaeJfT8+NmaRje7sflS/Zy0f/09GM/fygivpDo=; b=eMwUwSMmFyEn7DmLF4myi59y7ESt2HQDfbtUySBAfQf+MVQoCAq2ISQG8jRaF4we3D EDsTMPkk77N3GGd43Kw601vDoU1sLinW5DaqzZqH9oHiGqEB+0a6nTXaw0b055PVIEEV NQtwRu5bwRqWwQkLq43ahZjfuqUrc7H5hFtF0= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=G1VMPDaeJfT8+NmaRje7sflS/Zy0f/09GM/fygivpDo=; b=ZSUZJXxD5pSuMCy4KZu5emwnuUPWTaGp/02AhtCm1iRW17oYXXBSuPj9ALGKZtGX/m l0TnMHUMoB86WqZfri44UvPjknM7WQ0Y+XbeakjAhEpOrjpk5ybJsxSkatPBhdejm2uh HKHnX9kVj41XIPLsDmYxwCRfSP/shKNKBg9VhguJXvpBi7RD0vhDoxdWdq6ldCom8h7Q cLP/BJOJq+WfU4T4nRYhJqhJf51V97cHzJx87pcYUcXde5eN6wJgxtFRkrI/Lzun7M4q ElZfZGTB4Hod7+3I2xxKWn43tnlHnQVQX0drSL/sSpQcsx2qvQI1E0Fyw/R99YLHeQcf 9ggQ== X-Gm-Message-State: AOAM533dVsMxVcxPeKratlR63GpVegYuU6sms7GnaOs/fkv1Re2pJS3K oBS0uzQMAmcOw/O6Eh2LEwW8PJbRk/laLw== X-Received: by 2002:a17:906:e0cf:: with SMTP id gl15mr6519669ejb.501.1591037128894; Mon, 01 Jun 2020 11:45:28 -0700 (PDT) Received: from mail-wm1-f53.google.com (mail-wm1-f53.google.com. [209.85.128.53]) by smtp.gmail.com with ESMTPSA id h10sm356751ejb.2.2020.06.01.11.45.27 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 01 Jun 2020 11:45:28 -0700 (PDT) Received: by mail-wm1-f53.google.com with SMTP id c71so487999wmd.5 for ; Mon, 01 Jun 2020 11:45:27 -0700 (PDT) X-Received: by 2002:a7b:c622:: with SMTP id p2mr581952wmk.55.1591037127078; Mon, 01 Jun 2020 11:45:27 -0700 (PDT) MIME-Version: 1.0 References: <20200529130405.929429-1-maxime.chevallier@bootlin.com> In-Reply-To: <20200529130405.929429-1-maxime.chevallier@bootlin.com> From: Tomasz Figa Date: Mon, 1 Jun 2020 20:45:14 +0200 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v2 0/3] media: rockchip: Introduce driver for the camera interface on PX30 To: Maxime Chevallier , Helen Koike , Dafna Hirschfeld Cc: Mauro Carvalho Chehab , Robin Murphy , Rob Herring , Mark Rutland , Heiko Stuebner , Hans Verkuil , Linux Media Mailing List , linux-devicetree , "list@263.net:IOMMU DRIVERS , Joerg Roedel ," , "open list:ARM/Rockchip SoC..." , Linux Kernel Mailing List , Thomas Petazzoni , Miquel Raynal , Paul Kocialkowski Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Maxime, On Fri, May 29, 2020 at 3:04 PM Maxime Chevallier wrote: > > Hello everyone, > > Here's a V2 of the series adding very basic support for the camera interface on > the Rockchip PX30 SoC. > > Thanks to everyone that commented on the first series, your reviews were > very helpful :) > > This Camera Interface is also supported on other Rockchip SoC such as > the RK1808, RK3128, RK3288 and RK3288, but for now I've only been able to > test it on the PX30, using a PAL format. How does this hardware relate to the one handled by the rkisp1 driver that is available under staging/media/rkisp1? It was written with RK3399 in mind, but I have a loose recollection that the hardware in RK3288 was roughly the same. +Helen Koike +Dafna Hirschfeld working on the rkisp1 driver. Best regards, Tomasz > > This driver is mostly based on the driver found in Rockchip's BSP, that > has been trimmed down to support the set of features that I was able to test, > that is pretty much a very basic one-frame capture and video streaming > with GStreamer. > > This first draft only supports the Parallel interface, although the > controller has support for BT656 and CSI2. > > Finally, this controller has an iommu that could be used in this driver, > but as of today I've not been able to get it to work. > > Any review is welcome. > > Thanks, > > Maxime > > --- Changes since V1 --- > > - Took reviews from Rob, Hans, Robin and Heiko into account : > - Renamed the clocks in the binding > - Fixed the DT schema compiling > - Fixed a few typos > - Used the clk bulk API > - Used the reset array API > - Changed a few helpers for more suitable ones > - Rebased on 5.7-rc7 > > > > Maxime Chevallier (3): > media: dt-bindings: media: Document Rockchip CIF bindings > media: rockchip: Introduce driver for Rockhip's camera interface > arm64: dts: rockchip: Add the camera interface description of the PX30 > > .../bindings/media/rockchip-cif.yaml | 100 ++ > arch/arm64/boot/dts/rockchip/px30.dtsi | 12 + > drivers/media/platform/Kconfig | 13 + > drivers/media/platform/Makefile | 1 + > drivers/media/platform/rockchip/cif/Makefile | 3 + > drivers/media/platform/rockchip/cif/capture.c | 1170 +++++++++++++++++ > drivers/media/platform/rockchip/cif/dev.c | 358 +++++ > drivers/media/platform/rockchip/cif/dev.h | 213 +++ > drivers/media/platform/rockchip/cif/regs.h | 256 ++++ > 9 files changed, 2126 insertions(+) > create mode 100644 Documentation/devicetree/bindings/media/rockchip-cif.yaml > create mode 100644 drivers/media/platform/rockchip/cif/Makefile > create mode 100644 drivers/media/platform/rockchip/cif/capture.c > create mode 100644 drivers/media/platform/rockchip/cif/dev.c > create mode 100644 drivers/media/platform/rockchip/cif/dev.h > create mode 100644 drivers/media/platform/rockchip/cif/regs.h > > -- > 2.25.4 >