Received: by 10.223.185.111 with SMTP id b44csp23890wrg; Fri, 9 Mar 2018 00:02:46 -0800 (PST) X-Google-Smtp-Source: AG47ELtSurjEqs8M5AvbcZsXOxowi/NvMlZmed8ReI3mIdxTPLtjEfwo8+LTSa7GhznnI/wjeGk3 X-Received: by 10.98.200.80 with SMTP id z77mr28598768pff.85.1520582566320; Fri, 09 Mar 2018 00:02:46 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1520582566; cv=none; d=google.com; s=arc-20160816; b=I9uq9UVFeBSg1r4G364/OROCdlhlEbvZ12RmpdLqS0aMja0vuzgLHp5gLIFw1YAc5n i0sGMugblA6sNb/Ay/3zFHI+R2s/AXpKRZa4Zzkf0fjVKhaiT8CXkTxLum+jqJRZVyKJ 2hsI7FkponkFq1v6+1Fq/94Ff2XaJwVrX3nMJk7OUp6vLUI+rEnEyB4P2ubvHDe1F8NC acA+Q8om5WDwYx514Wa2/ZN7yu/EEBu5Eotk8b8w+6El9RpOzyulSD2ckTHJzEpLTkh9 7P257U8VUY6phtJ7rZ/eAhHgM8uuVtBLiDVy9KUBKV6evuJFvaDVIY3oK325lcmikKI9 ACuA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:cms-type:content-language :content-transfer-encoding:in-reply-to:mime-version:user-agent:date :message-id:from:cc:to:subject:dkim-signature:dkim-filter :arc-authentication-results; bh=uHJz9uLhxdgOVznlHBXWYZZkEqX8bzL25oUkTIN8WK8=; b=v+ug7RxWYjUw64bSJg3q9j8C7aoHmkc3K6A95Ek9MyOuRNGteRZPZITP091TUiZNt3 oyh71VUyrVhJ53d4Ab2mnihUqfeG7i+F3tDG/gW+Zm3SiNnJjT72+23SpeuNrLCj8kKt Qg6kZ+cG2SAPAou1LAkh5hcJC18PgwTJIvuPsLGJKJuUBoqzHOu4+oDWvQQ00RXpGyPJ TTpu+p8WMMbZCAdtLs7jfSUpZ0TowIinoZiQebcMGfW+ogFUCKCY47//1YAmlu7XRrNN nIyPB9gSZQPf/dGmumnlx7naog92yr9M6uInvw8ldgOE+8XPkBqwBBfTB4++wNI9yE5i Te3g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=RXVU2fm0; 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=pass (p=NONE sp=NONE dis=NONE) header.from=samsung.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id t6si385762pgr.34.2018.03.09.00.02.30; Fri, 09 Mar 2018 00:02:46 -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; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=RXVU2fm0; 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=pass (p=NONE sp=NONE dis=NONE) header.from=samsung.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751488AbeCIIBf (ORCPT + 99 others); Fri, 9 Mar 2018 03:01:35 -0500 Received: from mailout1.w1.samsung.com ([210.118.77.11]:39947 "EHLO mailout1.w1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750913AbeCIIBc (ORCPT ); Fri, 9 Mar 2018 03:01:32 -0500 Received: from eucas1p2.samsung.com (unknown [182.198.249.207]) by mailout1.w1.samsung.com (KnoxPortal) with ESMTP id 20180309080129euoutp018ca2bc72509da99e62c8980ce273ba7f~aMbe5zuRl2594025940euoutp01Q for ; Fri, 9 Mar 2018 08:01:29 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout1.w1.samsung.com 20180309080129euoutp018ca2bc72509da99e62c8980ce273ba7f~aMbe5zuRl2594025940euoutp01Q DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1520582489; bh=uHJz9uLhxdgOVznlHBXWYZZkEqX8bzL25oUkTIN8WK8=; h=Subject:To:Cc:From:Date:In-Reply-To:References:From; b=RXVU2fm0lP+ERjLJR518Qh1AjdsREYeD9olRTj4IkedBkvJ8U38xw+/3joP6xRPY9 98jtZyrxrnXSwQFDQmxvfVF2uysJ3ssACnEgpR61jXV2XmaS55/B/+8wVbh73Z1CAo htf0F0e/so0SM6WNP5d5ZZIz/nL2W0+EcUQGJaU8= Received: from eusmges2new.samsung.com (unknown [203.254.199.244]) by eucas1p2.samsung.com (KnoxPortal) with ESMTP id 20180309080127eucas1p26b3875c801757af19728d84caaee3753~aMbdgVG7l1492414924eucas1p2g; Fri, 9 Mar 2018 08:01:27 +0000 (GMT) Received: from eucas1p1.samsung.com ( [182.198.249.206]) by eusmges2new.samsung.com (EUCPMTA) with SMTP id 8F.F7.17380.75F32AA5; Fri, 9 Mar 2018 08:01:27 +0000 (GMT) Received: from eusmtrp1.samsung.com (unknown [182.198.249.138]) by eucas1p2.samsung.com (KnoxPortal) with ESMTPA id 20180309080126eucas1p2e08fe4d362c52f87cbbade947a4a5ace~aMbcqmEHM1854218542eucas1p29; Fri, 9 Mar 2018 08:01:26 +0000 (GMT) Received: from eusmgms1.samsung.com (unknown [182.198.249.179]) by eusmtrp1.samsung.com (KnoxPortal) with ESMTP id 20180309080126eusmtrp1c21830a2e6d7015ed2a7b60981787a80~aMbcbrsO82155821558eusmtrp1O; Fri, 9 Mar 2018 08:01:26 +0000 (GMT) X-AuditID: cbfec7f4-713ff700000043e4-f3-5aa23f57c528 Received: from eusmtip2.samsung.com ( [203.254.199.222]) by eusmgms1.samsung.com (EUCPMTA) with SMTP id 19.76.04178.65F32AA5; Fri, 9 Mar 2018 08:01:26 +0000 (GMT) Received: from [106.120.43.17] (unknown [106.120.43.17]) by eusmtip2.samsung.com (KnoxPortal) with ESMTPA id 20180309080125eusmtip281e50d0fd310ca3e2b57edd89853794a~aMbbjdohp1723117231eusmtip2H; Fri, 9 Mar 2018 08:01:25 +0000 (GMT) Subject: Re: [PATCH 1/3] dt-bindings: display: bridge: Document THC63LVD1024 LVDS decoder To: Jacopo Mondi , architt@codeaurora.org, Laurent.pinchart@ideasonboard.com, airlied@linux.ie, horms@verge.net.au, magnus.damm@gmail.com, geert@linux-m68k.org, niklas.soderlund@ragnatech.se, sergei.shtylyov@cogentembedded.com, robh+dt@kernel.org, mark.rutland@arm.com Cc: dri-devel@lists.freedesktop.org, linux-renesas-soc@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org From: Andrzej Hajda Message-ID: <41900058-274f-c533-f744-17e495a3beb2@samsung.com> Date: Fri, 9 Mar 2018 09:01:24 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0 MIME-Version: 1.0 In-Reply-To: <1520522643-11756-2-git-send-email-jacopo+renesas@jmondi.org> Content-Transfer-Encoding: 7bit Content-Language: en-US X-Brightmail-Tracker: H4sIAAAAAAAAA01SeUgUcRTmNzM7My6tjavlo5M2o1s7YegOiob+yj8iD6hWnTQ8tna0tKBE qTZrF0usnMY28zYlsiwTLNgVt9XSNgMPit2iGzaj1EpTc/dX5H/f+973ju/xWFL7WzWDPZiW LhrT9Ck6Wk3da/3VsXzP5hsxK1yjOt7c4ST4HJNXxVtbOlT8i8F+mn/f10zwuQ2DiHeM1DH8 2QtlDN/VpNB8w6cvBO+56aX58m4XwTsuWVT8qeYWhn9S08dsmSrUXqtFQpfFTAiewnFCeCC/ YoSrpiKVMN7zhhTqa87Sgs1uQsL9IY9KcJ9zEMKHrh+0oPwaooTv9XN2aWLUGxLElINHRGPE pv3qpO6+AuaQGTKV8SomG9UG56EAFrg14LJdJPOQmtVyVQjOjcg0DgYQXCoboHDwHcEjuVKV h1h/iZKr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EmpPbGEESwgLREqeX NrGDJEQE1jJJPDmygBnEYRZoYpSYMPsTE0TLXUaJtuYdYC1sApoSfzffZAOxeQXsJP71HmEH sVkEVCRWrbkDtltUIEKic+V8FogaQYmTM5+A2ZwCXhITVs4C62UWUJf4M+8SM4QtL7H97Rwo W1zi1pP5TBMYhWYhaZ+FpGUWkpZZSFoWMLKsYhRJLS3OTc8tNtQrTswtLs1L10vOz93ECEwM 24793LyD8dLG4EOMAhyMSjy8DxwXRgmxJpYVV+YeYpTgYFYS4T21EijEm5JYWZValB9fVJqT WnyI0RTouYnMUqLJ+cCklVcSb2hqaG5haWhubG5sZqEkznveoDJKSCA9sSQ1OzW1ILUIpo+J g1OqgXGe2/LC+R4LXn/NrHgqIs2jb/pez7VVfK3+YnvN3LnaamunMe6wvLWK5W+nqvre98r9 y7Mddsw8GqpzJWbjp8eMdvWHnsw8eiJF68AuseOl3qcENk4Q37wiT3FXqJPXMZ6Zxhy7VZ9x s7c38S2YquQ142u1lvWsv7oaD4Q/VnKs5mhaZvXS212JpTgj0VCLuag4EQDlq97aIgMAAA== X-CMS-MailID: 20180309080126eucas1p2e08fe4d362c52f87cbbade947a4a5ace X-Msg-Generator: CA Content-Type: text/plain; charset="utf-8" X-MTR: 20180309080126eucas1p2e08fe4d362c52f87cbbade947a4a5ace X-EPHeader: CA CMS-TYPE: 201P X-CMS-RootMailID: 20180308152434epcas2p273cdc2c4bfe226a0f3dd55c15993bef5 X-RootMTR: 20180308152434epcas2p273cdc2c4bfe226a0f3dd55c15993bef5 References: <1520522643-11756-1-git-send-email-jacopo+renesas@jmondi.org> <1520522643-11756-2-git-send-email-jacopo+renesas@jmondi.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 08.03.2018 16:24, Jacopo Mondi wrote: > Document Thine THC63LVD1024 LVDS decoder. > > Signed-off-by: Jacopo Mondi > --- > .../bindings/display/bridge/thine,thc63lvd1024.txt | 59 ++++++++++++++++++++++ > 1 file changed, 59 insertions(+) > create mode 100644 Documentation/devicetree/bindings/display/bridge/thine,thc63lvd1024.txt > > diff --git a/Documentation/devicetree/bindings/display/bridge/thine,thc63lvd1024.txt b/Documentation/devicetree/bindings/display/bridge/thine,thc63lvd1024.txt > new file mode 100644 > index 0000000..53b6453 > --- /dev/null > +++ b/Documentation/devicetree/bindings/display/bridge/thine,thc63lvd1024.txt > @@ -0,0 +1,59 @@ > +THine Electronics THC63LVD1024 LVDS receiver > +-------------------------------------------- > + > +The THC63LVD1024 is an LVDS receiver designed to convert multiple LVDS streams > +to digital CMOS/TTL parallel data. You say multiple streams, but bindings describe only one stream. > + > +Required properties: > +- compatible: Shall be one of the following: > + "thine,thc63lvd1024", > + "lvds-decoder" > + > +Optional properties: > +- supply-vcc: Power supply for TTL output and digital circuitry > +- supply-cvcc: Power supply for TTL CLOCKOUT signal > +- supply-lvcc: Power supply for LVDS inputs > +- supply-pvcc: Power supply for PLL circuitry > +- pwnd-gpio: Power down GPIO signal. Active low. Specs [1] uses "/PDWN" name for the pin, moreover gpios suffix is preferred. Another issue I see is two possibly contradicting conventions: 1. Properties should be named according to specs - so here it should be named pdwn-gpios. 2. The bindings tries to be generic for lvds decoders, in such case probably preferred name should be more generic, maybe power-gpios. Personally I would prefer 1, in such case generic lvds-decoder driver should look for gpio names according to compatible string. [1]: http://www.thine.co.jp/files/topics/179_ext_12_0.pdf > +- oe-gpio: Output enable GPIO signal. Active high. oe-gpios > + > +The THC63LVD1024 has two video ports, whose connections are modeled according > +to OF graph bindings specified by Documentation/devicetree/bindings/graph.txt > + > +- Port@0: LVDS input port > +- Port@1: Digital CMOS/TTL parallel output According to specs it has two lvds input and two parallel output ports, maybe it would be good to describe all here. Regards Andrzej > + > +Example: > +------- > + > + lvds_decoder: decoder-0 { > + compatible = "thine,thc63lvd1024"; > + > + vcc-supply = <®_lvds_vcc>; > + lvcc-supply = <®_lvds_lvcc>; > + > + pwdn-gpio = <&gpio4 15 GPIO_ACTIVE_LOW>; > + > + ports { > + #address-cells = <1>; > + #size-cells = <0>; > + > + port@0 { > + reg = <0>; > + > + lvds_dec_in: endpoint { > + remote-endpoint = <&lvds_out>; > + }; > + }; > + > + port@1{ > + reg = <1>; > + > + lvds_dec_out: endpoint { > + remote-endpoint = <&adv7511_in>; > + }; > + > + }; > + > + }; > + };