From patchwork Mon Dec 18 12:14:39 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jacob Chen X-Patchwork-Id: 10119065 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 6E6386019C for ; Mon, 18 Dec 2017 12:17:09 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 5E0F628FA9 for ; Mon, 18 Dec 2017 12:17:09 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 52CC528FB3; Mon, 18 Dec 2017 12:17:09 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.2 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_MED autolearn=unavailable version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id B870F28FA9 for ; Mon, 18 Dec 2017 12:17:08 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:References: In-Reply-To:Message-Id:Date:Subject:To:From:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=KOkRFYkWCO0t22db/WZkTFYPGenSuheqtLbIryJAVFY=; b=OKbDmCj2KpN2b/gSRaHhx6t8UY yMmgAY2z4G42Oy/4ErHt173COtcYnKg5vBmtmAfzVtA3QIFBc97djOVUiodugnfWTscLDIKvJbO4y oTlc8X70Tr8+XJROQYjQkJyYpIRxUcZwQepm57zL2jMUkWtyC2CIUoBRDDp1MjIzRsdYc/ox/pcER IsJUnR5vBwv8DnDSS7N7foT6habNOoDEVAFAW6vgUWUYg9EhscG38D3zZlo2OL4sNSWYrGMNYeyCl +RIbv3AAI7eyzHYvxNzQK2fmo95OhdpS9xU+7wibbNgFab2m+OyOBDp5f14tn671tJVhFbjGDirTo ZlfMVOjA==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1eQuLz-0000h5-UP; Mon, 18 Dec 2017 12:17:07 +0000 Received: from mail-pg0-f65.google.com ([74.125.83.65]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1eQuKu-00088b-8f; Mon, 18 Dec 2017 12:16:05 +0000 Received: by mail-pg0-f65.google.com with SMTP id j9so9074246pgc.11; Mon, 18 Dec 2017 04:15:39 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=0shNLBZyaX7Wv56l6urmdl7pHHhlZR0oEh7eKKIh3MU=; b=s5jJd5dAwHGQQGlv/rFmJHo36tqKD7wjY1xwptM8khetZtHSI/tYRb5ahfcJ/xmcUD 44nc4BiER+s4/Fk3ma++DOpPK1Q8eNUo4VwXm2o/pr5pOZzvRGLozBVuEuY0rpRaZlzI LVzOu+zkPx3ogRIx8tSLT7DLi8XjUjdWDaqCbSaxpKJOuw2c9n/SYjI/uuRRCh9EGvmS xpzt+K4pI4CSxOKjIl1zx0lEgG2sCGy7rTiOKBZg3mpX1n2zBgj+FKxkTRz8PmUlUlU7 ooyRtOCm0PN57I48ulTnrW8KTDWcp3l8bB5u9JaCdtW3OPjZFIoxh3cB7p2gwcv4SAUG XfpQ== X-Gm-Message-State: AKGB3mK9wALBuwESrGXDysE6GkFgiOXD/Xcw1JDtOngoxIYwuiWrAqLd dg8a/BVgCx6O6qxN56boz2w6wg== X-Google-Smtp-Source: ACJfBouNzHYC8KMsYujhkB9rWtIkjx3xUP4nYPdMhaVeeXWsG3VuBtQmW4rYtm8neWCAPXzky0pRFg== X-Received: by 10.99.44.14 with SMTP id s14mr19392378pgs.4.1513599339186; Mon, 18 Dec 2017 04:15:39 -0800 (PST) Received: from localhost.localdomain ([103.29.142.67]) by smtp.gmail.com with ESMTPSA id s184sm23828993pfb.9.2017.12.18.04.15.33 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 18 Dec 2017 04:15:38 -0800 (PST) From: Jacob Chen To: linux-rockchip@lists.infradead.org Subject: [PATCH v4 10/16] dt-bindings: Document the Rockchip ISP1 bindings Date: Mon, 18 Dec 2017 20:14:39 +0800 Message-Id: <20171218121445.6086-7-jacob-chen@iotwrt.com> X-Mailer: git-send-email 2.15.1 In-Reply-To: <20171218121445.6086-1-jacob-chen@iotwrt.com> References: <20171218121445.6086-1-jacob-chen@iotwrt.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20171218_041601_093436_D9451241 X-CRM114-Status: GOOD ( 11.78 ) X-BeenThere: linux-rockchip@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Upstream kernel work for Rockchip platforms List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Jose.Abreu@synopsys.com, devicetree@vger.kernel.org, eddie.cai.linux@gmail.com, Joao.Pinto@synopsys.com, heiko@sntech.de, Jacob Chen , jeffy.chen@rock-chips.com, zyc@rock-chips.com, linux-kernel@vger.kernel.org, tfiga@chromium.org, Luis.Oliveira@synopsys.com, robh+dt@kernel.org, hans.verkuil@cisco.com, laurent.pinchart@ideasonboard.com, sakari.ailus@linux.intel.com, allon.huang@rock-chips.com, mchehab@kernel.org, zhengsq@rock-chips.com, linux-arm-kernel@lists.infradead.org, linux-media@vger.kernel.org MIME-Version: 1.0 Sender: "Linux-rockchip" Errors-To: linux-rockchip-bounces+patchwork-linux-rockchip=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP From: Jacob Chen Add DT bindings documentation for Rockchip ISP1 Signed-off-by: Jacob Chen Reviewed-by: Rob Herring --- .../devicetree/bindings/media/rockchip-isp1.txt | 69 ++++++++++++++++++++++ 1 file changed, 69 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..4631a4b7c88a --- /dev/null +++ b/Documentation/devicetree/bindings/media/rockchip-isp1.txt @@ -0,0 +1,69 @@ +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. + +port node +------------------- + +The device node should contain one 'port' child node with child 'endpoint' +nodes, according to the bindings defined in Documentation/devicetree/bindings/ +media/video-interfaces.txt. + +- endpoint(parallel): + - remote-endpoint: Connecting to a sensor with a parallel video bus. + - parallel_bus properties: Refer to 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>; + + port { + #address-cells = <1>; + #size-cells = <0>; + + /* mipi */ + isp0_mipi_in: endpoint@0 { + reg = <0>; + remote-endpoint = <&dphy_rx0_out>; + }; + + /* parallel */ + isp0_parallel_in: endpoint@1 { + reg = <1>; + remote-endpoint = <&ov5640_out>; + bus-width = <8>; + }; + }; + };