From: Thierry Reding <thierry.reding@gmail.com> To: Vinay Simha BN <simhavcs@gmail.com> Cc: Archit Taneja <archit.taneja@gmail.com>, John Stultz <john.stultz@linaro.org>, Sumit Semwal <sumit.semwal@linaro.org>, David Airlie <airlied@linux.ie>, Rob Herring <robh+dt@kernel.org>, Mark Rutland <mark.rutland@arm.com>, "open list:DRM PANEL DRIVERS" <dri-devel@lists.freedesktop.org>, "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" <devicetree@vger.kernel.org>, open list <linux-kernel@vger.kernel.org> Subject: Re: [RESEND] [PATCH v2 2/4] dt-bindings: Add jdi lt070me05000 panel bindings Date: Wed, 24 Aug 2016 13:56:39 +0200 [thread overview] Message-ID: <20160824115639.GC3169@ulmo.ba.sec> (raw) In-Reply-To: <1469978126-925-2-git-send-email-simhavcs@gmail.com> [-- Attachment #1: Type: text/plain, Size: 1190 bytes --] On Sun, Jul 31, 2016 at 08:45:21PM +0530, Vinay Simha BN wrote: [...] > diff --git a/Documentation/devicetree/bindings/display/panel/jdi,lt070me05000.txt b/Documentation/devicetree/bindings/display/panel/jdi,lt070me05000.txt [...] > +- reset-gpios: phandle of gpio for reset line > + This should be 8mA, gpio can be configured using mux, pinctrl, pinctrl-names > + XRES, Reset, Low active > +- enable-gpios: phandle of gpio for enable line > + LED_EN, LED backlight enable, High active This is a little confusing. Shouldn't we rather completely omit any mention of the polarity of these and let the board design handle this? If the reset is low active, then I'd expect that to be reflected in the GPIO specifier of the reset-gpios property, like so: panel@0 { ... reset-gpios = <&tlmm_pinmux 54 GPIO_ACTIVE_LOW>; ... }; With that a driver can simply deal with a high active reset, which it currently doesn't. The problem with the current description is that it is unclear who's to deal with the polarity. In order for this to work properly with the current driver you'll have to specify the GPIO as GPIO_ACTIVE_HIGH, which is not what the binding says it should be. Thierry [-- Attachment #2: signature.asc --] [-- Type: application/pgp-signature, Size: 819 bytes --]
WARNING: multiple messages have this Message-ID (diff)
From: Thierry Reding <thierry.reding@gmail.com> To: Vinay Simha BN <simhavcs@gmail.com> Cc: Mark Rutland <mark.rutland@arm.com>, "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" <devicetree@vger.kernel.org>, open list <linux-kernel@vger.kernel.org>, "open list:DRM PANEL DRIVERS" <dri-devel@lists.freedesktop.org>, Rob Herring <robh+dt@kernel.org>, Archit Taneja <archit.taneja@gmail.com> Subject: Re: [RESEND] [PATCH v2 2/4] dt-bindings: Add jdi lt070me05000 panel bindings Date: Wed, 24 Aug 2016 13:56:39 +0200 [thread overview] Message-ID: <20160824115639.GC3169@ulmo.ba.sec> (raw) In-Reply-To: <1469978126-925-2-git-send-email-simhavcs@gmail.com> [-- Attachment #1.1: Type: text/plain, Size: 1190 bytes --] On Sun, Jul 31, 2016 at 08:45:21PM +0530, Vinay Simha BN wrote: [...] > diff --git a/Documentation/devicetree/bindings/display/panel/jdi,lt070me05000.txt b/Documentation/devicetree/bindings/display/panel/jdi,lt070me05000.txt [...] > +- reset-gpios: phandle of gpio for reset line > + This should be 8mA, gpio can be configured using mux, pinctrl, pinctrl-names > + XRES, Reset, Low active > +- enable-gpios: phandle of gpio for enable line > + LED_EN, LED backlight enable, High active This is a little confusing. Shouldn't we rather completely omit any mention of the polarity of these and let the board design handle this? If the reset is low active, then I'd expect that to be reflected in the GPIO specifier of the reset-gpios property, like so: panel@0 { ... reset-gpios = <&tlmm_pinmux 54 GPIO_ACTIVE_LOW>; ... }; With that a driver can simply deal with a high active reset, which it currently doesn't. The problem with the current description is that it is unclear who's to deal with the polarity. In order for this to work properly with the current driver you'll have to specify the GPIO as GPIO_ACTIVE_HIGH, which is not what the binding says it should be. Thierry [-- Attachment #1.2: signature.asc --] [-- Type: application/pgp-signature, Size: 819 bytes --] [-- Attachment #2: Type: text/plain, Size: 160 bytes --] _______________________________________________ dri-devel mailing list dri-devel@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/dri-devel
next prev parent reply other threads:[~2016-08-24 11:56 UTC|newest] Thread overview: 24+ messages / expand[flat|nested] mbox.gz Atom feed top 2016-07-31 15:15 [RESEND] [PATCH 1/4] dt-bindings: Add Japan Display Inc vendor id Vinay Simha BN 2016-07-31 15:15 ` Vinay Simha BN 2016-07-31 15:15 ` [RESEND] [PATCH v2 2/4] dt-bindings: Add jdi lt070me05000 panel bindings Vinay Simha BN 2016-07-31 15:15 ` Vinay Simha BN 2016-08-24 11:45 ` Thierry Reding 2016-08-24 11:45 ` Thierry Reding 2016-08-24 12:04 ` Vinay Simha 2016-08-24 12:04 ` Vinay Simha 2016-08-24 12:32 ` Thierry Reding 2016-08-24 12:32 ` Thierry Reding 2016-08-24 17:24 ` Vinay Simha 2016-08-24 17:24 ` Vinay Simha 2016-08-24 11:56 ` Thierry Reding [this message] 2016-08-24 11:56 ` Thierry Reding 2016-08-24 12:23 ` Vinay Simha 2016-08-24 12:23 ` Vinay Simha 2016-08-24 12:35 ` Thierry Reding 2016-08-24 12:35 ` Thierry Reding 2016-07-31 15:15 ` [RESEND] [PATCH v3 3/4] drm/dsi: Implement dcs set/get display brightness Vinay Simha BN 2016-07-31 15:15 ` Vinay Simha BN 2016-08-24 11:46 ` Thierry Reding 2016-08-24 11:46 ` Thierry Reding 2016-07-31 15:15 ` [RESEND] [PATCH v9 4/4] drm/panel: Add JDI LT070ME05000 WUXGA DSI Panel Vinay Simha BN 2016-07-31 15:15 ` Vinay Simha BN
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20160824115639.GC3169@ulmo.ba.sec \ --to=thierry.reding@gmail.com \ --cc=airlied@linux.ie \ --cc=archit.taneja@gmail.com \ --cc=devicetree@vger.kernel.org \ --cc=dri-devel@lists.freedesktop.org \ --cc=john.stultz@linaro.org \ --cc=linux-kernel@vger.kernel.org \ --cc=mark.rutland@arm.com \ --cc=robh+dt@kernel.org \ --cc=simhavcs@gmail.com \ --cc=sumit.semwal@linaro.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.