Received: by 2002:a25:7ec1:0:0:0:0:0 with SMTP id z184csp2750817ybc; Wed, 13 Nov 2019 21:17:24 -0800 (PST) X-Google-Smtp-Source: APXvYqzm1VTHk/oWH+M8jGG+pNsZa9idx45iVR4FbG0TRtgIp6088X3sEEBGqSKT7VUb98lRfr/z X-Received: by 2002:a17:906:4a0c:: with SMTP id w12mr6610350eju.306.1573708643879; Wed, 13 Nov 2019 21:17:23 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1573708643; cv=none; d=google.com; s=arc-20160816; b=qguyNieSFHsTeqazWqjPv0kiGKOqN0wm9qVN1WBXu5JkKGE+R5jEtSTM5vkXpQYk26 W/DRckk5phyB+OYmygdP3MpMeL3gT7Vie4Q1Na5XsB3UuzlWHzmLyfT5ZLS6Ob9VCknX HLeuN679nmKp/JmGNavBIpjh37wVylBXLwyrjGg2rILttfFl3Hd1jB+xJH2rx4OxrzQ/ FW7JwI/vg6RpVQV7IzWvFn5Wddw9up1z4AdyitmDYFz0FKPJzfuXWJosyFxB+0qu5Tlt 5FVrsD7/aV43CRKgQNPGNU1t24QGWOdxyDAc7zDyNQF4CScXg8BY46FDYTq2Y8U3XekP ZNmA== 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=bM+QcdTO437w4Rj2xht0LCLJzZKjGRkraWaj6WpIWk8=; b=iCTc8uciayws5nlJSneUQa/89eNSItJCAz6+TKAriMQxFVQ2g3mNd+v7WPtZ6+uHwk 0Bs6dxocaMJPJdowUIaC8pY1uDcvRN98nNYn4LDbsdYwjOFxyPncFTk3EAIsdFaLJ3bW FT47V2rlxEfM/bsscAilYDjxWPwQnRrFfXydp7u3rX24FuUZI3lkVtgYFH2eqJou0iiU hvkWwa6i0wqEkv/kEpTns5s43hFJxFQJ5PDVonxNnZZ9efTUndp3VgoJ/Bc3mceQgE9E +Lpq6R7VQGCkE+UdIqAhbkBkoykxCCfPtmzX1bLsZrQLrrPvbPWYcymHLWTZV3/p2nnP aXXA== 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 e22si2830043edy.0.2019.11.13.21.16.58; Wed, 13 Nov 2019 21:17:23 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=collabora.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727281AbfKNFOa (ORCPT + 99 others); Thu, 14 Nov 2019 00:14:30 -0500 Received: from bhuna.collabora.co.uk ([46.235.227.227]:44114 "EHLO bhuna.collabora.co.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725914AbfKNFO3 (ORCPT ); Thu, 14 Nov 2019 00:14:29 -0500 Received: from floko.floko.floko (unknown [IPv6:2804:431:c7f0:da1c:a086:2727:e196:fd8a]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: koike) by bhuna.collabora.co.uk (Postfix) with ESMTPSA id 292DE290F0D; Thu, 14 Nov 2019 05:14:21 +0000 (GMT) From: Helen Koike To: linux-rockchip@lists.infradead.org Cc: mark.rutland@arm.com, devicetree@vger.kernel.org, eddie.cai.linux@gmail.com, mchehab@kernel.org, heiko@sntech.de, linux-arm-kernel@lists.infradead.org, gregkh@linuxfoundation.org, jeffy.chen@rock-chips.com, zyc@rock-chips.com, linux-kernel@vger.kernel.org, tfiga@chromium.org, robh+dt@kernel.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, jacob-chen@iotwrt.com, zhengsq@rock-chips.com, Jacob Chen , Rob Herring , Helen Koike Subject: [PATCH v11 10/11] media: staging: dt-bindings: Document the Rockchip MIPI RX D-PHY bindings Date: Thu, 14 Nov 2019 02:12:41 -0300 Message-Id: <20191114051242.14651-11-helen.koike@collabora.com> X-Mailer: git-send-email 2.22.0 In-Reply-To: <20191114051242.14651-1-helen.koike@collabora.com> References: <20191114051242.14651-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 MIPI D-PHY RX Signed-off-by: Jacob Chen Reviewed-by: Rob Herring [refactored for upstream] Signed-off-by: Helen Koike --- Changes in v11: None Changes in v10: - unsquash Changes in v9: - fix title division style - squash - move to staging Changes in v8: None Changes in v7: - updated doc with new design and tested example .../bindings/media/rockchip-mipi-dphy.txt | 38 +++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 drivers/staging/media/rkisp1/Documentation/devicetree/bindings/media/rockchip-mipi-dphy.txt diff --git a/drivers/staging/media/rkisp1/Documentation/devicetree/bindings/media/rockchip-mipi-dphy.txt b/drivers/staging/media/rkisp1/Documentation/devicetree/bindings/media/rockchip-mipi-dphy.txt new file mode 100644 index 000000000000..0a0be7b15a59 --- /dev/null +++ b/drivers/staging/media/rkisp1/Documentation/devicetree/bindings/media/rockchip-mipi-dphy.txt @@ -0,0 +1,38 @@ +Rockchip SoC MIPI RX D-PHY +-------------------------- + +Required properties: +- compatible: value should be one of the following + "rockchip,rk3288-mipi-dphy" + "rockchip,rk3399-mipi-dphy" +- clocks : list of clock specifiers, corresponding to entries in + clock-names property; +- clock-names: required clock name. +- #phy-cells: Number of cells in a PHY specifier; Should be 0. + +MIPI RX D-PHY use registers in "general register files", it +should be a child of the GRF. + +Optional properties: +- reg: offset and length of the register set for the device. +- rockchip,grf: MIPI TX1RX1 D-PHY not only has its own register but also + the GRF, so it is only necessary for MIPI TX1RX1 D-PHY. + +Device node example +------------------- + +grf: syscon@ff770000 { + compatible = "rockchip,rk3399-grf", "syscon", "simple-mfd"; + +... + + dphy: mipi-dphy { + 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>; + #phy-cells = <0>; + }; +}; -- 2.22.0