Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp2419619ybi; Thu, 4 Jul 2019 10:41:47 -0700 (PDT) X-Google-Smtp-Source: APXvYqw9qPDreLL3h38/jz9GmhPcjIJWUqpca8H7CegOs/WuGJ+ujo7HAj/MLL82SXYH66FrMlg4 X-Received: by 2002:a63:2355:: with SMTP id u21mr43383063pgm.205.1562262107227; Thu, 04 Jul 2019 10:41:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1562262107; cv=none; d=google.com; s=arc-20160816; b=kF1aoQ3w5rfTUzVj53O9ASCAUOH2uAb2R7gUdLaq8IzlaVTwMqvt7xqxQLDoU3Rfwt ppeOCRFfVPFyDQVU7MjGPj7xxaGHu/zPz6MCvnNzO/ukp4FMJTx8S/hfS5nslJipfcYv kJ9apleL+BxOaSE3o0jP/m7GLI2cNtD8eH3Na9LC6F/i9eTmui9JyjC3U0P8t2POk6vY HIjZbMsJA2JggbPl+WerWbVGxXGf3/8rYZcGA24Wf236T9On14iLaUC9VGURfN6MDzhJ ZZ5217/8PUq2kIPPVQL8DpcuP5M5JKwShq+7v7aFq+a9dK612IZNhCN6Qemzx6hRrP/8 WS9Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-language :content-transfer-encoding:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject; bh=qMweYtVMvHXR4YKMf9KmJ+62udCs33rPk4PvQLnT4LQ=; b=bLSQl3Fyv7/+SuKsc8hs2/kZHdkAORE8FXyGkjOIEiIfqyuxuBu48W875qiHch3wWW EVG8nfLERZZ9kJ1Bl4qrG1RAtLEBc+GakrFvzob4kZ3dXzV7EFGuKuE0JcntZqr6TrII UaPVUqD48pqqnBLSfJGQ2PsYclYBVWwyrN+B50/PlXXXN+tGYxAxSa9XB9syrDdhn8vx 5vseJbZzJUb8KUtDwmbXWYKIM05lTqGSu68FrTyRPM9ENxau+kd0GWMKK3USPgIxC6xn 3Qhnb0lzp27JJStQ9s18WU3DcRG8MpkSjR0RdDBW1/xftf3jVavlzNb9NLQj7g3Vlqnj goCQ== 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 w15si5551403ply.127.2019.07.04.10.41.32; Thu, 04 Jul 2019 10:41:47 -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 S1727263AbfGDREi (ORCPT + 99 others); Thu, 4 Jul 2019 13:04:38 -0400 Received: from bhuna.collabora.co.uk ([46.235.227.227]:53598 "EHLO bhuna.collabora.co.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727231AbfGDREh (ORCPT ); Thu, 4 Jul 2019 13:04:37 -0400 Received: from [IPv6:2804:431:c7f5:f63c:d711:794d:1c68:5ed3] (unknown [IPv6:2804:431:c7f5:f63c:d711:794d:1c68:5ed3]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: tonyk) by bhuna.collabora.co.uk (Postfix) with ESMTPSA id DC2ED28B0E2; Thu, 4 Jul 2019 18:04:28 +0100 (BST) Subject: Re: [PATCH v7 10/14] dt-bindings: Document the Rockchip ISP1 bindings To: Helen Koike , 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 , Rob Herring , Mark Rutland References: <20190703190910.32633-1-helen.koike@collabora.com> <20190703190910.32633-11-helen.koike@collabora.com> From: =?UTF-8?Q?Andr=c3=a9_Almeida?= Message-ID: Date: Thu, 4 Jul 2019 14:03:45 -0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.7.2 MIME-Version: 1.0 In-Reply-To: <20190703190910.32633-11-helen.koike@collabora.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Content-Language: en-US Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hello Helen, On 7/3/19 4:09 PM, Helen Koike wrote: > 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 > +------------------- I would remove those extra `---`, and keep as: ...node ...---- The same applies for the title. Thanks,     André > + > +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>; > + }; > + }; > + }; > + };