Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp1892907imu; Sat, 26 Jan 2019 13:23:57 -0800 (PST) X-Google-Smtp-Source: ALg8bN6WXU0OXWAIh9Kr/Ww1qOwev0mT8vafBGifpMEh2pbnh2QIDPw1sa/4eSUGCTp6KnNMlnIh X-Received: by 2002:a62:9fcf:: with SMTP id v76mr16026284pfk.144.1548537837512; Sat, 26 Jan 2019 13:23:57 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1548537837; cv=none; d=google.com; s=arc-20160816; b=qjxn+YAheGrDRQRzLy5NfOyrGEVsshBEF93WsSrGBfWMy90tgV7IQZM4IS76rC9XjL ltxlhTI3SHdOWotN/pHZDhl+gvcOufWsXvS5hSkm05NF1bO+HCBULcE9IGicTGTLtUoE F9+m6o0c6sPnxJyMZteMdMDZBIIeqIxi+grEBtSc4teOqRpRrvqaA03gbAmIisP8JmSl C+rTcmEeALmWw750HbJpbxqPS7I6c+2LM4YQtDl6/r4YgdwK414J8/O+gfoFejL1PLZJ LZ7J9GTjnDFukcGI+FTDytTT2rkGVtzXDM7FgWQSYW+r6pgsNtAoJfweb7E6Gfj0S+FP Z69w== 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 :dkim-signature; bh=KyOShsW5KoT/4WxkL8Iuq5S2HOReSUbUKj8k/2WpdC4=; b=l47qch3/pNPRYU1Rbs5U2hv/ZqyYe37MjcdluzO8fd1mfT8mnYq6/DUqv27VPy/AIj b4X46So5F7d0GUVld4XkhhppHmXMJ6rNVKHOyS1TZqBeUlJaUjIMasvt9OFzSVveWIfy /TRNO3Z31esPAp+F0IYGfcXYihmgi4MLVtFL0x5afTI9HyysUFr1CoY4fK3z5FGZmrDk mldcBcSc8emKQyoi5GEAc4KqxUbspGC4cZ7+dlGLvhLDd8dCqrujA6BbZNBvjyTsnstk eGKguriYWLPaJsreEVwC6eOF4aJQAitrsXpsvDaWSDi15DSUZDfYPu5BJKneogMi284g YTSg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=MekOj1rK; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id i5si7184792pgn.243.2019.01.26.13.23.42; Sat, 26 Jan 2019 13:23:57 -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=@gmail.com header.s=20161025 header.b=MekOj1rK; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726389AbfAZVXN (ORCPT + 99 others); Sat, 26 Jan 2019 16:23:13 -0500 Received: from mail-lj1-f196.google.com ([209.85.208.196]:38777 "EHLO mail-lj1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726305AbfAZVXN (ORCPT ); Sat, 26 Jan 2019 16:23:13 -0500 Received: by mail-lj1-f196.google.com with SMTP id c19-v6so11142701lja.5; Sat, 26 Jan 2019 13:23:11 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=KyOShsW5KoT/4WxkL8Iuq5S2HOReSUbUKj8k/2WpdC4=; b=MekOj1rKqpQTb8ds2U2m6rdprrr4wbnGnEpH3OkKt4WKnpItBRPgYFZZb/XX5f4LEP 8WhbLm0oHRn3jHPa7OEbxKmhjjERVzafHtJocHevnZu97NMYM/G4gTpswHaByeLHwKXp Kt569iunuzKtXdLyZH7g5p0RO02no1qWqVVOS2xvxV+P41bwSgdo2Sg/3yCCX4bH9/NS Y4jdUObcH4rEiV33gLmfInajKd3hF3lk/rQ3CI6L3ZtExNqCRmotAe/st6/2N3YKaeOW 3wY/N7TLwJ3xHwvDZ7u3HYWDvRWi4QeMN5BRe922U6CK6hzNWOLe8KbE+0zvJaC1xPa9 GpoA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=KyOShsW5KoT/4WxkL8Iuq5S2HOReSUbUKj8k/2WpdC4=; b=I8bpH2bCgJVb1HNFuu0EyijOZ1K69sfab7EiPVgkWY0KQrT6WoSz3uyHa7RbJAz0Ro 0Snes4v8R9bQcjjOGN9ikoHiLRyFE4wQvHzQPItQqTpMQ2zWUJhK/uq4XNtgbMhjcQ5d 0kEKXud9ThPBmeG+27ZKQFUQOKrkYwjvvCIpSqWv03j6lUenGzOzRdzOR1Qnd46V4OsA curW0HDgKKhrTL0T/5oOpypyjO6vHY85ux/yJWX3FvpOx7l1Lt/eC9ibo9Rz5X+72C04 hJcV1QWXwqFKTnOn4uzLo9ucvTruBQMa3xC1FV5lXS7UiRlbNH3g7eccZIu1JEuOMN33 OoJQ== X-Gm-Message-State: AJcUukfH1CHDhrzhm1TGzYArqsnAteIzC/4AZi+qHvwckMW/bKJ22H9D sTWXcO8G2Jow5gkBJ8DBem8= X-Received: by 2002:a2e:5418:: with SMTP id i24-v6mr12773758ljb.51.1548537790091; Sat, 26 Jan 2019 13:23:10 -0800 (PST) Received: from acerlaptop.localnet ([2a02:a315:5445:5300:1443:c0d9:3512:5f9a]) by smtp.gmail.com with ESMTPSA id f29sm2178402lfa.46.2019.01.26.13.23.08 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sat, 26 Jan 2019 13:23:09 -0800 (PST) From: =?utf-8?B?UGF3ZcWC?= Chmiel To: Sam Ravnborg 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 Date: Sat, 26 Jan 2019 22:23:07 +0100 Message-ID: <1914204.IzKZliLL3I@acerlaptop> In-Reply-To: <20190126205501.GA31182@ravnborg.org> References: <20190125164645.19208-1-pawel.mikolaj.chmiel@gmail.com> <20190126205501.GA31182@ravnborg.org> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On sobota, 26 stycznia 2019 21:55:01 CET Sam Ravnborg wrote: Hi > Hi Pawel. >=20 > Thanks for the patch, some comments follows. > Please judge what comments you chose to follow, see this as suggestions. >=20 > According to Documentation/devicetree/bindings/submitting-patches.rst: >=20 > The preferred subject prefix for binding patches is: > "dt-bindings: : ..." >=20 > It would be a good idea to follow this practice in next revision. I don't know how I forgot about this (will be fixed in next version). >=20 > On Fri, Jan 25, 2019 at 05:46:44PM +0100, Pawe=C5=82 Chmiel wrote: > > From: Jonathan Bakker > >=20 > > This commit adds documentation for Samsung s6e63m0 AMOLED LCD panel > > driver. > >=20 > > Signed-off-by: Jonathan Bakker > > Signed-off-by: Pawe=C5=82 Chmiel > > --- > > .../display/panel/samsung,s6e63m0.txt | 60 +++++++++++++++++++ > > 1 file changed, 60 insertions(+) > > create mode 100644 Documentation/devicetree/bindings/display/panel/sam= sung,s6e63m0.txt > >=20 > > diff --git a/Documentation/devicetree/bindings/display/panel/samsung,s6= e63m0.txt b/Documentation/devicetree/bindings/display/panel/samsung,s6e63m0= =2Etxt > > new file mode 100644 > > index 000000000000..4979200e2dd2 > > --- /dev/null > > +++ b/Documentation/devicetree/bindings/display/panel/samsung,s6e63m0.t= xt > > @@ -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') Right, will be fixed. >=20 > > + - 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, Ok, will hardcode them in driver. Currently those timings (which i had adde= d to my device dts) were taken from original kernel sources. Need to check if there are other devices (not only using mainline kernel) u= sing this panel and what timings are they using (hope they're the same). >=20 > The example include a spi-max-frequency which is not mentioned? spi-max-frequency shouldn't be here and will be removed. >=20 > > + > > +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. >=20 Need to check delays also (like timings). > I cannot explain the background for this, this is just how things are don= e. >=20 > > + > > +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 =3D "samsung,s6e63m0"; > > + reg =3D <0>; > > + reset-gpio =3D <&mp05 5 1>; > > + vdd3-supply =3D <&ldo12_reg>; > > + vci-supply =3D <&ldo11_reg>; > > + spi-max-frequency =3D <1000000>; > > + > > + power-on-delay =3D <0>; > > + power-off-delay =3D <0>; > > + reset-delay =3D <10>; > > + panel-width-mm =3D <53>; > > + panel-height-mm =3D <89>; > > + > > + display-timings { > > + timing-0 { > > + /* 480x800@60Hz */ > > + clock-frequency =3D <25628040>; > > + hactive =3D <480>; > > + vactive =3D <800>; > > + hfront-porch =3D <16>; > > + hback-porch =3D <16>; > > + hsync-len =3D <2>; > > + vfront-porch =3D <28>; > > + vback-porch =3D <1>; > > + vsync-len =3D <2>; > > + }; > > + }; > > + > > + port { > > + lcd_ep: endpoint { > > + remote-endpoint =3D <&fimd_ep>; > > + }; > > + }; > > + }; >=20 > Sam >=20 Thanks for review