Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp4993669ybi; Tue, 30 Jul 2019 11:48:11 -0700 (PDT) X-Google-Smtp-Source: APXvYqxpvBCSAUfEr1ylTQENwEaZR+EnSOAYSEdaSyVcqypsd05Pq6Zjr0OXuv/VsJSEgBWeqOA4 X-Received: by 2002:aa7:9092:: with SMTP id i18mr42940292pfa.101.1564512491578; Tue, 30 Jul 2019 11:48:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1564512491; cv=none; d=google.com; s=arc-20160816; b=pcAXvPlIcuuvB3QELjfqQnqYUgqnUvSKre/rlPcImncEyFWPqkh86R+PgxAYInURpj RDc26PXaXIBYTC+YrSiLUSHilqUGERLkPWbFOJ0uOy4W03T+dgEsYYK4Mj4/j1mWdpbE WCGGCIpBRWJXL2ZJYQVCieUNyJ5ZCngeP0xYITKJtX0RuB2vXEyXonjtSzH1Wu2l6ucx Ir3Z6mKS5MkRu9mqRiYMujpzMQ+4Mhv2JsOGYDkEkhtvp3Z+lGWcKhXQj0P6AIhNbHvO l/SE2U8itc2cxZGFmtYu27vk2U7cRc9pdbz+Xp7pYh6qDepd86qiawiD108G/urD4qtV 5rvw== 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=QhxgtHJnF5KxVT+6umWZzh/Spc3SRTziYTgq9rWNN0g=; b=q1HPrDFljwSCSbS3CTZQZNc4KZtJ7Xq6WIiVyrdirZDIhvnVdm/bYkzQMcn/b25dM1 OI4NLPXC3WVJvEY3XFOdjiFnSS//8yolobh7zndW3/PK9gzNjVF2RvE71FlNiUI9w5Ud M1hrdCJPbAvs1q2Fvp/ws8L/w8wkArgQon84qtjYDmr3pKTGQq8GNQsyi8TKNr3X1SU+ 7tJvPMXV0WAWqS52aGH0xjxHfqtqslYpLjifeQxorUXfEFLOAu6hU7Sf2U8NdMfBn96E qcZ/sK5M9jDjxJf6KyRZhbawmsXR4BfQSuchYKRdqoPAlY9GGRnut7zn1xYtQ27L3+cm B4QA== 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 e2si29075253pgf.256.2019.07.30.11.47.56; Tue, 30 Jul 2019 11:48:11 -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 S2388440AbfG3Spl (ORCPT + 99 others); Tue, 30 Jul 2019 14:45:41 -0400 Received: from bhuna.collabora.co.uk ([46.235.227.227]:42852 "EHLO bhuna.collabora.co.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2387744AbfG3Spk (ORCPT ); Tue, 30 Jul 2019 14:45:40 -0400 Received: from floko.floko.floko (unknown [IPv6:2804:431:c7f1:ce2f:ec1:e6e6:2e9f:e76e]) (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 975A328B911; Tue, 30 Jul 2019 19:45:33 +0100 (BST) From: Helen Koike To: 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 , Helen Koike Subject: [PATCH v8 11/14] dt-bindings: Document the Rockchip MIPI RX D-PHY bindings Date: Tue, 30 Jul 2019 15:42:53 -0300 Message-Id: <20190730184256.30338-12-helen.koike@collabora.com> X-Mailer: git-send-email 2.22.0 In-Reply-To: <20190730184256.30338-1-helen.koike@collabora.com> References: <20190730184256.30338-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 [update for upstream] Signed-off-by: Helen Koike --- 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 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..2305d44d92db --- /dev/null +++ b/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