Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp4428470imm; Wed, 30 May 2018 05:36:47 -0700 (PDT) X-Google-Smtp-Source: ADUXVKK2XFQUIbZEkYhljbzpEa9G0NoHC4vTV6FcpZPVeILpytzjRGYVghb28Vex2LXom59aVU+i X-Received: by 2002:a17:902:6b09:: with SMTP id o9-v6mr2749955plk.256.1527683807183; Wed, 30 May 2018 05:36:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1527683807; cv=none; d=google.com; s=arc-20160816; b=GE62VVniOuPXMJqGWs1umaltABOEBdgdZDn2fq6GeP0uRptm1+riA5LaZ2OTyMKXbf nRmuqnJ2FwWDZhUwpuZx3qPp9f6o4eiJptGVdJTTbrUAzbC/sI6Zr2fjNavla13VrnZo 9qMOGHwcdO/cLGa+a4hv5IG4KzmE9ma+4MIYAfHd4h3kH2lKzKKRLaw9eqzMFi0jHWEV UdleBIuv44XuU2DiGxX8XtL2hXhoSChekumGq6OW94IA23pL2BZKrhnLnu/rVN9tn1ga j4/GbMMxvqN2FywzJn7xPYlEBBmthfVgDphrA7QCvYMlArT+gy5sR8a7mjH6ene4IoBs UlYg== 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:organization:message-id:date:subject:cc:to :from:dkim-signature:arc-authentication-results; bh=+QTiuJbLoEQXasP5opIbQXmpbvvxkm/L2bb+RCVUT2U=; b=m8TFcplVe3xun886lwODPlywIjuLP+f4RP4YOGLbMgP3tbH2dsbcv7JikhUCTLDqOr 7jklBuAoqMTEbptqeEKEViZfgoS5JZcHSGrgLAQgTqwxPaKyoDJv0kcZ08xdoNGTv8AL pfReyxMEK2TUnTNHI854ayPPITCWwRiXMmXi9rRLST68xDI2SPpiT54VS4gdc4uJvHVs Qz5uRlwxuYAYcsTO/rLvn1SeHslhLH6XQaNK2bt4QB5Z5+hn7Y0k2wu8o/mtWNonbogo PSGXHNlo7hc4GeNf2rb0M0Wtl/t2z2ZMkSdxBVR0SQsPjzWnWZyIphzY37ebxHL7J6wq rsrg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass (test mode) header.i=@ideasonboard.com header.s=mail header.b=bSVDM7d2; 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 m4-v6si33923585plt.561.2018.05.30.05.36.32; Wed, 30 May 2018 05:36:47 -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; dkim=pass (test mode) header.i=@ideasonboard.com header.s=mail header.b=bSVDM7d2; 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 S1752886AbeE3Mf7 (ORCPT + 99 others); Wed, 30 May 2018 08:35:59 -0400 Received: from perceval.ideasonboard.com ([213.167.242.64]:51652 "EHLO perceval.ideasonboard.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751672AbeE3Mf5 (ORCPT ); Wed, 30 May 2018 08:35:57 -0400 Received: from avalon.localnet (unknown [IPv6:2001:14ba:21f5:5b00:2e86:4862:ef6a:2804]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id 76DFC1AA9; Wed, 30 May 2018 14:35:54 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1527683755; bh=Qhy7ZbPSRENb84pPylks7zcW6kvmNwv3wqCAO8jFlRI=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=bSVDM7d2YlqtbUgD9A1ZZ67n4uC+EbjlXptIah7MnjngvEaj1HUBlJrGFVuMIwD7O CwZbsi4iJNUTp4+aEfJO56eU7mG4aLCcWVBNF/qbrl/6l71Y3PQpg7jjJc26qPFR19 SD72yq01/xynD8OzTm3fkNyctfFQAmNvlTPa+OJs= From: Laurent Pinchart To: Andrzej Hajda Cc: Maciej Purski , linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, devicetree@vger.kernel.org, dri-devel@lists.freedesktop.org, David Airlie , Rob Herring , Mark Rutland , Thierry Reding , Kukjin Kim , Krzysztof Kozlowski , Archit Taneja , Inki Dae , Joonyoung Shim , Seung-Woo Kim , Kyungmin Park , Marek Szyprowski , Bartlomiej Zolnierkiewicz Subject: Re: [PATCH 07/12] dt-bindings: tc358754: add DT bindings Date: Wed, 30 May 2018 15:35:58 +0300 Message-ID: <1928297.lKUBOH9NhR@avalon> Organization: Ideas on Board Oy In-Reply-To: <20180530095915eucas1p27f09c8424d0c3c0619d134c5e7319fa3~zY7uP6Y6R1391213912eucas1p23@eucas1p2.samsung.com> References: <1527500833-16005-1-git-send-email-m.purski@samsung.com> <2275901.CJI6BsfBlP@avalon> <20180530095915eucas1p27f09c8424d0c3c0619d134c5e7319fa3~zY7uP6Y6R1391213912eucas1p23@eucas1p2.samsung.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Andrzej, On Wednesday, 30 May 2018 12:59:12 EEST Andrzej Hajda wrote: > On 28.05.2018 12:18, Laurent Pinchart wrote: > > On Monday, 28 May 2018 12:47:11 EEST Maciej Purski wrote: > >> The patch adds bindings to Toshiba DSI/LVDS bridge TC358764. > >> Bindings describe power supplies, reset gpio and video interfaces. > >> > >> Signed-off-by: Andrzej Hajda > >> Signed-off-by: Maciej Purski > >> --- > >> > >> .../bindings/display/bridge/toshiba,tc358764.txt | 42 ++++++++++++++++ > >> 1 file changed, 42 insertions(+) > >> create mode 100644 > >> > >> Documentation/devicetree/bindings/display/bridge/toshiba,tc358764.txt > >> > >> diff --git > >> a/Documentation/devicetree/bindings/display/bridge/toshiba,tc358764.txt > >> b/Documentation/devicetree/bindings/display/bridge/toshiba,tc358764.txt > >> new > >> file mode 100644 > >> index 0000000..d09bdc2 > >> --- /dev/null > >> +++ > >> b/Documentation/devicetree/bindings/display/bridge/toshiba,tc358764.txt > >> @@ -0,0 +1,42 @@ > >> +TC358764 MIPI-DSI to LVDS panel bridge > >> + > >> +Required properties: > >> + - compatible: "toshiba,tc358764" > >> + - reg: the virtual channel number of a DSI peripheral > >> + - vddc-supply: core voltage supply > >> + - vddio-supply: I/O voltage supply > >> + - vddmipi-supply: MIPI voltage supply > >> + - vddlvds133-supply: LVDS1 3.3V voltage supply > >> + - vddlvds112-supply: LVDS1 1.2V voltage supply > > > > That's a lot of power supplies. Could some of them be merged together ? > > See https://patchwork.freedesktop.org/patch/216058/ for an earlier > > discussion on the same subject. > > Specs says about 3 supply voltage values: > - 1.2V - digital core, DSI-RX PHY > - 1.8-3.3V - digital I/O > - 3.3V - LVDS-TX PHY > > So I guess it should be minimal number of supplies. Natural candidates: > > - vddc-supply: core voltage supply, 1.2V > - vddio-supply: I/O voltage supply, 1.8V or 3.3V > - vddlvds-supply: LVDS1/2 voltage supply, 3.3V > > I have changed name of the latest supply to be more consistent with > other supplies, and changed 1.8-3.3 (which incorrectly suggest voltage > range), to more precise voltage alternative. This looks fine to me. > >> + - reset-gpios: a GPIO spec for the reset pin > >> + > >> +The device node can contain zero to two 'port' child nodes, each with > >> one > >> +child > >> +'endpoint' node, according to the bindings defined in [1]. > >> +The following are properties specific to those nodes. > >> + > >> +port: > >> + - reg: (required) can be 0 for DSI port or 1 for LVDS port; > > > > This seems pretty vague to me. It could be read as meaning that ports are > > completely optional, and that the port number you list can be used, but > > that something else could be used to. > > > > Let's make the port nodes mandatory. I propose the following. > > > > Required nodes: > > > > The TC358764 has DSI and LVDS ports whose connections are described using > > the OF graph bindings defined in > > Documentation/devicetree/bindings/graph.txt. The device node must contain > > one 'port' child node per DSI and LVDS port. The port nodes are numbered > > as follows. > > > > Port Number > > ------------------------------------------------------------------- > > DSI Input 0 > > LVDS Output 1 > > > > Each port node must contain endpoint nodes describing the hardware > > connections. > > Since the bridge is controlled via DSI bus, DSI input port is not necessary. I don't agree with this. Regardless of how the bridge is controlled, I think we should always use ports to describe the data connections. Otherwise it would get more complicated for display controller drivers to use different types of bridges. > >> +[1]: Documentation/devicetree/bindings/media/video-interfaces.txt > >> + > >> +Example: > >> + > >> + bridge@0 { > >> + reg = <0>; > >> + compatible = "toshiba,tc358764"; > >> + vddc-supply = <&vcc_1v2_reg>; > >> + vddio-supply = <&vcc_1v8_reg>; > >> + vddmipi-supply = <&vcc_1v2_reg>; > >> + vddlvds133-supply = <&vcc_3v3_reg>; > >> + vddlvds112-supply = <&vcc_1v2_reg>; > >> + reset-gpios = <&gpd1 6 GPIO_ACTIVE_LOW>; > >> + #address-cells = <1>; > >> + #size-cells = <0>; > >> + port@1 { > >> + reg = <1>; > >> + lvds_ep: endpoint { > >> + remote-endpoint = <&panel_ep>; > >> + }; > >> + }; > >> + }; -- Regards, Laurent Pinchart