Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp2466345imm; Mon, 28 May 2018 08:36:24 -0700 (PDT) X-Google-Smtp-Source: AB8JxZpgTQT2Nrer0r5XhPmLUAaN7rmBYyO0JX1ni+HLTBqBog/l+5eDuJlvzyCvpxtvdya5bhef X-Received: by 2002:a17:902:bc4a:: with SMTP id t10-v6mr14121560plz.133.1527521784551; Mon, 28 May 2018 08:36:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1527521784; cv=none; d=google.com; s=arc-20160816; b=UwZ+UMPhWbOznfxfQ1WnO33B5fpdiXnlzh5Vxb0GlyaLOSIcRX+JvWW6DGXnNDkl3D sn60oVL+G5OBtZM2niOkwbxNuW4ocB7AE6k5tAOxgMqbfrki4eoq5gdnRPi9xlYeKRA4 kTm/7cujTtr/lEHNqrXL9nkNQjwjRn1qK6+nSpTZu6zq3qsK6A/+R2FdZWCmb6eyqoQQ wsz2RXXSA4d7ZeYnxAVFRqsG11ObWh5wytBD3+B8X7/Fnx/hY/b/FJPJG8YXSmhw/QLP pFXk+lvsxXeh/wChIDEzcq/a8+Y0NSewcYZxgPyoJ+grHql6G2E+bIRuTJt7SlMe+tOU 5RQQ== 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=Tmg4eRq+u1PcwJtsyBaBTXsc+zSz4wjXgaopHxyuuMU=; b=NhZfqTxzNMQa0iScmVzy4CVGaSYxB6+U44XgCI0zgNXUwMlDOzd3fPVDBlmS59GU/k n6QMwMPQ4b9oFpTF0OWueDqY1ytYY1cPk5uWyB6tG0hit/Vhh6HiCl2lVFs3+Gv2+225 NXY0HeMhUXZLiVIdtVMMpACsNHvqYl6EWnEKbut+7czJRr6kEXfCVLO8wEXHwM4CWYU8 zvPzbjx2vZbJoIvJzBdCiT1NLhd4CRNNEfV4Nf/99TWqHxck9usFpUNUS1rMOxjmuJG+ zH/2uW8QQcbYiEM7dW6i93BTgd+/G2c590gTzcgUnDKufGN9fbfC6Vd7ZfygDUBPnGQD FXGg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass (test mode) header.i=@ideasonboard.com header.s=mail header.b=AE4x9zNA; 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 m27-v6si29691397pfj.192.2018.05.28.08.36.09; Mon, 28 May 2018 08:36:24 -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=AE4x9zNA; 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 S1034616AbeE1Pfl (ORCPT + 99 others); Mon, 28 May 2018 11:35:41 -0400 Received: from perceval.ideasonboard.com ([213.167.242.64]:38016 "EHLO perceval.ideasonboard.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S968817AbeE1KSh (ORCPT ); Mon, 28 May 2018 06:18:37 -0400 Received: from avalon.localnet (unknown [IPv6:2001:14ba:21f5:5b00:2e86:4862:ef6a:2804]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id E9C7E5D; Mon, 28 May 2018 12:18:33 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1527502715; bh=jXvKCP1t/uUf46WeS/vVb7O6bxiersFLxLOTyUx9gNM=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=AE4x9zNA/9COgzahyooT1clwuY4RhTGLwPsorHIt68y7qeva3wdycsWgIeeVkaNm+ OpAZc4RKWafTRljD/NSvt624whXeI68hk3ATEvVVDJlAFK9qtUV26LLd7iigtuauRa M/YL42d+VgYpKpFB4LjM4Yrp0dPjxZe8coitt8gM= From: Laurent Pinchart To: Maciej Purski Cc: 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 , Andrzej Hajda , 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: Mon, 28 May 2018 13:18:36 +0300 Message-ID: <2275901.CJI6BsfBlP@avalon> Organization: Ideas on Board Oy In-Reply-To: <1527500833-16005-8-git-send-email-m.purski@samsung.com> References: <1527500833-16005-1-git-send-email-m.purski@samsung.com> <1527500833-16005-8-git-send-email-m.purski@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 Maciej, Thank you for the patch. 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. > + - 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. > +[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