Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp4992556ybi; Tue, 30 Jul 2019 11:46:52 -0700 (PDT) X-Google-Smtp-Source: APXvYqwpTIOnCHNbSRhirqTccxNl7aTpGFNWzn4n9N39i6cCNMVW457vbdScfKB4A51noF+/+4/m X-Received: by 2002:a65:6497:: with SMTP id e23mr106245809pgv.89.1564512412724; Tue, 30 Jul 2019 11:46:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1564512412; cv=none; d=google.com; s=arc-20160816; b=uT/dCf0yHaireKo64BWSP6nnkNr9uY5XHygN+0gwjQ77ZibilDGbyrkQQcaO9MjLYB K616SLHQZ/WeHNYHb87SYD3kfmgqOW4UZ9EsiISE/wDBKeR4mtap5vP0LgHe2NepmDQ9 ud0gZsenr5ZSLLkYzscvVkdD56JfhcBwVnEwOde40eKn5Li4kfM2wdZUWvXeP+TUs7/m UAVBHVGWD/wGgsDByYk0d7aE/QoaG7wsvEprzct1NfW5YaICkBqBHeCGc7AFBjM7hRK7 DE0v0Qp87UiGgSwZ/GTTp/nqBLhx2yPws5Gu7qyUIQG4+ERH4N2JuXEnx1R6jHvg+o7A e4mg== 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=Ueh3WIXhVAleDUdBUQm6RiAHUbifyZNAf0aauJb20Zw=; b=MibolaSPEmXYq0qA94ZlM9Ez6KVBk/5r90BWkfgDaCWLKsvOpz+veQ9+D7pKySniZH K0HC72wg1g/zLBsOvAUrRvhug5sKaKMte/yPQoi//A5pgWumUJsQVSed8Nlh5dq9sJzk E5yyRY4A++YcrKWTeBUUTrYN7YAyja7fAiKnwebDTXL5zE4R5yIgEmSwwWpZ2ECyfppp Z9P6ByFee/e0T71La4LBdZNTnkNf84yrNUa/7jc1tBn1/2Lt0Qy/PVix2J0hNfcyqSDq iE2pEa7ZxDKLqv9TTg89zsZz4OKS/PydIV1G2/S+Us8esDo5vEqNdUn+IU4Lso2pc46c yY4Q== 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 l62si33234623pge.590.2019.07.30.11.46.37; Tue, 30 Jul 2019 11:46:52 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=collabora.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2388425AbfG3Sph (ORCPT + 99 others); Tue, 30 Jul 2019 14:45:37 -0400 Received: from bhuna.collabora.co.uk ([46.235.227.227]:42828 "EHLO bhuna.collabora.co.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2387744AbfG3Spe (ORCPT ); Tue, 30 Jul 2019 14:45:34 -0400 Received: from floko.floko.floko (unknown [IPv6:2804:431:c7f1:ce2f:ec1:e6e6:2e9f:e76e]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: koike) by bhuna.collabora.co.uk (Postfix) with ESMTPSA id 3C14A28B91D; Tue, 30 Jul 2019 19:45:28 +0100 (BST) From: Helen Koike To: linux-rockchip@lists.infradead.org Cc: devicetree@vger.kernel.org, eddie.cai.linux@gmail.com, mchehab@kernel.org, heiko@sntech.de, jacob2.chen@rock-chips.com, jeffy.chen@rock-chips.com, zyc@rock-chips.com, linux-kernel@vger.kernel.org, tfiga@chromium.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, linux-arm-kernel@lists.infradead.org, zhengsq@rock-chips.com, Rob Herring , Helen Koike Subject: [PATCH v8 10/14] dt-bindings: Document the Rockchip ISP1 bindings Date: Tue, 30 Jul 2019 15:42:52 -0300 Message-Id: <20190730184256.30338-11-helen.koike@collabora.com> X-Mailer: git-send-email 2.22.0 In-Reply-To: <20190730184256.30338-1-helen.koike@collabora.com> References: <20190730184256.30338-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 [update for upstream] Signed-off-by: Helen Koike --- Changes in v8: None 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 Documentation/devicetree/bindings/media/rockchip-isp1.txt diff --git a/Documentation/devicetree/bindings/media/rockchip-isp1.txt b/Documentation/devicetree/bindings/media/rockchip-isp1.txt new file mode 100644 index 000000000000..a97fef0f189f --- /dev/null +++ b/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