From patchwork Fri Jun 18 13:02:28 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: =?utf-8?q?Heiko_St=C3=BCbner?= X-Patchwork-Id: 12331295 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-11.9 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id A466FC48BE8 for ; Fri, 18 Jun 2021 13:02:50 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 2D16F613D1 for ; Fri, 18 Jun 2021 13:02:50 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 2D16F613D1 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=sntech.de Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-rockchip-bounces+linux-rockchip=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:Cc :To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=b/WyYT/vNZjxu0YRAcQv8zdjJGzpxMXBXp6Lh1k56f8=; b=b6hAzwwjBAiqVM Rl2HlugH8azAEG/0gS0HtT7qJ2RzA01M4hhdegywIhvw9+kz3Jwiyp67P3khcvmCHrAtz4022Hcdh 7GuFNxDe9a5p//K+9lxhBJmgBc9ZLZ/kxo0/oZQwfF8f/VqJeWj2uCsTvzbuo4AUA0fJRLJJkcBVt EW+SqkzPZudBC7ei7cxUqOVYr5QNI3Rb9aJrzbV045ItRa8JLsDjyQf2ywLZsAoSp0cooGeivu7L7 vcVGhEccVRzAU7e7J8qVMBQK0Xh3PCjvtT0Kphw43EfgAhuq3cqzgL+g+mdTxhvrXLoseBgmp798X eLBtbxXF6BhFN6dFQZyA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1luE91-00E6Y9-J2; Fri, 18 Jun 2021 13:02:47 +0000 Received: from gloria.sntech.de ([185.11.138.130]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1luE8w-00E6Ue-Tv for linux-rockchip@lists.infradead.org; Fri, 18 Jun 2021 13:02:44 +0000 Received: from ip5f5aa64a.dynamic.kabel-deutschland.de ([95.90.166.74] helo=phil.lan) by gloria.sntech.de with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1luE8u-0001y0-3W; Fri, 18 Jun 2021 15:02:40 +0200 From: Heiko Stuebner To: mchehab@kernel.org, hverkuil-cisco@xs4all.nl Cc: ezequiel@collabora.com, dafna.hirschfeld@collabora.com, helen.koike@collabora.com, Laurent.pinchart@ideasonboard.com, linux-rockchip@lists.infradead.org, linux-media@vger.kernel.org, heiko@sntech.de, robh+dt@kernel.org, devicetree@vger.kernel.org Subject: [PATCH v6 0/7] rkisp1 support for px30 Date: Fri, 18 Jun 2021 15:02:28 +0200 Message-Id: <20210618130238.4171196-1-heiko@sntech.de> X-Mailer: git-send-email 2.29.2 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210618_060243_051694_5E6E9929 X-CRM114-Status: GOOD ( 13.20 ) X-BeenThere: linux-rockchip@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Upstream kernel work for Rockchip platforms List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "Linux-rockchip" Errors-To: linux-rockchip-bounces+linux-rockchip=archiver.kernel.org@lists.infradead.org This series adds support for the slightly different v12 variant of the ISP used for example in the px30 soc. changes in v6: - camera compatible in px30 binding example (Rob's bot) - move a last wrong positionen constant define (a v12 addition should not be added in the v10-prefix change) (Dafna) - rename size to clk_size in match-data struct (Dafna) changes in v5: - handle interrupt-names as conditional required property (Dafna) - add second example for showing interrupt-names (Dafna) changes in v4: - clean up multi-irq case (Dafna) Now each variant can have a list of interrupts and their respective handlers, with or without interrupt-names changes in v3: - add necessary binding additions - fix pclk naming in binding - move v12 clk_ctrl register bits to v12 addition patch - fix rebase artefact with hst_enable changes in v2 (from rfc): - split out phy patch into a separate series - drop dts patches for now - split v12 addition and v10 prefixes into separate patches to enable easier review (Dafna) - remove {stats,params}_config structs, we can just use the correct constant (Dafna) - adapt to styling comments from Dafna and Helen - add patch to remove the unused irq variable in struct rkisp Heiko Stuebner (10): media: rockchip: rkisp1: remove unused irq variable dt-bindings: media: rkisp1: fix pclk clock-name dt-bindings: media: rkisp1: document different irq possibilities media: rockchip: rkisp1: allow separate interrupts media: rockchip: rkisp1: make some isp-param functions variable media: rockchip: rkisp1: make some isp-stats functions variable media: rockchip: rkisp1: add prefixes for v10 specific parts media: rockchip: rkisp1: add support for v12 isp variants dt-bindings: media: rkisp1: document px30 isp compatible media: rockchip: rkisp1: add support for px30 isp version .../bindings/media/rockchip-isp1.yaml | 114 +++- .../platform/rockchip/rkisp1/rkisp1-capture.c | 9 +- .../platform/rockchip/rkisp1/rkisp1-common.h | 44 +- .../platform/rockchip/rkisp1/rkisp1-dev.c | 81 ++- .../platform/rockchip/rkisp1/rkisp1-isp.c | 29 +- .../platform/rockchip/rkisp1/rkisp1-params.c | 557 ++++++++++++++---- .../platform/rockchip/rkisp1/rkisp1-regs.h | 406 ++++++++----- .../platform/rockchip/rkisp1/rkisp1-stats.c | 107 +++- 8 files changed, 1050 insertions(+), 297 deletions(-)