Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp1875428imu; Sat, 26 Jan 2019 12:55:30 -0800 (PST) X-Google-Smtp-Source: ALg8bN5ExLyq+EUh7xKEKBwSf+1qZgtfRJANFOkDEz9hUfRlgnhECWqpMrR/GZ6/jWax5on+pJYT X-Received: by 2002:a63:a91a:: with SMTP id u26mr14294913pge.349.1548536130171; Sat, 26 Jan 2019 12:55:30 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1548536130; cv=none; d=google.com; s=arc-20160816; b=D8I6PkUPGKw3rKcZGoqYvUvJDfJsoVMNV9LgyptNX/PQVrPZtrGInr2QTfPE+yMYyf 7skooJ3Am1EhHWjDVTm8EZLSO377eFsGKsXSF5+NiNZjskySwX7+KXMLES8YoBb2p3Ts yF4zgzHPBSfBhOZXH5cxkCIHkl3A8rK5l6Sc/zMTChyknPGHTIA0mnpzDoPK0bf6s+Pf QExbEXAvUnqxoTeBrGs4xMlXas8voZy1J+e3UMsQbn0sdGr8ydKdLEmwbp0gZjtaQgMe It44zoAXXs8fwDbunKvW9bpUVgEBBU5DM2rCmH9Ma69+SD6mf16o4eeKAK52t3CsP2iI lPSg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-transfer-encoding:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=L1EXm5QccDJVkOgg3WpgaSC9l76jH7pACKxltTJwSPA=; b=stlNdULxRUmfKFI0zTJJxrG4sZbHEZjvHKM8iArVHTBo/1jpIfafo0vv5fmhBClBBI k3ZLur03Ve4gRV+IiUfJRifkN7itMk+RIbpVzFWWwR59ySiyOqdJG0y9OUrRbitV3VMR h7D7DcaNLBEaR3qzJNzYs/4natl4adR3T94m1MYGA/fzASrKBgJ5PSPuBplCW5ikFbfa 2LPODTPH+8CKGg1NhG/vjHeLtTce43BsTtRwoK6JeRtpKpz1XHZyWLfIEULgvA5LKCov 93wyZPsz0h4ttWnIMnbMKqINV41tgsP0GUJOm9MQUFCyVHjltm5/EutRZe9ZsXhnCKS0 7a8w== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id t4si26396758pgg.110.2019.01.26.12.55.14; Sat, 26 Jan 2019 12:55:30 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726343AbfAZUzK (ORCPT + 99 others); Sat, 26 Jan 2019 15:55:10 -0500 Received: from asavdk4.altibox.net ([109.247.116.15]:45934 "EHLO asavdk4.altibox.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726233AbfAZUzJ (ORCPT ); Sat, 26 Jan 2019 15:55:09 -0500 Received: from ravnborg.org (unknown [158.248.194.18]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by asavdk4.altibox.net (Postfix) with ESMTPS id EEF27803ED; Sat, 26 Jan 2019 21:55:02 +0100 (CET) Date: Sat, 26 Jan 2019 21:55:01 +0100 From: Sam Ravnborg To: =?utf-8?B?UGF3ZcWC?= Chmiel Cc: thierry.reding@gmail.com, mark.rutland@arm.com, devicetree@vger.kernel.org, airlied@linux.ie, Jonathan Bakker , linux-kernel@vger.kernel.org, krzk@kernel.org, robh+dt@kernel.org, dri-devel@lists.freedesktop.org, m.szyprowski@samsung.com Subject: Re: [PATCH 1/2] drm: panel: Add Samsung s6e63m0 panel documentation Message-ID: <20190126205501.GA31182@ravnborg.org> References: <20190125164645.19208-1-pawel.mikolaj.chmiel@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20190125164645.19208-1-pawel.mikolaj.chmiel@gmail.com> User-Agent: Mutt/1.5.21 (2010-09-15) X-CMAE-Score: 0 X-CMAE-Analysis: v=2.3 cv=UpRNyd4B c=1 sm=1 tr=0 a=UWs3HLbX/2nnQ3s7vZ42gw==:117 a=UWs3HLbX/2nnQ3s7vZ42gw==:17 a=IkcTkHD0fZMA:10 a=BNFw7j2wAAAA:8 a=pGLkceISAAAA:8 a=Gk5Lg1JDi_lk8uzEZa4A:9 a=QEXdDO2ut3YA:10 a=1SBQqThTLjUA:10 a=uesgAwXLq_X2AS_V3feQ:22 a=hxIpvf-Zr7OmKYnbfISL:22 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Pawel. Thanks for the patch, some comments follows. Please judge what comments you chose to follow, see this as suggestions. According to Documentation/devicetree/bindings/submitting-patches.rst: The preferred subject prefix for binding patches is: "dt-bindings: : ..." It would be a good idea to follow this practice in next revision. On Fri, Jan 25, 2019 at 05:46:44PM +0100, Paweł Chmiel wrote: > From: Jonathan Bakker > > This commit adds documentation for Samsung s6e63m0 AMOLED LCD panel > driver. > > Signed-off-by: Jonathan Bakker > Signed-off-by: Paweł Chmiel > --- > .../display/panel/samsung,s6e63m0.txt | 60 +++++++++++++++++++ > 1 file changed, 60 insertions(+) > create mode 100644 Documentation/devicetree/bindings/display/panel/samsung,s6e63m0.txt > > diff --git a/Documentation/devicetree/bindings/display/panel/samsung,s6e63m0.txt b/Documentation/devicetree/bindings/display/panel/samsung,s6e63m0.txt > new file mode 100644 > index 000000000000..4979200e2dd2 > --- /dev/null > +++ b/Documentation/devicetree/bindings/display/panel/samsung,s6e63m0.txt > @@ -0,0 +1,60 @@ > +Samsung s6e63m0 AMOLED LCD panel > + > +Required properties: > + - compatible: "samsung,s6e63m0" > + - reset-gpio: GPIO spec for reset pin The preferred name is reset-gpios (added 's') > + - vdd3-supply: VDD regulator > + - vci-supply: VCI regulator > + - display-timings: timings for the connected panel as described by [1] Today, as is my best understanding, it is encouraged to specify the timing in the actual driver and not in DT, The example include a spi-max-frequency which is not mentioned? > + > +Optional properties: > + - reset-delay: Delay in ms after adjusting reset-gpio, default 120ms > + - power-on-delay: Delay in ms after powering on, default 25ms > + - power-off-delay: Delay in ms before powering off, default 200ms > + - panel-width-mm: physical panel width in mm > + - panel-height-mm: physical panel height in mm Likewise these delays are also properties that today are included in the driver. I cannot explain the background for this, this is just how things are done. > + > +The device node can contain one 'port' child node with one child > +'endpoint' node, according to the bindings defined in [2]. This > +node should describe panel's video bus. > + > +[1]: Documentation/devicetree/bindings/display/panel/display-timing.txt > +[2]: Documentation/devicetree/bindings/media/video-interfaces.txt > + > +Example: > + > + s6e63m0: display@0 { > + compatible = "samsung,s6e63m0"; > + reg = <0>; > + reset-gpio = <&mp05 5 1>; > + vdd3-supply = <&ldo12_reg>; > + vci-supply = <&ldo11_reg>; > + spi-max-frequency = <1000000>; > + > + power-on-delay = <0>; > + power-off-delay = <0>; > + reset-delay = <10>; > + panel-width-mm = <53>; > + panel-height-mm = <89>; > + > + display-timings { > + timing-0 { > + /* 480x800@60Hz */ > + clock-frequency = <25628040>; > + hactive = <480>; > + vactive = <800>; > + hfront-porch = <16>; > + hback-porch = <16>; > + hsync-len = <2>; > + vfront-porch = <28>; > + vback-porch = <1>; > + vsync-len = <2>; > + }; > + }; > + > + port { > + lcd_ep: endpoint { > + remote-endpoint = <&fimd_ep>; > + }; > + }; > + }; Sam