Received: by 10.223.164.202 with SMTP id h10csp1463896wrb; Thu, 23 Nov 2017 18:41:47 -0800 (PST) X-Google-Smtp-Source: AGs4zMZMZt/6HYzb05OYrb9p0oA88pZP1yZIhNniXUMsuYsx7HHywT/F9CeIYfYgn+89Y9SB/7lx X-Received: by 10.98.36.199 with SMTP id k68mr24916762pfk.236.1511491307658; Thu, 23 Nov 2017 18:41:47 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1511491307; cv=none; d=google.com; s=arc-20160816; b=XR06KDVk8IYHnBZCjHwTqvFT5ZytpmedfVBEOfdyE45GVvKgTZ1XLFjvotuPUh9Spl aJFOSVhXjAQNCSffvzkae/QBWM8meJfBkREXiTt1L8Hv2Nw8m6nIJBbSSc3ECeVU8Ecp gzQaZZu5UjxnSKos4ERjNFNz0Xu0q6qR/I/tkTjL9gtcMyRy/UOEyC57eMfkJa8M4hop mKp3pcDjVjHfeCHcpLbPHsIXnT31VPQEjQRmN9kXvXcGfi4xmQgWxOWXD97iWIohnxOx 4qch1JvYxblhcLxPMLWtbzy7RnGeV4I0ocp0llafMnYcKDpMpqLr69fBvkgu+Km1S0hA 4yhQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:arc-authentication-results; bh=eMKdIT+V1UXYZbafLF67trUBiDLuZmOeodNjvV5Yu3Y=; b=oEMRKD65AZ2uFAONbwsbElFZRoLtZDgAXxQoy/b8ttyfb4x8GgGuMlY5s3Xg4hAl7V EaYBRLsg31F4ck8AOYOA6lu6jVIU2g8e9IHHvzGL87mBHGaNcEheo+Qp8rsnL6ho68nO NexRb6uQNK/4xOLUWd+3nhhIxCMv0P/+FDDqr1YSyAAuqps/QXQ62j9JqEbxu5ODp3yH YZfRBpI8adPw0EjlQ8Em4MA/x14B2gML3fiqsY5f2/7kKOXRWAukDi91JzcEeR7aBgjR r9AOkbL4vpVpF7wty9uxe52XOw2TpucqIlx6EYJtzeNN1gXvohisCzIafmrhhbZUT7gS yydg== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id l28si6126230pfg.215.2017.11.23.18.41.36; Thu, 23 Nov 2017 18:41:47 -0800 (PST) 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753445AbdKXCiG (ORCPT + 74 others); Thu, 23 Nov 2017 21:38:06 -0500 Received: from mail-pl0-f66.google.com ([209.85.160.66]:42389 "EHLO mail-pl0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753427AbdKXCiC (ORCPT ); Thu, 23 Nov 2017 21:38:02 -0500 Received: by mail-pl0-f66.google.com with SMTP id z3so3598449plh.9; Thu, 23 Nov 2017 18:38:01 -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=eMKdIT+V1UXYZbafLF67trUBiDLuZmOeodNjvV5Yu3Y=; b=ZO9Mlo+b0ekGP6HMD11sn1SLsDQV9RpHp7IhkdzDvl56ezZgbovrrz53bphOEvn2xA /4OubpdEIpDoMtoykOEegN809js6aOqYjNJObOQWKLkdX2fM44qhuDdOI0hg8296o0D5 R5Ihjrnc4hlE/wCv4q5NAwo3LKJ8JVC6SQM5IXzBS3PPeo0ugUxPsvqD1wO5CUhhdDGP pxQfOaM4xlMttNSP3yCZrUvKaU3hVNDrKj7gYwz2HJYMRNN/abEjcBDC3h6NeC93XQYH OZMqsD/6DhHh6fCrRmpGb8+zNX6nL8jX0fH+EEUud4EvXf1pSnSQYqQDgM4SiBvg7C0C PJQg== X-Gm-Message-State: AJaThX4JTKnwcfqZpdrhlNH6VNtWvZjonJhyvIXNdt7lsOtmOUJ03Hjy 5MfhJ/cUX8naLHAtLtQzD5I= X-Received: by 10.84.208.227 with SMTP id c32mr26182682plj.91.1511491081257; Thu, 23 Nov 2017 18:38:01 -0800 (PST) Received: from localhost.localdomain ([103.29.142.67]) by smtp.gmail.com with ESMTPSA id i8sm29440653pgq.67.2017.11.23.18.37.56 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 23 Nov 2017 18:38:00 -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, Jacob Chen , Jacob Chen Subject: [PATCH v2 06/11] dt-bindings: Document the Rockchip MIPI RX D-PHY bindings Date: Fri, 24 Nov 2017 10:37:01 +0800 Message-Id: <20171124023706.5702-7-jacob-chen@iotwrt.com> X-Mailer: git-send-email 2.15.0 In-Reply-To: <20171124023706.5702-1-jacob-chen@iotwrt.com> References: <20171124023706.5702-1-jacob-chen@iotwrt.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add DT bindings documentation for Rockchip MIPI D-PHY RX Signed-off-by: Jacob Chen --- .../bindings/media/rockchip-mipi-dphy.txt | 77 ++++++++++++++++++++++ 1 file changed, 77 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..b5773b67c250 --- /dev/null +++ b/Documentation/devicetree/bindings/media/rockchip-mipi-dphy.txt @@ -0,0 +1,77 @@ +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; + + +Example: + +/* SoC properties */ + + 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>; + }; + +/* Board properties */ + + &mipi_phy_rx0 { + 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 -- 2.15.0 From 1585210222627702267@xxx Mon Nov 27 09:17:55 +0000 2017 X-GM-THRID: 1585210222627702267 X-Gmail-Labels: Inbox,Category Forums,HistoricalUnread