From patchwork Wed Dec 6 11:19:34 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jacob Chen X-Patchwork-Id: 10095615 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 2425D60210 for ; Wed, 6 Dec 2017 11:23:47 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 1607A28066 for ; Wed, 6 Dec 2017 11:23:47 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 0A3A329CC6; Wed, 6 Dec 2017 11:23:47 +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=-6.9 required=2.0 tests=BAYES_00,RCVD_IN_DNSWL_HI autolearn=unavailable version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 98D7A28066 for ; Wed, 6 Dec 2017 11:23:46 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752563AbdLFLXO (ORCPT ); Wed, 6 Dec 2017 06:23:14 -0500 Received: from mail-pf0-f196.google.com ([209.85.192.196]:46665 "EHLO mail-pf0-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752472AbdLFLUw (ORCPT ); Wed, 6 Dec 2017 06:20:52 -0500 Received: by mail-pf0-f196.google.com with SMTP id c204so2112088pfc.13; Wed, 06 Dec 2017 03:20:52 -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=kNZZIZ7A6XZryKcOFK7dZh3De/tzn3T8cZobLA6LwrU=; b=CXDVMyYzVmqoDVEuovXWZ/UVovoyNy+p9R73Ih4nBPXRHehtiiEiNO3DwlPeZP0gTl WvwCPT1kaFebc2KIRPKxPNRiZEdcsCEjdDy1cfXNgi0Mz9fkQhZWTCjqQI0FKw9DXZT+ SU7Sc8OaLJIwyF6UyMJIymXD1OpLUaDIvfI0v3n9EptMgx7hkITUeYm3Ay80NhLq9KXt mMJs3whOR+hHuREMoRen6H2szjTLT3wsUUnaWsHWvVfzFH/ol8yyRk2KuYInPY++Huse bThBMoV2oG7X5wuR4rfSAiYJR/+6N3KHTLtsJ1w7eFUcCUT0f0+10K4/zC+mPXqmINrE KNRg== X-Gm-Message-State: AKGB3mKcfLrek6KpvTKe4gbvgRaYPRTaZ2Ri2tx1/GlxOq8jzojC0Qj/ N5KIdDqxIsm3AoI2zd/tK10= X-Google-Smtp-Source: AGs4zMZtpDqg+r7WMuYoeOJBFNk2XdIp7UJJxMXJ53RPcy1Y4j/ONb4J+7Sj02VuBWsFrFA3HihErA== X-Received: by 10.99.66.68 with SMTP id p65mr1933013pga.339.1512559251678; Wed, 06 Dec 2017 03:20:51 -0800 (PST) Received: from localhost.localdomain ([103.29.142.67]) by smtp.gmail.com with ESMTPSA id p13sm4619589pgn.32.2017.12.06.03.20.46 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 06 Dec 2017 03:20:51 -0800 (PST) From: Jacob Chen To: linux-rockchip@lists.infradead.org Cc: linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, mchehab@kernel.org, linux-media@vger.kernel.org, sakari.ailus@linux.intel.com, hans.verkuil@cisco.com, tfiga@chromium.org, zhengsq@rock-chips.com, laurent.pinchart@ideasonboard.com, zyc@rock-chips.com, eddie.cai.linux@gmail.com, jeffy.chen@rock-chips.com, allon.huang@rock-chips.com, devicetree@vger.kernel.org, heiko@sntech.de, robh+dt@kernel.org, Joao.Pinto@synopsys.com, Luis.Oliveira@synopsys.com, Jose.Abreu@synopsys.com, Jacob Chen Subject: [PATCH v3 07/12] dt-bindings: Document the Rockchip MIPI RX D-PHY bindings Date: Wed, 6 Dec 2017 19:19:34 +0800 Message-Id: <20171206111939.1153-8-jacob-chen@iotwrt.com> X-Mailer: git-send-email 2.15.0 In-Reply-To: <20171206111939.1153-1-jacob-chen@iotwrt.com> References: <20171206111939.1153-1-jacob-chen@iotwrt.com> Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Jacob Chen Add DT bindings documentation for Rockchip MIPI D-PHY RX Signed-off-by: Jacob Chen --- .../bindings/media/rockchip-mipi-dphy.txt | 71 ++++++++++++++++++++++ 1 file changed, 71 insertions(+) create mode 100644 Documentation/devicetree/bindings/media/rockchip-mipi-dphy.txt diff --git a/Documentation/devicetree/bindings/media/rockchip-mipi-dphy.txt b/Documentation/devicetree/bindings/media/rockchip-mipi-dphy.txt new file mode 100644 index 000000000000..cef9450db051 --- /dev/null +++ b/Documentation/devicetree/bindings/media/rockchip-mipi-dphy.txt @@ -0,0 +1,71 @@ +Rockchip SoC MIPI RX D-PHY +------------------------------------------------------------- + +Required properties: + +- compatible: value should be one of the following + "rockchip,rk3288-mipi-dphy"; + "rockchip,rk3399-mipi-dphy"; +- rockchip,grf: GRF regs. +- bus-width : maximum number of data lanes supported (SoC specific); +- clocks : list of clock specifiers, corresponding to entries in + clock-names property; +- clock-names: required clock name. + +The device node should contain two 'port' child node, according to the bindings +defined in Documentation/devicetree/bindings/media/video-interfaces.txt. +The first port should be connected to sensor nodes, and the second port should be +connected to isp node. The following are properties specific to those nodes. + +endpoint node +------------- + +- data-lanes : (required) an array specifying active physical MIPI-CSI2 + data input lanes and their mapping to logical lanes; the + array's content is unused, only its length is meaningful; + +Device node example +------------------- + + mipi_dphy_rx0: mipi-dphy-rx0 { + compatible = "rockchip,rk3399-mipi-dphy"; + clocks = <&cru SCLK_MIPIDPHY_REF>, + <&cru SCLK_DPHY_RX0_CFG>, + <&cru PCLK_VIO_GRF>; + clock-names = "dphy-ref", "dphy-cfg", "grf"; + power-domains = <&power RK3399_PD_VIO>; + bus-width = <4>; + + ports { + #address-cells = <1>; + #size-cells = <0>; + + port@0 { + reg = <0>; + #address-cells = <1>; + #size-cells = <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>; + }; + }; + + port@1 { + reg = <1>; + #address-cells = <1>; + #size-cells = <0>; + + dphy_rx0_out: endpoint@0 { + reg = <0>; + remote-endpoint = <&isp0_mipi_in>; + }; + }; + }; + }; \ No newline at end of file