Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp1250888ybi; Wed, 3 Jul 2019 12:11:45 -0700 (PDT) X-Google-Smtp-Source: APXvYqzHDsC7UKb9pAFhGN/hM9o5/XcRjVHtkYcaQ+S8hrBEH9BY+XiG/8XeJMwxp5blmduIowcB X-Received: by 2002:a17:902:70cc:: with SMTP id l12mr44292822plt.87.1562181105712; Wed, 03 Jul 2019 12:11:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1562181105; cv=none; d=google.com; s=arc-20160816; b=SlKrdcOX7ZtSbIfYkNNPIs0wQdL0QNbtc0XBz6zSbXoOt5FfhzZBZ4kGuhK6lQ0eui e7No7ImvuekKOZAaaj98z0lCi3fq81+dCyIuyty+lTOBktlWNFPeie08Q54bWOktHSQ4 RnQz+oX+cCdxhx6swHpTwSjo0zKsGNTpgpK2byYDlgxNvfkSZROn3bLzO9VA0h/AVR03 zEOE5OfoA/3hO+/UB6P5s/iWNMMto8S+VaxgD1eis24e6F+n18eg26NYa8nPoW0TKGj/ uu+jmVbHcYj4Q4UTJ6OyaTqec6amTtXNVXu9P37548sOajLNABqFGZ3uMAVTFw8t86Sh /A5A== 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=BqMZHjcpwSdIJMdzLh/g+iVeDb9rAhCOezYWBVTYZYk=; b=xazhOKreHGCJ9BtSn2dKSgJxlhLesEcgTuA9RWCrEF1Ucr1e3DZzOwIehqwffnFK4m U24Co9a1Tib/sddbqa0nkyRzoTPJnCkVny7y66WdJj6vaTtCBjsQnW65XYCGeYajH8JZ ZfRV8Qvs9njfso747UG6r1RqccCxXbK+IUhXwtdGh2efad4uILw36m4F6TbE7YMzxEXx GivL6Dc3YaxjyFm8VUfZ2XxAAUsu26EaBcqZeo9B/UFvejlj5VfymEhgGxvEkeE/opTu 878Vq5h5QOeMbaJ7etxbRbynb32UMsT3pKz73TSNTnSJIIXgD2do6Wja45FKBb2YqlVz JpWQ== 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 j37si2972035plb.58.2019.07.03.12.11.30; Wed, 03 Jul 2019 12:11:45 -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 S1727423AbfGCTKl (ORCPT + 99 others); Wed, 3 Jul 2019 15:10:41 -0400 Received: from bhuna.collabora.co.uk ([46.235.227.227]:42482 "EHLO bhuna.collabora.co.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727392AbfGCTKj (ORCPT ); Wed, 3 Jul 2019 15:10:39 -0400 Received: from [127.0.0.1] (localhost [127.0.0.1]) (Authenticated sender: koike) with ESMTPSA id D4D5128ABC9 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 , Rob Herring , Mark Rutland Subject: [PATCH v7 10/14] dt-bindings: Document the Rockchip ISP1 bindings Date: Wed, 3 Jul 2019 16:09:06 -0300 Message-Id: <20190703190910.32633-11-helen.koike@collabora.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190703190910.32633-1-helen.koike@collabora.com> References: <20190703190910.32633-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 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.20.1