Received: by 2002:a25:31c3:0:0:0:0:0 with SMTP id x186csp278261ybx; Wed, 6 Nov 2019 17:00:15 -0800 (PST) X-Google-Smtp-Source: APXvYqy/Emnzc8lX3IuAMWnxXA0sFhpy3B7wpafP7dJjJEPgsIUFGpyel6XLP/KZJ5dgeZCSW56h X-Received: by 2002:aa7:c048:: with SMTP id k8mr752456edo.254.1573088415393; Wed, 06 Nov 2019 17:00:15 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1573088415; cv=none; d=google.com; s=arc-20160816; b=fzUJNTH63EGRkHzPiqw1A1mXPt5PVBSyzvLbNxbBTe5KUtlNH4Y+hm09eWk/Vraem4 hnCRwS2dTT3AlQ3uI/O1Ior23wfGvKhM3qlXGJiwTzRXjjLh8JjV4EkwqRKB9bb5rrun oMXLdGz1GTao0fE1Ut9cmWiPlo9cj9w6k62LTYA5dIQEe7Ifaou8tPOc9TKUqPLmuBaD 22kTeGmON22SDcKLCPiA8oXzUTOkt1pvvMYk5OrteiFK8YFZwf3QdWOWvvVLg5mViZ8T HMQH34pdrZcHyPG7ObexEsH5opWG5ja146lr/+p8TTe601e59k1h/tjngOkYUIeKapgG Qphg== 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=q28a9bEknXXTEa2QkgHI/4e3EmbWGdUsN4W8Fm7WlDc=; b=muyQid9lIo5kyNTcA+sI3WNf2EcZCMhnCwRYbG6pJHdm+uLx3PxUHm6bfDeja+INvV 27t9ofwD2mSg6l+cgUjyHS/8oGI39dA/aFxvX9FZaJZ5AjT59HX6l77a8a8Kj0F+7HW4 kv4PYtu4o02Ye1pAXTdaJTjSddRVNiAEn8fni+87IywflfM5I2qlWhDmukucdbN7xVk4 6g19kdwKJmbHwPllIS0GBCOB8CPNE0YXdh6yuIx/di0cDL3ZjYEUuiCIEsjP/A7APQVr yimRePhjBLD1GEAxAFLnIvCVl44uUtc/B8ck3P9vOwLMB8FGUefzRVz3E2gW2n1kNf+9 HbCA== 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 s17si406322eju.113.2019.11.06.16.59.51; Wed, 06 Nov 2019 17:00:15 -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 S1733020AbfKGA6M (ORCPT + 99 others); Wed, 6 Nov 2019 19:58:12 -0500 Received: from bhuna.collabora.co.uk ([46.235.227.227]:41338 "EHLO bhuna.collabora.co.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727393AbfKGA6L (ORCPT ); Wed, 6 Nov 2019 19:58:11 -0500 Received: from [127.0.0.1] (localhost [127.0.0.1]) (Authenticated sender: koike) with ESMTPSA id A06E8283CBF 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 v10 10/11] media: staging: dt-bindings: Document the Rockchip MIPI RX D-PHY bindings Date: Wed, 6 Nov 2019 21:56:16 -0300 Message-Id: <20191107005617.12302-11-helen.koike@collabora.com> X-Mailer: git-send-email 2.22.0 In-Reply-To: <20191107005617.12302-1-helen.koike@collabora.com> References: <20191107005617.12302-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 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