Received: by 2002:a25:31c3:0:0:0:0:0 with SMTP id x186csp280435ybx; Wed, 6 Nov 2019 17:02:05 -0800 (PST) X-Google-Smtp-Source: APXvYqz2nuyDnHs0quCXRmxd3VDF24hVS3TxuQPJUQ9K517/oQn5ikDIMkLIvWJA0wjm1kRl5CnN X-Received: by 2002:a17:906:1e07:: with SMTP id g7mr571386ejj.256.1573088525669; Wed, 06 Nov 2019 17:02:05 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1573088525; cv=none; d=google.com; s=arc-20160816; b=H6x9SxfPeYX3nGIZvVIka2zswFmMzFkERZixBBucSr4IjrpOvvWWvLJXS+SSlz9uxB yvz6E9kKzpn4YXm3RzsHsKpvOysGek5NILy7Mmo8P1vR0Gbq+x8UofsFFULtY09VsXaR wp4sVngmYuW7V8QHKmv0UN/Hfueh88H74NW2nsgobVufHX3gSh9IHKdv5Q8w28iaZwwq FNzsleEOibFA2kG+StEw4c6jZ1EYXNa3jz6qxvrdTq+f2XqfdyzRXNR0anLr+wQzERYo TTfSBCr08mDCtgzFRQabGtJsiTcyiOzUxujdTuSIGQr75J/j8lKY3f21ATgfOKX9cyQ6 ynWA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=FLpyMmjOYIM9vwIjevgpkpcZbba0sqXAKrFT7p4XM0Q=; b=M3iaZas8PR4nKLvhm6AhFiYkXv9JezkXKRZwiGY3vlrxfKF/9Av5PH0BhNbWJbLZf+ 5bP+5mm4IBYT2DS7+WP4uplhdFk+LE7h379YYwGqVqydDwm9NRBxnp8bYPmXcnmSwgJy F86p9rNGGLdFbRa8jhynsOtQWqw3lgbZZyi41u7UxMCH/SQ9VhUwdiE8Cis5BaXpkUvu 9PhiH5jU0uWgU8fqcxCVguI4iyZM3chsuKd2CO2m2voin/PhPEs6Q0qsDsy49+Bb+KJg xLW7hcNqSU4DaTsppA+CxVPaCx5Figq2sTM625AgWwb9GpZjPhk20t9H77x0uGZ7JcSH 2nGg== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=collabora.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id k1si416602eja.146.2019.11.06.17.01.41; Wed, 06 Nov 2019 17:02:05 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=collabora.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1733006AbfKGA6F (ORCPT + 99 others); Wed, 6 Nov 2019 19:58:05 -0500 Received: from bhuna.collabora.co.uk ([46.235.227.227]:41320 "EHLO bhuna.collabora.co.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727393AbfKGA6F (ORCPT ); Wed, 6 Nov 2019 19:58:05 -0500 Received: from [127.0.0.1] (localhost [127.0.0.1]) (Authenticated sender: koike) with ESMTPSA id 346C628531C From: Helen Koike To: linux-rockchip@lists.infradead.org Cc: mark.rutland@arm.com, devicetree@vger.kernel.org, eddie.cai.linux@gmail.com, mchehab@kernel.org, heiko@sntech.de, linux-arm-kernel@lists.infradead.org, gregkh@linuxfoundation.org, jeffy.chen@rock-chips.com, zyc@rock-chips.com, linux-kernel@vger.kernel.org, tfiga@chromium.org, robh+dt@kernel.org, hans.verkuil@cisco.com, laurent.pinchart@ideasonboard.com, sakari.ailus@linux.intel.com, kernel@collabora.com, ezequiel@collabora.com, linux-media@vger.kernel.org, jacob-chen@iotwrt.com, zhengsq@rock-chips.com, Jacob Chen , Rob Herring , Helen Koike Subject: [PATCH v10 09/11] media: staging: dt-bindings: Document the Rockchip ISP1 bindings Date: Wed, 6 Nov 2019 21:56:15 -0300 Message-Id: <20191107005617.12302-10-helen.koike@collabora.com> X-Mailer: git-send-email 2.22.0 In-Reply-To: <20191107005617.12302-1-helen.koike@collabora.com> References: <20191107005617.12302-1-helen.koike@collabora.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Jacob Chen Add DT bindings documentation for Rockchip ISP1 Signed-off-by: Jacob Chen Reviewed-by: Rob Herring [refactored for upstream] Signed-off-by: Helen Koike --- Changes in v10: - unsquash Changes in v9: - squash - move to staging Changes in v8: - fix title division style Changes in v7: - update document with new design and tested example .../bindings/media/rockchip-isp1.txt | 71 +++++++++++++++++++ 1 file changed, 71 insertions(+) create mode 100644 drivers/staging/media/rkisp1/Documentation/devicetree/bindings/media/rockchip-isp1.txt diff --git a/drivers/staging/media/rkisp1/Documentation/devicetree/bindings/media/rockchip-isp1.txt b/drivers/staging/media/rkisp1/Documentation/devicetree/bindings/media/rockchip-isp1.txt new file mode 100644 index 000000000000..eaeb838876f5 --- /dev/null +++ b/drivers/staging/media/rkisp1/Documentation/devicetree/bindings/media/rockchip-isp1.txt @@ -0,0 +1,71 @@ +Rockchip SoC Image Signal Processing unit v1 +-------------------------------------------- + +Rockchip ISP1 is the Camera interface for the Rockchip series of SoCs +which contains image processing, scaling, and compression funcitons. + +Required properties: +- compatible: value should be one of the following + "rockchip,rk3288-cif-isp"; + "rockchip,rk3399-cif-isp"; +- reg : offset and length of the register set for the device. +- interrupts: should contain ISP interrupt. +- clocks: phandle to the required clocks. +- clock-names: required clock name. +- iommus: required a iommu node. +- phys: the phandle for the PHY port +- phy-names: must contain "dphy" + +port node +--------- + +The device node should contain one 'ports' child node, with children 'port' +with child 'endpoint'. +nodes, according to the bindings defined in Documentation/devicetree/bindings/ +media/video-interfaces.txt. + +- endpoint(mipi): + - remote-endpoint: Connecting to Rockchip MIPI-DPHY, + which is defined in rockchip-mipi-dphy.txt. + +The port node must contain at least one endpoint, either parallel or mipi. +It could have multiple endpoints, but please note the hardware don't support +two sensors work at a time, they are supposed to work asynchronously. + +Device node example +------------------- + + isp0: isp0@ff910000 { + compatible = "rockchip,rk3399-cif-isp"; + reg = <0x0 0xff910000 0x0 0x4000>; + interrupts = ; + clocks = <&cru SCLK_ISP0>, + <&cru ACLK_ISP0>, <&cru ACLK_ISP0_WRAPPER>, + <&cru HCLK_ISP0>, <&cru HCLK_ISP0_WRAPPER>; + clock-names = "clk_isp", + "aclk_isp", "aclk_isp_wrap", + "hclk_isp", "hclk_isp_wrap"; + power-domains = <&power RK3399_PD_ISP0>; + iommus = <&isp0_mmu>; + phys = <&dphy>; + phy-names = "dphy"; + + ports { + #address-cells = <1>; + #size-cells = <0>; + + port@0 { + mipi_in_wcam: endpoint@0 { + reg = <0>; + remote-endpoint = <&wcam_out>; + data-lanes = <1 2>; + }; + + mipi_in_ucam: endpoint@1 { + reg = <1>; + remote-endpoint = <&ucam_out>; + data-lanes = <1>; + }; + }; + }; + }; -- 2.22.0